mirror of OpenBSD xenocara tree github.com/openbsd/xenocara
openbsd
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update editres to 1.0.9

matthieu df7f20b4 87a5a49f

+4126 -3413
+151 -2
app/editres/ChangeLog
··· 1 + commit 6013f24444d576ad263004c45edd52b4e8cec632 2 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 3 + Date: Sun Mar 3 09:37:16 2024 -0800 4 + 5 + editres 1.0.9 6 + 7 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 8 + 9 + commit d0bc9be0ef9545b8f34a35a766c165bd7fb073f3 10 + Author: Peter Radisson <Radisson97@web.de> 11 + Date: Wed Sep 6 14:46:40 2023 +0200 12 + 13 + fix const error 14 + 15 + missing const causes 'conflicting type' error at initialisation 16 + and aborted compilation. 17 + 18 + commit 6cb5bf04ccdfadef8f7acd81b41b15f0cf053c5f 19 + Author: Walter Harms <xt4ever@web.de> 20 + Date: Fri Apr 7 14:48:42 2023 +0200 21 + 22 + Fix shadowing box 23 + 24 + widgets.c: In function ‘CreateResourceBoxWidgets’: 25 + widgets.c:473:18: warning: declaration of ‘box’ shadows a global declaration [-Wshadow] 26 + Widget pane, box, button, viewport, pane_child; 27 + 28 + rename box to rbox 29 + 30 + commit c10de6efe50fcd7be57e79274889d11e6845f82e 31 + Author: Walter Harms <xt4ever@web.de> 32 + Date: Fri Apr 7 13:09:26 2023 +0200 33 + 34 + fix initialization discards const 35 + 36 + FIX warnings like: 37 + 38 + initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 39 + {"debug", "Debug", XtRBoolean, sizeof(Boolean), 40 + 41 + commit 316df270e14ce13a3a631cdfd383a5a367fe14b0 42 + Author: Walter Harms <xt4ever@web.de> 43 + Date: Fri Apr 7 13:03:39 2023 +0200 44 + 45 + stop const warnings 46 + 47 + fix passing argument 1 of ‘RebuildMenusAndLabel’ discards ‘const’ qualifier 48 + from pointer target type 49 + only user is in comm.c 50 + 51 + commit 417f15e05e739e171b36dfa643b6418dc07ab6bc 52 + Author: Walter Harms <xt4ever@web.de> 53 + Date: Fri Apr 7 12:58:05 2023 +0200 54 + 55 + stop const warnings 56 + 57 + most warnings occur because XtSetArg() needs (String) aka char * 58 + and the "string" is const char * these days. 59 + 60 + commit ce2c6484fec8055480cfaf99137bc9922d44373a 61 + Author: Walter Harms <xt4ever@web.de> 62 + Date: Fri Apr 7 12:53:11 2023 +0200 63 + 64 + stop const warnings 65 + 66 + The warning occurs because XtSetArg() needs (String) aka char * 67 + and the "string" is const char * these days. 68 + 69 + commit d3409224807c5d779162f92465d58120c77b7840 70 + Author: Walter Harms <xt4ever@web.de> 71 + Date: Fri Apr 7 12:44:06 2023 +0200 72 + 73 + stop const warnings 74 + 75 + The warning occurs because XtSetArg() needs (String) aka char * 76 + and the "string" is const char * these days. 77 + 78 + commit 07a58318ccd96c644b2748c57b285d5779fed0a8 79 + Author: Walter Harms <xt4ever@web.de> 80 + Date: Fri Apr 7 12:38:09 2023 +0200 81 + 82 + stop const warnings 83 + 84 + The warning occurs because XtSetArg() needs (String) aka char * 85 + and the "string" is const char * these days. 86 + 87 + commit ce35acb5b2a0892863fc63a1315a60cbbb7f553f 88 + Author: Walter Harms <xt4ever@web.de> 89 + Date: Fri Apr 7 12:17:22 2023 +0200 90 + 91 + FIX some const warnings 92 + 93 + make type const char * to avoid warning 94 + 95 + commit 16df4dd92868ebc9663aae575df7dc3ce6e73797 96 + Author: Walter Harms <xt4ever@web.de> 97 + Date: Fri Apr 7 11:57:37 2023 +0200 98 + 99 + FIX const warning 100 + 101 + getting a bunch of warnings make i had to see the import ones. 102 + So reduce the warnings by adding a few "const" no problem 103 + for internals. For externals function add some casts. 104 + 105 + commit e15440c5456c798e2ba5368afcd3b17c752cc44c 106 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 107 + Date: Thu Feb 9 11:55:52 2023 -0800 108 + 109 + gitlab CI: stop requiring Signed-off-by in commits 110 + 111 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 112 + 113 + commit 85a3ccd43c4601c9d80bea8441ec9711af9bd52d 114 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 115 + Date: Mon Feb 6 18:20:20 2023 -0800 116 + 117 + List which options were unrecognized before printing usage message 118 + 119 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 120 + 121 + commit ad1da487b343ffdbeda09563984869cc56ab29a0 122 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 123 + Date: Mon Feb 6 18:19:29 2023 -0800 124 + 125 + Add -help and -version options 126 + 127 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 128 + 129 + commit 80959deec664cd80cd5dbf84af86b52ded4eaee0 130 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 131 + Date: Mon Feb 6 18:09:37 2023 -0800 132 + 133 + Re-enable code to use XKB Bells 134 + 135 + Enabled by default, use ./configure --without-xkb to disable. 136 + 137 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 138 + 139 + commit ca502149fb2abad58446ebf234aa5e1e40ed4517 140 + Author: Alan Coopersmith <alan.coopersmith@oracle.com> 141 + Date: Mon Feb 6 17:55:31 2023 -0800 142 + 143 + Ensure all *.c files include config.h before any other headers 144 + 145 + Makes sure that any flags set in config.h that affect system headers 146 + are applied equally across all source files. 147 + 148 + Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 149 + 1 150 commit 2f248e96dcde3be96c21142c032f517aa5a06554 2 151 Author: Alan Coopersmith <alan.coopersmith@oracle.com> 3 152 Date: Sun Apr 3 11:30:51 2022 -0700 ··· 758 907 fix rules to work with non-GNU make and outside of $srcdir 759 908 760 909 commit d15169a6a4c05a63b17ae630c9ade3b14a3d7181 761 - Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk> 910 + Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk> 762 911 Date: Mon Jun 27 22:30:58 2005 +0000 763 912 764 913 Use $(foreach ) instead of listing the appdefaults files twice 765 914 766 915 commit 349b2847900798cacdfe358eb8eb4773106657e8 767 - Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk> 916 + Author: Søren Sandmann Pedersen <sandmann@daimi.au.dk> 768 917 Date: Mon Jun 27 21:35:04 2005 +0000 769 918 770 919 - Fix string test in lib/Xaw/xaw.m4
-3
app/editres/Makefile.in
··· 237 237 CCDEPMODE = @CCDEPMODE@ 238 238 CFLAGS = @CFLAGS@ 239 239 CHANGELOG_CMD = @CHANGELOG_CMD@ 240 - CPP = @CPP@ 241 240 CPPFLAGS = @CPPFLAGS@ 242 241 CWARNFLAGS = @CWARNFLAGS@ 243 242 CYGPATH_W = @CYGPATH_W@ ··· 250 249 ECHO_T = @ECHO_T@ 251 250 EDITRES_CFLAGS = @EDITRES_CFLAGS@ 252 251 EDITRES_LIBS = @EDITRES_LIBS@ 253 - EGREP = @EGREP@ 254 252 EXEEXT = @EXEEXT@ 255 253 FILE_MAN_DIR = @FILE_MAN_DIR@ 256 254 FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ 257 - GREP = @GREP@ 258 255 INSTALL = @INSTALL@ 259 256 INSTALL_CMD = @INSTALL_CMD@ 260 257 INSTALL_DATA = @INSTALL_DATA@
+45 -25
app/editres/aclocal.m4
··· 13 13 14 14 m4_ifndef([AC_AUTOCONF_VERSION], 15 15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16 - m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, 17 - [m4_warning([this file was generated for autoconf 2.69. 16 + m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, 17 + [m4_warning([this file was generated for autoconf 2.71. 18 18 You have another version of autoconf. It may work, but is not guaranteed to. 19 19 If you have problems, you may need to regenerate the build system entirely. 20 20 To do so, use the procedure documented by the package, typically 'autoreconf'.])]) ··· 1318 1318 1319 1319 dnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 1320 1320 dnl 1321 - dnl Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved. 1321 + dnl Copyright (c) 2005, 2023, Oracle and/or its affiliates. 1322 1322 dnl 1323 1323 dnl Permission is hereby granted, free of charge, to any person obtaining a 1324 1324 dnl copy of this software and associated documentation files (the "Software"), ··· 1355 1355 # See the "minimum version" comment for each macro you use to see what 1356 1356 # version you require. 1357 1357 m4_defun([XORG_MACROS_VERSION],[ 1358 - m4_define([vers_have], [1.19.2]) 1358 + m4_define([vers_have], [1.20.0]) 1359 1359 m4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 1360 1360 m4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 1361 1361 m4_if(m4_cmp(maj_have, maj_needed), 0,, ··· 1376 1376 # such as man pages and config files 1377 1377 AC_DEFUN([XORG_PROG_RAWCPP],[ 1378 1378 AC_REQUIRE([AC_PROG_CPP]) 1379 - AC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 1379 + AC_PATH_TOOL(RAWCPP, [cpp], [${CPP}], 1380 1380 [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 1381 1381 1382 1382 # Check for flag to avoid builtin definitions - assumes unix is predefined, ··· 1686 1686 # Documentation tools are not always available on all platforms and sometimes 1687 1687 # not at the appropriate level. This macro enables a module to test for the 1688 1688 # presence of the tool and obtain it's path in separate variables. Coupled with 1689 - # the --with-xmlto option, it allows maximum flexibilty in making decisions 1689 + # the --with-xmlto option, it allows maximum flexibility in making decisions 1690 1690 # as whether or not to use the xmlto package. When DEFAULT is not specified, 1691 1691 # --with-xmlto assumes 'auto'. 1692 1692 # ··· 1900 1900 # Documentation tools are not always available on all platforms and sometimes 1901 1901 # not at the appropriate level. This macro enables a module to test for the 1902 1902 # presence of the tool and obtain it's path in separate variables. Coupled with 1903 - # the --with-asciidoc option, it allows maximum flexibilty in making decisions 1903 + # the --with-asciidoc option, it allows maximum flexibility in making decisions 1904 1904 # as whether or not to use the asciidoc package. When DEFAULT is not specified, 1905 1905 # --with-asciidoc assumes 'auto'. 1906 1906 # ··· 1970 1970 # Documentation tools are not always available on all platforms and sometimes 1971 1971 # not at the appropriate level. This macro enables a module to test for the 1972 1972 # presence of the tool and obtain it's path in separate variables. Coupled with 1973 - # the --with-doxygen option, it allows maximum flexibilty in making decisions 1973 + # the --with-doxygen option, it allows maximum flexibility in making decisions 1974 1974 # as whether or not to use the doxygen package. When DEFAULT is not specified, 1975 1975 # --with-doxygen assumes 'auto'. 1976 1976 # ··· 2054 2054 # Documentation tools are not always available on all platforms and sometimes 2055 2055 # not at the appropriate level. This macro enables a module to test for the 2056 2056 # presence of the tool and obtain it's path in separate variables. Coupled with 2057 - # the --with-groff option, it allows maximum flexibilty in making decisions 2057 + # the --with-groff option, it allows maximum flexibility in making decisions 2058 2058 # as whether or not to use the groff package. When DEFAULT is not specified, 2059 2059 # --with-groff assumes 'auto'. 2060 2060 # ··· 2162 2162 # Documentation tools are not always available on all platforms and sometimes 2163 2163 # not at the appropriate level. This macro enables a module to test for the 2164 2164 # presence of the tool and obtain it's path in separate variables. Coupled with 2165 - # the --with-fop option, it allows maximum flexibilty in making decisions 2165 + # the --with-fop option, it allows maximum flexibility in making decisions 2166 2166 # as whether or not to use the fop package. When DEFAULT is not specified, 2167 2167 # --with-fop assumes 'auto'. 2168 2168 # ··· 2256 2256 # Documentation tools are not always available on all platforms and sometimes 2257 2257 # not at the appropriate level. This macro enables a module to test for the 2258 2258 # presence of the tool and obtain it's path in separate variables. Coupled with 2259 - # the --with-ps2pdf option, it allows maximum flexibilty in making decisions 2259 + # the --with-ps2pdf option, it allows maximum flexibility in making decisions 2260 2260 # as whether or not to use the ps2pdf package. When DEFAULT is not specified, 2261 2261 # --with-ps2pdf assumes 'auto'. 2262 2262 # ··· 2311 2311 # not at the appropriate level. This macro enables a builder to skip all 2312 2312 # documentation targets except traditional man pages. 2313 2313 # Combined with the specific tool checking macros XORG_WITH_*, it provides 2314 - # maximum flexibilty in controlling documentation building. 2314 + # maximum flexibility in controlling documentation building. 2315 2315 # Refer to: 2316 2316 # XORG_WITH_XMLTO --with-xmlto 2317 2317 # XORG_WITH_ASCIIDOC --with-asciidoc ··· 2344 2344 # 2345 2345 # This macro enables a builder to skip all developer documentation. 2346 2346 # Combined with the specific tool checking macros XORG_WITH_*, it provides 2347 - # maximum flexibilty in controlling documentation building. 2347 + # maximum flexibility in controlling documentation building. 2348 2348 # Refer to: 2349 2349 # XORG_WITH_XMLTO --with-xmlto 2350 2350 # XORG_WITH_ASCIIDOC --with-asciidoc ··· 2377 2377 # 2378 2378 # This macro enables a builder to skip all functional specification targets. 2379 2379 # Combined with the specific tool checking macros XORG_WITH_*, it provides 2380 - # maximum flexibilty in controlling documentation building. 2380 + # maximum flexibility in controlling documentation building. 2381 2381 # Refer to: 2382 2382 # XORG_WITH_XMLTO --with-xmlto 2383 2383 # XORG_WITH_ASCIIDOC --with-asciidoc ··· 2852 2852 AC_DEFUN([XORG_COMPILER_BRAND], [ 2853 2853 AC_LANG_CASE( 2854 2854 [C], [ 2855 - AC_REQUIRE([AC_PROG_CC_C99]) 2855 + dnl autoconf-2.70 folded AC_PROG_CC_C99 into AC_PROG_CC 2856 + dnl and complains that AC_PROG_CC_C99 is obsolete 2857 + m4_version_prereq([2.70], 2858 + [AC_REQUIRE([AC_PROG_CC])], 2859 + [AC_REQUIRE([AC_PROG_CC_C99])]) 2856 2860 ], 2857 2861 [C++], [ 2858 2862 AC_REQUIRE([AC_PROG_CXX]) ··· 2868 2872 # Minimum version: 1.16.0 2869 2873 # 2870 2874 # Test if the compiler works when passed the given flag as a command line argument. 2871 - # If it succeeds, the flag is appeneded to the given variable. If not, it tries the 2875 + # If it succeeds, the flag is appended to the given variable. If not, it tries the 2872 2876 # next flag in the list until there are no more options. 2873 2877 # 2874 2878 # Note that this does not guarantee that the compiler supports the flag as some ··· 2884 2888 2885 2889 AC_LANG_CASE( 2886 2890 [C], [ 2887 - AC_REQUIRE([AC_PROG_CC_C99]) 2891 + dnl autoconf-2.70 folded AC_PROG_CC_C99 into AC_PROG_CC 2892 + dnl and complains that AC_PROG_CC_C99 is obsolete 2893 + m4_version_prereq([2.70], 2894 + [AC_REQUIRE([AC_PROG_CC])], 2895 + [AC_REQUIRE([AC_PROG_CC_C99])]) 2888 2896 define([PREFIX], [C]) 2889 2897 define([CACHE_PREFIX], [cc]) 2890 2898 define([COMPILER], [$CC]) ··· 3025 3033 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 3026 3034 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 3027 3035 3028 - # Turn some warnings into errors, so we don't accidently get successful builds 3036 + # Turn some warnings into errors, so we don't accidentally get successful builds 3029 3037 # when there are problems that should be fixed. 3030 3038 3031 3039 if test "x$SELECTIVE_WERROR" = "xyes" ; then ··· 3134 3142 AC_LANG_CASE([C], AC_SUBST([CWARNFLAGS])) 3135 3143 ]) # XORG_STRICT_OPTION 3136 3144 3145 + # XORG_DEFAULT_NOCODE_OPTIONS 3146 + # --------------------------- 3147 + # Minimum version: 1.20.0 3148 + # 3149 + # Defines default options for X.Org modules which don't compile code, 3150 + # such as fonts, bitmaps, cursors, and docs. 3151 + # 3152 + AC_DEFUN([XORG_DEFAULT_NOCODE_OPTIONS], [ 3153 + AC_REQUIRE([AC_PROG_INSTALL]) 3154 + XORG_RELEASE_VERSION 3155 + XORG_CHANGELOG 3156 + XORG_INSTALL 3157 + XORG_MANPAGE_SECTIONS 3158 + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 3159 + [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 3160 + ]) # XORG_DEFAULT_NOCODE_OPTIONS 3161 + 3137 3162 # XORG_DEFAULT_OPTIONS 3138 3163 # -------------------- 3139 3164 # Minimum version: 1.3.0 3140 3165 # 3141 - # Defines default options for X.Org modules. 3166 + # Defines default options for X.Org modules which compile code. 3142 3167 # 3143 3168 AC_DEFUN([XORG_DEFAULT_OPTIONS], [ 3144 3169 AC_REQUIRE([AC_PROG_INSTALL]) 3145 3170 XORG_COMPILER_FLAGS 3146 3171 XORG_CWARNFLAGS 3147 3172 XORG_STRICT_OPTION 3148 - XORG_RELEASE_VERSION 3149 - XORG_CHANGELOG 3150 - XORG_INSTALL 3151 - XORG_MANPAGE_SECTIONS 3152 - m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], 3153 - [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) 3173 + XORG_DEFAULT_NOCODE_OPTIONS 3154 3174 ]) # XORG_DEFAULT_OPTIONS 3155 3175 3156 3176 # XORG_INSTALL()
+20 -10
app/editres/actions.c
··· 23 23 in this Software without prior written authorization from The Open Group. 24 24 */ 25 25 26 + #ifdef HAVE_CONFIG_H 27 + # include "config.h" 28 + #endif 29 + 26 30 #include <stdio.h> 27 31 #include <stdlib.h> 28 32 #include <X11/Intrinsic.h> ··· 37 41 * Private data. 38 42 */ 39 43 44 + //struct ActionValues { 45 + // String name; 46 + // int type; 47 + //}; 48 + 40 49 struct ActionValues { 41 - String name; 42 - int type; 50 + const char * name; 51 + int type; 43 52 }; 53 + 44 54 45 55 static struct ActionValues select_values[] = { 46 56 { "widget", (int) SelectWidget }, ··· 72 82 static void ActionQuit ( Widget w, XEvent *event, 73 83 String *params, Cardinal *num_params ); 74 84 static WNode * FindTreeNodeFromWidget ( Widget w ); 75 - static Boolean CheckAndFindEntry ( String action_name, 85 + static Boolean CheckAndFindEntry ( const char *action_name, 76 86 String * params, Cardinal num_params, 77 87 struct ActionValues * table, 78 88 Cardinal num_table, int * type ); ··· 241 251 */ 242 252 243 253 static XtActionsRec actions[] = { 244 - {"EnableGetVal", EnableGetVal}, 245 - {"Select", SelectAction}, 246 - {"SVActiveEntry", ModifySVEntry}, 247 - {"Relabel", RelabelAction}, 248 - {"PopdownFileDialog", PopdownFileDialogAction}, 249 - {"quit", ActionQuit} 254 + {(String)"EnableGetVal", EnableGetVal}, 255 + {(String)"Select", SelectAction}, 256 + {(String)"SVActiveEntry", ModifySVEntry}, 257 + {(String)"Relabel", RelabelAction}, 258 + {(String)"PopdownFileDialog", PopdownFileDialogAction}, 259 + {(String)"quit", ActionQuit} 250 260 }; 251 261 252 262 void ··· 275 285 */ 276 286 277 287 static Boolean 278 - CheckAndFindEntry(String action_name, String *params, Cardinal num_params, 288 + CheckAndFindEntry(const char *action_name, String *params, Cardinal num_params, 279 289 struct ActionValues *table, Cardinal num_table, int *type) 280 290 { 281 291 char buf[BUFSIZ];
+4
app/editres/comm.c
··· 32 32 * being edited. 33 33 */ 34 34 35 + #ifdef HAVE_CONFIG_H 36 + # include "config.h" 37 + #endif 38 + 35 39 #include <X11/Intrinsic.h> 36 40 #include <X11/StringDefs.h> /* Get standard string definitions. */ 37 41 #include <X11/Xatom.h>
+9 -4
app/editres/config.h.in
··· 3 3 /* Define to 1 if you have the <inttypes.h> header file. */ 4 4 #undef HAVE_INTTYPES_H 5 5 6 - /* Define to 1 if you have the <memory.h> header file. */ 7 - #undef HAVE_MEMORY_H 8 - 9 6 /* Define to 1 if you have the <stdint.h> header file. */ 10 7 #undef HAVE_STDINT_H 8 + 9 + /* Define to 1 if you have the <stdio.h> header file. */ 10 + #undef HAVE_STDIO_H 11 11 12 12 /* Define to 1 if you have the <stdlib.h> header file. */ 13 13 #undef HAVE_STDLIB_H ··· 57 57 /* Patch version of this package */ 58 58 #undef PACKAGE_VERSION_PATCHLEVEL 59 59 60 - /* Define to 1 if you have the ANSI C header files. */ 60 + /* Define to 1 if all of the C90 standard headers exist (not just the ones 61 + required in a freestanding environment). This macro is provided for 62 + backward compatibility; new code need not use it. */ 61 63 #undef STDC_HEADERS 62 64 63 65 /* Version number of package */ 64 66 #undef VERSION 67 + 68 + /* Define to use XkbStdBell (libxkbfile) */ 69 + #undef XKB
+3460 -3017
app/editres/configure
··· 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 - # Generated by GNU Autoconf 2.69 for editres 1.0.8. 3 + # Generated by GNU Autoconf 2.71 for editres 1.0.9. 4 4 # 5 - # Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/issues>. 5 + # Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>. 6 6 # 7 7 # 8 - # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 8 + # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9 + # Inc. 9 10 # 10 11 # 11 12 # This configure script is free software; the Free Software Foundation ··· 16 17 17 18 # Be more Bourne compatible 18 19 DUALCASE=1; export DUALCASE # for MKS sh 19 - if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 + as_nop=: 21 + if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22 + then : 20 23 emulate sh 21 24 NULLCMD=: 22 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 26 # is contrary to our usage. Disable this feature. 24 27 alias -g '${1+"$@"}'='"$@"' 25 28 setopt NO_GLOB_SUBST 26 - else 29 + else $as_nop 27 30 case `(set -o) 2>/dev/null` in #( 28 31 *posix*) : 29 32 set -o posix ;; #( ··· 33 36 fi 34 37 35 38 39 + 40 + # Reset variables that may have inherited troublesome values from 41 + # the environment. 42 + 43 + # IFS needs to be set, to space, tab, and newline, in precisely that order. 44 + # (If _AS_PATH_WALK were called with IFS unset, it would have the 45 + # side effect of setting IFS to empty, thus disabling word splitting.) 46 + # Quoting is to prevent editors from complaining about space-tab. 36 47 as_nl=' 37 48 ' 38 49 export as_nl 39 - # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 - as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 - as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 - as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 - # Prefer a ksh shell builtin over an external printf program on Solaris, 44 - # but without wasting forks for bash or zsh. 45 - if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 - as_echo='print -r --' 48 - as_echo_n='print -rn --' 49 - elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 - as_echo='printf %s\n' 51 - as_echo_n='printf %s' 52 - else 53 - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 - as_echo_n='/usr/ucb/echo -n' 56 - else 57 - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 - as_echo_n_body='eval 59 - arg=$1; 60 - case $arg in #( 61 - *"$as_nl"*) 62 - expr "X$arg" : "X\\(.*\\)$as_nl"; 63 - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 - esac; 65 - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 - ' 67 - export as_echo_n_body 68 - as_echo_n='sh -c $as_echo_n_body as_echo' 69 - fi 70 - export as_echo_body 71 - as_echo='sh -c $as_echo_body as_echo' 72 - fi 50 + IFS=" "" $as_nl" 51 + 52 + PS1='$ ' 53 + PS2='> ' 54 + PS4='+ ' 55 + 56 + # Ensure predictable behavior from utilities with locale-dependent output. 57 + LC_ALL=C 58 + export LC_ALL 59 + LANGUAGE=C 60 + export LANGUAGE 61 + 62 + # We cannot yet rely on "unset" to work, but we need these variables 63 + # to be unset--not just set to an empty or harmless value--now, to 64 + # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65 + # also avoids known problems related to "unset" and subshell syntax 66 + # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67 + for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68 + do eval test \${$as_var+y} \ 69 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70 + done 71 + 72 + # Ensure that fds 0, 1, and 2 are open. 73 + if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74 + if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75 + if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 73 76 74 77 # The user is always right. 75 - if test "${PATH_SEPARATOR+set}" != set; then 78 + if ${PATH_SEPARATOR+false} :; then 76 79 PATH_SEPARATOR=: 77 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || ··· 80 83 } 81 84 fi 82 85 83 - 84 - # IFS 85 - # We need space, tab and new line, in precisely that order. Quoting is 86 - # there to prevent editors from complaining about space-tab. 87 - # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 - # splitting by setting IFS to empty value.) 89 - IFS=" "" $as_nl" 90 86 91 87 # Find who we are. Look in the path if we contain no directory separator. 92 88 as_myself= ··· 96 92 for as_dir in $PATH 97 93 do 98 94 IFS=$as_save_IFS 99 - test -z "$as_dir" && as_dir=. 100 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 95 + case $as_dir in #((( 96 + '') as_dir=./ ;; 97 + */) ;; 98 + *) as_dir=$as_dir/ ;; 99 + esac 100 + test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 101 done 102 102 IFS=$as_save_IFS 103 103 ··· 109 109 as_myself=$0 110 110 fi 111 111 if test ! -f "$as_myself"; then 112 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 113 exit 1 114 114 fi 115 115 116 - # Unset variables that we do not need and which cause bugs (e.g. in 117 - # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 - # suppresses any "Segmentation fault" message there. '((' could 119 - # trigger a bug in pdksh 5.2.14. 120 - for as_var in BASH_ENV ENV MAIL MAILPATH 121 - do eval test x\${$as_var+set} = xset \ 122 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 - done 124 - PS1='$ ' 125 - PS2='> ' 126 - PS4='+ ' 127 - 128 - # NLS nuisances. 129 - LC_ALL=C 130 - export LC_ALL 131 - LANGUAGE=C 132 - export LANGUAGE 133 - 134 - # CDPATH. 135 - (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 116 137 117 # Use a proper internal environment variable to ensure we don't fall 138 118 # into an infinite loop, continuously re-executing ourselves. ··· 154 134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 135 # Admittedly, this is quite paranoid, since all the known shells bail 156 136 # out after a failed `exec'. 157 - $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 - as_fn_exit 255 137 + printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138 + exit 255 159 139 fi 160 140 # We don't want this to propagate to other subprocesses. 161 141 { _as_can_reexec=; unset _as_can_reexec;} 162 142 if test "x$CONFIG_SHELL" = x; then 163 - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 143 + as_bourne_compatible="as_nop=: 144 + if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145 + then : 164 146 emulate sh 165 147 NULLCMD=: 166 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 149 # is contrary to our usage. Disable this feature. 168 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 151 setopt NO_GLOB_SUBST 170 - else 152 + else \$as_nop 171 153 case \`(set -o) 2>/dev/null\` in #( 172 154 *posix*) : 173 155 set -o posix ;; #( ··· 187 169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 - if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 172 + if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173 + then : 191 174 192 - else 175 + else \$as_nop 193 176 exitcode=1; echo positional parameters were not saved. 194 177 fi 195 178 test x\$exitcode = x0 || exit 1 179 + blah=\$(echo \$(echo blah)) 180 + test x\"\$blah\" = xblah || exit 1 196 181 test -x / || exit 1" 197 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 186 test \$(( 1 + 1 )) = 2 || exit 1" 202 - if (eval "$as_required") 2>/dev/null; then : 187 + if (eval "$as_required") 2>/dev/null 188 + then : 203 189 as_have_required=yes 204 - else 190 + else $as_nop 205 191 as_have_required=no 206 192 fi 207 - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 193 + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194 + then : 208 195 209 - else 196 + else $as_nop 210 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 198 as_found=false 212 199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 200 do 214 201 IFS=$as_save_IFS 215 - test -z "$as_dir" && as_dir=. 202 + case $as_dir in #((( 203 + '') as_dir=./ ;; 204 + */) ;; 205 + *) as_dir=$as_dir/ ;; 206 + esac 216 207 as_found=: 217 208 case $as_dir in #( 218 209 /*) 219 210 for as_base in sh bash ksh sh5; do 220 211 # Try only shells that exist, to save several forks. 221 - as_shell=$as_dir/$as_base 212 + as_shell=$as_dir$as_base 222 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 214 + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215 + then : 224 216 CONFIG_SHELL=$as_shell as_have_required=yes 225 - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 217 + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218 + then : 226 219 break 2 227 220 fi 228 221 fi ··· 230 223 esac 231 224 as_found=false 232 225 done 233 - $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 226 + IFS=$as_save_IFS 227 + if $as_found 228 + then : 229 + 230 + else $as_nop 231 + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233 + then : 235 234 CONFIG_SHELL=$SHELL as_have_required=yes 236 - fi; } 237 - IFS=$as_save_IFS 235 + fi 236 + fi 238 237 239 238 240 - if test "x$CONFIG_SHELL" != x; then : 239 + if test "x$CONFIG_SHELL" != x 240 + then : 241 241 export CONFIG_SHELL 242 242 # We cannot yet assume a decent shell, so we have to provide a 243 243 # neutralization value for shells without unset; and this also ··· 255 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 257 # out after a failed `exec'. 258 - $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 258 + printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259 259 exit 255 260 260 fi 261 261 262 - if test x$as_have_required = xno; then : 263 - $as_echo "$0: This script requires a shell more modern than all" 264 - $as_echo "$0: the shells that I found on your system." 265 - if test x${ZSH_VERSION+set} = xset ; then 266 - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 - $as_echo "$0: be upgraded to zsh 4.3.4 or later." 262 + if test x$as_have_required = xno 263 + then : 264 + printf "%s\n" "$0: This script requires a shell more modern than all" 265 + printf "%s\n" "$0: the shells that I found on your system." 266 + if test ${ZSH_VERSION+y} ; then 267 + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 268 269 else 269 - $as_echo "$0: Please tell bug-autoconf@gnu.org and 270 - $0: https://gitlab.freedesktop.org/xorg/app/editres/issues 270 + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271 + $0: https://gitlab.freedesktop.org/xorg/app/editres/-/issues 271 272 $0: about your system, including any error possibly output 272 273 $0: before this message. Then install a modern shell, or 273 274 $0: manually run the script under such a shell if you do ··· 295 296 } 296 297 as_unset=as_fn_unset 297 298 299 + 298 300 # as_fn_set_status STATUS 299 301 # ----------------------- 300 302 # Set $? to STATUS, without forking. ··· 312 314 as_fn_set_status $1 313 315 exit $1 314 316 } # as_fn_exit 317 + # as_fn_nop 318 + # --------- 319 + # Do nothing but, unlike ":", preserve the value of $?. 320 + as_fn_nop () 321 + { 322 + return $? 323 + } 324 + as_nop=as_fn_nop 315 325 316 326 # as_fn_mkdir_p 317 327 # ------------- ··· 326 336 as_dirs= 327 337 while :; do 328 338 case $as_dir in #( 329 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 339 + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 340 *) as_qdir=$as_dir;; 331 341 esac 332 342 as_dirs="'$as_qdir' $as_dirs" ··· 335 345 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 346 X"$as_dir" : 'X\(//\)$' \| \ 337 347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338 - $as_echo X"$as_dir" | 348 + printf "%s\n" X"$as_dir" | 339 349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 350 s//\1/ 341 351 q ··· 374 384 # advantage of any shell optimizations that allow amortized linear growth over 375 385 # repeated appends, instead of the typical quadratic growth present in naive 376 386 # implementations. 377 - if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 387 + if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 388 + then : 378 389 eval 'as_fn_append () 379 390 { 380 391 eval $1+=\$2 381 392 }' 382 - else 393 + else $as_nop 383 394 as_fn_append () 384 395 { 385 396 eval $1=\$$1\$2 ··· 391 402 # Perform arithmetic evaluation on the ARGs, and store the result in the 392 403 # global $as_val. Take advantage of shells that can avoid forks. The arguments 393 404 # must be portable across $(()) and expr. 394 - if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 405 + if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 406 + then : 395 407 eval 'as_fn_arith () 396 408 { 397 409 as_val=$(( $* )) 398 410 }' 399 - else 411 + else $as_nop 400 412 as_fn_arith () 401 413 { 402 414 as_val=`expr "$@" || test $? -eq 1` 403 415 } 404 416 fi # as_fn_arith 405 417 418 + # as_fn_nop 419 + # --------- 420 + # Do nothing but, unlike ":", preserve the value of $?. 421 + as_fn_nop () 422 + { 423 + return $? 424 + } 425 + as_nop=as_fn_nop 406 426 407 427 # as_fn_error STATUS ERROR [LINENO LOG_FD] 408 428 # ---------------------------------------- ··· 414 434 as_status=$1; test $as_status -eq 0 && as_status=1 415 435 if test "$4"; then 416 436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 437 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 438 fi 419 - $as_echo "$as_me: error: $2" >&2 439 + printf "%s\n" "$as_me: error: $2" >&2 420 440 as_fn_exit $as_status 421 441 } # as_fn_error 422 442 ··· 443 463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 464 X"$0" : 'X\(//\)$' \| \ 445 465 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446 - $as_echo X/"$0" | 466 + printf "%s\n" X/"$0" | 447 467 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 468 s//\1/ 449 469 q ··· 487 507 s/-\n.*// 488 508 ' >$as_me.lineno && 489 509 chmod +x "$as_me.lineno" || 490 - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 510 + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 511 492 512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 513 # already done that, so ensure we don't try to do so again and fall ··· 501 521 exit 502 522 } 503 523 524 + 525 + # Determine whether it's possible to make 'echo' print without a newline. 526 + # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 527 + # for compatibility with existing Makefiles. 504 528 ECHO_C= ECHO_N= ECHO_T= 505 529 case `echo -n x` in #((((( 506 530 -n*) ··· 514 538 ECHO_N='-n';; 515 539 esac 516 540 541 + # For backward compatibility with old third-party macros, we provide 542 + # the shell variables $as_echo and $as_echo_n. New code should use 543 + # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 544 + as_echo='printf %s\n' 545 + as_echo_n='printf %s' 546 + 547 + 517 548 rm -f conf$$ conf$$.exe conf$$.file 518 549 if test -d conf$$.dir; then 519 550 rm -f conf$$.dir/conf$$.file ··· 581 612 # Identity of this package. 582 613 PACKAGE_NAME='editres' 583 614 PACKAGE_TARNAME='editres' 584 - PACKAGE_VERSION='1.0.8' 585 - PACKAGE_STRING='editres 1.0.8' 586 - PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/editres/issues' 615 + PACKAGE_VERSION='1.0.9' 616 + PACKAGE_STRING='editres 1.0.9' 617 + PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/editres/-/issues' 587 618 PACKAGE_URL='' 588 619 589 620 ac_unique_file="Makefile.am" 590 621 # Factoring default headers for most tests. 591 622 ac_includes_default="\ 592 - #include <stdio.h> 593 - #ifdef HAVE_SYS_TYPES_H 594 - # include <sys/types.h> 623 + #include <stddef.h> 624 + #ifdef HAVE_STDIO_H 625 + # include <stdio.h> 595 626 #endif 596 - #ifdef HAVE_SYS_STAT_H 597 - # include <sys/stat.h> 598 - #endif 599 - #ifdef STDC_HEADERS 627 + #ifdef HAVE_STDLIB_H 600 628 # include <stdlib.h> 601 - # include <stddef.h> 602 - #else 603 - # ifdef HAVE_STDLIB_H 604 - # include <stdlib.h> 605 - # endif 606 629 #endif 607 630 #ifdef HAVE_STRING_H 608 - # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609 - # include <memory.h> 610 - # endif 611 631 # include <string.h> 612 632 #endif 613 - #ifdef HAVE_STRINGS_H 614 - # include <strings.h> 615 - #endif 616 633 #ifdef HAVE_INTTYPES_H 617 634 # include <inttypes.h> 618 635 #endif 619 636 #ifdef HAVE_STDINT_H 620 637 # include <stdint.h> 621 638 #endif 639 + #ifdef HAVE_STRINGS_H 640 + # include <strings.h> 641 + #endif 642 + #ifdef HAVE_SYS_TYPES_H 643 + # include <sys/types.h> 644 + #endif 645 + #ifdef HAVE_SYS_STAT_H 646 + # include <sys/stat.h> 647 + #endif 622 648 #ifdef HAVE_UNISTD_H 623 649 # include <unistd.h> 624 650 #endif" 625 651 652 + ac_header_c_list= 626 653 ac_subst_vars='am__EXEEXT_FALSE 627 654 am__EXEEXT_TRUE 628 655 LTLIBOBJS ··· 667 694 STRICT_CFLAGS 668 695 CWARNFLAGS 669 696 BASE_CFLAGS 670 - EGREP 671 - GREP 672 - CPP 673 697 am__fastdepCC_FALSE 674 698 am__fastdepCC_TRUE 675 699 CCDEPMODE ··· 760 784 enable_selective_werror 761 785 enable_strict_compilation 762 786 enable_silent_rules 787 + with_xkb 763 788 with_appdefaultdir 764 789 ' 765 790 ac_precious_vars='build_alias ··· 770 795 LDFLAGS 771 796 LIBS 772 797 CPPFLAGS 773 - CPP 774 798 PKG_CONFIG 775 799 PKG_CONFIG_PATH 776 800 PKG_CONFIG_LIBDIR ··· 845 869 *=) ac_optarg= ;; 846 870 *) ac_optarg=yes ;; 847 871 esac 848 - 849 - # Accept the important Cygnus configure options, so we can diagnose typos. 850 872 851 873 case $ac_dashdash$ac_option in 852 874 --) ··· 888 910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 889 911 # Reject names that are not valid shell variable names. 890 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 891 - as_fn_error $? "invalid feature name: $ac_useropt" 913 + as_fn_error $? "invalid feature name: \`$ac_useropt'" 892 914 ac_useropt_orig=$ac_useropt 893 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 915 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 894 916 case $ac_user_opts in 895 917 *" 896 918 "enable_$ac_useropt" ··· 914 936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 915 937 # Reject names that are not valid shell variable names. 916 938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 - as_fn_error $? "invalid feature name: $ac_useropt" 939 + as_fn_error $? "invalid feature name: \`$ac_useropt'" 918 940 ac_useropt_orig=$ac_useropt 919 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 941 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 920 942 case $ac_user_opts in 921 943 *" 922 944 "enable_$ac_useropt" ··· 1127 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1128 1150 # Reject names that are not valid shell variable names. 1129 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 - as_fn_error $? "invalid package name: $ac_useropt" 1152 + as_fn_error $? "invalid package name: \`$ac_useropt'" 1131 1153 ac_useropt_orig=$ac_useropt 1132 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1154 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1133 1155 case $ac_user_opts in 1134 1156 *" 1135 1157 "with_$ac_useropt" ··· 1143 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1144 1166 # Reject names that are not valid shell variable names. 1145 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 - as_fn_error $? "invalid package name: $ac_useropt" 1168 + as_fn_error $? "invalid package name: \`$ac_useropt'" 1147 1169 ac_useropt_orig=$ac_useropt 1148 - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1170 + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 1171 case $ac_user_opts in 1150 1172 *" 1151 1173 "with_$ac_useropt" ··· 1189 1211 1190 1212 *) 1191 1213 # FIXME: should be removed in autoconf 3.0. 1192 - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1214 + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1193 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1216 + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1195 1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1196 1218 ;; 1197 1219 ··· 1207 1229 case $enable_option_checking in 1208 1230 no) ;; 1209 1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1210 - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1232 + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211 1233 esac 1212 1234 fi 1213 1235 ··· 1271 1293 X"$as_myself" : 'X\(//\)[^/]' \| \ 1272 1294 X"$as_myself" : 'X\(//\)$' \| \ 1273 1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1274 - $as_echo X"$as_myself" | 1296 + printf "%s\n" X"$as_myself" | 1275 1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1276 1298 s//\1/ 1277 1299 q ··· 1328 1350 # Omit some internal or obsolete options to make the list less imposing. 1329 1351 # This message is too long to be a string in the A/UX 3.1 sh. 1330 1352 cat <<_ACEOF 1331 - \`configure' configures editres 1.0.8 to adapt to many kinds of systems. 1353 + \`configure' configures editres 1.0.9 to adapt to many kinds of systems. 1332 1354 1333 1355 Usage: $0 [OPTION]... [VAR=VALUE]... 1334 1356 ··· 1399 1421 1400 1422 if test -n "$ac_init_help"; then 1401 1423 case $ac_init_help in 1402 - short | recursive ) echo "Configuration of editres 1.0.8:";; 1424 + short | recursive ) echo "Configuration of editres 1.0.9:";; 1403 1425 esac 1404 1426 cat <<\_ACEOF 1405 1427 ··· 1426 1448 Optional Packages: 1427 1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1428 1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1451 + --without-xkb Disable use of XKB to sound bells (Default is 1452 + with-xkb) 1429 1453 --with-appdefaultdir=<pathname> 1430 1454 specify directory for app-defaults files (default is 1431 1455 autodetected) ··· 1438 1462 LIBS libraries to pass to the linker, e.g. -l<library> 1439 1463 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1440 1464 you have headers in a nonstandard directory <include dir> 1441 - CPP C preprocessor 1442 1465 PKG_CONFIG path to pkg-config utility 1443 1466 PKG_CONFIG_PATH 1444 1467 directories to add to pkg-config's search path ··· 1456 1479 Use these variables to override the choices made by `configure' or to help 1457 1480 it to find libraries and programs with nonstandard names/locations. 1458 1481 1459 - Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/issues>. 1482 + Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>. 1460 1483 _ACEOF 1461 1484 ac_status=$? 1462 1485 fi ··· 1472 1495 case "$ac_dir" in 1473 1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1474 1497 *) 1475 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1498 + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1476 1499 # A ".." for each directory in $ac_dir_suffix. 1477 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1500 + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1478 1501 case $ac_top_builddir_sub in 1479 1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1480 1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ··· 1502 1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1503 1526 1504 1527 cd "$ac_dir" || { ac_status=$?; continue; } 1505 - # Check for guested configure. 1528 + # Check for configure.gnu first; this name is used for a wrapper for 1529 + # Metaconfig's "Configure" on case-insensitive file systems. 1506 1530 if test -f "$ac_srcdir/configure.gnu"; then 1507 1531 echo && 1508 1532 $SHELL "$ac_srcdir/configure.gnu" --help=recursive ··· 1510 1534 echo && 1511 1535 $SHELL "$ac_srcdir/configure" --help=recursive 1512 1536 else 1513 - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1537 + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1514 1538 fi || ac_status=$? 1515 1539 cd "$ac_pwd" || { ac_status=$?; break; } 1516 1540 done ··· 1519 1543 test -n "$ac_init_help" && exit $ac_status 1520 1544 if $ac_init_version; then 1521 1545 cat <<\_ACEOF 1522 - editres configure 1.0.8 1523 - generated by GNU Autoconf 2.69 1546 + editres configure 1.0.9 1547 + generated by GNU Autoconf 2.71 1524 1548 1525 - Copyright (C) 2012 Free Software Foundation, Inc. 1549 + Copyright (C) 2021 Free Software Foundation, Inc. 1526 1550 This configure script is free software; the Free Software Foundation 1527 1551 gives unlimited permission to copy, distribute and modify it. 1528 1552 _ACEOF ··· 1539 1563 ac_fn_c_try_compile () 1540 1564 { 1541 1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 - rm -f conftest.$ac_objext 1566 + rm -f conftest.$ac_objext conftest.beam 1543 1567 if { { ac_try="$ac_compile" 1544 1568 case "(($ac_try" in 1545 1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1546 1570 *) ac_try_echo=$ac_try;; 1547 1571 esac 1548 1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1549 - $as_echo "$ac_try_echo"; } >&5 1573 + printf "%s\n" "$ac_try_echo"; } >&5 1550 1574 (eval "$ac_compile") 2>conftest.err 1551 1575 ac_status=$? 1552 1576 if test -s conftest.err; then ··· 1554 1578 cat conftest.er1 >&5 1555 1579 mv -f conftest.er1 conftest.err 1556 1580 fi 1557 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1581 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1558 1582 test $ac_status = 0; } && { 1559 1583 test -z "$ac_c_werror_flag" || 1560 1584 test ! -s conftest.err 1561 - } && test -s conftest.$ac_objext; then : 1585 + } && test -s conftest.$ac_objext 1586 + then : 1562 1587 ac_retval=0 1563 - else 1564 - $as_echo "$as_me: failed program was:" >&5 1588 + else $as_nop 1589 + printf "%s\n" "$as_me: failed program was:" >&5 1565 1590 sed 's/^/| /' conftest.$ac_ext >&5 1566 1591 1567 1592 ac_retval=1 ··· 1571 1596 1572 1597 } # ac_fn_c_try_compile 1573 1598 1574 - # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1575 - # --------------------------------------------- 1599 + # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1600 + # ------------------------------------------------------------------ 1576 1601 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1577 - # accordingly. 1578 - ac_fn_c_check_decl () 1602 + # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1603 + ac_fn_check_decl () 1579 1604 { 1580 1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1581 1606 as_decl_name=`echo $2|sed 's/ *(.*//'` 1607 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1608 + printf %s "checking whether $as_decl_name is declared... " >&6; } 1609 + if eval test \${$3+y} 1610 + then : 1611 + printf %s "(cached) " >&6 1612 + else $as_nop 1582 1613 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1583 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1584 - $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1585 - if eval \${$3+:} false; then : 1586 - $as_echo_n "(cached) " >&6 1587 - else 1614 + eval ac_save_FLAGS=\$$6 1615 + as_fn_append $6 " $5" 1588 1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1589 1617 /* end confdefs.h. */ 1590 1618 $4 1591 1619 int 1592 - main () 1620 + main (void) 1593 1621 { 1594 1622 #ifndef $as_decl_name 1595 1623 #ifdef __cplusplus ··· 1603 1631 return 0; 1604 1632 } 1605 1633 _ACEOF 1606 - if ac_fn_c_try_compile "$LINENO"; then : 1634 + if ac_fn_c_try_compile "$LINENO" 1635 + then : 1607 1636 eval "$3=yes" 1608 - else 1637 + else $as_nop 1609 1638 eval "$3=no" 1610 1639 fi 1611 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1612 - fi 1613 - eval ac_res=\$$3 1614 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1615 - $as_echo "$ac_res" >&6; } 1616 - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1617 - 1618 - } # ac_fn_c_check_decl 1619 - 1620 - # ac_fn_c_try_cpp LINENO 1621 - # ---------------------- 1622 - # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1623 - ac_fn_c_try_cpp () 1624 - { 1625 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1626 - if { { ac_try="$ac_cpp conftest.$ac_ext" 1627 - case "(($ac_try" in 1628 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1629 - *) ac_try_echo=$ac_try;; 1630 - esac 1631 - eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1632 - $as_echo "$ac_try_echo"; } >&5 1633 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1634 - ac_status=$? 1635 - if test -s conftest.err; then 1636 - grep -v '^ *+' conftest.err >conftest.er1 1637 - cat conftest.er1 >&5 1638 - mv -f conftest.er1 conftest.err 1639 - fi 1640 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1641 - test $ac_status = 0; } > conftest.i && { 1642 - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1643 - test ! -s conftest.err 1644 - }; then : 1645 - ac_retval=0 1646 - else 1647 - $as_echo "$as_me: failed program was:" >&5 1648 - sed 's/^/| /' conftest.$ac_ext >&5 1649 - 1650 - ac_retval=1 1651 - fi 1652 - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1653 - as_fn_set_status $ac_retval 1654 - 1655 - } # ac_fn_c_try_cpp 1656 - 1657 - # ac_fn_c_try_run LINENO 1658 - # ---------------------- 1659 - # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1660 - # that executables *can* be run. 1661 - ac_fn_c_try_run () 1662 - { 1663 - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 - if { { ac_try="$ac_link" 1665 - case "(($ac_try" in 1666 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1667 - *) ac_try_echo=$ac_try;; 1668 - esac 1669 - eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1670 - $as_echo "$ac_try_echo"; } >&5 1671 - (eval "$ac_link") 2>&5 1672 - ac_status=$? 1673 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 - test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1675 - { { case "(($ac_try" in 1676 - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1677 - *) ac_try_echo=$ac_try;; 1678 - esac 1679 - eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1680 - $as_echo "$ac_try_echo"; } >&5 1681 - (eval "$ac_try") 2>&5 1682 - ac_status=$? 1683 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1684 - test $ac_status = 0; }; }; then : 1685 - ac_retval=0 1686 - else 1687 - $as_echo "$as_me: program exited with status $ac_status" >&5 1688 - $as_echo "$as_me: failed program was:" >&5 1689 - sed 's/^/| /' conftest.$ac_ext >&5 1640 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1641 + eval $6=\$ac_save_FLAGS 1690 1642 1691 - ac_retval=$ac_status 1692 1643 fi 1693 - rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1644 + eval ac_res=\$$3 1645 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1646 + printf "%s\n" "$ac_res" >&6; } 1694 1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1695 - as_fn_set_status $ac_retval 1696 1648 1697 - } # ac_fn_c_try_run 1649 + } # ac_fn_check_decl 1698 1650 1699 1651 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1700 1652 # ------------------------------------------------------- ··· 1703 1655 ac_fn_c_check_header_compile () 1704 1656 { 1705 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1707 - $as_echo_n "checking for $2... " >&6; } 1708 - if eval \${$3+:} false; then : 1709 - $as_echo_n "(cached) " >&6 1710 - else 1658 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1659 + printf %s "checking for $2... " >&6; } 1660 + if eval test \${$3+y} 1661 + then : 1662 + printf %s "(cached) " >&6 1663 + else $as_nop 1711 1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1712 1665 /* end confdefs.h. */ 1713 1666 $4 1714 1667 #include <$2> 1715 1668 _ACEOF 1716 - if ac_fn_c_try_compile "$LINENO"; then : 1669 + if ac_fn_c_try_compile "$LINENO" 1670 + then : 1717 1671 eval "$3=yes" 1718 - else 1672 + else $as_nop 1719 1673 eval "$3=no" 1720 1674 fi 1721 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1675 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1722 1676 fi 1723 1677 eval ac_res=\$$3 1724 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1725 - $as_echo "$ac_res" >&6; } 1678 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1679 + printf "%s\n" "$ac_res" >&6; } 1726 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1727 1681 1728 1682 } # ac_fn_c_check_header_compile ··· 1733 1687 ac_fn_c_try_link () 1734 1688 { 1735 1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1736 - rm -f conftest.$ac_objext conftest$ac_exeext 1690 + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1737 1691 if { { ac_try="$ac_link" 1738 1692 case "(($ac_try" in 1739 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1740 1694 *) ac_try_echo=$ac_try;; 1741 1695 esac 1742 1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1743 - $as_echo "$ac_try_echo"; } >&5 1697 + printf "%s\n" "$ac_try_echo"; } >&5 1744 1698 (eval "$ac_link") 2>conftest.err 1745 1699 ac_status=$? 1746 1700 if test -s conftest.err; then ··· 1748 1702 cat conftest.er1 >&5 1749 1703 mv -f conftest.er1 conftest.err 1750 1704 fi 1751 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1752 1706 test $ac_status = 0; } && { 1753 1707 test -z "$ac_c_werror_flag" || 1754 1708 test ! -s conftest.err 1755 1709 } && test -s conftest$ac_exeext && { 1756 1710 test "$cross_compiling" = yes || 1757 1711 test -x conftest$ac_exeext 1758 - }; then : 1712 + } 1713 + then : 1759 1714 ac_retval=0 1760 - else 1761 - $as_echo "$as_me: failed program was:" >&5 1715 + else $as_nop 1716 + printf "%s\n" "$as_me: failed program was:" >&5 1762 1717 sed 's/^/| /' conftest.$ac_ext >&5 1763 1718 1764 1719 ac_retval=1 ··· 1772 1727 as_fn_set_status $ac_retval 1773 1728 1774 1729 } # ac_fn_c_try_link 1730 + ac_configure_args_raw= 1731 + for ac_arg 1732 + do 1733 + case $ac_arg in 1734 + *\'*) 1735 + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1736 + esac 1737 + as_fn_append ac_configure_args_raw " '$ac_arg'" 1738 + done 1739 + 1740 + case $ac_configure_args_raw in 1741 + *$as_nl*) 1742 + ac_safe_unquote= ;; 1743 + *) 1744 + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1745 + ac_unsafe_a="$ac_unsafe_z#~" 1746 + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1747 + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1748 + esac 1749 + 1775 1750 cat >config.log <<_ACEOF 1776 1751 This file contains any messages produced by compilers while 1777 1752 running configure, to aid debugging if configure makes a mistake. 1778 1753 1779 - It was created by editres $as_me 1.0.8, which was 1780 - generated by GNU Autoconf 2.69. Invocation command line was 1754 + It was created by editres $as_me 1.0.9, which was 1755 + generated by GNU Autoconf 2.71. Invocation command line was 1781 1756 1782 - $ $0 $@ 1757 + $ $0$ac_configure_args_raw 1783 1758 1784 1759 _ACEOF 1785 1760 exec 5>>config.log ··· 1812 1787 for as_dir in $PATH 1813 1788 do 1814 1789 IFS=$as_save_IFS 1815 - test -z "$as_dir" && as_dir=. 1816 - $as_echo "PATH: $as_dir" 1790 + case $as_dir in #((( 1791 + '') as_dir=./ ;; 1792 + */) ;; 1793 + *) as_dir=$as_dir/ ;; 1794 + esac 1795 + printf "%s\n" "PATH: $as_dir" 1817 1796 done 1818 1797 IFS=$as_save_IFS 1819 1798 ··· 1848 1827 | -silent | --silent | --silen | --sile | --sil) 1849 1828 continue ;; 1850 1829 *\'*) 1851 - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1830 + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1852 1831 esac 1853 1832 case $ac_pass in 1854 1833 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; ··· 1883 1862 # WARNING: Use '\'' to represent an apostrophe within the trap. 1884 1863 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1885 1864 trap 'exit_status=$? 1865 + # Sanitize IFS. 1866 + IFS=" "" $as_nl" 1886 1867 # Save into config.log some information that might help in debugging. 1887 1868 { 1888 1869 echo 1889 1870 1890 - $as_echo "## ---------------- ## 1871 + printf "%s\n" "## ---------------- ## 1891 1872 ## Cache variables. ## 1892 1873 ## ---------------- ##" 1893 1874 echo ··· 1898 1879 case $ac_val in #( 1899 1880 *${as_nl}*) 1900 1881 case $ac_var in #( 1901 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1902 - $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1882 + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1883 + printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1903 1884 esac 1904 1885 case $ac_var in #( 1905 1886 _ | IFS | as_nl) ;; #( ··· 1923 1904 ) 1924 1905 echo 1925 1906 1926 - $as_echo "## ----------------- ## 1907 + printf "%s\n" "## ----------------- ## 1927 1908 ## Output variables. ## 1928 1909 ## ----------------- ##" 1929 1910 echo ··· 1931 1912 do 1932 1913 eval ac_val=\$$ac_var 1933 1914 case $ac_val in 1934 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1915 + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1935 1916 esac 1936 - $as_echo "$ac_var='\''$ac_val'\''" 1917 + printf "%s\n" "$ac_var='\''$ac_val'\''" 1937 1918 done | sort 1938 1919 echo 1939 1920 1940 1921 if test -n "$ac_subst_files"; then 1941 - $as_echo "## ------------------- ## 1922 + printf "%s\n" "## ------------------- ## 1942 1923 ## File substitutions. ## 1943 1924 ## ------------------- ##" 1944 1925 echo ··· 1946 1927 do 1947 1928 eval ac_val=\$$ac_var 1948 1929 case $ac_val in 1949 - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1930 + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1950 1931 esac 1951 - $as_echo "$ac_var='\''$ac_val'\''" 1932 + printf "%s\n" "$ac_var='\''$ac_val'\''" 1952 1933 done | sort 1953 1934 echo 1954 1935 fi 1955 1936 1956 1937 if test -s confdefs.h; then 1957 - $as_echo "## ----------- ## 1938 + printf "%s\n" "## ----------- ## 1958 1939 ## confdefs.h. ## 1959 1940 ## ----------- ##" 1960 1941 echo ··· 1962 1943 echo 1963 1944 fi 1964 1945 test "$ac_signal" != 0 && 1965 - $as_echo "$as_me: caught signal $ac_signal" 1966 - $as_echo "$as_me: exit $exit_status" 1946 + printf "%s\n" "$as_me: caught signal $ac_signal" 1947 + printf "%s\n" "$as_me: exit $exit_status" 1967 1948 } >&5 1968 1949 rm -f core *.core core.conftest.* && 1969 1950 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && ··· 1977 1958 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1978 1959 rm -f -r conftest* confdefs.h 1979 1960 1980 - $as_echo "/* confdefs.h */" > confdefs.h 1961 + printf "%s\n" "/* confdefs.h */" > confdefs.h 1981 1962 1982 1963 # Predefined preprocessor variables. 1983 1964 1984 - cat >>confdefs.h <<_ACEOF 1985 - #define PACKAGE_NAME "$PACKAGE_NAME" 1986 - _ACEOF 1965 + printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 1987 1966 1988 - cat >>confdefs.h <<_ACEOF 1989 - #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1990 - _ACEOF 1967 + printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 1991 1968 1992 - cat >>confdefs.h <<_ACEOF 1993 - #define PACKAGE_VERSION "$PACKAGE_VERSION" 1994 - _ACEOF 1969 + printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 1995 1970 1996 - cat >>confdefs.h <<_ACEOF 1997 - #define PACKAGE_STRING "$PACKAGE_STRING" 1998 - _ACEOF 1971 + printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 1999 1972 2000 - cat >>confdefs.h <<_ACEOF 2001 - #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2002 - _ACEOF 1973 + printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2003 1974 2004 - cat >>confdefs.h <<_ACEOF 2005 - #define PACKAGE_URL "$PACKAGE_URL" 2006 - _ACEOF 1975 + printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2007 1976 2008 1977 2009 1978 # Let the site file select an alternate cache file if it wants to. 2010 1979 # Prefer an explicitly selected file to automatically selected ones. 2011 - ac_site_file1=NONE 2012 - ac_site_file2=NONE 2013 1980 if test -n "$CONFIG_SITE"; then 2014 - # We do not want a PATH search for config.site. 2015 - case $CONFIG_SITE in #(( 2016 - -*) ac_site_file1=./$CONFIG_SITE;; 2017 - */*) ac_site_file1=$CONFIG_SITE;; 2018 - *) ac_site_file1=./$CONFIG_SITE;; 2019 - esac 1981 + ac_site_files="$CONFIG_SITE" 2020 1982 elif test "x$prefix" != xNONE; then 2021 - ac_site_file1=$prefix/share/config.site 2022 - ac_site_file2=$prefix/etc/config.site 1983 + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2023 1984 else 2024 - ac_site_file1=$ac_default_prefix/share/config.site 2025 - ac_site_file2=$ac_default_prefix/etc/config.site 1985 + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2026 1986 fi 2027 - for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1987 + 1988 + for ac_site_file in $ac_site_files 2028 1989 do 2029 - test "x$ac_site_file" = xNONE && continue 2030 - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2031 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2032 - $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1990 + case $ac_site_file in #( 1991 + */*) : 1992 + ;; #( 1993 + *) : 1994 + ac_site_file=./$ac_site_file ;; 1995 + esac 1996 + if test -f "$ac_site_file" && test -r "$ac_site_file"; then 1997 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1998 + printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2033 1999 sed 's/^/| /' "$ac_site_file" >&5 2034 2000 . "$ac_site_file" \ 2035 - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2036 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2001 + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2002 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2037 2003 as_fn_error $? "failed to load site script $ac_site_file 2038 2004 See \`config.log' for more details" "$LINENO" 5; } 2039 2005 fi ··· 2043 2009 # Some versions of bash will fail to source /dev/null (special files 2044 2010 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2045 2011 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2046 - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2047 - $as_echo "$as_me: loading cache $cache_file" >&6;} 2012 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2013 + printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2048 2014 case $cache_file in 2049 2015 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2050 2016 *) . "./$cache_file";; 2051 2017 esac 2052 2018 fi 2053 2019 else 2054 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2055 - $as_echo "$as_me: creating cache $cache_file" >&6;} 2020 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2021 + printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2056 2022 >$cache_file 2057 2023 fi 2058 2024 2025 + # Test code for whether the C compiler supports C89 (global declarations) 2026 + ac_c_conftest_c89_globals=' 2027 + /* Does the compiler advertise C89 conformance? 2028 + Do not test the value of __STDC__, because some compilers set it to 0 2029 + while being otherwise adequately conformant. */ 2030 + #if !defined __STDC__ 2031 + # error "Compiler does not advertise C89 conformance" 2032 + #endif 2033 + 2034 + #include <stddef.h> 2035 + #include <stdarg.h> 2036 + struct stat; 2037 + /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2038 + struct buf { int x; }; 2039 + struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2040 + static char *e (p, i) 2041 + char **p; 2042 + int i; 2043 + { 2044 + return p[i]; 2045 + } 2046 + static char *f (char * (*g) (char **, int), char **p, ...) 2047 + { 2048 + char *s; 2049 + va_list v; 2050 + va_start (v,p); 2051 + s = g (p, va_arg (v,int)); 2052 + va_end (v); 2053 + return s; 2054 + } 2055 + 2056 + /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2057 + function prototypes and stuff, but not \xHH hex character constants. 2058 + These do not provoke an error unfortunately, instead are silently treated 2059 + as an "x". The following induces an error, until -std is added to get 2060 + proper ANSI mode. Curiously \x00 != x always comes out true, for an 2061 + array size at least. It is necessary to write \x00 == 0 to get something 2062 + that is true only with -std. */ 2063 + int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2064 + 2065 + /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2066 + inside strings and character constants. */ 2067 + #define FOO(x) '\''x'\'' 2068 + int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2069 + 2070 + int test (int i, double x); 2071 + struct s1 {int (*f) (int a);}; 2072 + struct s2 {int (*f) (double a);}; 2073 + int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2074 + int, int);' 2075 + 2076 + # Test code for whether the C compiler supports C89 (body of main). 2077 + ac_c_conftest_c89_main=' 2078 + ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2079 + ' 2080 + 2081 + # Test code for whether the C compiler supports C99 (global declarations) 2082 + ac_c_conftest_c99_globals=' 2083 + // Does the compiler advertise C99 conformance? 2084 + #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2085 + # error "Compiler does not advertise C99 conformance" 2086 + #endif 2087 + 2088 + #include <stdbool.h> 2089 + extern int puts (const char *); 2090 + extern int printf (const char *, ...); 2091 + extern int dprintf (int, const char *, ...); 2092 + extern void *malloc (size_t); 2093 + 2094 + // Check varargs macros. These examples are taken from C99 6.10.3.5. 2095 + // dprintf is used instead of fprintf to avoid needing to declare 2096 + // FILE and stderr. 2097 + #define debug(...) dprintf (2, __VA_ARGS__) 2098 + #define showlist(...) puts (#__VA_ARGS__) 2099 + #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2100 + static void 2101 + test_varargs_macros (void) 2102 + { 2103 + int x = 1234; 2104 + int y = 5678; 2105 + debug ("Flag"); 2106 + debug ("X = %d\n", x); 2107 + showlist (The first, second, and third items.); 2108 + report (x>y, "x is %d but y is %d", x, y); 2109 + } 2110 + 2111 + // Check long long types. 2112 + #define BIG64 18446744073709551615ull 2113 + #define BIG32 4294967295ul 2114 + #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2115 + #if !BIG_OK 2116 + #error "your preprocessor is broken" 2117 + #endif 2118 + #if BIG_OK 2119 + #else 2120 + #error "your preprocessor is broken" 2121 + #endif 2122 + static long long int bignum = -9223372036854775807LL; 2123 + static unsigned long long int ubignum = BIG64; 2124 + 2125 + struct incomplete_array 2126 + { 2127 + int datasize; 2128 + double data[]; 2129 + }; 2130 + 2131 + struct named_init { 2132 + int number; 2133 + const wchar_t *name; 2134 + double average; 2135 + }; 2136 + 2137 + typedef const char *ccp; 2138 + 2139 + static inline int 2140 + test_restrict (ccp restrict text) 2141 + { 2142 + // See if C++-style comments work. 2143 + // Iterate through items via the restricted pointer. 2144 + // Also check for declarations in for loops. 2145 + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2146 + continue; 2147 + return 0; 2148 + } 2149 + 2150 + // Check varargs and va_copy. 2151 + static bool 2152 + test_varargs (const char *format, ...) 2153 + { 2154 + va_list args; 2155 + va_start (args, format); 2156 + va_list args_copy; 2157 + va_copy (args_copy, args); 2158 + 2159 + const char *str = ""; 2160 + int number = 0; 2161 + float fnumber = 0; 2162 + 2163 + while (*format) 2164 + { 2165 + switch (*format++) 2166 + { 2167 + case '\''s'\'': // string 2168 + str = va_arg (args_copy, const char *); 2169 + break; 2170 + case '\''d'\'': // int 2171 + number = va_arg (args_copy, int); 2172 + break; 2173 + case '\''f'\'': // float 2174 + fnumber = va_arg (args_copy, double); 2175 + break; 2176 + default: 2177 + break; 2178 + } 2179 + } 2180 + va_end (args_copy); 2181 + va_end (args); 2182 + 2183 + return *str && number && fnumber; 2184 + } 2185 + ' 2186 + 2187 + # Test code for whether the C compiler supports C99 (body of main). 2188 + ac_c_conftest_c99_main=' 2189 + // Check bool. 2190 + _Bool success = false; 2191 + success |= (argc != 0); 2192 + 2193 + // Check restrict. 2194 + if (test_restrict ("String literal") == 0) 2195 + success = true; 2196 + char *restrict newvar = "Another string"; 2197 + 2198 + // Check varargs. 2199 + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2200 + test_varargs_macros (); 2201 + 2202 + // Check flexible array members. 2203 + struct incomplete_array *ia = 2204 + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2205 + ia->datasize = 10; 2206 + for (int i = 0; i < ia->datasize; ++i) 2207 + ia->data[i] = i * 1.234; 2208 + 2209 + // Check named initializers. 2210 + struct named_init ni = { 2211 + .number = 34, 2212 + .name = L"Test wide string", 2213 + .average = 543.34343, 2214 + }; 2215 + 2216 + ni.number = 58; 2217 + 2218 + int dynamic_array[ni.number]; 2219 + dynamic_array[0] = argv[0][0]; 2220 + dynamic_array[ni.number - 1] = 543; 2221 + 2222 + // work around unused variable warnings 2223 + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2224 + || dynamic_array[ni.number - 1] != 543); 2225 + ' 2226 + 2227 + # Test code for whether the C compiler supports C11 (global declarations) 2228 + ac_c_conftest_c11_globals=' 2229 + // Does the compiler advertise C11 conformance? 2230 + #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2231 + # error "Compiler does not advertise C11 conformance" 2232 + #endif 2233 + 2234 + // Check _Alignas. 2235 + char _Alignas (double) aligned_as_double; 2236 + char _Alignas (0) no_special_alignment; 2237 + extern char aligned_as_int; 2238 + char _Alignas (0) _Alignas (int) aligned_as_int; 2239 + 2240 + // Check _Alignof. 2241 + enum 2242 + { 2243 + int_alignment = _Alignof (int), 2244 + int_array_alignment = _Alignof (int[100]), 2245 + char_alignment = _Alignof (char) 2246 + }; 2247 + _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2248 + 2249 + // Check _Noreturn. 2250 + int _Noreturn does_not_return (void) { for (;;) continue; } 2251 + 2252 + // Check _Static_assert. 2253 + struct test_static_assert 2254 + { 2255 + int x; 2256 + _Static_assert (sizeof (int) <= sizeof (long int), 2257 + "_Static_assert does not work in struct"); 2258 + long int y; 2259 + }; 2260 + 2261 + // Check UTF-8 literals. 2262 + #define u8 syntax error! 2263 + char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2264 + 2265 + // Check duplicate typedefs. 2266 + typedef long *long_ptr; 2267 + typedef long int *long_ptr; 2268 + typedef long_ptr long_ptr; 2269 + 2270 + // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2271 + struct anonymous 2272 + { 2273 + union { 2274 + struct { int i; int j; }; 2275 + struct { int k; long int l; } w; 2276 + }; 2277 + int m; 2278 + } v1; 2279 + ' 2280 + 2281 + # Test code for whether the C compiler supports C11 (body of main). 2282 + ac_c_conftest_c11_main=' 2283 + _Static_assert ((offsetof (struct anonymous, i) 2284 + == offsetof (struct anonymous, w.k)), 2285 + "Anonymous union alignment botch"); 2286 + v1.i = 2; 2287 + v1.w.k = 5; 2288 + ok |= v1.i != 5; 2289 + ' 2290 + 2291 + # Test code for whether the C compiler supports C11 (complete). 2292 + ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2293 + ${ac_c_conftest_c99_globals} 2294 + ${ac_c_conftest_c11_globals} 2295 + 2296 + int 2297 + main (int argc, char **argv) 2298 + { 2299 + int ok = 0; 2300 + ${ac_c_conftest_c89_main} 2301 + ${ac_c_conftest_c99_main} 2302 + ${ac_c_conftest_c11_main} 2303 + return ok; 2304 + } 2305 + " 2306 + 2307 + # Test code for whether the C compiler supports C99 (complete). 2308 + ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2309 + ${ac_c_conftest_c99_globals} 2310 + 2311 + int 2312 + main (int argc, char **argv) 2313 + { 2314 + int ok = 0; 2315 + ${ac_c_conftest_c89_main} 2316 + ${ac_c_conftest_c99_main} 2317 + return ok; 2318 + } 2319 + " 2320 + 2321 + # Test code for whether the C compiler supports C89 (complete). 2322 + ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2323 + 2324 + int 2325 + main (int argc, char **argv) 2326 + { 2327 + int ok = 0; 2328 + ${ac_c_conftest_c89_main} 2329 + return ok; 2330 + } 2331 + " 2332 + 2333 + as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2334 + as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2335 + as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2336 + as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2337 + as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2338 + as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2339 + as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2340 + as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2341 + as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2342 + 2343 + # Auxiliary files required by this configure script. 2344 + ac_aux_files="config.guess config.sub missing install-sh" 2345 + 2346 + # Locations in which to look for auxiliary files. 2347 + ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 2348 + 2349 + # Search for a directory containing all of the required auxiliary files, 2350 + # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 2351 + # If we don't find one directory that contains all the files we need, 2352 + # we report the set of missing files from the *first* directory in 2353 + # $ac_aux_dir_candidates and give up. 2354 + ac_missing_aux_files="" 2355 + ac_first_candidate=: 2356 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 2357 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2358 + as_found=false 2359 + for as_dir in $ac_aux_dir_candidates 2360 + do 2361 + IFS=$as_save_IFS 2362 + case $as_dir in #((( 2363 + '') as_dir=./ ;; 2364 + */) ;; 2365 + *) as_dir=$as_dir/ ;; 2366 + esac 2367 + as_found=: 2368 + 2369 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 2370 + ac_aux_dir_found=yes 2371 + ac_install_sh= 2372 + for ac_aux in $ac_aux_files 2373 + do 2374 + # As a special case, if "install-sh" is required, that requirement 2375 + # can be satisfied by any of "install-sh", "install.sh", or "shtool", 2376 + # and $ac_install_sh is set appropriately for whichever one is found. 2377 + if test x"$ac_aux" = x"install-sh" 2378 + then 2379 + if test -f "${as_dir}install-sh"; then 2380 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 2381 + ac_install_sh="${as_dir}install-sh -c" 2382 + elif test -f "${as_dir}install.sh"; then 2383 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 2384 + ac_install_sh="${as_dir}install.sh -c" 2385 + elif test -f "${as_dir}shtool"; then 2386 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 2387 + ac_install_sh="${as_dir}shtool install -c" 2388 + else 2389 + ac_aux_dir_found=no 2390 + if $ac_first_candidate; then 2391 + ac_missing_aux_files="${ac_missing_aux_files} install-sh" 2392 + else 2393 + break 2394 + fi 2395 + fi 2396 + else 2397 + if test -f "${as_dir}${ac_aux}"; then 2398 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 2399 + else 2400 + ac_aux_dir_found=no 2401 + if $ac_first_candidate; then 2402 + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 2403 + else 2404 + break 2405 + fi 2406 + fi 2407 + fi 2408 + done 2409 + if test "$ac_aux_dir_found" = yes; then 2410 + ac_aux_dir="$as_dir" 2411 + break 2412 + fi 2413 + ac_first_candidate=false 2414 + 2415 + as_found=false 2416 + done 2417 + IFS=$as_save_IFS 2418 + if $as_found 2419 + then : 2420 + 2421 + else $as_nop 2422 + as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 2423 + fi 2424 + 2425 + 2426 + # These three variables are undocumented and unsupported, 2427 + # and are intended to be withdrawn in a future Autoconf release. 2428 + # They can cause serious problems if a builder's source tree is in a directory 2429 + # whose full name contains unusual characters. 2430 + if test -f "${ac_aux_dir}config.guess"; then 2431 + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 2432 + fi 2433 + if test -f "${ac_aux_dir}config.sub"; then 2434 + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 2435 + fi 2436 + if test -f "$ac_aux_dir/configure"; then 2437 + ac_configure="$SHELL ${ac_aux_dir}configure" 2438 + fi 2439 + 2059 2440 # Check that the precious variables saved in the cache have kept the same 2060 2441 # value. 2061 2442 ac_cache_corrupted=false ··· 2066 2447 eval ac_new_val=\$ac_env_${ac_var}_value 2067 2448 case $ac_old_set,$ac_new_set in 2068 2449 set,) 2069 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2070 - $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2450 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2451 + printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2071 2452 ac_cache_corrupted=: ;; 2072 2453 ,set) 2073 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2074 - $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2454 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2455 + printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2075 2456 ac_cache_corrupted=: ;; 2076 2457 ,);; 2077 2458 *) ··· 2080 2461 ac_old_val_w=`echo x $ac_old_val` 2081 2462 ac_new_val_w=`echo x $ac_new_val` 2082 2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2083 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2084 - $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2464 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2465 + printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2085 2466 ac_cache_corrupted=: 2086 2467 else 2087 - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2088 - $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2468 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2469 + printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2089 2470 eval $ac_var=\$ac_old_val 2090 2471 fi 2091 - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2092 - $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2093 - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2094 - $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2472 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2473 + printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2474 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2475 + printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2095 2476 fi;; 2096 2477 esac 2097 2478 # Pass precious variables to config.status. 2098 2479 if test "$ac_new_set" = set; then 2099 2480 case $ac_new_val in 2100 - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2481 + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2101 2482 *) ac_arg=$ac_var=$ac_new_val ;; 2102 2483 esac 2103 2484 case " $ac_configure_args " in ··· 2107 2488 fi 2108 2489 done 2109 2490 if $ac_cache_corrupted; then 2110 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2111 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2112 - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2113 - $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2114 - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2491 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2492 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2493 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2494 + printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2495 + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2496 + and start over" "$LINENO" 5 2115 2497 fi 2116 2498 ## -------------------- ## 2117 2499 ## Main body of script. ## ··· 2131 2513 # Initialize Automake 2132 2514 am__api_version='1.12' 2133 2515 2134 - ac_aux_dir= 2135 - for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2136 - if test -f "$ac_dir/install-sh"; then 2137 - ac_aux_dir=$ac_dir 2138 - ac_install_sh="$ac_aux_dir/install-sh -c" 2139 - break 2140 - elif test -f "$ac_dir/install.sh"; then 2141 - ac_aux_dir=$ac_dir 2142 - ac_install_sh="$ac_aux_dir/install.sh -c" 2143 - break 2144 - elif test -f "$ac_dir/shtool"; then 2145 - ac_aux_dir=$ac_dir 2146 - ac_install_sh="$ac_aux_dir/shtool install -c" 2147 - break 2148 - fi 2149 - done 2150 - if test -z "$ac_aux_dir"; then 2151 - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2152 - fi 2153 2516 2154 - # These three variables are undocumented and unsupported, 2155 - # and are intended to be withdrawn in a future Autoconf release. 2156 - # They can cause serious problems if a builder's source tree is in a directory 2157 - # whose full name contains unusual characters. 2158 - ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2159 - ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2160 - ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2161 2517 2162 - 2163 - # Find a good install program. We prefer a C program (faster), 2518 + # Find a good install program. We prefer a C program (faster), 2164 2519 # so one script is as good as another. But avoid the broken or 2165 2520 # incompatible versions: 2166 2521 # SysV /etc/install, /usr/sbin/install ··· 2174 2529 # OS/2's system install, which has a completely different semantic 2175 2530 # ./install, which can be erroneously created by make from ./install.sh. 2176 2531 # Reject install programs that cannot install multiple files. 2177 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2178 - $as_echo_n "checking for a BSD-compatible install... " >&6; } 2532 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2533 + printf %s "checking for a BSD-compatible install... " >&6; } 2179 2534 if test -z "$INSTALL"; then 2180 - if ${ac_cv_path_install+:} false; then : 2181 - $as_echo_n "(cached) " >&6 2182 - else 2535 + if test ${ac_cv_path_install+y} 2536 + then : 2537 + printf %s "(cached) " >&6 2538 + else $as_nop 2183 2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2184 2540 for as_dir in $PATH 2185 2541 do 2186 2542 IFS=$as_save_IFS 2187 - test -z "$as_dir" && as_dir=. 2188 - # Account for people who put trailing slashes in PATH elements. 2189 - case $as_dir/ in #(( 2190 - ./ | .// | /[cC]/* | \ 2543 + case $as_dir in #((( 2544 + '') as_dir=./ ;; 2545 + */) ;; 2546 + *) as_dir=$as_dir/ ;; 2547 + esac 2548 + # Account for fact that we put trailing slashes in our PATH walk. 2549 + case $as_dir in #(( 2550 + ./ | /[cC]/* | \ 2191 2551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2192 2552 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2193 2553 /usr/ucb/* ) ;; ··· 2197 2557 # by default. 2198 2558 for ac_prog in ginstall scoinst install; do 2199 2559 for ac_exec_ext in '' $ac_executable_extensions; do 2200 - if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2560 + if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 2201 2561 if test $ac_prog = install && 2202 - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2562 + grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2203 2563 # AIX install. It has an incompatible calling convention. 2204 2564 : 2205 2565 elif test $ac_prog = install && 2206 - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2566 + grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2207 2567 # program-specific install script used by HP pwplus--don't use. 2208 2568 : 2209 2569 else ··· 2211 2571 echo one > conftest.one 2212 2572 echo two > conftest.two 2213 2573 mkdir conftest.dir 2214 - if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2574 + if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 2215 2575 test -s conftest.one && test -s conftest.two && 2216 2576 test -s conftest.dir/conftest.one && 2217 2577 test -s conftest.dir/conftest.two 2218 2578 then 2219 - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2579 + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 2220 2580 break 3 2221 2581 fi 2222 2582 fi ··· 2232 2592 rm -rf conftest.one conftest.two conftest.dir 2233 2593 2234 2594 fi 2235 - if test "${ac_cv_path_install+set}" = set; then 2595 + if test ${ac_cv_path_install+y}; then 2236 2596 INSTALL=$ac_cv_path_install 2237 2597 else 2238 2598 # As a last resort, use the slow shell script. Don't cache a ··· 2242 2602 INSTALL=$ac_install_sh 2243 2603 fi 2244 2604 fi 2245 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2246 - $as_echo "$INSTALL" >&6; } 2605 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2606 + printf "%s\n" "$INSTALL" >&6; } 2247 2607 2248 2608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2249 2609 # It thinks the first close brace ends the variable substitution. ··· 2253 2613 2254 2614 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2255 2615 2256 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2257 - $as_echo_n "checking whether build environment is sane... " >&6; } 2616 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2617 + printf %s "checking whether build environment is sane... " >&6; } 2258 2618 # Reject unsafe characters in $srcdir or the absolute working directory 2259 2619 # name. Accept space and tab only in the latter. 2260 2620 am_lf=' ··· 2308 2668 as_fn_error $? "newly created file is older than distributed files! 2309 2669 Check your system clock" "$LINENO" 5 2310 2670 fi 2311 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2312 - $as_echo "yes" >&6; } 2671 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2672 + printf "%s\n" "yes" >&6; } 2313 2673 # If we didn't sleep, we still need to ensure time stamps of config.status and 2314 2674 # generated files are strictly newer. 2315 2675 am_sleep_pid= ··· 2328 2688 # Double any \ or $. 2329 2689 # By default was `s,x,x', remove it if useless. 2330 2690 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2331 - program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2691 + program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` 2332 2692 2333 2693 # expand $ac_aux_dir to an absolute path 2334 2694 am_aux_dir=`cd $ac_aux_dir && pwd` 2335 2695 2336 - if test x"${MISSING+set}" != xset; then 2696 + 2697 + if test x"${MISSING+set}" != xset; then 2337 2698 case $am_aux_dir in 2338 2699 *\ * | *\ *) 2339 2700 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; ··· 2346 2707 am_missing_run="$MISSING --run " 2347 2708 else 2348 2709 am_missing_run= 2349 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2350 - $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2710 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2711 + printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2351 2712 fi 2352 2713 2353 2714 if test x"${install_sh}" != xset; then ··· 2367 2728 if test -n "$ac_tool_prefix"; then 2368 2729 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2369 2730 set dummy ${ac_tool_prefix}strip; ac_word=$2 2370 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2371 - $as_echo_n "checking for $ac_word... " >&6; } 2372 - if ${ac_cv_prog_STRIP+:} false; then : 2373 - $as_echo_n "(cached) " >&6 2374 - else 2731 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2732 + printf %s "checking for $ac_word... " >&6; } 2733 + if test ${ac_cv_prog_STRIP+y} 2734 + then : 2735 + printf %s "(cached) " >&6 2736 + else $as_nop 2375 2737 if test -n "$STRIP"; then 2376 2738 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2377 2739 else ··· 2379 2741 for as_dir in $PATH 2380 2742 do 2381 2743 IFS=$as_save_IFS 2382 - test -z "$as_dir" && as_dir=. 2744 + case $as_dir in #((( 2745 + '') as_dir=./ ;; 2746 + */) ;; 2747 + *) as_dir=$as_dir/ ;; 2748 + esac 2383 2749 for ac_exec_ext in '' $ac_executable_extensions; do 2384 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2750 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2385 2751 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2386 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2752 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2387 2753 break 2 2388 2754 fi 2389 2755 done ··· 2394 2760 fi 2395 2761 STRIP=$ac_cv_prog_STRIP 2396 2762 if test -n "$STRIP"; then 2397 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2398 - $as_echo "$STRIP" >&6; } 2763 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2764 + printf "%s\n" "$STRIP" >&6; } 2399 2765 else 2400 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2401 - $as_echo "no" >&6; } 2766 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2767 + printf "%s\n" "no" >&6; } 2402 2768 fi 2403 2769 2404 2770 ··· 2407 2773 ac_ct_STRIP=$STRIP 2408 2774 # Extract the first word of "strip", so it can be a program name with args. 2409 2775 set dummy strip; ac_word=$2 2410 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2411 - $as_echo_n "checking for $ac_word... " >&6; } 2412 - if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2413 - $as_echo_n "(cached) " >&6 2414 - else 2776 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2777 + printf %s "checking for $ac_word... " >&6; } 2778 + if test ${ac_cv_prog_ac_ct_STRIP+y} 2779 + then : 2780 + printf %s "(cached) " >&6 2781 + else $as_nop 2415 2782 if test -n "$ac_ct_STRIP"; then 2416 2783 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2417 2784 else ··· 2419 2786 for as_dir in $PATH 2420 2787 do 2421 2788 IFS=$as_save_IFS 2422 - test -z "$as_dir" && as_dir=. 2789 + case $as_dir in #((( 2790 + '') as_dir=./ ;; 2791 + */) ;; 2792 + *) as_dir=$as_dir/ ;; 2793 + esac 2423 2794 for ac_exec_ext in '' $ac_executable_extensions; do 2424 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2795 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2425 2796 ac_cv_prog_ac_ct_STRIP="strip" 2426 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2797 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2427 2798 break 2 2428 2799 fi 2429 2800 done ··· 2434 2805 fi 2435 2806 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2436 2807 if test -n "$ac_ct_STRIP"; then 2437 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2438 - $as_echo "$ac_ct_STRIP" >&6; } 2808 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2809 + printf "%s\n" "$ac_ct_STRIP" >&6; } 2439 2810 else 2440 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2441 - $as_echo "no" >&6; } 2811 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2812 + printf "%s\n" "no" >&6; } 2442 2813 fi 2443 2814 2444 2815 if test "x$ac_ct_STRIP" = x; then ··· 2446 2817 else 2447 2818 case $cross_compiling:$ac_tool_warned in 2448 2819 yes:) 2449 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2450 - $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2820 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2821 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2451 2822 ac_tool_warned=yes ;; 2452 2823 esac 2453 2824 STRIP=$ac_ct_STRIP ··· 2459 2830 fi 2460 2831 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2461 2832 2462 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2463 - $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2833 + 2834 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 2835 + printf %s "checking for a race-free mkdir -p... " >&6; } 2464 2836 if test -z "$MKDIR_P"; then 2465 - if ${ac_cv_path_mkdir+:} false; then : 2466 - $as_echo_n "(cached) " >&6 2467 - else 2837 + if test ${ac_cv_path_mkdir+y} 2838 + then : 2839 + printf %s "(cached) " >&6 2840 + else $as_nop 2468 2841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2469 2842 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2470 2843 do 2471 2844 IFS=$as_save_IFS 2472 - test -z "$as_dir" && as_dir=. 2845 + case $as_dir in #((( 2846 + '') as_dir=./ ;; 2847 + */) ;; 2848 + *) as_dir=$as_dir/ ;; 2849 + esac 2473 2850 for ac_prog in mkdir gmkdir; do 2474 2851 for ac_exec_ext in '' $ac_executable_extensions; do 2475 - as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2476 - case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2477 - 'mkdir (GNU coreutils) '* | \ 2478 - 'mkdir (coreutils) '* | \ 2852 + as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 2853 + case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 2854 + 'mkdir ('*'coreutils) '* | \ 2855 + 'BusyBox '* | \ 2479 2856 'mkdir (fileutils) '4.1*) 2480 - ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2857 + ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 2481 2858 break 3;; 2482 2859 esac 2483 2860 done ··· 2488 2865 fi 2489 2866 2490 2867 test -d ./--version && rmdir ./--version 2491 - if test "${ac_cv_path_mkdir+set}" = set; then 2868 + if test ${ac_cv_path_mkdir+y}; then 2492 2869 MKDIR_P="$ac_cv_path_mkdir -p" 2493 2870 else 2494 2871 # As a last resort, use the slow shell script. Don't cache a ··· 2498 2875 MKDIR_P="$ac_install_sh -d" 2499 2876 fi 2500 2877 fi 2501 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2502 - $as_echo "$MKDIR_P" >&6; } 2878 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2879 + printf "%s\n" "$MKDIR_P" >&6; } 2503 2880 2504 2881 for ac_prog in gawk mawk nawk awk 2505 2882 do 2506 2883 # Extract the first word of "$ac_prog", so it can be a program name with args. 2507 2884 set dummy $ac_prog; ac_word=$2 2508 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2509 - $as_echo_n "checking for $ac_word... " >&6; } 2510 - if ${ac_cv_prog_AWK+:} false; then : 2511 - $as_echo_n "(cached) " >&6 2512 - else 2885 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2886 + printf %s "checking for $ac_word... " >&6; } 2887 + if test ${ac_cv_prog_AWK+y} 2888 + then : 2889 + printf %s "(cached) " >&6 2890 + else $as_nop 2513 2891 if test -n "$AWK"; then 2514 2892 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2515 2893 else ··· 2517 2895 for as_dir in $PATH 2518 2896 do 2519 2897 IFS=$as_save_IFS 2520 - test -z "$as_dir" && as_dir=. 2898 + case $as_dir in #((( 2899 + '') as_dir=./ ;; 2900 + */) ;; 2901 + *) as_dir=$as_dir/ ;; 2902 + esac 2521 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2522 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2904 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2523 2905 ac_cv_prog_AWK="$ac_prog" 2524 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2906 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2525 2907 break 2 2526 2908 fi 2527 2909 done ··· 2532 2914 fi 2533 2915 AWK=$ac_cv_prog_AWK 2534 2916 if test -n "$AWK"; then 2535 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2536 - $as_echo "$AWK" >&6; } 2917 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2918 + printf "%s\n" "$AWK" >&6; } 2537 2919 else 2538 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2539 - $as_echo "no" >&6; } 2920 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2921 + printf "%s\n" "no" >&6; } 2540 2922 fi 2541 2923 2542 2924 2543 2925 test -n "$AWK" && break 2544 2926 done 2545 2927 2546 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2547 - $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2928 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2929 + printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2548 2930 set x ${MAKE-make} 2549 - ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2550 - if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2551 - $as_echo_n "(cached) " >&6 2552 - else 2931 + ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2932 + if eval test \${ac_cv_prog_make_${ac_make}_set+y} 2933 + then : 2934 + printf %s "(cached) " >&6 2935 + else $as_nop 2553 2936 cat >conftest.make <<\_ACEOF 2554 2937 SHELL = /bin/sh 2555 2938 all: ··· 2565 2948 rm -f conftest.make 2566 2949 fi 2567 2950 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2568 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2569 - $as_echo "yes" >&6; } 2951 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2952 + printf "%s\n" "yes" >&6; } 2570 2953 SET_MAKE= 2571 2954 else 2572 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2573 - $as_echo "no" >&6; } 2955 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956 + printf "%s\n" "no" >&6; } 2574 2957 SET_MAKE="MAKE=${MAKE-make}" 2575 2958 fi 2576 2959 ··· 2605 2988 2606 2989 # Define the identity of the package. 2607 2990 PACKAGE='editres' 2608 - VERSION='1.0.8' 2991 + VERSION='1.0.9' 2609 2992 2610 2993 2611 - cat >>confdefs.h <<_ACEOF 2612 - #define PACKAGE "$PACKAGE" 2613 - _ACEOF 2994 + printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h 2614 2995 2615 2996 2616 - cat >>confdefs.h <<_ACEOF 2617 - #define VERSION "$VERSION" 2618 - _ACEOF 2997 + printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h 2619 2998 2620 2999 # Some tools Automake needs. 2621 3000 ··· 2664 3043 2665 3044 2666 3045 2667 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2668 - $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3046 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3047 + printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2669 3048 # Check whether --enable-maintainer-mode was given. 2670 - if test "${enable_maintainer_mode+set}" = set; then : 3049 + if test ${enable_maintainer_mode+y} 3050 + then : 2671 3051 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2672 - else 3052 + else $as_nop 2673 3053 USE_MAINTAINER_MODE=no 2674 3054 fi 2675 3055 2676 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2677 - $as_echo "$USE_MAINTAINER_MODE" >&6; } 3056 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3057 + printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } 2678 3058 if test $USE_MAINTAINER_MODE = yes; then 2679 3059 MAINTAINER_MODE_TRUE= 2680 3060 MAINTAINER_MODE_FALSE='#' ··· 2684 3064 fi 2685 3065 2686 3066 MAINT=$MAINTAINER_MODE_TRUE 3067 + 3068 + 3069 + 3070 + 3071 + 3072 + 3073 + 3074 + 3075 + 2687 3076 2688 3077 2689 3078 ··· 2699 3088 .PHONY: am__doit 2700 3089 END 2701 3090 # If we don't find an include directive, just comment out the code. 2702 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2703 - $as_echo_n "checking for style of include used by $am_make... " >&6; } 3091 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3092 + printf %s "checking for style of include used by $am_make... " >&6; } 2704 3093 am__include="#" 2705 3094 am__quote= 2706 3095 _am_result=none ··· 2727 3116 fi 2728 3117 2729 3118 2730 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2731 - $as_echo "$_am_result" >&6; } 3119 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3120 + printf "%s\n" "$_am_result" >&6; } 2732 3121 rm -f confinc confmf 2733 3122 2734 3123 # Check whether --enable-dependency-tracking was given. 2735 - if test "${enable_dependency_tracking+set}" = set; then : 3124 + if test ${enable_dependency_tracking+y} 3125 + then : 2736 3126 enableval=$enable_dependency_tracking; 2737 3127 fi 2738 3128 ··· 2758 3148 if test -n "$ac_tool_prefix"; then 2759 3149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2760 3150 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2761 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2762 - $as_echo_n "checking for $ac_word... " >&6; } 2763 - if ${ac_cv_prog_CC+:} false; then : 2764 - $as_echo_n "(cached) " >&6 2765 - else 3151 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3152 + printf %s "checking for $ac_word... " >&6; } 3153 + if test ${ac_cv_prog_CC+y} 3154 + then : 3155 + printf %s "(cached) " >&6 3156 + else $as_nop 2766 3157 if test -n "$CC"; then 2767 3158 ac_cv_prog_CC="$CC" # Let the user override the test. 2768 3159 else ··· 2770 3161 for as_dir in $PATH 2771 3162 do 2772 3163 IFS=$as_save_IFS 2773 - test -z "$as_dir" && as_dir=. 3164 + case $as_dir in #((( 3165 + '') as_dir=./ ;; 3166 + */) ;; 3167 + *) as_dir=$as_dir/ ;; 3168 + esac 2774 3169 for ac_exec_ext in '' $ac_executable_extensions; do 2775 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3170 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2776 3171 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2777 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3172 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2778 3173 break 2 2779 3174 fi 2780 3175 done ··· 2785 3180 fi 2786 3181 CC=$ac_cv_prog_CC 2787 3182 if test -n "$CC"; then 2788 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2789 - $as_echo "$CC" >&6; } 3183 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3184 + printf "%s\n" "$CC" >&6; } 2790 3185 else 2791 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2792 - $as_echo "no" >&6; } 3186 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3187 + printf "%s\n" "no" >&6; } 2793 3188 fi 2794 3189 2795 3190 ··· 2798 3193 ac_ct_CC=$CC 2799 3194 # Extract the first word of "gcc", so it can be a program name with args. 2800 3195 set dummy gcc; ac_word=$2 2801 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2802 - $as_echo_n "checking for $ac_word... " >&6; } 2803 - if ${ac_cv_prog_ac_ct_CC+:} false; then : 2804 - $as_echo_n "(cached) " >&6 2805 - else 3196 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3197 + printf %s "checking for $ac_word... " >&6; } 3198 + if test ${ac_cv_prog_ac_ct_CC+y} 3199 + then : 3200 + printf %s "(cached) " >&6 3201 + else $as_nop 2806 3202 if test -n "$ac_ct_CC"; then 2807 3203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2808 3204 else ··· 2810 3206 for as_dir in $PATH 2811 3207 do 2812 3208 IFS=$as_save_IFS 2813 - test -z "$as_dir" && as_dir=. 3209 + case $as_dir in #((( 3210 + '') as_dir=./ ;; 3211 + */) ;; 3212 + *) as_dir=$as_dir/ ;; 3213 + esac 2814 3214 for ac_exec_ext in '' $ac_executable_extensions; do 2815 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3215 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2816 3216 ac_cv_prog_ac_ct_CC="gcc" 2817 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3217 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2818 3218 break 2 2819 3219 fi 2820 3220 done ··· 2825 3225 fi 2826 3226 ac_ct_CC=$ac_cv_prog_ac_ct_CC 2827 3227 if test -n "$ac_ct_CC"; then 2828 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2829 - $as_echo "$ac_ct_CC" >&6; } 3228 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3229 + printf "%s\n" "$ac_ct_CC" >&6; } 2830 3230 else 2831 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2832 - $as_echo "no" >&6; } 3231 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3232 + printf "%s\n" "no" >&6; } 2833 3233 fi 2834 3234 2835 3235 if test "x$ac_ct_CC" = x; then ··· 2837 3237 else 2838 3238 case $cross_compiling:$ac_tool_warned in 2839 3239 yes:) 2840 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2841 - $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3240 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3241 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2842 3242 ac_tool_warned=yes ;; 2843 3243 esac 2844 3244 CC=$ac_ct_CC ··· 2851 3251 if test -n "$ac_tool_prefix"; then 2852 3252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2853 3253 set dummy ${ac_tool_prefix}cc; ac_word=$2 2854 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2855 - $as_echo_n "checking for $ac_word... " >&6; } 2856 - if ${ac_cv_prog_CC+:} false; then : 2857 - $as_echo_n "(cached) " >&6 2858 - else 3254 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3255 + printf %s "checking for $ac_word... " >&6; } 3256 + if test ${ac_cv_prog_CC+y} 3257 + then : 3258 + printf %s "(cached) " >&6 3259 + else $as_nop 2859 3260 if test -n "$CC"; then 2860 3261 ac_cv_prog_CC="$CC" # Let the user override the test. 2861 3262 else ··· 2863 3264 for as_dir in $PATH 2864 3265 do 2865 3266 IFS=$as_save_IFS 2866 - test -z "$as_dir" && as_dir=. 3267 + case $as_dir in #((( 3268 + '') as_dir=./ ;; 3269 + */) ;; 3270 + *) as_dir=$as_dir/ ;; 3271 + esac 2867 3272 for ac_exec_ext in '' $ac_executable_extensions; do 2868 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3273 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2869 3274 ac_cv_prog_CC="${ac_tool_prefix}cc" 2870 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3275 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2871 3276 break 2 2872 3277 fi 2873 3278 done ··· 2878 3283 fi 2879 3284 CC=$ac_cv_prog_CC 2880 3285 if test -n "$CC"; then 2881 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2882 - $as_echo "$CC" >&6; } 3286 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3287 + printf "%s\n" "$CC" >&6; } 2883 3288 else 2884 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2885 - $as_echo "no" >&6; } 3289 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3290 + printf "%s\n" "no" >&6; } 2886 3291 fi 2887 3292 2888 3293 ··· 2891 3296 if test -z "$CC"; then 2892 3297 # Extract the first word of "cc", so it can be a program name with args. 2893 3298 set dummy cc; ac_word=$2 2894 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2895 - $as_echo_n "checking for $ac_word... " >&6; } 2896 - if ${ac_cv_prog_CC+:} false; then : 2897 - $as_echo_n "(cached) " >&6 2898 - else 3299 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3300 + printf %s "checking for $ac_word... " >&6; } 3301 + if test ${ac_cv_prog_CC+y} 3302 + then : 3303 + printf %s "(cached) " >&6 3304 + else $as_nop 2899 3305 if test -n "$CC"; then 2900 3306 ac_cv_prog_CC="$CC" # Let the user override the test. 2901 3307 else ··· 2904 3310 for as_dir in $PATH 2905 3311 do 2906 3312 IFS=$as_save_IFS 2907 - test -z "$as_dir" && as_dir=. 3313 + case $as_dir in #((( 3314 + '') as_dir=./ ;; 3315 + */) ;; 3316 + *) as_dir=$as_dir/ ;; 3317 + esac 2908 3318 for ac_exec_ext in '' $ac_executable_extensions; do 2909 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2910 - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3319 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3320 + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2911 3321 ac_prog_rejected=yes 2912 3322 continue 2913 3323 fi 2914 3324 ac_cv_prog_CC="cc" 2915 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3325 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2916 3326 break 2 2917 3327 fi 2918 3328 done ··· 2928 3338 # However, it has the same basename, so the bogon will be chosen 2929 3339 # first if we set CC to just the basename; use the full file name. 2930 3340 shift 2931 - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3341 + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2932 3342 fi 2933 3343 fi 2934 3344 fi 2935 3345 fi 2936 3346 CC=$ac_cv_prog_CC 2937 3347 if test -n "$CC"; then 2938 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2939 - $as_echo "$CC" >&6; } 3348 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3349 + printf "%s\n" "$CC" >&6; } 2940 3350 else 2941 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2942 - $as_echo "no" >&6; } 3351 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3352 + printf "%s\n" "no" >&6; } 2943 3353 fi 2944 3354 2945 3355 ··· 2950 3360 do 2951 3361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2952 3362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2953 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2954 - $as_echo_n "checking for $ac_word... " >&6; } 2955 - if ${ac_cv_prog_CC+:} false; then : 2956 - $as_echo_n "(cached) " >&6 2957 - else 3363 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3364 + printf %s "checking for $ac_word... " >&6; } 3365 + if test ${ac_cv_prog_CC+y} 3366 + then : 3367 + printf %s "(cached) " >&6 3368 + else $as_nop 2958 3369 if test -n "$CC"; then 2959 3370 ac_cv_prog_CC="$CC" # Let the user override the test. 2960 3371 else ··· 2962 3373 for as_dir in $PATH 2963 3374 do 2964 3375 IFS=$as_save_IFS 2965 - test -z "$as_dir" && as_dir=. 3376 + case $as_dir in #((( 3377 + '') as_dir=./ ;; 3378 + */) ;; 3379 + *) as_dir=$as_dir/ ;; 3380 + esac 2966 3381 for ac_exec_ext in '' $ac_executable_extensions; do 2967 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3382 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2968 3383 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2969 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3384 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2970 3385 break 2 2971 3386 fi 2972 3387 done ··· 2977 3392 fi 2978 3393 CC=$ac_cv_prog_CC 2979 3394 if test -n "$CC"; then 2980 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2981 - $as_echo "$CC" >&6; } 3395 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3396 + printf "%s\n" "$CC" >&6; } 2982 3397 else 2983 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2984 - $as_echo "no" >&6; } 3398 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3399 + printf "%s\n" "no" >&6; } 2985 3400 fi 2986 3401 2987 3402 ··· 2994 3409 do 2995 3410 # Extract the first word of "$ac_prog", so it can be a program name with args. 2996 3411 set dummy $ac_prog; ac_word=$2 2997 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2998 - $as_echo_n "checking for $ac_word... " >&6; } 2999 - if ${ac_cv_prog_ac_ct_CC+:} false; then : 3000 - $as_echo_n "(cached) " >&6 3001 - else 3412 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3413 + printf %s "checking for $ac_word... " >&6; } 3414 + if test ${ac_cv_prog_ac_ct_CC+y} 3415 + then : 3416 + printf %s "(cached) " >&6 3417 + else $as_nop 3002 3418 if test -n "$ac_ct_CC"; then 3003 3419 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3004 3420 else ··· 3006 3422 for as_dir in $PATH 3007 3423 do 3008 3424 IFS=$as_save_IFS 3009 - test -z "$as_dir" && as_dir=. 3425 + case $as_dir in #((( 3426 + '') as_dir=./ ;; 3427 + */) ;; 3428 + *) as_dir=$as_dir/ ;; 3429 + esac 3010 3430 for ac_exec_ext in '' $ac_executable_extensions; do 3011 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3431 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3012 3432 ac_cv_prog_ac_ct_CC="$ac_prog" 3013 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3433 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3014 3434 break 2 3015 3435 fi 3016 3436 done ··· 3021 3441 fi 3022 3442 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3023 3443 if test -n "$ac_ct_CC"; then 3024 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3025 - $as_echo "$ac_ct_CC" >&6; } 3444 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3445 + printf "%s\n" "$ac_ct_CC" >&6; } 3026 3446 else 3027 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3028 - $as_echo "no" >&6; } 3447 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3448 + printf "%s\n" "no" >&6; } 3029 3449 fi 3030 3450 3031 3451 ··· 3037 3457 else 3038 3458 case $cross_compiling:$ac_tool_warned in 3039 3459 yes:) 3040 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3041 - $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3460 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3461 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3462 + ac_tool_warned=yes ;; 3463 + esac 3464 + CC=$ac_ct_CC 3465 + fi 3466 + fi 3467 + 3468 + fi 3469 + if test -z "$CC"; then 3470 + if test -n "$ac_tool_prefix"; then 3471 + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 3472 + set dummy ${ac_tool_prefix}clang; ac_word=$2 3473 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3474 + printf %s "checking for $ac_word... " >&6; } 3475 + if test ${ac_cv_prog_CC+y} 3476 + then : 3477 + printf %s "(cached) " >&6 3478 + else $as_nop 3479 + if test -n "$CC"; then 3480 + ac_cv_prog_CC="$CC" # Let the user override the test. 3481 + else 3482 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3483 + for as_dir in $PATH 3484 + do 3485 + IFS=$as_save_IFS 3486 + case $as_dir in #((( 3487 + '') as_dir=./ ;; 3488 + */) ;; 3489 + *) as_dir=$as_dir/ ;; 3490 + esac 3491 + for ac_exec_ext in '' $ac_executable_extensions; do 3492 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3493 + ac_cv_prog_CC="${ac_tool_prefix}clang" 3494 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3495 + break 2 3496 + fi 3497 + done 3498 + done 3499 + IFS=$as_save_IFS 3500 + 3501 + fi 3502 + fi 3503 + CC=$ac_cv_prog_CC 3504 + if test -n "$CC"; then 3505 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3506 + printf "%s\n" "$CC" >&6; } 3507 + else 3508 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3509 + printf "%s\n" "no" >&6; } 3510 + fi 3511 + 3512 + 3513 + fi 3514 + if test -z "$ac_cv_prog_CC"; then 3515 + ac_ct_CC=$CC 3516 + # Extract the first word of "clang", so it can be a program name with args. 3517 + set dummy clang; ac_word=$2 3518 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3519 + printf %s "checking for $ac_word... " >&6; } 3520 + if test ${ac_cv_prog_ac_ct_CC+y} 3521 + then : 3522 + printf %s "(cached) " >&6 3523 + else $as_nop 3524 + if test -n "$ac_ct_CC"; then 3525 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3526 + else 3527 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3528 + for as_dir in $PATH 3529 + do 3530 + IFS=$as_save_IFS 3531 + case $as_dir in #((( 3532 + '') as_dir=./ ;; 3533 + */) ;; 3534 + *) as_dir=$as_dir/ ;; 3535 + esac 3536 + for ac_exec_ext in '' $ac_executable_extensions; do 3537 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3538 + ac_cv_prog_ac_ct_CC="clang" 3539 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3540 + break 2 3541 + fi 3542 + done 3543 + done 3544 + IFS=$as_save_IFS 3545 + 3546 + fi 3547 + fi 3548 + ac_ct_CC=$ac_cv_prog_ac_ct_CC 3549 + if test -n "$ac_ct_CC"; then 3550 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3551 + printf "%s\n" "$ac_ct_CC" >&6; } 3552 + else 3553 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3554 + printf "%s\n" "no" >&6; } 3555 + fi 3556 + 3557 + if test "x$ac_ct_CC" = x; then 3558 + CC="" 3559 + else 3560 + case $cross_compiling:$ac_tool_warned in 3561 + yes:) 3562 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3563 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3042 3564 ac_tool_warned=yes ;; 3043 3565 esac 3044 3566 CC=$ac_ct_CC 3045 3567 fi 3568 + else 3569 + CC="$ac_cv_prog_CC" 3046 3570 fi 3047 3571 3048 3572 fi 3049 3573 3050 3574 3051 - test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3052 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3575 + test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3576 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3053 3577 as_fn_error $? "no acceptable C compiler found in \$PATH 3054 3578 See \`config.log' for more details" "$LINENO" 5; } 3055 3579 3056 3580 # Provide some information about the compiler. 3057 - $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3581 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3058 3582 set X $ac_compile 3059 3583 ac_compiler=$2 3060 - for ac_option in --version -v -V -qversion; do 3584 + for ac_option in --version -v -V -qversion -version; do 3061 3585 { { ac_try="$ac_compiler $ac_option >&5" 3062 3586 case "(($ac_try" in 3063 3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3064 3588 *) ac_try_echo=$ac_try;; 3065 3589 esac 3066 3590 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3067 - $as_echo "$ac_try_echo"; } >&5 3591 + printf "%s\n" "$ac_try_echo"; } >&5 3068 3592 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3069 3593 ac_status=$? 3070 3594 if test -s conftest.err; then ··· 3074 3598 cat conftest.er1 >&5 3075 3599 fi 3076 3600 rm -f conftest.er1 conftest.err 3077 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3601 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3078 3602 test $ac_status = 0; } 3079 3603 done 3080 3604 ··· 3082 3606 /* end confdefs.h. */ 3083 3607 3084 3608 int 3085 - main () 3609 + main (void) 3086 3610 { 3087 3611 3088 3612 ; ··· 3094 3618 # Try to create an executable without -o first, disregard a.out. 3095 3619 # It will help us diagnose broken compilers, and finding out an intuition 3096 3620 # of exeext. 3097 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3098 - $as_echo_n "checking whether the C compiler works... " >&6; } 3099 - ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3621 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3622 + printf %s "checking whether the C compiler works... " >&6; } 3623 + ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3100 3624 3101 3625 # The possible output files: 3102 3626 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ··· 3117 3641 *) ac_try_echo=$ac_try;; 3118 3642 esac 3119 3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3120 - $as_echo "$ac_try_echo"; } >&5 3644 + printf "%s\n" "$ac_try_echo"; } >&5 3121 3645 (eval "$ac_link_default") 2>&5 3122 3646 ac_status=$? 3123 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3124 - test $ac_status = 0; }; then : 3647 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3648 + test $ac_status = 0; } 3649 + then : 3125 3650 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3126 3651 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3127 3652 # in a Makefile. We should not override ac_cv_exeext if it was cached, ··· 3138 3663 # certainly right. 3139 3664 break;; 3140 3665 *.* ) 3141 - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3666 + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3142 3667 then :; else 3143 3668 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3144 3669 fi ··· 3154 3679 done 3155 3680 test "$ac_cv_exeext" = no && ac_cv_exeext= 3156 3681 3157 - else 3682 + else $as_nop 3158 3683 ac_file='' 3159 3684 fi 3160 - if test -z "$ac_file"; then : 3161 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3162 - $as_echo "no" >&6; } 3163 - $as_echo "$as_me: failed program was:" >&5 3685 + if test -z "$ac_file" 3686 + then : 3687 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3688 + printf "%s\n" "no" >&6; } 3689 + printf "%s\n" "$as_me: failed program was:" >&5 3164 3690 sed 's/^/| /' conftest.$ac_ext >&5 3165 3691 3166 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3167 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3692 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3693 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3168 3694 as_fn_error 77 "C compiler cannot create executables 3169 3695 See \`config.log' for more details" "$LINENO" 5; } 3170 - else 3171 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3172 - $as_echo "yes" >&6; } 3696 + else $as_nop 3697 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3698 + printf "%s\n" "yes" >&6; } 3173 3699 fi 3174 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3175 - $as_echo_n "checking for C compiler default output file name... " >&6; } 3176 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3177 - $as_echo "$ac_file" >&6; } 3700 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3701 + printf %s "checking for C compiler default output file name... " >&6; } 3702 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3703 + printf "%s\n" "$ac_file" >&6; } 3178 3704 ac_exeext=$ac_cv_exeext 3179 3705 3180 3706 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3181 3707 ac_clean_files=$ac_clean_files_save 3182 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3183 - $as_echo_n "checking for suffix of executables... " >&6; } 3708 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3709 + printf %s "checking for suffix of executables... " >&6; } 3184 3710 if { { ac_try="$ac_link" 3185 3711 case "(($ac_try" in 3186 3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3187 3713 *) ac_try_echo=$ac_try;; 3188 3714 esac 3189 3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3190 - $as_echo "$ac_try_echo"; } >&5 3716 + printf "%s\n" "$ac_try_echo"; } >&5 3191 3717 (eval "$ac_link") 2>&5 3192 3718 ac_status=$? 3193 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3194 - test $ac_status = 0; }; then : 3719 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3720 + test $ac_status = 0; } 3721 + then : 3195 3722 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3196 3723 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3197 3724 # work properly (i.e., refer to `conftest.exe'), while it won't with ··· 3205 3732 * ) break;; 3206 3733 esac 3207 3734 done 3208 - else 3209 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3210 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3735 + else $as_nop 3736 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3737 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3211 3738 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3212 3739 See \`config.log' for more details" "$LINENO" 5; } 3213 3740 fi 3214 3741 rm -f conftest conftest$ac_cv_exeext 3215 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3216 - $as_echo "$ac_cv_exeext" >&6; } 3742 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3743 + printf "%s\n" "$ac_cv_exeext" >&6; } 3217 3744 3218 3745 rm -f conftest.$ac_ext 3219 3746 EXEEXT=$ac_cv_exeext ··· 3222 3749 /* end confdefs.h. */ 3223 3750 #include <stdio.h> 3224 3751 int 3225 - main () 3752 + main (void) 3226 3753 { 3227 3754 FILE *f = fopen ("conftest.out", "w"); 3228 3755 return ferror (f) || fclose (f) != 0; ··· 3234 3761 ac_clean_files="$ac_clean_files conftest.out" 3235 3762 # Check that the compiler produces executables we can run. If not, either 3236 3763 # the compiler is broken, or we cross compile. 3237 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3238 - $as_echo_n "checking whether we are cross compiling... " >&6; } 3764 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3765 + printf %s "checking whether we are cross compiling... " >&6; } 3239 3766 if test "$cross_compiling" != yes; then 3240 3767 { { ac_try="$ac_link" 3241 3768 case "(($ac_try" in ··· 3243 3770 *) ac_try_echo=$ac_try;; 3244 3771 esac 3245 3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3246 - $as_echo "$ac_try_echo"; } >&5 3773 + printf "%s\n" "$ac_try_echo"; } >&5 3247 3774 (eval "$ac_link") 2>&5 3248 3775 ac_status=$? 3249 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3776 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3250 3777 test $ac_status = 0; } 3251 3778 if { ac_try='./conftest$ac_cv_exeext' 3252 3779 { { case "(($ac_try" in ··· 3254 3781 *) ac_try_echo=$ac_try;; 3255 3782 esac 3256 3783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3257 - $as_echo "$ac_try_echo"; } >&5 3784 + printf "%s\n" "$ac_try_echo"; } >&5 3258 3785 (eval "$ac_try") 2>&5 3259 3786 ac_status=$? 3260 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3787 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3261 3788 test $ac_status = 0; }; }; then 3262 3789 cross_compiling=no 3263 3790 else 3264 3791 if test "$cross_compiling" = maybe; then 3265 3792 cross_compiling=yes 3266 3793 else 3267 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3268 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3269 - as_fn_error $? "cannot run C compiled programs. 3794 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3795 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3796 + as_fn_error 77 "cannot run C compiled programs. 3270 3797 If you meant to cross compile, use \`--host'. 3271 3798 See \`config.log' for more details" "$LINENO" 5; } 3272 3799 fi 3273 3800 fi 3274 3801 fi 3275 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3276 - $as_echo "$cross_compiling" >&6; } 3802 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3803 + printf "%s\n" "$cross_compiling" >&6; } 3277 3804 3278 3805 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3279 3806 ac_clean_files=$ac_clean_files_save 3280 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3281 - $as_echo_n "checking for suffix of object files... " >&6; } 3282 - if ${ac_cv_objext+:} false; then : 3283 - $as_echo_n "(cached) " >&6 3284 - else 3807 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3808 + printf %s "checking for suffix of object files... " >&6; } 3809 + if test ${ac_cv_objext+y} 3810 + then : 3811 + printf %s "(cached) " >&6 3812 + else $as_nop 3285 3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3286 3814 /* end confdefs.h. */ 3287 3815 3288 3816 int 3289 - main () 3817 + main (void) 3290 3818 { 3291 3819 3292 3820 ; ··· 3300 3828 *) ac_try_echo=$ac_try;; 3301 3829 esac 3302 3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3303 - $as_echo "$ac_try_echo"; } >&5 3831 + printf "%s\n" "$ac_try_echo"; } >&5 3304 3832 (eval "$ac_compile") 2>&5 3305 3833 ac_status=$? 3306 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3307 - test $ac_status = 0; }; then : 3834 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3835 + test $ac_status = 0; } 3836 + then : 3308 3837 for ac_file in conftest.o conftest.obj conftest.*; do 3309 3838 test -f "$ac_file" || continue; 3310 3839 case $ac_file in ··· 3313 3842 break;; 3314 3843 esac 3315 3844 done 3316 - else 3317 - $as_echo "$as_me: failed program was:" >&5 3845 + else $as_nop 3846 + printf "%s\n" "$as_me: failed program was:" >&5 3318 3847 sed 's/^/| /' conftest.$ac_ext >&5 3319 3848 3320 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3321 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3849 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3850 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3322 3851 as_fn_error $? "cannot compute suffix of object files: cannot compile 3323 3852 See \`config.log' for more details" "$LINENO" 5; } 3324 3853 fi 3325 3854 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3326 3855 fi 3327 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3328 - $as_echo "$ac_cv_objext" >&6; } 3856 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3857 + printf "%s\n" "$ac_cv_objext" >&6; } 3329 3858 OBJEXT=$ac_cv_objext 3330 3859 ac_objext=$OBJEXT 3331 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3332 - $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3333 - if ${ac_cv_c_compiler_gnu+:} false; then : 3334 - $as_echo_n "(cached) " >&6 3335 - else 3860 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3861 + printf %s "checking whether the compiler supports GNU C... " >&6; } 3862 + if test ${ac_cv_c_compiler_gnu+y} 3863 + then : 3864 + printf %s "(cached) " >&6 3865 + else $as_nop 3336 3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3337 3867 /* end confdefs.h. */ 3338 3868 3339 3869 int 3340 - main () 3870 + main (void) 3341 3871 { 3342 3872 #ifndef __GNUC__ 3343 3873 choke me ··· 3347 3877 return 0; 3348 3878 } 3349 3879 _ACEOF 3350 - if ac_fn_c_try_compile "$LINENO"; then : 3880 + if ac_fn_c_try_compile "$LINENO" 3881 + then : 3351 3882 ac_compiler_gnu=yes 3352 - else 3883 + else $as_nop 3353 3884 ac_compiler_gnu=no 3354 3885 fi 3355 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3886 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3356 3887 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3357 3888 3358 3889 fi 3359 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3360 - $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3890 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3891 + printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3892 + ac_compiler_gnu=$ac_cv_c_compiler_gnu 3893 + 3361 3894 if test $ac_compiler_gnu = yes; then 3362 3895 GCC=yes 3363 3896 else 3364 3897 GCC= 3365 3898 fi 3366 - ac_test_CFLAGS=${CFLAGS+set} 3899 + ac_test_CFLAGS=${CFLAGS+y} 3367 3900 ac_save_CFLAGS=$CFLAGS 3368 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3369 - $as_echo_n "checking whether $CC accepts -g... " >&6; } 3370 - if ${ac_cv_prog_cc_g+:} false; then : 3371 - $as_echo_n "(cached) " >&6 3372 - else 3901 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3902 + printf %s "checking whether $CC accepts -g... " >&6; } 3903 + if test ${ac_cv_prog_cc_g+y} 3904 + then : 3905 + printf %s "(cached) " >&6 3906 + else $as_nop 3373 3907 ac_save_c_werror_flag=$ac_c_werror_flag 3374 3908 ac_c_werror_flag=yes 3375 3909 ac_cv_prog_cc_g=no ··· 3378 3912 /* end confdefs.h. */ 3379 3913 3380 3914 int 3381 - main () 3915 + main (void) 3382 3916 { 3383 3917 3384 3918 ; 3385 3919 return 0; 3386 3920 } 3387 3921 _ACEOF 3388 - if ac_fn_c_try_compile "$LINENO"; then : 3922 + if ac_fn_c_try_compile "$LINENO" 3923 + then : 3389 3924 ac_cv_prog_cc_g=yes 3390 - else 3925 + else $as_nop 3391 3926 CFLAGS="" 3392 3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3393 3928 /* end confdefs.h. */ 3394 3929 3395 3930 int 3396 - main () 3931 + main (void) 3397 3932 { 3398 3933 3399 3934 ; 3400 3935 return 0; 3401 3936 } 3402 3937 _ACEOF 3403 - if ac_fn_c_try_compile "$LINENO"; then : 3938 + if ac_fn_c_try_compile "$LINENO" 3939 + then : 3404 3940 3405 - else 3941 + else $as_nop 3406 3942 ac_c_werror_flag=$ac_save_c_werror_flag 3407 3943 CFLAGS="-g" 3408 3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3409 3945 /* end confdefs.h. */ 3410 3946 3411 3947 int 3412 - main () 3948 + main (void) 3413 3949 { 3414 3950 3415 3951 ; 3416 3952 return 0; 3417 3953 } 3418 3954 _ACEOF 3419 - if ac_fn_c_try_compile "$LINENO"; then : 3955 + if ac_fn_c_try_compile "$LINENO" 3956 + then : 3420 3957 ac_cv_prog_cc_g=yes 3421 3958 fi 3422 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3959 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3423 3960 fi 3424 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3961 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3425 3962 fi 3426 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3963 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3427 3964 ac_c_werror_flag=$ac_save_c_werror_flag 3428 3965 fi 3429 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3430 - $as_echo "$ac_cv_prog_cc_g" >&6; } 3431 - if test "$ac_test_CFLAGS" = set; then 3966 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3967 + printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3968 + if test $ac_test_CFLAGS; then 3432 3969 CFLAGS=$ac_save_CFLAGS 3433 3970 elif test $ac_cv_prog_cc_g = yes; then 3434 3971 if test "$GCC" = yes; then ··· 3443 3980 CFLAGS= 3444 3981 fi 3445 3982 fi 3446 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3447 - $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3448 - if ${ac_cv_prog_cc_c89+:} false; then : 3449 - $as_echo_n "(cached) " >&6 3450 - else 3451 - ac_cv_prog_cc_c89=no 3983 + ac_prog_cc_stdc=no 3984 + if test x$ac_prog_cc_stdc = xno 3985 + then : 3986 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3987 + printf %s "checking for $CC option to enable C11 features... " >&6; } 3988 + if test ${ac_cv_prog_cc_c11+y} 3989 + then : 3990 + printf %s "(cached) " >&6 3991 + else $as_nop 3992 + ac_cv_prog_cc_c11=no 3452 3993 ac_save_CC=$CC 3453 3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3454 3995 /* end confdefs.h. */ 3455 - #include <stdarg.h> 3456 - #include <stdio.h> 3457 - struct stat; 3458 - /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3459 - struct buf { int x; }; 3460 - FILE * (*rcsopen) (struct buf *, struct stat *, int); 3461 - static char *e (p, i) 3462 - char **p; 3463 - int i; 3464 - { 3465 - return p[i]; 3466 - } 3467 - static char *f (char * (*g) (char **, int), char **p, ...) 3468 - { 3469 - char *s; 3470 - va_list v; 3471 - va_start (v,p); 3472 - s = g (p, va_arg (v,int)); 3473 - va_end (v); 3474 - return s; 3475 - } 3476 - 3477 - /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3478 - function prototypes and stuff, but not '\xHH' hex character constants. 3479 - These don't provoke an error unfortunately, instead are silently treated 3480 - as 'x'. The following induces an error, until -std is added to get 3481 - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3482 - array size at least. It's necessary to write '\x00'==0 to get something 3483 - that's true only with -std. */ 3484 - int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3996 + $ac_c_conftest_c11_program 3997 + _ACEOF 3998 + for ac_arg in '' -std=gnu11 3999 + do 4000 + CC="$ac_save_CC $ac_arg" 4001 + if ac_fn_c_try_compile "$LINENO" 4002 + then : 4003 + ac_cv_prog_cc_c11=$ac_arg 4004 + fi 4005 + rm -f core conftest.err conftest.$ac_objext conftest.beam 4006 + test "x$ac_cv_prog_cc_c11" != "xno" && break 4007 + done 4008 + rm -f conftest.$ac_ext 4009 + CC=$ac_save_CC 4010 + fi 3485 4011 3486 - /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3487 - inside strings and character constants. */ 3488 - #define FOO(x) 'x' 3489 - int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4012 + if test "x$ac_cv_prog_cc_c11" = xno 4013 + then : 4014 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4015 + printf "%s\n" "unsupported" >&6; } 4016 + else $as_nop 4017 + if test "x$ac_cv_prog_cc_c11" = x 4018 + then : 4019 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4020 + printf "%s\n" "none needed" >&6; } 4021 + else $as_nop 4022 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 4023 + printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 4024 + CC="$CC $ac_cv_prog_cc_c11" 4025 + fi 4026 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 4027 + ac_prog_cc_stdc=c11 4028 + fi 4029 + fi 4030 + if test x$ac_prog_cc_stdc = xno 4031 + then : 4032 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 4033 + printf %s "checking for $CC option to enable C99 features... " >&6; } 4034 + if test ${ac_cv_prog_cc_c99+y} 4035 + then : 4036 + printf %s "(cached) " >&6 4037 + else $as_nop 4038 + ac_cv_prog_cc_c99=no 4039 + ac_save_CC=$CC 4040 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4041 + /* end confdefs.h. */ 4042 + $ac_c_conftest_c99_program 4043 + _ACEOF 4044 + for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 4045 + do 4046 + CC="$ac_save_CC $ac_arg" 4047 + if ac_fn_c_try_compile "$LINENO" 4048 + then : 4049 + ac_cv_prog_cc_c99=$ac_arg 4050 + fi 4051 + rm -f core conftest.err conftest.$ac_objext conftest.beam 4052 + test "x$ac_cv_prog_cc_c99" != "xno" && break 4053 + done 4054 + rm -f conftest.$ac_ext 4055 + CC=$ac_save_CC 4056 + fi 3490 4057 3491 - int test (int i, double x); 3492 - struct s1 {int (*f) (int a);}; 3493 - struct s2 {int (*f) (double a);}; 3494 - int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3495 - int argc; 3496 - char **argv; 3497 - int 3498 - main () 3499 - { 3500 - return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3501 - ; 3502 - return 0; 3503 - } 4058 + if test "x$ac_cv_prog_cc_c99" = xno 4059 + then : 4060 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4061 + printf "%s\n" "unsupported" >&6; } 4062 + else $as_nop 4063 + if test "x$ac_cv_prog_cc_c99" = x 4064 + then : 4065 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4066 + printf "%s\n" "none needed" >&6; } 4067 + else $as_nop 4068 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4069 + printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 4070 + CC="$CC $ac_cv_prog_cc_c99" 4071 + fi 4072 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 4073 + ac_prog_cc_stdc=c99 4074 + fi 4075 + fi 4076 + if test x$ac_prog_cc_stdc = xno 4077 + then : 4078 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 4079 + printf %s "checking for $CC option to enable C89 features... " >&6; } 4080 + if test ${ac_cv_prog_cc_c89+y} 4081 + then : 4082 + printf %s "(cached) " >&6 4083 + else $as_nop 4084 + ac_cv_prog_cc_c89=no 4085 + ac_save_CC=$CC 4086 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4087 + /* end confdefs.h. */ 4088 + $ac_c_conftest_c89_program 3504 4089 _ACEOF 3505 - for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3506 - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4090 + for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3507 4091 do 3508 4092 CC="$ac_save_CC $ac_arg" 3509 - if ac_fn_c_try_compile "$LINENO"; then : 4093 + if ac_fn_c_try_compile "$LINENO" 4094 + then : 3510 4095 ac_cv_prog_cc_c89=$ac_arg 3511 4096 fi 3512 - rm -f core conftest.err conftest.$ac_objext 4097 + rm -f core conftest.err conftest.$ac_objext conftest.beam 3513 4098 test "x$ac_cv_prog_cc_c89" != "xno" && break 3514 4099 done 3515 4100 rm -f conftest.$ac_ext 3516 4101 CC=$ac_save_CC 3517 - 3518 4102 fi 3519 - # AC_CACHE_VAL 3520 - case "x$ac_cv_prog_cc_c89" in 3521 - x) 3522 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3523 - $as_echo "none needed" >&6; } ;; 3524 - xno) 3525 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3526 - $as_echo "unsupported" >&6; } ;; 3527 - *) 3528 - CC="$CC $ac_cv_prog_cc_c89" 3529 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3530 - $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3531 - esac 3532 - if test "x$ac_cv_prog_cc_c89" != xno; then : 3533 4103 4104 + if test "x$ac_cv_prog_cc_c89" = xno 4105 + then : 4106 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4107 + printf "%s\n" "unsupported" >&6; } 4108 + else $as_nop 4109 + if test "x$ac_cv_prog_cc_c89" = x 4110 + then : 4111 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4112 + printf "%s\n" "none needed" >&6; } 4113 + else $as_nop 4114 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4115 + printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 4116 + CC="$CC $ac_cv_prog_cc_c89" 4117 + fi 4118 + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 4119 + ac_prog_cc_stdc=c89 4120 + fi 3534 4121 fi 3535 4122 3536 4123 ac_ext=c ··· 3541 4128 3542 4129 depcc="$CC" am_compiler_list= 3543 4130 3544 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3545 - $as_echo_n "checking dependency style of $depcc... " >&6; } 3546 - if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3547 - $as_echo_n "(cached) " >&6 3548 - else 4131 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4132 + printf %s "checking dependency style of $depcc... " >&6; } 4133 + if test ${am_cv_CC_dependencies_compiler_type+y} 4134 + then : 4135 + printf %s "(cached) " >&6 4136 + else $as_nop 3549 4137 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3550 4138 # We make a subdir and do the tests there. Otherwise we can end up 3551 4139 # making bogus files that we don't know about and never remove. For ··· 3652 4240 fi 3653 4241 3654 4242 fi 3655 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3656 - $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4243 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4244 + printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } 3657 4245 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3658 4246 3659 4247 if ··· 3667 4255 fi 3668 4256 3669 4257 3670 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3671 - $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3672 - if ${ac_cv_prog_cc_c99+:} false; then : 3673 - $as_echo_n "(cached) " >&6 3674 - else 3675 - ac_cv_prog_cc_c99=no 3676 - ac_save_CC=$CC 3677 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4258 + 4259 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 4260 + printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 4261 + if test ${ac_cv_c_undeclared_builtin_options+y} 4262 + then : 4263 + printf %s "(cached) " >&6 4264 + else $as_nop 4265 + ac_save_CFLAGS=$CFLAGS 4266 + ac_cv_c_undeclared_builtin_options='cannot detect' 4267 + for ac_arg in '' -fno-builtin; do 4268 + CFLAGS="$ac_save_CFLAGS $ac_arg" 4269 + # This test program should *not* compile successfully. 4270 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3678 4271 /* end confdefs.h. */ 3679 - #include <stdarg.h> 3680 - #include <stdbool.h> 3681 - #include <stdlib.h> 3682 - #include <wchar.h> 3683 - #include <stdio.h> 3684 4272 3685 - // Check varargs macros. These examples are taken from C99 6.10.3.5. 3686 - #define debug(...) fprintf (stderr, __VA_ARGS__) 3687 - #define showlist(...) puts (#__VA_ARGS__) 3688 - #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3689 - static void 3690 - test_varargs_macros (void) 4273 + int 4274 + main (void) 3691 4275 { 3692 - int x = 1234; 3693 - int y = 5678; 3694 - debug ("Flag"); 3695 - debug ("X = %d\n", x); 3696 - showlist (The first, second, and third items.); 3697 - report (x>y, "x is %d but y is %d", x, y); 3698 - } 3699 - 3700 - // Check long long types. 3701 - #define BIG64 18446744073709551615ull 3702 - #define BIG32 4294967295ul 3703 - #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3704 - #if !BIG_OK 3705 - your preprocessor is broken; 3706 - #endif 3707 - #if BIG_OK 3708 - #else 3709 - your preprocessor is broken; 3710 - #endif 3711 - static long long int bignum = -9223372036854775807LL; 3712 - static unsigned long long int ubignum = BIG64; 3713 - 3714 - struct incomplete_array 3715 - { 3716 - int datasize; 3717 - double data[]; 3718 - }; 3719 - 3720 - struct named_init { 3721 - int number; 3722 - const wchar_t *name; 3723 - double average; 3724 - }; 3725 - 3726 - typedef const char *ccp; 3727 - 3728 - static inline int 3729 - test_restrict (ccp restrict text) 3730 - { 3731 - // See if C++-style comments work. 3732 - // Iterate through items via the restricted pointer. 3733 - // Also check for declarations in for loops. 3734 - for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3735 - continue; 4276 + (void) strchr; 4277 + ; 3736 4278 return 0; 3737 4279 } 4280 + _ACEOF 4281 + if ac_fn_c_try_compile "$LINENO" 4282 + then : 3738 4283 3739 - // Check varargs and va_copy. 3740 - static void 3741 - test_varargs (const char *format, ...) 3742 - { 3743 - va_list args; 3744 - va_start (args, format); 3745 - va_list args_copy; 3746 - va_copy (args_copy, args); 3747 - 3748 - const char *str; 3749 - int number; 3750 - float fnumber; 3751 - 3752 - while (*format) 3753 - { 3754 - switch (*format++) 3755 - { 3756 - case 's': // string 3757 - str = va_arg (args_copy, const char *); 3758 - break; 3759 - case 'd': // int 3760 - number = va_arg (args_copy, int); 3761 - break; 3762 - case 'f': // float 3763 - fnumber = va_arg (args_copy, double); 3764 - break; 3765 - default: 3766 - break; 3767 - } 3768 - } 3769 - va_end (args_copy); 3770 - va_end (args); 3771 - } 4284 + else $as_nop 4285 + # This test program should compile successfully. 4286 + # No library function is consistently available on 4287 + # freestanding implementations, so test against a dummy 4288 + # declaration. Include always-available headers on the 4289 + # off chance that they somehow elicit warnings. 4290 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4291 + /* end confdefs.h. */ 4292 + #include <float.h> 4293 + #include <limits.h> 4294 + #include <stdarg.h> 4295 + #include <stddef.h> 4296 + extern void ac_decl (int, char *); 3772 4297 3773 4298 int 3774 - main () 4299 + main (void) 3775 4300 { 3776 - 3777 - // Check bool. 3778 - _Bool success = false; 3779 - 3780 - // Check restrict. 3781 - if (test_restrict ("String literal") == 0) 3782 - success = true; 3783 - char *restrict newvar = "Another string"; 3784 - 3785 - // Check varargs. 3786 - test_varargs ("s, d' f .", "string", 65, 34.234); 3787 - test_varargs_macros (); 3788 - 3789 - // Check flexible array members. 3790 - struct incomplete_array *ia = 3791 - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3792 - ia->datasize = 10; 3793 - for (int i = 0; i < ia->datasize; ++i) 3794 - ia->data[i] = i * 1.234; 3795 - 3796 - // Check named initializers. 3797 - struct named_init ni = { 3798 - .number = 34, 3799 - .name = L"Test wide string", 3800 - .average = 543.34343, 3801 - }; 3802 - 3803 - ni.number = 58; 3804 - 3805 - int dynamic_array[ni.number]; 3806 - dynamic_array[ni.number - 1] = 543; 3807 - 3808 - // work around unused variable warnings 3809 - return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3810 - || dynamic_array[ni.number - 1] != 543); 4301 + (void) ac_decl (0, (char *) 0); 4302 + (void) ac_decl; 3811 4303 3812 4304 ; 3813 4305 return 0; 3814 4306 } 3815 4307 _ACEOF 3816 - for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 3817 - do 3818 - CC="$ac_save_CC $ac_arg" 3819 - if ac_fn_c_try_compile "$LINENO"; then : 3820 - ac_cv_prog_cc_c99=$ac_arg 3821 - fi 3822 - rm -f core conftest.err conftest.$ac_objext 3823 - test "x$ac_cv_prog_cc_c99" != "xno" && break 3824 - done 3825 - rm -f conftest.$ac_ext 3826 - CC=$ac_save_CC 3827 - 4308 + if ac_fn_c_try_compile "$LINENO" 4309 + then : 4310 + if test x"$ac_arg" = x 4311 + then : 4312 + ac_cv_c_undeclared_builtin_options='none needed' 4313 + else $as_nop 4314 + ac_cv_c_undeclared_builtin_options=$ac_arg 3828 4315 fi 3829 - # AC_CACHE_VAL 3830 - case "x$ac_cv_prog_cc_c99" in 3831 - x) 3832 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3833 - $as_echo "none needed" >&6; } ;; 3834 - xno) 3835 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3836 - $as_echo "unsupported" >&6; } ;; 3837 - *) 3838 - CC="$CC $ac_cv_prog_cc_c99" 3839 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3840 - $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3841 - esac 3842 - if test "x$ac_cv_prog_cc_c99" != xno; then : 3843 - 3844 - fi 3845 - 3846 - 3847 - 3848 - ac_ext=c 3849 - ac_cpp='$CPP $CPPFLAGS' 3850 - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3851 - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3852 - ac_compiler_gnu=$ac_cv_c_compiler_gnu 3853 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3854 - $as_echo_n "checking how to run the C preprocessor... " >&6; } 3855 - # On Suns, sometimes $CPP names a directory. 3856 - if test -n "$CPP" && test -d "$CPP"; then 3857 - CPP= 3858 - fi 3859 - if test -z "$CPP"; then 3860 - if ${ac_cv_prog_CPP+:} false; then : 3861 - $as_echo_n "(cached) " >&6 3862 - else 3863 - # Double quotes because CPP needs to be expanded 3864 - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3865 - do 3866 - ac_preproc_ok=false 3867 - for ac_c_preproc_warn_flag in '' yes 3868 - do 3869 - # Use a header file that comes with gcc, so configuring glibc 3870 - # with a fresh cross-compiler works. 3871 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3872 - # <limits.h> exists even on freestanding compilers. 3873 - # On the NeXT, cc -E runs the code through the compiler's parser, 3874 - # not just through cpp. "Syntax error" is here to catch this case. 3875 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3876 - /* end confdefs.h. */ 3877 - #ifdef __STDC__ 3878 - # include <limits.h> 3879 - #else 3880 - # include <assert.h> 3881 - #endif 3882 - Syntax error 3883 - _ACEOF 3884 - if ac_fn_c_try_cpp "$LINENO"; then : 3885 - 3886 - else 3887 - # Broken: fails on valid input. 3888 - continue 3889 - fi 3890 - rm -f conftest.err conftest.i conftest.$ac_ext 3891 - 3892 - # OK, works on sane cases. Now check whether nonexistent headers 3893 - # can be detected and how. 3894 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3895 - /* end confdefs.h. */ 3896 - #include <ac_nonexistent.h> 3897 - _ACEOF 3898 - if ac_fn_c_try_cpp "$LINENO"; then : 3899 - # Broken: success on invalid input. 3900 - continue 3901 - else 3902 - # Passes both tests. 3903 - ac_preproc_ok=: 3904 - break 4316 + break 3905 4317 fi 3906 - rm -f conftest.err conftest.i conftest.$ac_ext 3907 - 3908 - done 3909 - # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3910 - rm -f conftest.i conftest.err conftest.$ac_ext 3911 - if $ac_preproc_ok; then : 3912 - break 4318 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3913 4319 fi 3914 - 4320 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3915 4321 done 3916 - ac_cv_prog_CPP=$CPP 4322 + CFLAGS=$ac_save_CFLAGS 3917 4323 3918 4324 fi 3919 - CPP=$ac_cv_prog_CPP 3920 - else 3921 - ac_cv_prog_CPP=$CPP 3922 - fi 3923 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3924 - $as_echo "$CPP" >&6; } 3925 - ac_preproc_ok=false 3926 - for ac_c_preproc_warn_flag in '' yes 3927 - do 3928 - # Use a header file that comes with gcc, so configuring glibc 3929 - # with a fresh cross-compiler works. 3930 - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3931 - # <limits.h> exists even on freestanding compilers. 3932 - # On the NeXT, cc -E runs the code through the compiler's parser, 3933 - # not just through cpp. "Syntax error" is here to catch this case. 3934 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3935 - /* end confdefs.h. */ 3936 - #ifdef __STDC__ 3937 - # include <limits.h> 3938 - #else 3939 - # include <assert.h> 3940 - #endif 3941 - Syntax error 3942 - _ACEOF 3943 - if ac_fn_c_try_cpp "$LINENO"; then : 3944 - 3945 - else 3946 - # Broken: fails on valid input. 3947 - continue 3948 - fi 3949 - rm -f conftest.err conftest.i conftest.$ac_ext 3950 - 3951 - # OK, works on sane cases. Now check whether nonexistent headers 3952 - # can be detected and how. 3953 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3954 - /* end confdefs.h. */ 3955 - #include <ac_nonexistent.h> 3956 - _ACEOF 3957 - if ac_fn_c_try_cpp "$LINENO"; then : 3958 - # Broken: success on invalid input. 3959 - continue 3960 - else 3961 - # Passes both tests. 3962 - ac_preproc_ok=: 3963 - break 3964 - fi 3965 - rm -f conftest.err conftest.i conftest.$ac_ext 3966 - 3967 - done 3968 - # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3969 - rm -f conftest.i conftest.err conftest.$ac_ext 3970 - if $ac_preproc_ok; then : 3971 - 3972 - else 3973 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3974 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3975 - as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3976 - See \`config.log' for more details" "$LINENO" 5; } 3977 - fi 3978 - 3979 - ac_ext=c 3980 - ac_cpp='$CPP $CPPFLAGS' 3981 - ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3982 - ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3983 - ac_compiler_gnu=$ac_cv_c_compiler_gnu 3984 - 3985 - 3986 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3987 - $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3988 - if ${ac_cv_path_GREP+:} false; then : 3989 - $as_echo_n "(cached) " >&6 3990 - else 3991 - if test -z "$GREP"; then 3992 - ac_path_GREP_found=false 3993 - # Loop through the user's path and test for each of PROGNAME-LIST 3994 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3995 - for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3996 - do 3997 - IFS=$as_save_IFS 3998 - test -z "$as_dir" && as_dir=. 3999 - for ac_prog in grep ggrep; do 4000 - for ac_exec_ext in '' $ac_executable_extensions; do 4001 - ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4002 - as_fn_executable_p "$ac_path_GREP" || continue 4003 - # Check for GNU ac_path_GREP and select it if it is found. 4004 - # Check for GNU $ac_path_GREP 4005 - case `"$ac_path_GREP" --version 2>&1` in 4006 - *GNU*) 4007 - ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4008 - *) 4009 - ac_count=0 4010 - $as_echo_n 0123456789 >"conftest.in" 4011 - while : 4012 - do 4013 - cat "conftest.in" "conftest.in" >"conftest.tmp" 4014 - mv "conftest.tmp" "conftest.in" 4015 - cp "conftest.in" "conftest.nl" 4016 - $as_echo 'GREP' >> "conftest.nl" 4017 - "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4018 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4019 - as_fn_arith $ac_count + 1 && ac_count=$as_val 4020 - if test $ac_count -gt ${ac_path_GREP_max-0}; then 4021 - # Best one so far, save it but keep looking for a better one 4022 - ac_cv_path_GREP="$ac_path_GREP" 4023 - ac_path_GREP_max=$ac_count 4024 - fi 4025 - # 10*(2^10) chars as input seems more than enough 4026 - test $ac_count -gt 10 && break 4027 - done 4028 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4325 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4326 + printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4327 + case $ac_cv_c_undeclared_builtin_options in #( 4328 + 'cannot detect') : 4329 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4330 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4331 + as_fn_error $? "cannot make $CC report undeclared builtins 4332 + See \`config.log' for more details" "$LINENO" 5; } ;; #( 4333 + 'none needed') : 4334 + ac_c_undeclared_builtin_options='' ;; #( 4335 + *) : 4336 + ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4029 4337 esac 4030 4338 4031 - $ac_path_GREP_found && break 3 4032 - done 4033 - done 4034 - done 4035 - IFS=$as_save_IFS 4036 - if test -z "$ac_cv_path_GREP"; then 4037 - as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4038 - fi 4039 - else 4040 - ac_cv_path_GREP=$GREP 4041 - fi 4042 - 4043 - fi 4044 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4045 - $as_echo "$ac_cv_path_GREP" >&6; } 4046 - GREP="$ac_cv_path_GREP" 4047 - 4048 - 4049 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4050 - $as_echo_n "checking for egrep... " >&6; } 4051 - if ${ac_cv_path_EGREP+:} false; then : 4052 - $as_echo_n "(cached) " >&6 4053 - else 4054 - if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4055 - then ac_cv_path_EGREP="$GREP -E" 4056 - else 4057 - if test -z "$EGREP"; then 4058 - ac_path_EGREP_found=false 4059 - # Loop through the user's path and test for each of PROGNAME-LIST 4060 - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4061 - for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4339 + ac_header= ac_cache= 4340 + for ac_item in $ac_header_c_list 4062 4341 do 4063 - IFS=$as_save_IFS 4064 - test -z "$as_dir" && as_dir=. 4065 - for ac_prog in egrep; do 4066 - for ac_exec_ext in '' $ac_executable_extensions; do 4067 - ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4068 - as_fn_executable_p "$ac_path_EGREP" || continue 4069 - # Check for GNU ac_path_EGREP and select it if it is found. 4070 - # Check for GNU $ac_path_EGREP 4071 - case `"$ac_path_EGREP" --version 2>&1` in 4072 - *GNU*) 4073 - ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4074 - *) 4075 - ac_count=0 4076 - $as_echo_n 0123456789 >"conftest.in" 4077 - while : 4078 - do 4079 - cat "conftest.in" "conftest.in" >"conftest.tmp" 4080 - mv "conftest.tmp" "conftest.in" 4081 - cp "conftest.in" "conftest.nl" 4082 - $as_echo 'EGREP' >> "conftest.nl" 4083 - "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4084 - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4085 - as_fn_arith $ac_count + 1 && ac_count=$as_val 4086 - if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4087 - # Best one so far, save it but keep looking for a better one 4088 - ac_cv_path_EGREP="$ac_path_EGREP" 4089 - ac_path_EGREP_max=$ac_count 4342 + if test $ac_cache; then 4343 + ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 4344 + if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 4345 + printf "%s\n" "#define $ac_item 1" >> confdefs.h 4090 4346 fi 4091 - # 10*(2^10) chars as input seems more than enough 4092 - test $ac_count -gt 10 && break 4093 - done 4094 - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4095 - esac 4096 - 4097 - $ac_path_EGREP_found && break 3 4098 - done 4099 - done 4100 - done 4101 - IFS=$as_save_IFS 4102 - if test -z "$ac_cv_path_EGREP"; then 4103 - as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4347 + ac_header= ac_cache= 4348 + elif test $ac_header; then 4349 + ac_cache=$ac_item 4350 + else 4351 + ac_header=$ac_item 4104 4352 fi 4105 - else 4106 - ac_cv_path_EGREP=$EGREP 4107 - fi 4353 + done 4108 4354 4109 - fi 4110 - fi 4111 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4112 - $as_echo "$ac_cv_path_EGREP" >&6; } 4113 - EGREP="$ac_cv_path_EGREP" 4114 4355 4115 4356 4116 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4117 - $as_echo_n "checking for ANSI C header files... " >&6; } 4118 - if ${ac_cv_header_stdc+:} false; then : 4119 - $as_echo_n "(cached) " >&6 4120 - else 4121 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4122 - /* end confdefs.h. */ 4123 - #include <stdlib.h> 4124 - #include <stdarg.h> 4125 - #include <string.h> 4126 - #include <float.h> 4127 4357 4128 - int 4129 - main () 4130 - { 4131 4358 4132 - ; 4133 - return 0; 4134 - } 4135 - _ACEOF 4136 - if ac_fn_c_try_compile "$LINENO"; then : 4137 - ac_cv_header_stdc=yes 4138 - else 4139 - ac_cv_header_stdc=no 4140 - fi 4141 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4142 4359 4143 - if test $ac_cv_header_stdc = yes; then 4144 - # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4145 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146 - /* end confdefs.h. */ 4147 - #include <string.h> 4148 4360 4149 - _ACEOF 4150 - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4151 - $EGREP "memchr" >/dev/null 2>&1; then : 4152 4361 4153 - else 4154 - ac_cv_header_stdc=no 4155 - fi 4156 - rm -f conftest* 4362 + if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 4363 + then : 4157 4364 4158 - fi 4365 + printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 4159 4366 4160 - if test $ac_cv_header_stdc = yes; then 4161 - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4162 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4163 - /* end confdefs.h. */ 4164 - #include <stdlib.h> 4165 - 4166 - _ACEOF 4167 - if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4168 - $EGREP "free" >/dev/null 2>&1; then : 4169 - 4170 - else 4171 - ac_cv_header_stdc=no 4172 4367 fi 4173 - rm -f conftest* 4174 4368 4175 - fi 4176 4369 4177 - if test $ac_cv_header_stdc = yes; then 4178 - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4179 - if test "$cross_compiling" = yes; then : 4180 - : 4181 - else 4182 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4183 - /* end confdefs.h. */ 4184 - #include <ctype.h> 4185 - #include <stdlib.h> 4186 - #if ((' ' & 0x0FF) == 0x020) 4187 - # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4188 - # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4189 - #else 4190 - # define ISLOWER(c) \ 4191 - (('a' <= (c) && (c) <= 'i') \ 4192 - || ('j' <= (c) && (c) <= 'r') \ 4193 - || ('s' <= (c) && (c) <= 'z')) 4194 - # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4195 - #endif 4196 4370 4197 - #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4198 - int 4199 - main () 4200 - { 4201 - int i; 4202 - for (i = 0; i < 256; i++) 4203 - if (XOR (islower (i), ISLOWER (i)) 4204 - || toupper (i) != TOUPPER (i)) 4205 - return 2; 4206 - return 0; 4207 - } 4208 - _ACEOF 4209 - if ac_fn_c_try_run "$LINENO"; then : 4210 4371 4211 - else 4212 - ac_cv_header_stdc=no 4213 - fi 4214 - rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4215 - conftest.$ac_objext conftest.beam conftest.$ac_ext 4216 - fi 4217 - 4218 - fi 4219 - fi 4220 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4221 - $as_echo "$ac_cv_header_stdc" >&6; } 4222 - if test $ac_cv_header_stdc = yes; then 4223 - 4224 - $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4225 - 4226 - fi 4227 - 4228 - # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4229 - for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4230 - inttypes.h stdint.h unistd.h 4231 - do : 4232 - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4233 - ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4234 - " 4235 - if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4236 - cat >>confdefs.h <<_ACEOF 4237 - #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4238 - _ACEOF 4239 - 4240 - fi 4241 - 4242 - done 4243 - 4244 - 4245 - 4246 - 4247 - 4248 - 4249 - ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4250 - if test "x$ac_cv_have_decl___clang__" = xyes; then : 4372 + ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4373 + if test "x$ac_cv_have_decl___clang__" = xyes 4374 + then : 4251 4375 CLANGCC="yes" 4252 - else 4376 + else $as_nop 4253 4377 CLANGCC="no" 4254 4378 fi 4255 - 4256 - ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4257 - if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4379 + ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4380 + if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes 4381 + then : 4258 4382 INTELCC="yes" 4259 - else 4383 + else $as_nop 4260 4384 INTELCC="no" 4261 4385 fi 4262 - 4263 - ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4264 - if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4386 + ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" 4387 + if test "x$ac_cv_have_decl___SUNPRO_C" = xyes 4388 + then : 4265 4389 SUNCC="yes" 4266 - else 4390 + else $as_nop 4267 4391 SUNCC="no" 4268 4392 fi 4269 - 4270 4393 4271 4394 4272 4395 ··· 4279 4402 if test -n "$ac_tool_prefix"; then 4280 4403 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4281 4404 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4282 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4283 - $as_echo_n "checking for $ac_word... " >&6; } 4284 - if ${ac_cv_path_PKG_CONFIG+:} false; then : 4285 - $as_echo_n "(cached) " >&6 4286 - else 4405 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4406 + printf %s "checking for $ac_word... " >&6; } 4407 + if test ${ac_cv_path_PKG_CONFIG+y} 4408 + then : 4409 + printf %s "(cached) " >&6 4410 + else $as_nop 4287 4411 case $PKG_CONFIG in 4288 4412 [\\/]* | ?:[\\/]*) 4289 4413 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ··· 4293 4417 for as_dir in $PATH 4294 4418 do 4295 4419 IFS=$as_save_IFS 4296 - test -z "$as_dir" && as_dir=. 4420 + case $as_dir in #((( 4421 + '') as_dir=./ ;; 4422 + */) ;; 4423 + *) as_dir=$as_dir/ ;; 4424 + esac 4297 4425 for ac_exec_ext in '' $ac_executable_extensions; do 4298 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4299 - ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4300 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4426 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4427 + ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4428 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4301 4429 break 2 4302 4430 fi 4303 4431 done ··· 4309 4437 fi 4310 4438 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4311 4439 if test -n "$PKG_CONFIG"; then 4312 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4313 - $as_echo "$PKG_CONFIG" >&6; } 4440 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4441 + printf "%s\n" "$PKG_CONFIG" >&6; } 4314 4442 else 4315 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4316 - $as_echo "no" >&6; } 4443 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4444 + printf "%s\n" "no" >&6; } 4317 4445 fi 4318 4446 4319 4447 ··· 4322 4450 ac_pt_PKG_CONFIG=$PKG_CONFIG 4323 4451 # Extract the first word of "pkg-config", so it can be a program name with args. 4324 4452 set dummy pkg-config; ac_word=$2 4325 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4326 - $as_echo_n "checking for $ac_word... " >&6; } 4327 - if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4328 - $as_echo_n "(cached) " >&6 4329 - else 4453 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4454 + printf %s "checking for $ac_word... " >&6; } 4455 + if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 4456 + then : 4457 + printf %s "(cached) " >&6 4458 + else $as_nop 4330 4459 case $ac_pt_PKG_CONFIG in 4331 4460 [\\/]* | ?:[\\/]*) 4332 4461 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ··· 4336 4465 for as_dir in $PATH 4337 4466 do 4338 4467 IFS=$as_save_IFS 4339 - test -z "$as_dir" && as_dir=. 4468 + case $as_dir in #((( 4469 + '') as_dir=./ ;; 4470 + */) ;; 4471 + *) as_dir=$as_dir/ ;; 4472 + esac 4340 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4341 - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4342 - ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4343 - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4474 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4475 + ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 4476 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4344 4477 break 2 4345 4478 fi 4346 4479 done ··· 4352 4485 fi 4353 4486 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4354 4487 if test -n "$ac_pt_PKG_CONFIG"; then 4355 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4356 - $as_echo "$ac_pt_PKG_CONFIG" >&6; } 4488 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4489 + printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 4357 4490 else 4358 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4359 - $as_echo "no" >&6; } 4491 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4492 + printf "%s\n" "no" >&6; } 4360 4493 fi 4361 4494 4362 4495 if test "x$ac_pt_PKG_CONFIG" = x; then ··· 4364 4497 else 4365 4498 case $cross_compiling:$ac_tool_warned in 4366 4499 yes:) 4367 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4368 - $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4500 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4501 + printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4369 4502 ac_tool_warned=yes ;; 4370 4503 esac 4371 4504 PKG_CONFIG=$ac_pt_PKG_CONFIG ··· 4377 4510 fi 4378 4511 if test -n "$PKG_CONFIG"; then 4379 4512 _pkg_min_version=0.9.0 4380 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4381 - $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4513 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4514 + printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4382 4515 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4383 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4384 - $as_echo "yes" >&6; } 4516 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4517 + printf "%s\n" "yes" >&6; } 4385 4518 else 4386 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4387 - $as_echo "no" >&6; } 4519 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4520 + printf "%s\n" "no" >&6; } 4388 4521 PKG_CONFIG="" 4389 4522 fi 4390 4523 fi 4391 - # Make sure we can run config.sub. 4392 - $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4393 - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4524 + 4525 + 4526 + # Make sure we can run config.sub. 4527 + $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 4528 + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 4394 4529 4395 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4396 - $as_echo_n "checking build system type... " >&6; } 4397 - if ${ac_cv_build+:} false; then : 4398 - $as_echo_n "(cached) " >&6 4399 - else 4530 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4531 + printf %s "checking build system type... " >&6; } 4532 + if test ${ac_cv_build+y} 4533 + then : 4534 + printf %s "(cached) " >&6 4535 + else $as_nop 4400 4536 ac_build_alias=$build_alias 4401 4537 test "x$ac_build_alias" = x && 4402 - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4538 + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 4403 4539 test "x$ac_build_alias" = x && 4404 4540 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4405 - ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4406 - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4541 + ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 4542 + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 4407 4543 4408 4544 fi 4409 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4410 - $as_echo "$ac_cv_build" >&6; } 4545 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4546 + printf "%s\n" "$ac_cv_build" >&6; } 4411 4547 case $ac_cv_build in 4412 4548 *-*-*) ;; 4413 4549 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; ··· 4426 4562 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4427 4563 4428 4564 4429 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4430 - $as_echo_n "checking host system type... " >&6; } 4431 - if ${ac_cv_host+:} false; then : 4432 - $as_echo_n "(cached) " >&6 4433 - else 4565 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4566 + printf %s "checking host system type... " >&6; } 4567 + if test ${ac_cv_host+y} 4568 + then : 4569 + printf %s "(cached) " >&6 4570 + else $as_nop 4434 4571 if test "x$host_alias" = x; then 4435 4572 ac_cv_host=$ac_cv_build 4436 4573 else 4437 - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4438 - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4574 + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 4575 + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 4439 4576 fi 4440 4577 4441 4578 fi 4442 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4443 - $as_echo "$ac_cv_host" >&6; } 4579 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4580 + printf "%s\n" "$ac_cv_host" >&6; } 4444 4581 case $ac_cv_host in 4445 4582 *-*-*) ;; 4446 4583 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; ··· 4459 4596 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4460 4597 4461 4598 4462 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4463 - $as_echo_n "checking for a sed that does not truncate output... " >&6; } 4464 - if ${ac_cv_path_SED+:} false; then : 4465 - $as_echo_n "(cached) " >&6 4466 - else 4599 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4600 + printf %s "checking for a sed that does not truncate output... " >&6; } 4601 + if test ${ac_cv_path_SED+y} 4602 + then : 4603 + printf %s "(cached) " >&6 4604 + else $as_nop 4467 4605 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4468 4606 for ac_i in 1 2 3 4 5 6 7; do 4469 4607 ac_script="$ac_script$as_nl$ac_script" ··· 4477 4615 for as_dir in $PATH 4478 4616 do 4479 4617 IFS=$as_save_IFS 4480 - test -z "$as_dir" && as_dir=. 4481 - for ac_prog in sed gsed; do 4618 + case $as_dir in #((( 4619 + '') as_dir=./ ;; 4620 + */) ;; 4621 + *) as_dir=$as_dir/ ;; 4622 + esac 4623 + for ac_prog in sed gsed 4624 + do 4482 4625 for ac_exec_ext in '' $ac_executable_extensions; do 4483 - ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4626 + ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 4484 4627 as_fn_executable_p "$ac_path_SED" || continue 4485 4628 # Check for GNU ac_path_SED and select it if it is found. 4486 4629 # Check for GNU $ac_path_SED ··· 4489 4632 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4490 4633 *) 4491 4634 ac_count=0 4492 - $as_echo_n 0123456789 >"conftest.in" 4635 + printf %s 0123456789 >"conftest.in" 4493 4636 while : 4494 4637 do 4495 4638 cat "conftest.in" "conftest.in" >"conftest.tmp" 4496 4639 mv "conftest.tmp" "conftest.in" 4497 4640 cp "conftest.in" "conftest.nl" 4498 - $as_echo '' >> "conftest.nl" 4641 + printf "%s\n" '' >> "conftest.nl" 4499 4642 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4500 4643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4501 4644 as_fn_arith $ac_count + 1 && ac_count=$as_val ··· 4523 4666 fi 4524 4667 4525 4668 fi 4526 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4527 - $as_echo "$ac_cv_path_SED" >&6; } 4669 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4670 + printf "%s\n" "$ac_cv_path_SED" >&6; } 4528 4671 SED="$ac_cv_path_SED" 4529 4672 rm -f conftest.sed 4530 4673 ··· 4534 4677 4535 4678 4536 4679 # Check whether --enable-selective-werror was given. 4537 - if test "${enable_selective_werror+set}" = set; then : 4680 + if test ${enable_selective_werror+y} 4681 + then : 4538 4682 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4539 - else 4683 + else $as_nop 4540 4684 SELECTIVE_WERROR=yes 4541 4685 fi 4542 4686 ··· 4569 4713 4570 4714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4571 4715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4572 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4573 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4574 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4575 - $as_echo_n "(cached) " >&6 4576 - else 4716 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4717 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4718 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4719 + then : 4720 + printf %s "(cached) " >&6 4721 + else $as_nop 4577 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4578 4723 /* end confdefs.h. */ 4579 4724 int i; 4580 4725 _ACEOF 4581 - if ac_fn_c_try_compile "$LINENO"; then : 4726 + if ac_fn_c_try_compile "$LINENO" 4727 + then : 4582 4728 xorg_cv_cc_flag_unknown_warning_option=yes 4583 - else 4729 + else $as_nop 4584 4730 xorg_cv_cc_flag_unknown_warning_option=no 4585 4731 fi 4586 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4732 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4587 4733 fi 4588 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4589 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4734 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4735 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4590 4736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4591 4737 CFLAGS="$xorg_testset_save_CFLAGS" 4592 4738 fi ··· 4596 4742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4597 4743 fi 4598 4744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4599 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4600 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4601 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4602 - $as_echo_n "(cached) " >&6 4603 - else 4745 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4746 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4747 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4748 + then : 4749 + printf %s "(cached) " >&6 4750 + else $as_nop 4604 4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4605 4752 /* end confdefs.h. */ 4606 4753 int i; 4607 4754 _ACEOF 4608 - if ac_fn_c_try_compile "$LINENO"; then : 4755 + if ac_fn_c_try_compile "$LINENO" 4756 + then : 4609 4757 xorg_cv_cc_flag_unused_command_line_argument=yes 4610 - else 4758 + else $as_nop 4611 4759 xorg_cv_cc_flag_unused_command_line_argument=no 4612 4760 fi 4613 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4761 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4614 4762 fi 4615 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4616 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4763 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4764 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4617 4765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4618 4766 CFLAGS="$xorg_testset_save_CFLAGS" 4619 4767 fi ··· 4631 4779 4632 4780 CFLAGS="$CFLAGS -Wall" 4633 4781 4634 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4635 - $as_echo_n "checking if $CC supports -Wall... " >&6; } 4782 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4783 + printf %s "checking if $CC supports -Wall... " >&6; } 4636 4784 cacheid=xorg_cv_cc_flag__Wall 4637 - if eval \${$cacheid+:} false; then : 4638 - $as_echo_n "(cached) " >&6 4639 - else 4785 + if eval test \${$cacheid+y} 4786 + then : 4787 + printf %s "(cached) " >&6 4788 + else $as_nop 4640 4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4641 4790 /* end confdefs.h. */ 4642 4791 int i; 4643 4792 int 4644 - main () 4793 + main (void) 4645 4794 { 4646 4795 4647 4796 ; 4648 4797 return 0; 4649 4798 } 4650 4799 _ACEOF 4651 - if ac_fn_c_try_link "$LINENO"; then : 4800 + if ac_fn_c_try_link "$LINENO" 4801 + then : 4652 4802 eval $cacheid=yes 4653 - else 4803 + else $as_nop 4654 4804 eval $cacheid=no 4655 4805 fi 4656 - rm -f core conftest.err conftest.$ac_objext \ 4806 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4657 4807 conftest$ac_exeext conftest.$ac_ext 4658 4808 fi 4659 4809 ··· 4661 4811 CFLAGS="$xorg_testset_save_CFLAGS" 4662 4812 4663 4813 eval supported=\$$cacheid 4664 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4665 - $as_echo "$supported" >&6; } 4814 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4815 + printf "%s\n" "$supported" >&6; } 4666 4816 if test "$supported" = "yes" ; then 4667 4817 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4668 4818 found="yes" ··· 4687 4837 4688 4838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4689 4839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4690 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4691 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4692 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4693 - $as_echo_n "(cached) " >&6 4694 - else 4840 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4841 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4842 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4843 + then : 4844 + printf %s "(cached) " >&6 4845 + else $as_nop 4695 4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4696 4847 /* end confdefs.h. */ 4697 4848 int i; 4698 4849 _ACEOF 4699 - if ac_fn_c_try_compile "$LINENO"; then : 4850 + if ac_fn_c_try_compile "$LINENO" 4851 + then : 4700 4852 xorg_cv_cc_flag_unknown_warning_option=yes 4701 - else 4853 + else $as_nop 4702 4854 xorg_cv_cc_flag_unknown_warning_option=no 4703 4855 fi 4704 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4856 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4705 4857 fi 4706 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4707 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4858 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4859 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4708 4860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4709 4861 CFLAGS="$xorg_testset_save_CFLAGS" 4710 4862 fi ··· 4714 4866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4715 4867 fi 4716 4868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4717 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4718 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4719 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4720 - $as_echo_n "(cached) " >&6 4721 - else 4869 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4870 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4871 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4872 + then : 4873 + printf %s "(cached) " >&6 4874 + else $as_nop 4722 4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723 4876 /* end confdefs.h. */ 4724 4877 int i; 4725 4878 _ACEOF 4726 - if ac_fn_c_try_compile "$LINENO"; then : 4879 + if ac_fn_c_try_compile "$LINENO" 4880 + then : 4727 4881 xorg_cv_cc_flag_unused_command_line_argument=yes 4728 - else 4882 + else $as_nop 4729 4883 xorg_cv_cc_flag_unused_command_line_argument=no 4730 4884 fi 4731 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4885 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4732 4886 fi 4733 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4734 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4887 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4888 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4735 4889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4736 4890 CFLAGS="$xorg_testset_save_CFLAGS" 4737 4891 fi ··· 4749 4903 4750 4904 CFLAGS="$CFLAGS -Wpointer-arith" 4751 4905 4752 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4753 - $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4906 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4907 + printf %s "checking if $CC supports -Wpointer-arith... " >&6; } 4754 4908 cacheid=xorg_cv_cc_flag__Wpointer_arith 4755 - if eval \${$cacheid+:} false; then : 4756 - $as_echo_n "(cached) " >&6 4757 - else 4909 + if eval test \${$cacheid+y} 4910 + then : 4911 + printf %s "(cached) " >&6 4912 + else $as_nop 4758 4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4759 4914 /* end confdefs.h. */ 4760 4915 int i; 4761 4916 int 4762 - main () 4917 + main (void) 4763 4918 { 4764 4919 4765 4920 ; 4766 4921 return 0; 4767 4922 } 4768 4923 _ACEOF 4769 - if ac_fn_c_try_link "$LINENO"; then : 4924 + if ac_fn_c_try_link "$LINENO" 4925 + then : 4770 4926 eval $cacheid=yes 4771 - else 4927 + else $as_nop 4772 4928 eval $cacheid=no 4773 4929 fi 4774 - rm -f core conftest.err conftest.$ac_objext \ 4930 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4775 4931 conftest$ac_exeext conftest.$ac_ext 4776 4932 fi 4777 4933 ··· 4779 4935 CFLAGS="$xorg_testset_save_CFLAGS" 4780 4936 4781 4937 eval supported=\$$cacheid 4782 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4783 - $as_echo "$supported" >&6; } 4938 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4939 + printf "%s\n" "$supported" >&6; } 4784 4940 if test "$supported" = "yes" ; then 4785 4941 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4786 4942 found="yes" ··· 4805 4961 4806 4962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4807 4963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4808 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4809 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4810 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4811 - $as_echo_n "(cached) " >&6 4812 - else 4964 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4965 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4966 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 4967 + then : 4968 + printf %s "(cached) " >&6 4969 + else $as_nop 4813 4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4814 4971 /* end confdefs.h. */ 4815 4972 int i; 4816 4973 _ACEOF 4817 - if ac_fn_c_try_compile "$LINENO"; then : 4974 + if ac_fn_c_try_compile "$LINENO" 4975 + then : 4818 4976 xorg_cv_cc_flag_unknown_warning_option=yes 4819 - else 4977 + else $as_nop 4820 4978 xorg_cv_cc_flag_unknown_warning_option=no 4821 4979 fi 4822 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4980 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4823 4981 fi 4824 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4825 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4982 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4983 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4826 4984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4827 4985 CFLAGS="$xorg_testset_save_CFLAGS" 4828 4986 fi ··· 4832 4990 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4833 4991 fi 4834 4992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4835 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4836 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4837 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4838 - $as_echo_n "(cached) " >&6 4839 - else 4993 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4994 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4995 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 4996 + then : 4997 + printf %s "(cached) " >&6 4998 + else $as_nop 4840 4999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4841 5000 /* end confdefs.h. */ 4842 5001 int i; 4843 5002 _ACEOF 4844 - if ac_fn_c_try_compile "$LINENO"; then : 5003 + if ac_fn_c_try_compile "$LINENO" 5004 + then : 4845 5005 xorg_cv_cc_flag_unused_command_line_argument=yes 4846 - else 5006 + else $as_nop 4847 5007 xorg_cv_cc_flag_unused_command_line_argument=no 4848 5008 fi 4849 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5009 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4850 5010 fi 4851 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4852 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5011 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5012 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4853 5013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4854 5014 CFLAGS="$xorg_testset_save_CFLAGS" 4855 5015 fi ··· 4867 5027 4868 5028 CFLAGS="$CFLAGS -Wmissing-declarations" 4869 5029 4870 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 4871 - $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5030 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5031 + printf %s "checking if $CC supports -Wmissing-declarations... " >&6; } 4872 5032 cacheid=xorg_cv_cc_flag__Wmissing_declarations 4873 - if eval \${$cacheid+:} false; then : 4874 - $as_echo_n "(cached) " >&6 4875 - else 5033 + if eval test \${$cacheid+y} 5034 + then : 5035 + printf %s "(cached) " >&6 5036 + else $as_nop 4876 5037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4877 5038 /* end confdefs.h. */ 4878 5039 int i; 4879 5040 int 4880 - main () 5041 + main (void) 4881 5042 { 4882 5043 4883 5044 ; 4884 5045 return 0; 4885 5046 } 4886 5047 _ACEOF 4887 - if ac_fn_c_try_link "$LINENO"; then : 5048 + if ac_fn_c_try_link "$LINENO" 5049 + then : 4888 5050 eval $cacheid=yes 4889 - else 5051 + else $as_nop 4890 5052 eval $cacheid=no 4891 5053 fi 4892 - rm -f core conftest.err conftest.$ac_objext \ 5054 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 4893 5055 conftest$ac_exeext conftest.$ac_ext 4894 5056 fi 4895 5057 ··· 4897 5059 CFLAGS="$xorg_testset_save_CFLAGS" 4898 5060 4899 5061 eval supported=\$$cacheid 4900 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4901 - $as_echo "$supported" >&6; } 5062 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5063 + printf "%s\n" "$supported" >&6; } 4902 5064 if test "$supported" = "yes" ; then 4903 5065 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 4904 5066 found="yes" ··· 4923 5085 4924 5086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4925 5087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4926 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4927 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4928 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4929 - $as_echo_n "(cached) " >&6 4930 - else 5088 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5089 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5090 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5091 + then : 5092 + printf %s "(cached) " >&6 5093 + else $as_nop 4931 5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4932 5095 /* end confdefs.h. */ 4933 5096 int i; 4934 5097 _ACEOF 4935 - if ac_fn_c_try_compile "$LINENO"; then : 5098 + if ac_fn_c_try_compile "$LINENO" 5099 + then : 4936 5100 xorg_cv_cc_flag_unknown_warning_option=yes 4937 - else 5101 + else $as_nop 4938 5102 xorg_cv_cc_flag_unknown_warning_option=no 4939 5103 fi 4940 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5104 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4941 5105 fi 4942 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4943 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5106 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5107 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4944 5108 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4945 5109 CFLAGS="$xorg_testset_save_CFLAGS" 4946 5110 fi ··· 4950 5114 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4951 5115 fi 4952 5116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4953 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4954 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4955 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4956 - $as_echo_n "(cached) " >&6 4957 - else 5117 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5118 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5119 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5120 + then : 5121 + printf %s "(cached) " >&6 5122 + else $as_nop 4958 5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4959 5124 /* end confdefs.h. */ 4960 5125 int i; 4961 5126 _ACEOF 4962 - if ac_fn_c_try_compile "$LINENO"; then : 5127 + if ac_fn_c_try_compile "$LINENO" 5128 + then : 4963 5129 xorg_cv_cc_flag_unused_command_line_argument=yes 4964 - else 5130 + else $as_nop 4965 5131 xorg_cv_cc_flag_unused_command_line_argument=no 4966 5132 fi 4967 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5133 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4968 5134 fi 4969 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4970 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5135 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5136 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4971 5137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4972 5138 CFLAGS="$xorg_testset_save_CFLAGS" 4973 5139 fi ··· 4985 5151 4986 5152 CFLAGS="$CFLAGS -Wformat=2" 4987 5153 4988 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 4989 - $as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5154 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5155 + printf %s "checking if $CC supports -Wformat=2... " >&6; } 4990 5156 cacheid=xorg_cv_cc_flag__Wformat_2 4991 - if eval \${$cacheid+:} false; then : 4992 - $as_echo_n "(cached) " >&6 4993 - else 5157 + if eval test \${$cacheid+y} 5158 + then : 5159 + printf %s "(cached) " >&6 5160 + else $as_nop 4994 5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4995 5162 /* end confdefs.h. */ 4996 5163 int i; 4997 5164 int 4998 - main () 5165 + main (void) 4999 5166 { 5000 5167 5001 5168 ; 5002 5169 return 0; 5003 5170 } 5004 5171 _ACEOF 5005 - if ac_fn_c_try_link "$LINENO"; then : 5172 + if ac_fn_c_try_link "$LINENO" 5173 + then : 5006 5174 eval $cacheid=yes 5007 - else 5175 + else $as_nop 5008 5176 eval $cacheid=no 5009 5177 fi 5010 - rm -f core conftest.err conftest.$ac_objext \ 5178 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5011 5179 conftest$ac_exeext conftest.$ac_ext 5012 5180 fi 5013 5181 ··· 5015 5183 CFLAGS="$xorg_testset_save_CFLAGS" 5016 5184 5017 5185 eval supported=\$$cacheid 5018 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5019 - $as_echo "$supported" >&6; } 5186 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5187 + printf "%s\n" "$supported" >&6; } 5020 5188 if test "$supported" = "yes" ; then 5021 5189 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5022 5190 found="yes" ··· 5034 5202 5035 5203 CFLAGS="$CFLAGS -Wformat" 5036 5204 5037 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5038 - $as_echo_n "checking if $CC supports -Wformat... " >&6; } 5205 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5206 + printf %s "checking if $CC supports -Wformat... " >&6; } 5039 5207 cacheid=xorg_cv_cc_flag__Wformat 5040 - if eval \${$cacheid+:} false; then : 5041 - $as_echo_n "(cached) " >&6 5042 - else 5208 + if eval test \${$cacheid+y} 5209 + then : 5210 + printf %s "(cached) " >&6 5211 + else $as_nop 5043 5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044 5213 /* end confdefs.h. */ 5045 5214 int i; 5046 5215 int 5047 - main () 5216 + main (void) 5048 5217 { 5049 5218 5050 5219 ; 5051 5220 return 0; 5052 5221 } 5053 5222 _ACEOF 5054 - if ac_fn_c_try_link "$LINENO"; then : 5223 + if ac_fn_c_try_link "$LINENO" 5224 + then : 5055 5225 eval $cacheid=yes 5056 - else 5226 + else $as_nop 5057 5227 eval $cacheid=no 5058 5228 fi 5059 - rm -f core conftest.err conftest.$ac_objext \ 5229 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5060 5230 conftest$ac_exeext conftest.$ac_ext 5061 5231 fi 5062 5232 ··· 5064 5234 CFLAGS="$xorg_testset_save_CFLAGS" 5065 5235 5066 5236 eval supported=\$$cacheid 5067 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5068 - $as_echo "$supported" >&6; } 5237 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5238 + printf "%s\n" "$supported" >&6; } 5069 5239 if test "$supported" = "yes" ; then 5070 5240 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5071 5241 found="yes" ··· 5092 5262 5093 5263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5094 5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5095 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5096 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5097 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5098 - $as_echo_n "(cached) " >&6 5099 - else 5265 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5266 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5267 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5268 + then : 5269 + printf %s "(cached) " >&6 5270 + else $as_nop 5100 5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5101 5272 /* end confdefs.h. */ 5102 5273 int i; 5103 5274 _ACEOF 5104 - if ac_fn_c_try_compile "$LINENO"; then : 5275 + if ac_fn_c_try_compile "$LINENO" 5276 + then : 5105 5277 xorg_cv_cc_flag_unknown_warning_option=yes 5106 - else 5278 + else $as_nop 5107 5279 xorg_cv_cc_flag_unknown_warning_option=no 5108 5280 fi 5109 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5281 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5110 5282 fi 5111 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5112 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5283 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5284 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5113 5285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5114 5286 CFLAGS="$xorg_testset_save_CFLAGS" 5115 5287 fi ··· 5119 5291 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5120 5292 fi 5121 5293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5122 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5123 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5124 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5125 - $as_echo_n "(cached) " >&6 5126 - else 5294 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5295 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5296 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5297 + then : 5298 + printf %s "(cached) " >&6 5299 + else $as_nop 5127 5300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5128 5301 /* end confdefs.h. */ 5129 5302 int i; 5130 5303 _ACEOF 5131 - if ac_fn_c_try_compile "$LINENO"; then : 5304 + if ac_fn_c_try_compile "$LINENO" 5305 + then : 5132 5306 xorg_cv_cc_flag_unused_command_line_argument=yes 5133 - else 5307 + else $as_nop 5134 5308 xorg_cv_cc_flag_unused_command_line_argument=no 5135 5309 fi 5136 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5310 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5137 5311 fi 5138 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5139 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5312 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5313 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5140 5314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5141 5315 CFLAGS="$xorg_testset_save_CFLAGS" 5142 5316 fi ··· 5154 5328 5155 5329 CFLAGS="$CFLAGS -Wstrict-prototypes" 5156 5330 5157 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5158 - $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5331 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5332 + printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; } 5159 5333 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5160 - if eval \${$cacheid+:} false; then : 5161 - $as_echo_n "(cached) " >&6 5162 - else 5334 + if eval test \${$cacheid+y} 5335 + then : 5336 + printf %s "(cached) " >&6 5337 + else $as_nop 5163 5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5164 5339 /* end confdefs.h. */ 5165 5340 int i; 5166 5341 int 5167 - main () 5342 + main (void) 5168 5343 { 5169 5344 5170 5345 ; 5171 5346 return 0; 5172 5347 } 5173 5348 _ACEOF 5174 - if ac_fn_c_try_link "$LINENO"; then : 5349 + if ac_fn_c_try_link "$LINENO" 5350 + then : 5175 5351 eval $cacheid=yes 5176 - else 5352 + else $as_nop 5177 5353 eval $cacheid=no 5178 5354 fi 5179 - rm -f core conftest.err conftest.$ac_objext \ 5355 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5180 5356 conftest$ac_exeext conftest.$ac_ext 5181 5357 fi 5182 5358 ··· 5184 5360 CFLAGS="$xorg_testset_save_CFLAGS" 5185 5361 5186 5362 eval supported=\$$cacheid 5187 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5188 - $as_echo "$supported" >&6; } 5363 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5364 + printf "%s\n" "$supported" >&6; } 5189 5365 if test "$supported" = "yes" ; then 5190 5366 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5191 5367 found="yes" ··· 5210 5386 5211 5387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5212 5388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5213 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5214 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5215 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5216 - $as_echo_n "(cached) " >&6 5217 - else 5389 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5390 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5391 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5392 + then : 5393 + printf %s "(cached) " >&6 5394 + else $as_nop 5218 5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5219 5396 /* end confdefs.h. */ 5220 5397 int i; 5221 5398 _ACEOF 5222 - if ac_fn_c_try_compile "$LINENO"; then : 5399 + if ac_fn_c_try_compile "$LINENO" 5400 + then : 5223 5401 xorg_cv_cc_flag_unknown_warning_option=yes 5224 - else 5402 + else $as_nop 5225 5403 xorg_cv_cc_flag_unknown_warning_option=no 5226 5404 fi 5227 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5405 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5228 5406 fi 5229 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5230 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5407 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5408 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5231 5409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5232 5410 CFLAGS="$xorg_testset_save_CFLAGS" 5233 5411 fi ··· 5237 5415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5238 5416 fi 5239 5417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5240 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5241 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5242 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5243 - $as_echo_n "(cached) " >&6 5244 - else 5418 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5419 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5420 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5421 + then : 5422 + printf %s "(cached) " >&6 5423 + else $as_nop 5245 5424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5246 5425 /* end confdefs.h. */ 5247 5426 int i; 5248 5427 _ACEOF 5249 - if ac_fn_c_try_compile "$LINENO"; then : 5428 + if ac_fn_c_try_compile "$LINENO" 5429 + then : 5250 5430 xorg_cv_cc_flag_unused_command_line_argument=yes 5251 - else 5431 + else $as_nop 5252 5432 xorg_cv_cc_flag_unused_command_line_argument=no 5253 5433 fi 5254 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5434 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5255 5435 fi 5256 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5257 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5436 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5437 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5258 5438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5259 5439 CFLAGS="$xorg_testset_save_CFLAGS" 5260 5440 fi ··· 5272 5452 5273 5453 CFLAGS="$CFLAGS -Wmissing-prototypes" 5274 5454 5275 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5276 - $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5455 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5456 + printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; } 5277 5457 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5278 - if eval \${$cacheid+:} false; then : 5279 - $as_echo_n "(cached) " >&6 5280 - else 5458 + if eval test \${$cacheid+y} 5459 + then : 5460 + printf %s "(cached) " >&6 5461 + else $as_nop 5281 5462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282 5463 /* end confdefs.h. */ 5283 5464 int i; 5284 5465 int 5285 - main () 5466 + main (void) 5286 5467 { 5287 5468 5288 5469 ; 5289 5470 return 0; 5290 5471 } 5291 5472 _ACEOF 5292 - if ac_fn_c_try_link "$LINENO"; then : 5473 + if ac_fn_c_try_link "$LINENO" 5474 + then : 5293 5475 eval $cacheid=yes 5294 - else 5476 + else $as_nop 5295 5477 eval $cacheid=no 5296 5478 fi 5297 - rm -f core conftest.err conftest.$ac_objext \ 5479 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5298 5480 conftest$ac_exeext conftest.$ac_ext 5299 5481 fi 5300 5482 ··· 5302 5484 CFLAGS="$xorg_testset_save_CFLAGS" 5303 5485 5304 5486 eval supported=\$$cacheid 5305 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5306 - $as_echo "$supported" >&6; } 5487 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5488 + printf "%s\n" "$supported" >&6; } 5307 5489 if test "$supported" = "yes" ; then 5308 5490 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5309 5491 found="yes" ··· 5328 5510 5329 5511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5330 5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5331 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5332 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5333 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5334 - $as_echo_n "(cached) " >&6 5335 - else 5513 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5514 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5515 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5516 + then : 5517 + printf %s "(cached) " >&6 5518 + else $as_nop 5336 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5337 5520 /* end confdefs.h. */ 5338 5521 int i; 5339 5522 _ACEOF 5340 - if ac_fn_c_try_compile "$LINENO"; then : 5523 + if ac_fn_c_try_compile "$LINENO" 5524 + then : 5341 5525 xorg_cv_cc_flag_unknown_warning_option=yes 5342 - else 5526 + else $as_nop 5343 5527 xorg_cv_cc_flag_unknown_warning_option=no 5344 5528 fi 5345 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5529 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5346 5530 fi 5347 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5348 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5531 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5532 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5349 5533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5350 5534 CFLAGS="$xorg_testset_save_CFLAGS" 5351 5535 fi ··· 5355 5539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5356 5540 fi 5357 5541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5358 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5359 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5360 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5361 - $as_echo_n "(cached) " >&6 5362 - else 5542 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5543 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5544 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5545 + then : 5546 + printf %s "(cached) " >&6 5547 + else $as_nop 5363 5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5364 5549 /* end confdefs.h. */ 5365 5550 int i; 5366 5551 _ACEOF 5367 - if ac_fn_c_try_compile "$LINENO"; then : 5552 + if ac_fn_c_try_compile "$LINENO" 5553 + then : 5368 5554 xorg_cv_cc_flag_unused_command_line_argument=yes 5369 - else 5555 + else $as_nop 5370 5556 xorg_cv_cc_flag_unused_command_line_argument=no 5371 5557 fi 5372 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5558 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5373 5559 fi 5374 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5375 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5560 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5561 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5376 5562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5377 5563 CFLAGS="$xorg_testset_save_CFLAGS" 5378 5564 fi ··· 5390 5576 5391 5577 CFLAGS="$CFLAGS -Wnested-externs" 5392 5578 5393 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5394 - $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5579 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5580 + printf %s "checking if $CC supports -Wnested-externs... " >&6; } 5395 5581 cacheid=xorg_cv_cc_flag__Wnested_externs 5396 - if eval \${$cacheid+:} false; then : 5397 - $as_echo_n "(cached) " >&6 5398 - else 5582 + if eval test \${$cacheid+y} 5583 + then : 5584 + printf %s "(cached) " >&6 5585 + else $as_nop 5399 5586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5400 5587 /* end confdefs.h. */ 5401 5588 int i; 5402 5589 int 5403 - main () 5590 + main (void) 5404 5591 { 5405 5592 5406 5593 ; 5407 5594 return 0; 5408 5595 } 5409 5596 _ACEOF 5410 - if ac_fn_c_try_link "$LINENO"; then : 5597 + if ac_fn_c_try_link "$LINENO" 5598 + then : 5411 5599 eval $cacheid=yes 5412 - else 5600 + else $as_nop 5413 5601 eval $cacheid=no 5414 5602 fi 5415 - rm -f core conftest.err conftest.$ac_objext \ 5603 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5416 5604 conftest$ac_exeext conftest.$ac_ext 5417 5605 fi 5418 5606 ··· 5420 5608 CFLAGS="$xorg_testset_save_CFLAGS" 5421 5609 5422 5610 eval supported=\$$cacheid 5423 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5424 - $as_echo "$supported" >&6; } 5611 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5612 + printf "%s\n" "$supported" >&6; } 5425 5613 if test "$supported" = "yes" ; then 5426 5614 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5427 5615 found="yes" ··· 5446 5634 5447 5635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5448 5636 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5449 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5450 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5451 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5452 - $as_echo_n "(cached) " >&6 5453 - else 5637 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5638 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5639 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5640 + then : 5641 + printf %s "(cached) " >&6 5642 + else $as_nop 5454 5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5455 5644 /* end confdefs.h. */ 5456 5645 int i; 5457 5646 _ACEOF 5458 - if ac_fn_c_try_compile "$LINENO"; then : 5647 + if ac_fn_c_try_compile "$LINENO" 5648 + then : 5459 5649 xorg_cv_cc_flag_unknown_warning_option=yes 5460 - else 5650 + else $as_nop 5461 5651 xorg_cv_cc_flag_unknown_warning_option=no 5462 5652 fi 5463 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5653 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5464 5654 fi 5465 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5466 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5655 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5656 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5467 5657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5468 5658 CFLAGS="$xorg_testset_save_CFLAGS" 5469 5659 fi ··· 5473 5663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5474 5664 fi 5475 5665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5476 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5477 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5478 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5479 - $as_echo_n "(cached) " >&6 5480 - else 5666 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5667 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5668 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5669 + then : 5670 + printf %s "(cached) " >&6 5671 + else $as_nop 5481 5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5482 5673 /* end confdefs.h. */ 5483 5674 int i; 5484 5675 _ACEOF 5485 - if ac_fn_c_try_compile "$LINENO"; then : 5676 + if ac_fn_c_try_compile "$LINENO" 5677 + then : 5486 5678 xorg_cv_cc_flag_unused_command_line_argument=yes 5487 - else 5679 + else $as_nop 5488 5680 xorg_cv_cc_flag_unused_command_line_argument=no 5489 5681 fi 5490 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5682 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5491 5683 fi 5492 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5493 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5684 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5685 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5494 5686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5495 5687 CFLAGS="$xorg_testset_save_CFLAGS" 5496 5688 fi ··· 5508 5700 5509 5701 CFLAGS="$CFLAGS -Wbad-function-cast" 5510 5702 5511 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5512 - $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5703 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5704 + printf %s "checking if $CC supports -Wbad-function-cast... " >&6; } 5513 5705 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5514 - if eval \${$cacheid+:} false; then : 5515 - $as_echo_n "(cached) " >&6 5516 - else 5706 + if eval test \${$cacheid+y} 5707 + then : 5708 + printf %s "(cached) " >&6 5709 + else $as_nop 5517 5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5518 5711 /* end confdefs.h. */ 5519 5712 int i; 5520 5713 int 5521 - main () 5714 + main (void) 5522 5715 { 5523 5716 5524 5717 ; 5525 5718 return 0; 5526 5719 } 5527 5720 _ACEOF 5528 - if ac_fn_c_try_link "$LINENO"; then : 5721 + if ac_fn_c_try_link "$LINENO" 5722 + then : 5529 5723 eval $cacheid=yes 5530 - else 5724 + else $as_nop 5531 5725 eval $cacheid=no 5532 5726 fi 5533 - rm -f core conftest.err conftest.$ac_objext \ 5727 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5534 5728 conftest$ac_exeext conftest.$ac_ext 5535 5729 fi 5536 5730 ··· 5538 5732 CFLAGS="$xorg_testset_save_CFLAGS" 5539 5733 5540 5734 eval supported=\$$cacheid 5541 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5542 - $as_echo "$supported" >&6; } 5735 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5736 + printf "%s\n" "$supported" >&6; } 5543 5737 if test "$supported" = "yes" ; then 5544 5738 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5545 5739 found="yes" ··· 5564 5758 5565 5759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5566 5760 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5567 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5568 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5569 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5570 - $as_echo_n "(cached) " >&6 5571 - else 5761 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5762 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5763 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5764 + then : 5765 + printf %s "(cached) " >&6 5766 + else $as_nop 5572 5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5573 5768 /* end confdefs.h. */ 5574 5769 int i; 5575 5770 _ACEOF 5576 - if ac_fn_c_try_compile "$LINENO"; then : 5771 + if ac_fn_c_try_compile "$LINENO" 5772 + then : 5577 5773 xorg_cv_cc_flag_unknown_warning_option=yes 5578 - else 5774 + else $as_nop 5579 5775 xorg_cv_cc_flag_unknown_warning_option=no 5580 5776 fi 5581 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5777 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5582 5778 fi 5583 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5584 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5779 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5780 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5585 5781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5586 5782 CFLAGS="$xorg_testset_save_CFLAGS" 5587 5783 fi ··· 5591 5787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5592 5788 fi 5593 5789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5594 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5595 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5596 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5597 - $as_echo_n "(cached) " >&6 5598 - else 5790 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5791 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5792 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5793 + then : 5794 + printf %s "(cached) " >&6 5795 + else $as_nop 5599 5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5600 5797 /* end confdefs.h. */ 5601 5798 int i; 5602 5799 _ACEOF 5603 - if ac_fn_c_try_compile "$LINENO"; then : 5800 + if ac_fn_c_try_compile "$LINENO" 5801 + then : 5604 5802 xorg_cv_cc_flag_unused_command_line_argument=yes 5605 - else 5803 + else $as_nop 5606 5804 xorg_cv_cc_flag_unused_command_line_argument=no 5607 5805 fi 5608 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5806 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5609 5807 fi 5610 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5611 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5808 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5809 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5612 5810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5613 5811 CFLAGS="$xorg_testset_save_CFLAGS" 5614 5812 fi ··· 5626 5824 5627 5825 CFLAGS="$CFLAGS -Wold-style-definition" 5628 5826 5629 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5630 - $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5827 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5828 + printf %s "checking if $CC supports -Wold-style-definition... " >&6; } 5631 5829 cacheid=xorg_cv_cc_flag__Wold_style_definition 5632 - if eval \${$cacheid+:} false; then : 5633 - $as_echo_n "(cached) " >&6 5634 - else 5830 + if eval test \${$cacheid+y} 5831 + then : 5832 + printf %s "(cached) " >&6 5833 + else $as_nop 5635 5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5636 5835 /* end confdefs.h. */ 5637 5836 int i; 5638 5837 int 5639 - main () 5838 + main (void) 5640 5839 { 5641 5840 5642 5841 ; 5643 5842 return 0; 5644 5843 } 5645 5844 _ACEOF 5646 - if ac_fn_c_try_link "$LINENO"; then : 5845 + if ac_fn_c_try_link "$LINENO" 5846 + then : 5647 5847 eval $cacheid=yes 5648 - else 5848 + else $as_nop 5649 5849 eval $cacheid=no 5650 5850 fi 5651 - rm -f core conftest.err conftest.$ac_objext \ 5851 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5652 5852 conftest$ac_exeext conftest.$ac_ext 5653 5853 fi 5654 5854 ··· 5656 5856 CFLAGS="$xorg_testset_save_CFLAGS" 5657 5857 5658 5858 eval supported=\$$cacheid 5659 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5660 - $as_echo "$supported" >&6; } 5859 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5860 + printf "%s\n" "$supported" >&6; } 5661 5861 if test "$supported" = "yes" ; then 5662 5862 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5663 5863 found="yes" ··· 5675 5875 5676 5876 CFLAGS="$CFLAGS -fd" 5677 5877 5678 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5679 - $as_echo_n "checking if $CC supports -fd... " >&6; } 5878 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5879 + printf %s "checking if $CC supports -fd... " >&6; } 5680 5880 cacheid=xorg_cv_cc_flag__fd 5681 - if eval \${$cacheid+:} false; then : 5682 - $as_echo_n "(cached) " >&6 5683 - else 5881 + if eval test \${$cacheid+y} 5882 + then : 5883 + printf %s "(cached) " >&6 5884 + else $as_nop 5684 5885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5685 5886 /* end confdefs.h. */ 5686 5887 int i; 5687 5888 int 5688 - main () 5889 + main (void) 5689 5890 { 5690 5891 5691 5892 ; 5692 5893 return 0; 5693 5894 } 5694 5895 _ACEOF 5695 - if ac_fn_c_try_link "$LINENO"; then : 5896 + if ac_fn_c_try_link "$LINENO" 5897 + then : 5696 5898 eval $cacheid=yes 5697 - else 5899 + else $as_nop 5698 5900 eval $cacheid=no 5699 5901 fi 5700 - rm -f core conftest.err conftest.$ac_objext \ 5902 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5701 5903 conftest$ac_exeext conftest.$ac_ext 5702 5904 fi 5703 5905 ··· 5705 5907 CFLAGS="$xorg_testset_save_CFLAGS" 5706 5908 5707 5909 eval supported=\$$cacheid 5708 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5709 - $as_echo "$supported" >&6; } 5910 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5911 + printf "%s\n" "$supported" >&6; } 5710 5912 if test "$supported" = "yes" ; then 5711 5913 BASE_CFLAGS="$BASE_CFLAGS -fd" 5712 5914 found="yes" ··· 5731 5933 5732 5934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5733 5935 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5734 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5735 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5736 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5737 - $as_echo_n "(cached) " >&6 5738 - else 5936 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5937 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5938 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 5939 + then : 5940 + printf %s "(cached) " >&6 5941 + else $as_nop 5739 5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5740 5943 /* end confdefs.h. */ 5741 5944 int i; 5742 5945 _ACEOF 5743 - if ac_fn_c_try_compile "$LINENO"; then : 5946 + if ac_fn_c_try_compile "$LINENO" 5947 + then : 5744 5948 xorg_cv_cc_flag_unknown_warning_option=yes 5745 - else 5949 + else $as_nop 5746 5950 xorg_cv_cc_flag_unknown_warning_option=no 5747 5951 fi 5748 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5952 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5749 5953 fi 5750 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5751 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5954 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5955 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5752 5956 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5753 5957 CFLAGS="$xorg_testset_save_CFLAGS" 5754 5958 fi ··· 5758 5962 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5759 5963 fi 5760 5964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5761 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5762 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5763 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5764 - $as_echo_n "(cached) " >&6 5765 - else 5965 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5966 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5967 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 5968 + then : 5969 + printf %s "(cached) " >&6 5970 + else $as_nop 5766 5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5767 5972 /* end confdefs.h. */ 5768 5973 int i; 5769 5974 _ACEOF 5770 - if ac_fn_c_try_compile "$LINENO"; then : 5975 + if ac_fn_c_try_compile "$LINENO" 5976 + then : 5771 5977 xorg_cv_cc_flag_unused_command_line_argument=yes 5772 - else 5978 + else $as_nop 5773 5979 xorg_cv_cc_flag_unused_command_line_argument=no 5774 5980 fi 5775 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5981 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5776 5982 fi 5777 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5778 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5983 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5984 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5779 5985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5780 5986 CFLAGS="$xorg_testset_save_CFLAGS" 5781 5987 fi ··· 5793 5999 5794 6000 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5795 6001 5796 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5797 - $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6002 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6003 + printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5798 6004 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5799 - if eval \${$cacheid+:} false; then : 5800 - $as_echo_n "(cached) " >&6 5801 - else 6005 + if eval test \${$cacheid+y} 6006 + then : 6007 + printf %s "(cached) " >&6 6008 + else $as_nop 5802 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5803 6010 /* end confdefs.h. */ 5804 6011 int i; 5805 6012 int 5806 - main () 6013 + main (void) 5807 6014 { 5808 6015 5809 6016 ; 5810 6017 return 0; 5811 6018 } 5812 6019 _ACEOF 5813 - if ac_fn_c_try_link "$LINENO"; then : 6020 + if ac_fn_c_try_link "$LINENO" 6021 + then : 5814 6022 eval $cacheid=yes 5815 - else 6023 + else $as_nop 5816 6024 eval $cacheid=no 5817 6025 fi 5818 - rm -f core conftest.err conftest.$ac_objext \ 6026 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5819 6027 conftest$ac_exeext conftest.$ac_ext 5820 6028 fi 5821 6029 ··· 5823 6031 CFLAGS="$xorg_testset_save_CFLAGS" 5824 6032 5825 6033 eval supported=\$$cacheid 5826 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5827 - $as_echo "$supported" >&6; } 6034 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6035 + printf "%s\n" "$supported" >&6; } 5828 6036 if test "$supported" = "yes" ; then 5829 6037 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5830 6038 found="yes" ··· 5853 6061 5854 6062 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5855 6063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5856 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5857 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5858 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5859 - $as_echo_n "(cached) " >&6 5860 - else 6064 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6065 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6066 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6067 + then : 6068 + printf %s "(cached) " >&6 6069 + else $as_nop 5861 6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5862 6071 /* end confdefs.h. */ 5863 6072 int i; 5864 6073 _ACEOF 5865 - if ac_fn_c_try_compile "$LINENO"; then : 6074 + if ac_fn_c_try_compile "$LINENO" 6075 + then : 5866 6076 xorg_cv_cc_flag_unknown_warning_option=yes 5867 - else 6077 + else $as_nop 5868 6078 xorg_cv_cc_flag_unknown_warning_option=no 5869 6079 fi 5870 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6080 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5871 6081 fi 5872 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5873 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6082 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6083 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5874 6084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5875 6085 CFLAGS="$xorg_testset_save_CFLAGS" 5876 6086 fi ··· 5880 6090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5881 6091 fi 5882 6092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5883 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5884 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5885 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5886 - $as_echo_n "(cached) " >&6 5887 - else 6093 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6094 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6095 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6096 + then : 6097 + printf %s "(cached) " >&6 6098 + else $as_nop 5888 6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5889 6100 /* end confdefs.h. */ 5890 6101 int i; 5891 6102 _ACEOF 5892 - if ac_fn_c_try_compile "$LINENO"; then : 6103 + if ac_fn_c_try_compile "$LINENO" 6104 + then : 5893 6105 xorg_cv_cc_flag_unused_command_line_argument=yes 5894 - else 6106 + else $as_nop 5895 6107 xorg_cv_cc_flag_unused_command_line_argument=no 5896 6108 fi 5897 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6109 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5898 6110 fi 5899 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5900 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6111 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6112 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5901 6113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5902 6114 CFLAGS="$xorg_testset_save_CFLAGS" 5903 6115 fi ··· 5915 6127 5916 6128 CFLAGS="$CFLAGS -Wunused" 5917 6129 5918 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 5919 - $as_echo_n "checking if $CC supports -Wunused... " >&6; } 6130 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6131 + printf %s "checking if $CC supports -Wunused... " >&6; } 5920 6132 cacheid=xorg_cv_cc_flag__Wunused 5921 - if eval \${$cacheid+:} false; then : 5922 - $as_echo_n "(cached) " >&6 5923 - else 6133 + if eval test \${$cacheid+y} 6134 + then : 6135 + printf %s "(cached) " >&6 6136 + else $as_nop 5924 6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5925 6138 /* end confdefs.h. */ 5926 6139 int i; 5927 6140 int 5928 - main () 6141 + main (void) 5929 6142 { 5930 6143 5931 6144 ; 5932 6145 return 0; 5933 6146 } 5934 6147 _ACEOF 5935 - if ac_fn_c_try_link "$LINENO"; then : 6148 + if ac_fn_c_try_link "$LINENO" 6149 + then : 5936 6150 eval $cacheid=yes 5937 - else 6151 + else $as_nop 5938 6152 eval $cacheid=no 5939 6153 fi 5940 - rm -f core conftest.err conftest.$ac_objext \ 6154 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 5941 6155 conftest$ac_exeext conftest.$ac_ext 5942 6156 fi 5943 6157 ··· 5945 6159 CFLAGS="$xorg_testset_save_CFLAGS" 5946 6160 5947 6161 eval supported=\$$cacheid 5948 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5949 - $as_echo "$supported" >&6; } 6162 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6163 + printf "%s\n" "$supported" >&6; } 5950 6164 if test "$supported" = "yes" ; then 5951 6165 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 5952 6166 found="yes" ··· 5971 6185 5972 6186 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5973 6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5974 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5975 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5976 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5977 - $as_echo_n "(cached) " >&6 5978 - else 6188 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6189 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6190 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6191 + then : 6192 + printf %s "(cached) " >&6 6193 + else $as_nop 5979 6194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5980 6195 /* end confdefs.h. */ 5981 6196 int i; 5982 6197 _ACEOF 5983 - if ac_fn_c_try_compile "$LINENO"; then : 6198 + if ac_fn_c_try_compile "$LINENO" 6199 + then : 5984 6200 xorg_cv_cc_flag_unknown_warning_option=yes 5985 - else 6201 + else $as_nop 5986 6202 xorg_cv_cc_flag_unknown_warning_option=no 5987 6203 fi 5988 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6204 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5989 6205 fi 5990 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5991 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6206 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6207 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5992 6208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5993 6209 CFLAGS="$xorg_testset_save_CFLAGS" 5994 6210 fi ··· 5998 6214 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5999 6215 fi 6000 6216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6001 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6002 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6003 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6004 - $as_echo_n "(cached) " >&6 6005 - else 6217 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6218 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6219 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6220 + then : 6221 + printf %s "(cached) " >&6 6222 + else $as_nop 6006 6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6007 6224 /* end confdefs.h. */ 6008 6225 int i; 6009 6226 _ACEOF 6010 - if ac_fn_c_try_compile "$LINENO"; then : 6227 + if ac_fn_c_try_compile "$LINENO" 6228 + then : 6011 6229 xorg_cv_cc_flag_unused_command_line_argument=yes 6012 - else 6230 + else $as_nop 6013 6231 xorg_cv_cc_flag_unused_command_line_argument=no 6014 6232 fi 6015 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6233 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6016 6234 fi 6017 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6018 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6235 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6236 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6019 6237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6020 6238 CFLAGS="$xorg_testset_save_CFLAGS" 6021 6239 fi ··· 6033 6251 6034 6252 CFLAGS="$CFLAGS -Wuninitialized" 6035 6253 6036 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6037 - $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6254 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6255 + printf %s "checking if $CC supports -Wuninitialized... " >&6; } 6038 6256 cacheid=xorg_cv_cc_flag__Wuninitialized 6039 - if eval \${$cacheid+:} false; then : 6040 - $as_echo_n "(cached) " >&6 6041 - else 6257 + if eval test \${$cacheid+y} 6258 + then : 6259 + printf %s "(cached) " >&6 6260 + else $as_nop 6042 6261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6043 6262 /* end confdefs.h. */ 6044 6263 int i; 6045 6264 int 6046 - main () 6265 + main (void) 6047 6266 { 6048 6267 6049 6268 ; 6050 6269 return 0; 6051 6270 } 6052 6271 _ACEOF 6053 - if ac_fn_c_try_link "$LINENO"; then : 6272 + if ac_fn_c_try_link "$LINENO" 6273 + then : 6054 6274 eval $cacheid=yes 6055 - else 6275 + else $as_nop 6056 6276 eval $cacheid=no 6057 6277 fi 6058 - rm -f core conftest.err conftest.$ac_objext \ 6278 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6059 6279 conftest$ac_exeext conftest.$ac_ext 6060 6280 fi 6061 6281 ··· 6063 6283 CFLAGS="$xorg_testset_save_CFLAGS" 6064 6284 6065 6285 eval supported=\$$cacheid 6066 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6067 - $as_echo "$supported" >&6; } 6286 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6287 + printf "%s\n" "$supported" >&6; } 6068 6288 if test "$supported" = "yes" ; then 6069 6289 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6070 6290 found="yes" ··· 6089 6309 6090 6310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6091 6311 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6092 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6093 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6094 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6095 - $as_echo_n "(cached) " >&6 6096 - else 6312 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6313 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6314 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6315 + then : 6316 + printf %s "(cached) " >&6 6317 + else $as_nop 6097 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6098 6319 /* end confdefs.h. */ 6099 6320 int i; 6100 6321 _ACEOF 6101 - if ac_fn_c_try_compile "$LINENO"; then : 6322 + if ac_fn_c_try_compile "$LINENO" 6323 + then : 6102 6324 xorg_cv_cc_flag_unknown_warning_option=yes 6103 - else 6325 + else $as_nop 6104 6326 xorg_cv_cc_flag_unknown_warning_option=no 6105 6327 fi 6106 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6328 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6107 6329 fi 6108 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6109 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6330 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6331 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6110 6332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6111 6333 CFLAGS="$xorg_testset_save_CFLAGS" 6112 6334 fi ··· 6116 6338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6117 6339 fi 6118 6340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6119 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6120 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6121 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6122 - $as_echo_n "(cached) " >&6 6123 - else 6341 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6342 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6343 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6344 + then : 6345 + printf %s "(cached) " >&6 6346 + else $as_nop 6124 6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6125 6348 /* end confdefs.h. */ 6126 6349 int i; 6127 6350 _ACEOF 6128 - if ac_fn_c_try_compile "$LINENO"; then : 6351 + if ac_fn_c_try_compile "$LINENO" 6352 + then : 6129 6353 xorg_cv_cc_flag_unused_command_line_argument=yes 6130 - else 6354 + else $as_nop 6131 6355 xorg_cv_cc_flag_unused_command_line_argument=no 6132 6356 fi 6133 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6357 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6134 6358 fi 6135 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6136 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6359 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6360 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6137 6361 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6138 6362 CFLAGS="$xorg_testset_save_CFLAGS" 6139 6363 fi ··· 6151 6375 6152 6376 CFLAGS="$CFLAGS -Wshadow" 6153 6377 6154 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6155 - $as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6378 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6379 + printf %s "checking if $CC supports -Wshadow... " >&6; } 6156 6380 cacheid=xorg_cv_cc_flag__Wshadow 6157 - if eval \${$cacheid+:} false; then : 6158 - $as_echo_n "(cached) " >&6 6159 - else 6381 + if eval test \${$cacheid+y} 6382 + then : 6383 + printf %s "(cached) " >&6 6384 + else $as_nop 6160 6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6161 6386 /* end confdefs.h. */ 6162 6387 int i; 6163 6388 int 6164 - main () 6389 + main (void) 6165 6390 { 6166 6391 6167 6392 ; 6168 6393 return 0; 6169 6394 } 6170 6395 _ACEOF 6171 - if ac_fn_c_try_link "$LINENO"; then : 6396 + if ac_fn_c_try_link "$LINENO" 6397 + then : 6172 6398 eval $cacheid=yes 6173 - else 6399 + else $as_nop 6174 6400 eval $cacheid=no 6175 6401 fi 6176 - rm -f core conftest.err conftest.$ac_objext \ 6402 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6177 6403 conftest$ac_exeext conftest.$ac_ext 6178 6404 fi 6179 6405 ··· 6181 6407 CFLAGS="$xorg_testset_save_CFLAGS" 6182 6408 6183 6409 eval supported=\$$cacheid 6184 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6185 - $as_echo "$supported" >&6; } 6410 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6411 + printf "%s\n" "$supported" >&6; } 6186 6412 if test "$supported" = "yes" ; then 6187 6413 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6188 6414 found="yes" ··· 6207 6433 6208 6434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6209 6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6210 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6211 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6212 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6213 - $as_echo_n "(cached) " >&6 6214 - else 6436 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6437 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6438 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6439 + then : 6440 + printf %s "(cached) " >&6 6441 + else $as_nop 6215 6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6216 6443 /* end confdefs.h. */ 6217 6444 int i; 6218 6445 _ACEOF 6219 - if ac_fn_c_try_compile "$LINENO"; then : 6446 + if ac_fn_c_try_compile "$LINENO" 6447 + then : 6220 6448 xorg_cv_cc_flag_unknown_warning_option=yes 6221 - else 6449 + else $as_nop 6222 6450 xorg_cv_cc_flag_unknown_warning_option=no 6223 6451 fi 6224 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6452 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6225 6453 fi 6226 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6227 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6454 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6455 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6228 6456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6229 6457 CFLAGS="$xorg_testset_save_CFLAGS" 6230 6458 fi ··· 6234 6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6235 6463 fi 6236 6464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6237 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6238 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6239 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6240 - $as_echo_n "(cached) " >&6 6241 - else 6465 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6466 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6467 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6468 + then : 6469 + printf %s "(cached) " >&6 6470 + else $as_nop 6242 6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6243 6472 /* end confdefs.h. */ 6244 6473 int i; 6245 6474 _ACEOF 6246 - if ac_fn_c_try_compile "$LINENO"; then : 6475 + if ac_fn_c_try_compile "$LINENO" 6476 + then : 6247 6477 xorg_cv_cc_flag_unused_command_line_argument=yes 6248 - else 6478 + else $as_nop 6249 6479 xorg_cv_cc_flag_unused_command_line_argument=no 6250 6480 fi 6251 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6481 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6252 6482 fi 6253 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6254 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6483 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6484 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6255 6485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6256 6486 CFLAGS="$xorg_testset_save_CFLAGS" 6257 6487 fi ··· 6269 6499 6270 6500 CFLAGS="$CFLAGS -Wmissing-noreturn" 6271 6501 6272 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6273 - $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6502 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6503 + printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; } 6274 6504 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6275 - if eval \${$cacheid+:} false; then : 6276 - $as_echo_n "(cached) " >&6 6277 - else 6505 + if eval test \${$cacheid+y} 6506 + then : 6507 + printf %s "(cached) " >&6 6508 + else $as_nop 6278 6509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6279 6510 /* end confdefs.h. */ 6280 6511 int i; 6281 6512 int 6282 - main () 6513 + main (void) 6283 6514 { 6284 6515 6285 6516 ; 6286 6517 return 0; 6287 6518 } 6288 6519 _ACEOF 6289 - if ac_fn_c_try_link "$LINENO"; then : 6520 + if ac_fn_c_try_link "$LINENO" 6521 + then : 6290 6522 eval $cacheid=yes 6291 - else 6523 + else $as_nop 6292 6524 eval $cacheid=no 6293 6525 fi 6294 - rm -f core conftest.err conftest.$ac_objext \ 6526 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6295 6527 conftest$ac_exeext conftest.$ac_ext 6296 6528 fi 6297 6529 ··· 6299 6531 CFLAGS="$xorg_testset_save_CFLAGS" 6300 6532 6301 6533 eval supported=\$$cacheid 6302 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6303 - $as_echo "$supported" >&6; } 6534 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6535 + printf "%s\n" "$supported" >&6; } 6304 6536 if test "$supported" = "yes" ; then 6305 6537 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6306 6538 found="yes" ··· 6325 6557 6326 6558 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6327 6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6328 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6329 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6330 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6331 - $as_echo_n "(cached) " >&6 6332 - else 6560 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6561 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6562 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6563 + then : 6564 + printf %s "(cached) " >&6 6565 + else $as_nop 6333 6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334 6567 /* end confdefs.h. */ 6335 6568 int i; 6336 6569 _ACEOF 6337 - if ac_fn_c_try_compile "$LINENO"; then : 6570 + if ac_fn_c_try_compile "$LINENO" 6571 + then : 6338 6572 xorg_cv_cc_flag_unknown_warning_option=yes 6339 - else 6573 + else $as_nop 6340 6574 xorg_cv_cc_flag_unknown_warning_option=no 6341 6575 fi 6342 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6576 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6343 6577 fi 6344 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6345 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6578 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6579 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6346 6580 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6347 6581 CFLAGS="$xorg_testset_save_CFLAGS" 6348 6582 fi ··· 6352 6586 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6353 6587 fi 6354 6588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6355 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6356 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6357 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6358 - $as_echo_n "(cached) " >&6 6359 - else 6589 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6590 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6591 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6592 + then : 6593 + printf %s "(cached) " >&6 6594 + else $as_nop 6360 6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6361 6596 /* end confdefs.h. */ 6362 6597 int i; 6363 6598 _ACEOF 6364 - if ac_fn_c_try_compile "$LINENO"; then : 6599 + if ac_fn_c_try_compile "$LINENO" 6600 + then : 6365 6601 xorg_cv_cc_flag_unused_command_line_argument=yes 6366 - else 6602 + else $as_nop 6367 6603 xorg_cv_cc_flag_unused_command_line_argument=no 6368 6604 fi 6369 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6605 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6370 6606 fi 6371 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6372 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6607 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6608 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6373 6609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6374 6610 CFLAGS="$xorg_testset_save_CFLAGS" 6375 6611 fi ··· 6387 6623 6388 6624 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6389 6625 6390 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6391 - $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6626 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6627 + printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6392 6628 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6393 - if eval \${$cacheid+:} false; then : 6394 - $as_echo_n "(cached) " >&6 6395 - else 6629 + if eval test \${$cacheid+y} 6630 + then : 6631 + printf %s "(cached) " >&6 6632 + else $as_nop 6396 6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6397 6634 /* end confdefs.h. */ 6398 6635 int i; 6399 6636 int 6400 - main () 6637 + main (void) 6401 6638 { 6402 6639 6403 6640 ; 6404 6641 return 0; 6405 6642 } 6406 6643 _ACEOF 6407 - if ac_fn_c_try_link "$LINENO"; then : 6644 + if ac_fn_c_try_link "$LINENO" 6645 + then : 6408 6646 eval $cacheid=yes 6409 - else 6647 + else $as_nop 6410 6648 eval $cacheid=no 6411 6649 fi 6412 - rm -f core conftest.err conftest.$ac_objext \ 6650 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6413 6651 conftest$ac_exeext conftest.$ac_ext 6414 6652 fi 6415 6653 ··· 6417 6655 CFLAGS="$xorg_testset_save_CFLAGS" 6418 6656 6419 6657 eval supported=\$$cacheid 6420 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6421 - $as_echo "$supported" >&6; } 6658 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6659 + printf "%s\n" "$supported" >&6; } 6422 6660 if test "$supported" = "yes" ; then 6423 6661 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6424 6662 found="yes" ··· 6444 6682 6445 6683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6446 6684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6447 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6448 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6449 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6450 - $as_echo_n "(cached) " >&6 6451 - else 6685 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6686 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6687 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6688 + then : 6689 + printf %s "(cached) " >&6 6690 + else $as_nop 6452 6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6453 6692 /* end confdefs.h. */ 6454 6693 int i; 6455 6694 _ACEOF 6456 - if ac_fn_c_try_compile "$LINENO"; then : 6695 + if ac_fn_c_try_compile "$LINENO" 6696 + then : 6457 6697 xorg_cv_cc_flag_unknown_warning_option=yes 6458 - else 6698 + else $as_nop 6459 6699 xorg_cv_cc_flag_unknown_warning_option=no 6460 6700 fi 6461 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6701 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6462 6702 fi 6463 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6464 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6703 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6704 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6465 6705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6466 6706 CFLAGS="$xorg_testset_save_CFLAGS" 6467 6707 fi ··· 6471 6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6472 6712 fi 6473 6713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6474 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6475 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6476 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6477 - $as_echo_n "(cached) " >&6 6478 - else 6714 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6715 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6716 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6717 + then : 6718 + printf %s "(cached) " >&6 6719 + else $as_nop 6479 6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6480 6721 /* end confdefs.h. */ 6481 6722 int i; 6482 6723 _ACEOF 6483 - if ac_fn_c_try_compile "$LINENO"; then : 6724 + if ac_fn_c_try_compile "$LINENO" 6725 + then : 6484 6726 xorg_cv_cc_flag_unused_command_line_argument=yes 6485 - else 6727 + else $as_nop 6486 6728 xorg_cv_cc_flag_unused_command_line_argument=no 6487 6729 fi 6488 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6730 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6489 6731 fi 6490 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6491 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6732 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6733 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6492 6734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6493 6735 CFLAGS="$xorg_testset_save_CFLAGS" 6494 6736 fi ··· 6506 6748 6507 6749 CFLAGS="$CFLAGS -Wlogical-op" 6508 6750 6509 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6510 - $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6751 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6752 + printf %s "checking if $CC supports -Wlogical-op... " >&6; } 6511 6753 cacheid=xorg_cv_cc_flag__Wlogical_op 6512 - if eval \${$cacheid+:} false; then : 6513 - $as_echo_n "(cached) " >&6 6514 - else 6754 + if eval test \${$cacheid+y} 6755 + then : 6756 + printf %s "(cached) " >&6 6757 + else $as_nop 6515 6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6516 6759 /* end confdefs.h. */ 6517 6760 int i; 6518 6761 int 6519 - main () 6762 + main (void) 6520 6763 { 6521 6764 6522 6765 ; 6523 6766 return 0; 6524 6767 } 6525 6768 _ACEOF 6526 - if ac_fn_c_try_link "$LINENO"; then : 6769 + if ac_fn_c_try_link "$LINENO" 6770 + then : 6527 6771 eval $cacheid=yes 6528 - else 6772 + else $as_nop 6529 6773 eval $cacheid=no 6530 6774 fi 6531 - rm -f core conftest.err conftest.$ac_objext \ 6775 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6532 6776 conftest$ac_exeext conftest.$ac_ext 6533 6777 fi 6534 6778 ··· 6536 6780 CFLAGS="$xorg_testset_save_CFLAGS" 6537 6781 6538 6782 eval supported=\$$cacheid 6539 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6540 - $as_echo "$supported" >&6; } 6783 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6784 + printf "%s\n" "$supported" >&6; } 6541 6785 if test "$supported" = "yes" ; then 6542 6786 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6543 6787 found="yes" ··· 6553 6797 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6554 6798 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6555 6799 6556 - # Turn some warnings into errors, so we don't accidently get successful builds 6800 + # Turn some warnings into errors, so we don't accidentally get successful builds 6557 6801 # when there are problems that should be fixed. 6558 6802 6559 6803 if test "x$SELECTIVE_WERROR" = "xyes" ; then ··· 6574 6818 6575 6819 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6576 6820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6577 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6578 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6579 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6580 - $as_echo_n "(cached) " >&6 6581 - else 6821 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6822 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6823 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6824 + then : 6825 + printf %s "(cached) " >&6 6826 + else $as_nop 6582 6827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6583 6828 /* end confdefs.h. */ 6584 6829 int i; 6585 6830 _ACEOF 6586 - if ac_fn_c_try_compile "$LINENO"; then : 6831 + if ac_fn_c_try_compile "$LINENO" 6832 + then : 6587 6833 xorg_cv_cc_flag_unknown_warning_option=yes 6588 - else 6834 + else $as_nop 6589 6835 xorg_cv_cc_flag_unknown_warning_option=no 6590 6836 fi 6591 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6837 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6592 6838 fi 6593 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6594 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6839 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6840 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6595 6841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6596 6842 CFLAGS="$xorg_testset_save_CFLAGS" 6597 6843 fi ··· 6601 6847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6602 6848 fi 6603 6849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6604 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6605 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6606 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6607 - $as_echo_n "(cached) " >&6 6608 - else 6850 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6851 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6852 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 6853 + then : 6854 + printf %s "(cached) " >&6 6855 + else $as_nop 6609 6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6610 6857 /* end confdefs.h. */ 6611 6858 int i; 6612 6859 _ACEOF 6613 - if ac_fn_c_try_compile "$LINENO"; then : 6860 + if ac_fn_c_try_compile "$LINENO" 6861 + then : 6614 6862 xorg_cv_cc_flag_unused_command_line_argument=yes 6615 - else 6863 + else $as_nop 6616 6864 xorg_cv_cc_flag_unused_command_line_argument=no 6617 6865 fi 6618 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6866 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6619 6867 fi 6620 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6621 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6868 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6869 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6622 6870 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6623 6871 CFLAGS="$xorg_testset_save_CFLAGS" 6624 6872 fi ··· 6636 6884 6637 6885 CFLAGS="$CFLAGS -Werror=implicit" 6638 6886 6639 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6640 - $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6887 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6888 + printf %s "checking if $CC supports -Werror=implicit... " >&6; } 6641 6889 cacheid=xorg_cv_cc_flag__Werror_implicit 6642 - if eval \${$cacheid+:} false; then : 6643 - $as_echo_n "(cached) " >&6 6644 - else 6890 + if eval test \${$cacheid+y} 6891 + then : 6892 + printf %s "(cached) " >&6 6893 + else $as_nop 6645 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646 6895 /* end confdefs.h. */ 6647 6896 int i; 6648 6897 int 6649 - main () 6898 + main (void) 6650 6899 { 6651 6900 6652 6901 ; 6653 6902 return 0; 6654 6903 } 6655 6904 _ACEOF 6656 - if ac_fn_c_try_link "$LINENO"; then : 6905 + if ac_fn_c_try_link "$LINENO" 6906 + then : 6657 6907 eval $cacheid=yes 6658 - else 6908 + else $as_nop 6659 6909 eval $cacheid=no 6660 6910 fi 6661 - rm -f core conftest.err conftest.$ac_objext \ 6911 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6662 6912 conftest$ac_exeext conftest.$ac_ext 6663 6913 fi 6664 6914 ··· 6666 6916 CFLAGS="$xorg_testset_save_CFLAGS" 6667 6917 6668 6918 eval supported=\$$cacheid 6669 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6670 - $as_echo "$supported" >&6; } 6919 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6920 + printf "%s\n" "$supported" >&6; } 6671 6921 if test "$supported" = "yes" ; then 6672 6922 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6673 6923 found="yes" ··· 6685 6935 6686 6936 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6687 6937 6688 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6689 - $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6938 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6939 + printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6690 6940 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6691 - if eval \${$cacheid+:} false; then : 6692 - $as_echo_n "(cached) " >&6 6693 - else 6941 + if eval test \${$cacheid+y} 6942 + then : 6943 + printf %s "(cached) " >&6 6944 + else $as_nop 6694 6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6695 6946 /* end confdefs.h. */ 6696 6947 int i; 6697 6948 int 6698 - main () 6949 + main (void) 6699 6950 { 6700 6951 6701 6952 ; 6702 6953 return 0; 6703 6954 } 6704 6955 _ACEOF 6705 - if ac_fn_c_try_link "$LINENO"; then : 6956 + if ac_fn_c_try_link "$LINENO" 6957 + then : 6706 6958 eval $cacheid=yes 6707 - else 6959 + else $as_nop 6708 6960 eval $cacheid=no 6709 6961 fi 6710 - rm -f core conftest.err conftest.$ac_objext \ 6962 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6711 6963 conftest$ac_exeext conftest.$ac_ext 6712 6964 fi 6713 6965 ··· 6715 6967 CFLAGS="$xorg_testset_save_CFLAGS" 6716 6968 6717 6969 eval supported=\$$cacheid 6718 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6719 - $as_echo "$supported" >&6; } 6970 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6971 + printf "%s\n" "$supported" >&6; } 6720 6972 if test "$supported" = "yes" ; then 6721 6973 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6722 6974 found="yes" ··· 6741 6993 6742 6994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6743 6995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6744 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6745 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6746 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6747 - $as_echo_n "(cached) " >&6 6748 - else 6996 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6997 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6998 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 6999 + then : 7000 + printf %s "(cached) " >&6 7001 + else $as_nop 6749 7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6750 7003 /* end confdefs.h. */ 6751 7004 int i; 6752 7005 _ACEOF 6753 - if ac_fn_c_try_compile "$LINENO"; then : 7006 + if ac_fn_c_try_compile "$LINENO" 7007 + then : 6754 7008 xorg_cv_cc_flag_unknown_warning_option=yes 6755 - else 7009 + else $as_nop 6756 7010 xorg_cv_cc_flag_unknown_warning_option=no 6757 7011 fi 6758 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7012 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6759 7013 fi 6760 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6761 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7014 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7015 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6762 7016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6763 7017 CFLAGS="$xorg_testset_save_CFLAGS" 6764 7018 fi ··· 6768 7022 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6769 7023 fi 6770 7024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6771 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6772 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6773 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6774 - $as_echo_n "(cached) " >&6 6775 - else 7025 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7026 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7027 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7028 + then : 7029 + printf %s "(cached) " >&6 7030 + else $as_nop 6776 7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6777 7032 /* end confdefs.h. */ 6778 7033 int i; 6779 7034 _ACEOF 6780 - if ac_fn_c_try_compile "$LINENO"; then : 7035 + if ac_fn_c_try_compile "$LINENO" 7036 + then : 6781 7037 xorg_cv_cc_flag_unused_command_line_argument=yes 6782 - else 7038 + else $as_nop 6783 7039 xorg_cv_cc_flag_unused_command_line_argument=no 6784 7040 fi 6785 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7041 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6786 7042 fi 6787 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6788 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7043 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7044 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6789 7045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6790 7046 CFLAGS="$xorg_testset_save_CFLAGS" 6791 7047 fi ··· 6803 7059 6804 7060 CFLAGS="$CFLAGS -Werror=nonnull" 6805 7061 6806 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 6807 - $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7062 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7063 + printf %s "checking if $CC supports -Werror=nonnull... " >&6; } 6808 7064 cacheid=xorg_cv_cc_flag__Werror_nonnull 6809 - if eval \${$cacheid+:} false; then : 6810 - $as_echo_n "(cached) " >&6 6811 - else 7065 + if eval test \${$cacheid+y} 7066 + then : 7067 + printf %s "(cached) " >&6 7068 + else $as_nop 6812 7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813 7070 /* end confdefs.h. */ 6814 7071 int i; 6815 7072 int 6816 - main () 7073 + main (void) 6817 7074 { 6818 7075 6819 7076 ; 6820 7077 return 0; 6821 7078 } 6822 7079 _ACEOF 6823 - if ac_fn_c_try_link "$LINENO"; then : 7080 + if ac_fn_c_try_link "$LINENO" 7081 + then : 6824 7082 eval $cacheid=yes 6825 - else 7083 + else $as_nop 6826 7084 eval $cacheid=no 6827 7085 fi 6828 - rm -f core conftest.err conftest.$ac_objext \ 7086 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6829 7087 conftest$ac_exeext conftest.$ac_ext 6830 7088 fi 6831 7089 ··· 6833 7091 CFLAGS="$xorg_testset_save_CFLAGS" 6834 7092 6835 7093 eval supported=\$$cacheid 6836 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6837 - $as_echo "$supported" >&6; } 7094 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7095 + printf "%s\n" "$supported" >&6; } 6838 7096 if test "$supported" = "yes" ; then 6839 7097 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 6840 7098 found="yes" ··· 6859 7117 6860 7118 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6861 7119 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6862 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6863 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6864 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6865 - $as_echo_n "(cached) " >&6 6866 - else 7120 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7121 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7122 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7123 + then : 7124 + printf %s "(cached) " >&6 7125 + else $as_nop 6867 7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6868 7127 /* end confdefs.h. */ 6869 7128 int i; 6870 7129 _ACEOF 6871 - if ac_fn_c_try_compile "$LINENO"; then : 7130 + if ac_fn_c_try_compile "$LINENO" 7131 + then : 6872 7132 xorg_cv_cc_flag_unknown_warning_option=yes 6873 - else 7133 + else $as_nop 6874 7134 xorg_cv_cc_flag_unknown_warning_option=no 6875 7135 fi 6876 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7136 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6877 7137 fi 6878 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6879 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7138 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7139 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6880 7140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6881 7141 CFLAGS="$xorg_testset_save_CFLAGS" 6882 7142 fi ··· 6886 7146 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6887 7147 fi 6888 7148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6889 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6890 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6891 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6892 - $as_echo_n "(cached) " >&6 6893 - else 7149 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7150 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7151 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7152 + then : 7153 + printf %s "(cached) " >&6 7154 + else $as_nop 6894 7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895 7156 /* end confdefs.h. */ 6896 7157 int i; 6897 7158 _ACEOF 6898 - if ac_fn_c_try_compile "$LINENO"; then : 7159 + if ac_fn_c_try_compile "$LINENO" 7160 + then : 6899 7161 xorg_cv_cc_flag_unused_command_line_argument=yes 6900 - else 7162 + else $as_nop 6901 7163 xorg_cv_cc_flag_unused_command_line_argument=no 6902 7164 fi 6903 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7165 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6904 7166 fi 6905 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6906 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7167 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7168 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6907 7169 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6908 7170 CFLAGS="$xorg_testset_save_CFLAGS" 6909 7171 fi ··· 6921 7183 6922 7184 CFLAGS="$CFLAGS -Werror=init-self" 6923 7185 6924 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 6925 - $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7186 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7187 + printf %s "checking if $CC supports -Werror=init-self... " >&6; } 6926 7188 cacheid=xorg_cv_cc_flag__Werror_init_self 6927 - if eval \${$cacheid+:} false; then : 6928 - $as_echo_n "(cached) " >&6 6929 - else 7189 + if eval test \${$cacheid+y} 7190 + then : 7191 + printf %s "(cached) " >&6 7192 + else $as_nop 6930 7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6931 7194 /* end confdefs.h. */ 6932 7195 int i; 6933 7196 int 6934 - main () 7197 + main (void) 6935 7198 { 6936 7199 6937 7200 ; 6938 7201 return 0; 6939 7202 } 6940 7203 _ACEOF 6941 - if ac_fn_c_try_link "$LINENO"; then : 7204 + if ac_fn_c_try_link "$LINENO" 7205 + then : 6942 7206 eval $cacheid=yes 6943 - else 7207 + else $as_nop 6944 7208 eval $cacheid=no 6945 7209 fi 6946 - rm -f core conftest.err conftest.$ac_objext \ 7210 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 6947 7211 conftest$ac_exeext conftest.$ac_ext 6948 7212 fi 6949 7213 ··· 6951 7215 CFLAGS="$xorg_testset_save_CFLAGS" 6952 7216 6953 7217 eval supported=\$$cacheid 6954 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6955 - $as_echo "$supported" >&6; } 7218 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7219 + printf "%s\n" "$supported" >&6; } 6956 7220 if test "$supported" = "yes" ; then 6957 7221 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 6958 7222 found="yes" ··· 6977 7241 6978 7242 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6979 7243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6980 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6981 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6982 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6983 - $as_echo_n "(cached) " >&6 6984 - else 7244 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7245 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7246 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7247 + then : 7248 + printf %s "(cached) " >&6 7249 + else $as_nop 6985 7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6986 7251 /* end confdefs.h. */ 6987 7252 int i; 6988 7253 _ACEOF 6989 - if ac_fn_c_try_compile "$LINENO"; then : 7254 + if ac_fn_c_try_compile "$LINENO" 7255 + then : 6990 7256 xorg_cv_cc_flag_unknown_warning_option=yes 6991 - else 7257 + else $as_nop 6992 7258 xorg_cv_cc_flag_unknown_warning_option=no 6993 7259 fi 6994 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7260 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6995 7261 fi 6996 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6997 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7262 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7263 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6998 7264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6999 7265 CFLAGS="$xorg_testset_save_CFLAGS" 7000 7266 fi ··· 7004 7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7005 7271 fi 7006 7272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7007 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7008 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7009 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7010 - $as_echo_n "(cached) " >&6 7011 - else 7273 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7274 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7275 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7276 + then : 7277 + printf %s "(cached) " >&6 7278 + else $as_nop 7012 7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7013 7280 /* end confdefs.h. */ 7014 7281 int i; 7015 7282 _ACEOF 7016 - if ac_fn_c_try_compile "$LINENO"; then : 7283 + if ac_fn_c_try_compile "$LINENO" 7284 + then : 7017 7285 xorg_cv_cc_flag_unused_command_line_argument=yes 7018 - else 7286 + else $as_nop 7019 7287 xorg_cv_cc_flag_unused_command_line_argument=no 7020 7288 fi 7021 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7289 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7022 7290 fi 7023 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7024 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7291 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7292 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7025 7293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7026 7294 CFLAGS="$xorg_testset_save_CFLAGS" 7027 7295 fi ··· 7039 7307 7040 7308 CFLAGS="$CFLAGS -Werror=main" 7041 7309 7042 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7043 - $as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7310 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7311 + printf %s "checking if $CC supports -Werror=main... " >&6; } 7044 7312 cacheid=xorg_cv_cc_flag__Werror_main 7045 - if eval \${$cacheid+:} false; then : 7046 - $as_echo_n "(cached) " >&6 7047 - else 7313 + if eval test \${$cacheid+y} 7314 + then : 7315 + printf %s "(cached) " >&6 7316 + else $as_nop 7048 7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7049 7318 /* end confdefs.h. */ 7050 7319 int i; 7051 7320 int 7052 - main () 7321 + main (void) 7053 7322 { 7054 7323 7055 7324 ; 7056 7325 return 0; 7057 7326 } 7058 7327 _ACEOF 7059 - if ac_fn_c_try_link "$LINENO"; then : 7328 + if ac_fn_c_try_link "$LINENO" 7329 + then : 7060 7330 eval $cacheid=yes 7061 - else 7331 + else $as_nop 7062 7332 eval $cacheid=no 7063 7333 fi 7064 - rm -f core conftest.err conftest.$ac_objext \ 7334 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7065 7335 conftest$ac_exeext conftest.$ac_ext 7066 7336 fi 7067 7337 ··· 7069 7339 CFLAGS="$xorg_testset_save_CFLAGS" 7070 7340 7071 7341 eval supported=\$$cacheid 7072 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7073 - $as_echo "$supported" >&6; } 7342 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7343 + printf "%s\n" "$supported" >&6; } 7074 7344 if test "$supported" = "yes" ; then 7075 7345 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7076 7346 found="yes" ··· 7095 7365 7096 7366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7097 7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7098 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7099 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7100 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7101 - $as_echo_n "(cached) " >&6 7102 - else 7368 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7369 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7370 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7371 + then : 7372 + printf %s "(cached) " >&6 7373 + else $as_nop 7103 7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7104 7375 /* end confdefs.h. */ 7105 7376 int i; 7106 7377 _ACEOF 7107 - if ac_fn_c_try_compile "$LINENO"; then : 7378 + if ac_fn_c_try_compile "$LINENO" 7379 + then : 7108 7380 xorg_cv_cc_flag_unknown_warning_option=yes 7109 - else 7381 + else $as_nop 7110 7382 xorg_cv_cc_flag_unknown_warning_option=no 7111 7383 fi 7112 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7384 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7113 7385 fi 7114 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7115 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7386 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7387 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7116 7388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7117 7389 CFLAGS="$xorg_testset_save_CFLAGS" 7118 7390 fi ··· 7122 7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7123 7395 fi 7124 7396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7125 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7126 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7127 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7128 - $as_echo_n "(cached) " >&6 7129 - else 7397 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7398 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7399 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7400 + then : 7401 + printf %s "(cached) " >&6 7402 + else $as_nop 7130 7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7131 7404 /* end confdefs.h. */ 7132 7405 int i; 7133 7406 _ACEOF 7134 - if ac_fn_c_try_compile "$LINENO"; then : 7407 + if ac_fn_c_try_compile "$LINENO" 7408 + then : 7135 7409 xorg_cv_cc_flag_unused_command_line_argument=yes 7136 - else 7410 + else $as_nop 7137 7411 xorg_cv_cc_flag_unused_command_line_argument=no 7138 7412 fi 7139 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7413 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7140 7414 fi 7141 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7142 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7415 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7416 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7143 7417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7144 7418 CFLAGS="$xorg_testset_save_CFLAGS" 7145 7419 fi ··· 7157 7431 7158 7432 CFLAGS="$CFLAGS -Werror=missing-braces" 7159 7433 7160 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7161 - $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7434 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7435 + printf %s "checking if $CC supports -Werror=missing-braces... " >&6; } 7162 7436 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7163 - if eval \${$cacheid+:} false; then : 7164 - $as_echo_n "(cached) " >&6 7165 - else 7437 + if eval test \${$cacheid+y} 7438 + then : 7439 + printf %s "(cached) " >&6 7440 + else $as_nop 7166 7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7167 7442 /* end confdefs.h. */ 7168 7443 int i; 7169 7444 int 7170 - main () 7445 + main (void) 7171 7446 { 7172 7447 7173 7448 ; 7174 7449 return 0; 7175 7450 } 7176 7451 _ACEOF 7177 - if ac_fn_c_try_link "$LINENO"; then : 7452 + if ac_fn_c_try_link "$LINENO" 7453 + then : 7178 7454 eval $cacheid=yes 7179 - else 7455 + else $as_nop 7180 7456 eval $cacheid=no 7181 7457 fi 7182 - rm -f core conftest.err conftest.$ac_objext \ 7458 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7183 7459 conftest$ac_exeext conftest.$ac_ext 7184 7460 fi 7185 7461 ··· 7187 7463 CFLAGS="$xorg_testset_save_CFLAGS" 7188 7464 7189 7465 eval supported=\$$cacheid 7190 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7191 - $as_echo "$supported" >&6; } 7466 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7467 + printf "%s\n" "$supported" >&6; } 7192 7468 if test "$supported" = "yes" ; then 7193 7469 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7194 7470 found="yes" ··· 7213 7489 7214 7490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7215 7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7216 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7217 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7218 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7219 - $as_echo_n "(cached) " >&6 7220 - else 7492 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7493 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7494 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7495 + then : 7496 + printf %s "(cached) " >&6 7497 + else $as_nop 7221 7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7222 7499 /* end confdefs.h. */ 7223 7500 int i; 7224 7501 _ACEOF 7225 - if ac_fn_c_try_compile "$LINENO"; then : 7502 + if ac_fn_c_try_compile "$LINENO" 7503 + then : 7226 7504 xorg_cv_cc_flag_unknown_warning_option=yes 7227 - else 7505 + else $as_nop 7228 7506 xorg_cv_cc_flag_unknown_warning_option=no 7229 7507 fi 7230 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7508 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7231 7509 fi 7232 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7233 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7510 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7511 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7234 7512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7235 7513 CFLAGS="$xorg_testset_save_CFLAGS" 7236 7514 fi ··· 7240 7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7241 7519 fi 7242 7520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7243 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7244 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7245 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7246 - $as_echo_n "(cached) " >&6 7247 - else 7521 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7522 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7523 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7524 + then : 7525 + printf %s "(cached) " >&6 7526 + else $as_nop 7248 7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7249 7528 /* end confdefs.h. */ 7250 7529 int i; 7251 7530 _ACEOF 7252 - if ac_fn_c_try_compile "$LINENO"; then : 7531 + if ac_fn_c_try_compile "$LINENO" 7532 + then : 7253 7533 xorg_cv_cc_flag_unused_command_line_argument=yes 7254 - else 7534 + else $as_nop 7255 7535 xorg_cv_cc_flag_unused_command_line_argument=no 7256 7536 fi 7257 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7537 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7258 7538 fi 7259 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7260 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7539 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7540 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7261 7541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7262 7542 CFLAGS="$xorg_testset_save_CFLAGS" 7263 7543 fi ··· 7275 7555 7276 7556 CFLAGS="$CFLAGS -Werror=sequence-point" 7277 7557 7278 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7279 - $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7558 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7559 + printf %s "checking if $CC supports -Werror=sequence-point... " >&6; } 7280 7560 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7281 - if eval \${$cacheid+:} false; then : 7282 - $as_echo_n "(cached) " >&6 7283 - else 7561 + if eval test \${$cacheid+y} 7562 + then : 7563 + printf %s "(cached) " >&6 7564 + else $as_nop 7284 7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7285 7566 /* end confdefs.h. */ 7286 7567 int i; 7287 7568 int 7288 - main () 7569 + main (void) 7289 7570 { 7290 7571 7291 7572 ; 7292 7573 return 0; 7293 7574 } 7294 7575 _ACEOF 7295 - if ac_fn_c_try_link "$LINENO"; then : 7576 + if ac_fn_c_try_link "$LINENO" 7577 + then : 7296 7578 eval $cacheid=yes 7297 - else 7579 + else $as_nop 7298 7580 eval $cacheid=no 7299 7581 fi 7300 - rm -f core conftest.err conftest.$ac_objext \ 7582 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7301 7583 conftest$ac_exeext conftest.$ac_ext 7302 7584 fi 7303 7585 ··· 7305 7587 CFLAGS="$xorg_testset_save_CFLAGS" 7306 7588 7307 7589 eval supported=\$$cacheid 7308 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7309 - $as_echo "$supported" >&6; } 7590 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7591 + printf "%s\n" "$supported" >&6; } 7310 7592 if test "$supported" = "yes" ; then 7311 7593 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7312 7594 found="yes" ··· 7331 7613 7332 7614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7333 7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7334 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7335 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7336 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7337 - $as_echo_n "(cached) " >&6 7338 - else 7616 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7617 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7618 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7619 + then : 7620 + printf %s "(cached) " >&6 7621 + else $as_nop 7339 7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7340 7623 /* end confdefs.h. */ 7341 7624 int i; 7342 7625 _ACEOF 7343 - if ac_fn_c_try_compile "$LINENO"; then : 7626 + if ac_fn_c_try_compile "$LINENO" 7627 + then : 7344 7628 xorg_cv_cc_flag_unknown_warning_option=yes 7345 - else 7629 + else $as_nop 7346 7630 xorg_cv_cc_flag_unknown_warning_option=no 7347 7631 fi 7348 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7632 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7349 7633 fi 7350 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7351 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7634 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7635 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7352 7636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7353 7637 CFLAGS="$xorg_testset_save_CFLAGS" 7354 7638 fi ··· 7358 7642 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7359 7643 fi 7360 7644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7361 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7362 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7363 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7364 - $as_echo_n "(cached) " >&6 7365 - else 7645 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7646 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7647 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7648 + then : 7649 + printf %s "(cached) " >&6 7650 + else $as_nop 7366 7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7367 7652 /* end confdefs.h. */ 7368 7653 int i; 7369 7654 _ACEOF 7370 - if ac_fn_c_try_compile "$LINENO"; then : 7655 + if ac_fn_c_try_compile "$LINENO" 7656 + then : 7371 7657 xorg_cv_cc_flag_unused_command_line_argument=yes 7372 - else 7658 + else $as_nop 7373 7659 xorg_cv_cc_flag_unused_command_line_argument=no 7374 7660 fi 7375 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7661 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7376 7662 fi 7377 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7378 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7663 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7664 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7379 7665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7380 7666 CFLAGS="$xorg_testset_save_CFLAGS" 7381 7667 fi ··· 7393 7679 7394 7680 CFLAGS="$CFLAGS -Werror=return-type" 7395 7681 7396 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7397 - $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7682 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7683 + printf %s "checking if $CC supports -Werror=return-type... " >&6; } 7398 7684 cacheid=xorg_cv_cc_flag__Werror_return_type 7399 - if eval \${$cacheid+:} false; then : 7400 - $as_echo_n "(cached) " >&6 7401 - else 7685 + if eval test \${$cacheid+y} 7686 + then : 7687 + printf %s "(cached) " >&6 7688 + else $as_nop 7402 7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7403 7690 /* end confdefs.h. */ 7404 7691 int i; 7405 7692 int 7406 - main () 7693 + main (void) 7407 7694 { 7408 7695 7409 7696 ; 7410 7697 return 0; 7411 7698 } 7412 7699 _ACEOF 7413 - if ac_fn_c_try_link "$LINENO"; then : 7700 + if ac_fn_c_try_link "$LINENO" 7701 + then : 7414 7702 eval $cacheid=yes 7415 - else 7703 + else $as_nop 7416 7704 eval $cacheid=no 7417 7705 fi 7418 - rm -f core conftest.err conftest.$ac_objext \ 7706 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7419 7707 conftest$ac_exeext conftest.$ac_ext 7420 7708 fi 7421 7709 ··· 7423 7711 CFLAGS="$xorg_testset_save_CFLAGS" 7424 7712 7425 7713 eval supported=\$$cacheid 7426 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7427 - $as_echo "$supported" >&6; } 7714 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7715 + printf "%s\n" "$supported" >&6; } 7428 7716 if test "$supported" = "yes" ; then 7429 7717 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7430 7718 found="yes" ··· 7442 7730 7443 7731 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7444 7732 7445 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7446 - $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7733 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7734 + printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7447 7735 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7448 - if eval \${$cacheid+:} false; then : 7449 - $as_echo_n "(cached) " >&6 7450 - else 7736 + if eval test \${$cacheid+y} 7737 + then : 7738 + printf %s "(cached) " >&6 7739 + else $as_nop 7451 7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7452 7741 /* end confdefs.h. */ 7453 7742 int i; 7454 7743 int 7455 - main () 7744 + main (void) 7456 7745 { 7457 7746 7458 7747 ; 7459 7748 return 0; 7460 7749 } 7461 7750 _ACEOF 7462 - if ac_fn_c_try_link "$LINENO"; then : 7751 + if ac_fn_c_try_link "$LINENO" 7752 + then : 7463 7753 eval $cacheid=yes 7464 - else 7754 + else $as_nop 7465 7755 eval $cacheid=no 7466 7756 fi 7467 - rm -f core conftest.err conftest.$ac_objext \ 7757 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7468 7758 conftest$ac_exeext conftest.$ac_ext 7469 7759 fi 7470 7760 ··· 7472 7762 CFLAGS="$xorg_testset_save_CFLAGS" 7473 7763 7474 7764 eval supported=\$$cacheid 7475 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7476 - $as_echo "$supported" >&6; } 7765 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7766 + printf "%s\n" "$supported" >&6; } 7477 7767 if test "$supported" = "yes" ; then 7478 7768 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7479 7769 found="yes" ··· 7498 7788 7499 7789 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7500 7790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7501 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7502 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7503 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7504 - $as_echo_n "(cached) " >&6 7505 - else 7791 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7792 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7793 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7794 + then : 7795 + printf %s "(cached) " >&6 7796 + else $as_nop 7506 7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507 7798 /* end confdefs.h. */ 7508 7799 int i; 7509 7800 _ACEOF 7510 - if ac_fn_c_try_compile "$LINENO"; then : 7801 + if ac_fn_c_try_compile "$LINENO" 7802 + then : 7511 7803 xorg_cv_cc_flag_unknown_warning_option=yes 7512 - else 7804 + else $as_nop 7513 7805 xorg_cv_cc_flag_unknown_warning_option=no 7514 7806 fi 7515 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7807 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7516 7808 fi 7517 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7518 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7809 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7810 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7519 7811 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7520 7812 CFLAGS="$xorg_testset_save_CFLAGS" 7521 7813 fi ··· 7525 7817 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7526 7818 fi 7527 7819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7528 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7529 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7530 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7531 - $as_echo_n "(cached) " >&6 7532 - else 7820 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7821 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7822 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7823 + then : 7824 + printf %s "(cached) " >&6 7825 + else $as_nop 7533 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7534 7827 /* end confdefs.h. */ 7535 7828 int i; 7536 7829 _ACEOF 7537 - if ac_fn_c_try_compile "$LINENO"; then : 7830 + if ac_fn_c_try_compile "$LINENO" 7831 + then : 7538 7832 xorg_cv_cc_flag_unused_command_line_argument=yes 7539 - else 7833 + else $as_nop 7540 7834 xorg_cv_cc_flag_unused_command_line_argument=no 7541 7835 fi 7542 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7836 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7543 7837 fi 7544 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7545 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7838 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7839 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7546 7840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7547 7841 CFLAGS="$xorg_testset_save_CFLAGS" 7548 7842 fi ··· 7560 7854 7561 7855 CFLAGS="$CFLAGS -Werror=trigraphs" 7562 7856 7563 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7564 - $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7857 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7858 + printf %s "checking if $CC supports -Werror=trigraphs... " >&6; } 7565 7859 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7566 - if eval \${$cacheid+:} false; then : 7567 - $as_echo_n "(cached) " >&6 7568 - else 7860 + if eval test \${$cacheid+y} 7861 + then : 7862 + printf %s "(cached) " >&6 7863 + else $as_nop 7569 7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7570 7865 /* end confdefs.h. */ 7571 7866 int i; 7572 7867 int 7573 - main () 7868 + main (void) 7574 7869 { 7575 7870 7576 7871 ; 7577 7872 return 0; 7578 7873 } 7579 7874 _ACEOF 7580 - if ac_fn_c_try_link "$LINENO"; then : 7875 + if ac_fn_c_try_link "$LINENO" 7876 + then : 7581 7877 eval $cacheid=yes 7582 - else 7878 + else $as_nop 7583 7879 eval $cacheid=no 7584 7880 fi 7585 - rm -f core conftest.err conftest.$ac_objext \ 7881 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7586 7882 conftest$ac_exeext conftest.$ac_ext 7587 7883 fi 7588 7884 ··· 7590 7886 CFLAGS="$xorg_testset_save_CFLAGS" 7591 7887 7592 7888 eval supported=\$$cacheid 7593 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7594 - $as_echo "$supported" >&6; } 7889 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7890 + printf "%s\n" "$supported" >&6; } 7595 7891 if test "$supported" = "yes" ; then 7596 7892 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7597 7893 found="yes" ··· 7616 7912 7617 7913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7618 7914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7619 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7620 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7621 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7622 - $as_echo_n "(cached) " >&6 7623 - else 7915 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7916 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7917 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 7918 + then : 7919 + printf %s "(cached) " >&6 7920 + else $as_nop 7624 7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7625 7922 /* end confdefs.h. */ 7626 7923 int i; 7627 7924 _ACEOF 7628 - if ac_fn_c_try_compile "$LINENO"; then : 7925 + if ac_fn_c_try_compile "$LINENO" 7926 + then : 7629 7927 xorg_cv_cc_flag_unknown_warning_option=yes 7630 - else 7928 + else $as_nop 7631 7929 xorg_cv_cc_flag_unknown_warning_option=no 7632 7930 fi 7633 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7931 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7634 7932 fi 7635 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7636 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7933 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7934 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7637 7935 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7638 7936 CFLAGS="$xorg_testset_save_CFLAGS" 7639 7937 fi ··· 7643 7941 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7644 7942 fi 7645 7943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7646 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7647 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7648 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7649 - $as_echo_n "(cached) " >&6 7650 - else 7944 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7945 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7946 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 7947 + then : 7948 + printf %s "(cached) " >&6 7949 + else $as_nop 7651 7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652 7951 /* end confdefs.h. */ 7653 7952 int i; 7654 7953 _ACEOF 7655 - if ac_fn_c_try_compile "$LINENO"; then : 7954 + if ac_fn_c_try_compile "$LINENO" 7955 + then : 7656 7956 xorg_cv_cc_flag_unused_command_line_argument=yes 7657 - else 7957 + else $as_nop 7658 7958 xorg_cv_cc_flag_unused_command_line_argument=no 7659 7959 fi 7660 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7960 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7661 7961 fi 7662 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7663 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7962 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7963 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7664 7964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7665 7965 CFLAGS="$xorg_testset_save_CFLAGS" 7666 7966 fi ··· 7678 7978 7679 7979 CFLAGS="$CFLAGS -Werror=array-bounds" 7680 7980 7681 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7682 - $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7981 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7982 + printf %s "checking if $CC supports -Werror=array-bounds... " >&6; } 7683 7983 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7684 - if eval \${$cacheid+:} false; then : 7685 - $as_echo_n "(cached) " >&6 7686 - else 7984 + if eval test \${$cacheid+y} 7985 + then : 7986 + printf %s "(cached) " >&6 7987 + else $as_nop 7687 7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7688 7989 /* end confdefs.h. */ 7689 7990 int i; 7690 7991 int 7691 - main () 7992 + main (void) 7692 7993 { 7693 7994 7694 7995 ; 7695 7996 return 0; 7696 7997 } 7697 7998 _ACEOF 7698 - if ac_fn_c_try_link "$LINENO"; then : 7999 + if ac_fn_c_try_link "$LINENO" 8000 + then : 7699 8001 eval $cacheid=yes 7700 - else 8002 + else $as_nop 7701 8003 eval $cacheid=no 7702 8004 fi 7703 - rm -f core conftest.err conftest.$ac_objext \ 8005 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7704 8006 conftest$ac_exeext conftest.$ac_ext 7705 8007 fi 7706 8008 ··· 7708 8010 CFLAGS="$xorg_testset_save_CFLAGS" 7709 8011 7710 8012 eval supported=\$$cacheid 7711 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7712 - $as_echo "$supported" >&6; } 8013 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8014 + printf "%s\n" "$supported" >&6; } 7713 8015 if test "$supported" = "yes" ; then 7714 8016 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7715 8017 found="yes" ··· 7734 8036 7735 8037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7736 8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7737 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7738 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7739 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7740 - $as_echo_n "(cached) " >&6 7741 - else 8039 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8040 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8041 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8042 + then : 8043 + printf %s "(cached) " >&6 8044 + else $as_nop 7742 8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7743 8046 /* end confdefs.h. */ 7744 8047 int i; 7745 8048 _ACEOF 7746 - if ac_fn_c_try_compile "$LINENO"; then : 8049 + if ac_fn_c_try_compile "$LINENO" 8050 + then : 7747 8051 xorg_cv_cc_flag_unknown_warning_option=yes 7748 - else 8052 + else $as_nop 7749 8053 xorg_cv_cc_flag_unknown_warning_option=no 7750 8054 fi 7751 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8055 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7752 8056 fi 7753 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7754 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8057 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8058 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7755 8059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7756 8060 CFLAGS="$xorg_testset_save_CFLAGS" 7757 8061 fi ··· 7761 8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7762 8066 fi 7763 8067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7764 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7765 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7766 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7767 - $as_echo_n "(cached) " >&6 7768 - else 8068 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8069 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8070 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8071 + then : 8072 + printf %s "(cached) " >&6 8073 + else $as_nop 7769 8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7770 8075 /* end confdefs.h. */ 7771 8076 int i; 7772 8077 _ACEOF 7773 - if ac_fn_c_try_compile "$LINENO"; then : 8078 + if ac_fn_c_try_compile "$LINENO" 8079 + then : 7774 8080 xorg_cv_cc_flag_unused_command_line_argument=yes 7775 - else 8081 + else $as_nop 7776 8082 xorg_cv_cc_flag_unused_command_line_argument=no 7777 8083 fi 7778 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8084 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7779 8085 fi 7780 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7781 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8086 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8087 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7782 8088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7783 8089 CFLAGS="$xorg_testset_save_CFLAGS" 7784 8090 fi ··· 7796 8102 7797 8103 CFLAGS="$CFLAGS -Werror=write-strings" 7798 8104 7799 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 7800 - $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8105 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8106 + printf %s "checking if $CC supports -Werror=write-strings... " >&6; } 7801 8107 cacheid=xorg_cv_cc_flag__Werror_write_strings 7802 - if eval \${$cacheid+:} false; then : 7803 - $as_echo_n "(cached) " >&6 7804 - else 8108 + if eval test \${$cacheid+y} 8109 + then : 8110 + printf %s "(cached) " >&6 8111 + else $as_nop 7805 8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7806 8113 /* end confdefs.h. */ 7807 8114 int i; 7808 8115 int 7809 - main () 8116 + main (void) 7810 8117 { 7811 8118 7812 8119 ; 7813 8120 return 0; 7814 8121 } 7815 8122 _ACEOF 7816 - if ac_fn_c_try_link "$LINENO"; then : 8123 + if ac_fn_c_try_link "$LINENO" 8124 + then : 7817 8125 eval $cacheid=yes 7818 - else 8126 + else $as_nop 7819 8127 eval $cacheid=no 7820 8128 fi 7821 - rm -f core conftest.err conftest.$ac_objext \ 8129 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7822 8130 conftest$ac_exeext conftest.$ac_ext 7823 8131 fi 7824 8132 ··· 7826 8134 CFLAGS="$xorg_testset_save_CFLAGS" 7827 8135 7828 8136 eval supported=\$$cacheid 7829 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7830 - $as_echo "$supported" >&6; } 8137 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8138 + printf "%s\n" "$supported" >&6; } 7831 8139 if test "$supported" = "yes" ; then 7832 8140 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 7833 8141 found="yes" ··· 7852 8160 7853 8161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7854 8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7855 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7856 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7857 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7858 - $as_echo_n "(cached) " >&6 7859 - else 8163 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8164 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8165 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8166 + then : 8167 + printf %s "(cached) " >&6 8168 + else $as_nop 7860 8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7861 8170 /* end confdefs.h. */ 7862 8171 int i; 7863 8172 _ACEOF 7864 - if ac_fn_c_try_compile "$LINENO"; then : 8173 + if ac_fn_c_try_compile "$LINENO" 8174 + then : 7865 8175 xorg_cv_cc_flag_unknown_warning_option=yes 7866 - else 8176 + else $as_nop 7867 8177 xorg_cv_cc_flag_unknown_warning_option=no 7868 8178 fi 7869 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8179 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7870 8180 fi 7871 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7872 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8181 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8182 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7873 8183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7874 8184 CFLAGS="$xorg_testset_save_CFLAGS" 7875 8185 fi ··· 7879 8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7880 8190 fi 7881 8191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7882 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7883 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7884 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7885 - $as_echo_n "(cached) " >&6 7886 - else 8192 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8193 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8194 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8195 + then : 8196 + printf %s "(cached) " >&6 8197 + else $as_nop 7887 8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7888 8199 /* end confdefs.h. */ 7889 8200 int i; 7890 8201 _ACEOF 7891 - if ac_fn_c_try_compile "$LINENO"; then : 8202 + if ac_fn_c_try_compile "$LINENO" 8203 + then : 7892 8204 xorg_cv_cc_flag_unused_command_line_argument=yes 7893 - else 8205 + else $as_nop 7894 8206 xorg_cv_cc_flag_unused_command_line_argument=no 7895 8207 fi 7896 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8208 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7897 8209 fi 7898 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7899 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8210 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8211 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7900 8212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7901 8213 CFLAGS="$xorg_testset_save_CFLAGS" 7902 8214 fi ··· 7914 8226 7915 8227 CFLAGS="$CFLAGS -Werror=address" 7916 8228 7917 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 7918 - $as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8229 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8230 + printf %s "checking if $CC supports -Werror=address... " >&6; } 7919 8231 cacheid=xorg_cv_cc_flag__Werror_address 7920 - if eval \${$cacheid+:} false; then : 7921 - $as_echo_n "(cached) " >&6 7922 - else 8232 + if eval test \${$cacheid+y} 8233 + then : 8234 + printf %s "(cached) " >&6 8235 + else $as_nop 7923 8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7924 8237 /* end confdefs.h. */ 7925 8238 int i; 7926 8239 int 7927 - main () 8240 + main (void) 7928 8241 { 7929 8242 7930 8243 ; 7931 8244 return 0; 7932 8245 } 7933 8246 _ACEOF 7934 - if ac_fn_c_try_link "$LINENO"; then : 8247 + if ac_fn_c_try_link "$LINENO" 8248 + then : 7935 8249 eval $cacheid=yes 7936 - else 8250 + else $as_nop 7937 8251 eval $cacheid=no 7938 8252 fi 7939 - rm -f core conftest.err conftest.$ac_objext \ 8253 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7940 8254 conftest$ac_exeext conftest.$ac_ext 7941 8255 fi 7942 8256 ··· 7944 8258 CFLAGS="$xorg_testset_save_CFLAGS" 7945 8259 7946 8260 eval supported=\$$cacheid 7947 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7948 - $as_echo "$supported" >&6; } 8261 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8262 + printf "%s\n" "$supported" >&6; } 7949 8263 if test "$supported" = "yes" ; then 7950 8264 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 7951 8265 found="yes" ··· 7970 8284 7971 8285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7972 8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7973 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7974 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7975 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7976 - $as_echo_n "(cached) " >&6 7977 - else 8287 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8288 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8289 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8290 + then : 8291 + printf %s "(cached) " >&6 8292 + else $as_nop 7978 8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979 8294 /* end confdefs.h. */ 7980 8295 int i; 7981 8296 _ACEOF 7982 - if ac_fn_c_try_compile "$LINENO"; then : 8297 + if ac_fn_c_try_compile "$LINENO" 8298 + then : 7983 8299 xorg_cv_cc_flag_unknown_warning_option=yes 7984 - else 8300 + else $as_nop 7985 8301 xorg_cv_cc_flag_unknown_warning_option=no 7986 8302 fi 7987 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8303 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 7988 8304 fi 7989 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7990 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8305 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8306 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7991 8307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7992 8308 CFLAGS="$xorg_testset_save_CFLAGS" 7993 8309 fi ··· 7997 8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7998 8314 fi 7999 8315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8000 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8001 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8002 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8003 - $as_echo_n "(cached) " >&6 8004 - else 8316 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8317 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8318 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8319 + then : 8320 + printf %s "(cached) " >&6 8321 + else $as_nop 8005 8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8006 8323 /* end confdefs.h. */ 8007 8324 int i; 8008 8325 _ACEOF 8009 - if ac_fn_c_try_compile "$LINENO"; then : 8326 + if ac_fn_c_try_compile "$LINENO" 8327 + then : 8010 8328 xorg_cv_cc_flag_unused_command_line_argument=yes 8011 - else 8329 + else $as_nop 8012 8330 xorg_cv_cc_flag_unused_command_line_argument=no 8013 8331 fi 8014 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8332 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8015 8333 fi 8016 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8017 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8334 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8335 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8018 8336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8019 8337 CFLAGS="$xorg_testset_save_CFLAGS" 8020 8338 fi ··· 8032 8350 8033 8351 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8034 8352 8035 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8036 - $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8353 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8354 + printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8037 8355 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8038 - if eval \${$cacheid+:} false; then : 8039 - $as_echo_n "(cached) " >&6 8040 - else 8356 + if eval test \${$cacheid+y} 8357 + then : 8358 + printf %s "(cached) " >&6 8359 + else $as_nop 8041 8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8042 8361 /* end confdefs.h. */ 8043 8362 int i; 8044 8363 int 8045 - main () 8364 + main (void) 8046 8365 { 8047 8366 8048 8367 ; 8049 8368 return 0; 8050 8369 } 8051 8370 _ACEOF 8052 - if ac_fn_c_try_link "$LINENO"; then : 8371 + if ac_fn_c_try_link "$LINENO" 8372 + then : 8053 8373 eval $cacheid=yes 8054 - else 8374 + else $as_nop 8055 8375 eval $cacheid=no 8056 8376 fi 8057 - rm -f core conftest.err conftest.$ac_objext \ 8377 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8058 8378 conftest$ac_exeext conftest.$ac_ext 8059 8379 fi 8060 8380 ··· 8062 8382 CFLAGS="$xorg_testset_save_CFLAGS" 8063 8383 8064 8384 eval supported=\$$cacheid 8065 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8066 - $as_echo "$supported" >&6; } 8385 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8386 + printf "%s\n" "$supported" >&6; } 8067 8387 if test "$supported" = "yes" ; then 8068 8388 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8069 8389 found="yes" ··· 8081 8401 8082 8402 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8083 8403 8084 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8085 - $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8404 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8405 + printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8086 8406 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8087 - if eval \${$cacheid+:} false; then : 8088 - $as_echo_n "(cached) " >&6 8089 - else 8407 + if eval test \${$cacheid+y} 8408 + then : 8409 + printf %s "(cached) " >&6 8410 + else $as_nop 8090 8411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8091 8412 /* end confdefs.h. */ 8092 8413 int i; 8093 8414 int 8094 - main () 8415 + main (void) 8095 8416 { 8096 8417 8097 8418 ; 8098 8419 return 0; 8099 8420 } 8100 8421 _ACEOF 8101 - if ac_fn_c_try_link "$LINENO"; then : 8422 + if ac_fn_c_try_link "$LINENO" 8423 + then : 8102 8424 eval $cacheid=yes 8103 - else 8425 + else $as_nop 8104 8426 eval $cacheid=no 8105 8427 fi 8106 - rm -f core conftest.err conftest.$ac_objext \ 8428 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8107 8429 conftest$ac_exeext conftest.$ac_ext 8108 8430 fi 8109 8431 ··· 8111 8433 CFLAGS="$xorg_testset_save_CFLAGS" 8112 8434 8113 8435 eval supported=\$$cacheid 8114 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8115 - $as_echo "$supported" >&6; } 8436 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8437 + printf "%s\n" "$supported" >&6; } 8116 8438 if test "$supported" = "yes" ; then 8117 8439 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8118 8440 found="yes" ··· 8137 8459 8138 8460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8139 8461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8140 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8141 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8142 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8143 - $as_echo_n "(cached) " >&6 8144 - else 8462 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8463 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8464 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8465 + then : 8466 + printf %s "(cached) " >&6 8467 + else $as_nop 8145 8468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8146 8469 /* end confdefs.h. */ 8147 8470 int i; 8148 8471 _ACEOF 8149 - if ac_fn_c_try_compile "$LINENO"; then : 8472 + if ac_fn_c_try_compile "$LINENO" 8473 + then : 8150 8474 xorg_cv_cc_flag_unknown_warning_option=yes 8151 - else 8475 + else $as_nop 8152 8476 xorg_cv_cc_flag_unknown_warning_option=no 8153 8477 fi 8154 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8478 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8155 8479 fi 8156 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8157 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8480 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8481 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8158 8482 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8159 8483 CFLAGS="$xorg_testset_save_CFLAGS" 8160 8484 fi ··· 8164 8488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8165 8489 fi 8166 8490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8167 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8168 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8169 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8170 - $as_echo_n "(cached) " >&6 8171 - else 8491 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8492 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8493 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8494 + then : 8495 + printf %s "(cached) " >&6 8496 + else $as_nop 8172 8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8173 8498 /* end confdefs.h. */ 8174 8499 int i; 8175 8500 _ACEOF 8176 - if ac_fn_c_try_compile "$LINENO"; then : 8501 + if ac_fn_c_try_compile "$LINENO" 8502 + then : 8177 8503 xorg_cv_cc_flag_unused_command_line_argument=yes 8178 - else 8504 + else $as_nop 8179 8505 xorg_cv_cc_flag_unused_command_line_argument=no 8180 8506 fi 8181 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8507 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8182 8508 fi 8183 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8184 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8509 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8510 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8185 8511 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8186 8512 CFLAGS="$xorg_testset_save_CFLAGS" 8187 8513 fi ··· 8199 8525 8200 8526 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8201 8527 8202 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8203 - $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8528 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8529 + printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8204 8530 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8205 - if eval \${$cacheid+:} false; then : 8206 - $as_echo_n "(cached) " >&6 8207 - else 8531 + if eval test \${$cacheid+y} 8532 + then : 8533 + printf %s "(cached) " >&6 8534 + else $as_nop 8208 8535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8209 8536 /* end confdefs.h. */ 8210 8537 int i; 8211 8538 int 8212 - main () 8539 + main (void) 8213 8540 { 8214 8541 8215 8542 ; 8216 8543 return 0; 8217 8544 } 8218 8545 _ACEOF 8219 - if ac_fn_c_try_link "$LINENO"; then : 8546 + if ac_fn_c_try_link "$LINENO" 8547 + then : 8220 8548 eval $cacheid=yes 8221 - else 8549 + else $as_nop 8222 8550 eval $cacheid=no 8223 8551 fi 8224 - rm -f core conftest.err conftest.$ac_objext \ 8552 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8225 8553 conftest$ac_exeext conftest.$ac_ext 8226 8554 fi 8227 8555 ··· 8229 8557 CFLAGS="$xorg_testset_save_CFLAGS" 8230 8558 8231 8559 eval supported=\$$cacheid 8232 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8233 - $as_echo "$supported" >&6; } 8560 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8561 + printf "%s\n" "$supported" >&6; } 8234 8562 if test "$supported" = "yes" ; then 8235 8563 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8236 8564 found="yes" ··· 8239 8567 8240 8568 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8241 8569 else 8242 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 8243 - $as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8570 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 8571 + printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8244 8572 8245 8573 8246 8574 ··· 8258 8586 8259 8587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8260 8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8261 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8262 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8263 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8264 - $as_echo_n "(cached) " >&6 8265 - else 8589 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8590 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8591 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8592 + then : 8593 + printf %s "(cached) " >&6 8594 + else $as_nop 8266 8595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8267 8596 /* end confdefs.h. */ 8268 8597 int i; 8269 8598 _ACEOF 8270 - if ac_fn_c_try_compile "$LINENO"; then : 8599 + if ac_fn_c_try_compile "$LINENO" 8600 + then : 8271 8601 xorg_cv_cc_flag_unknown_warning_option=yes 8272 - else 8602 + else $as_nop 8273 8603 xorg_cv_cc_flag_unknown_warning_option=no 8274 8604 fi 8275 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8605 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8276 8606 fi 8277 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8278 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8607 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8608 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8279 8609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8280 8610 CFLAGS="$xorg_testset_save_CFLAGS" 8281 8611 fi ··· 8285 8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8286 8616 fi 8287 8617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8288 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8289 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8290 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8291 - $as_echo_n "(cached) " >&6 8292 - else 8618 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8619 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8620 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8621 + then : 8622 + printf %s "(cached) " >&6 8623 + else $as_nop 8293 8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8294 8625 /* end confdefs.h. */ 8295 8626 int i; 8296 8627 _ACEOF 8297 - if ac_fn_c_try_compile "$LINENO"; then : 8628 + if ac_fn_c_try_compile "$LINENO" 8629 + then : 8298 8630 xorg_cv_cc_flag_unused_command_line_argument=yes 8299 - else 8631 + else $as_nop 8300 8632 xorg_cv_cc_flag_unused_command_line_argument=no 8301 8633 fi 8302 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8634 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8303 8635 fi 8304 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8305 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8636 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8637 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8306 8638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8307 8639 CFLAGS="$xorg_testset_save_CFLAGS" 8308 8640 fi ··· 8320 8652 8321 8653 CFLAGS="$CFLAGS -Wimplicit" 8322 8654 8323 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8324 - $as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8655 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8656 + printf %s "checking if $CC supports -Wimplicit... " >&6; } 8325 8657 cacheid=xorg_cv_cc_flag__Wimplicit 8326 - if eval \${$cacheid+:} false; then : 8327 - $as_echo_n "(cached) " >&6 8328 - else 8658 + if eval test \${$cacheid+y} 8659 + then : 8660 + printf %s "(cached) " >&6 8661 + else $as_nop 8329 8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8330 8663 /* end confdefs.h. */ 8331 8664 int i; 8332 8665 int 8333 - main () 8666 + main (void) 8334 8667 { 8335 8668 8336 8669 ; 8337 8670 return 0; 8338 8671 } 8339 8672 _ACEOF 8340 - if ac_fn_c_try_link "$LINENO"; then : 8673 + if ac_fn_c_try_link "$LINENO" 8674 + then : 8341 8675 eval $cacheid=yes 8342 - else 8676 + else $as_nop 8343 8677 eval $cacheid=no 8344 8678 fi 8345 - rm -f core conftest.err conftest.$ac_objext \ 8679 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8346 8680 conftest$ac_exeext conftest.$ac_ext 8347 8681 fi 8348 8682 ··· 8350 8684 CFLAGS="$xorg_testset_save_CFLAGS" 8351 8685 8352 8686 eval supported=\$$cacheid 8353 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8354 - $as_echo "$supported" >&6; } 8687 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8688 + printf "%s\n" "$supported" >&6; } 8355 8689 if test "$supported" = "yes" ; then 8356 8690 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8357 8691 found="yes" ··· 8376 8710 8377 8711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8378 8712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8379 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8380 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8381 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8382 - $as_echo_n "(cached) " >&6 8383 - else 8713 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8714 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8715 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8716 + then : 8717 + printf %s "(cached) " >&6 8718 + else $as_nop 8384 8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8385 8720 /* end confdefs.h. */ 8386 8721 int i; 8387 8722 _ACEOF 8388 - if ac_fn_c_try_compile "$LINENO"; then : 8723 + if ac_fn_c_try_compile "$LINENO" 8724 + then : 8389 8725 xorg_cv_cc_flag_unknown_warning_option=yes 8390 - else 8726 + else $as_nop 8391 8727 xorg_cv_cc_flag_unknown_warning_option=no 8392 8728 fi 8393 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8729 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8394 8730 fi 8395 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8396 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8731 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8732 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8397 8733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8398 8734 CFLAGS="$xorg_testset_save_CFLAGS" 8399 8735 fi ··· 8403 8739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8404 8740 fi 8405 8741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8406 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8407 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8408 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8409 - $as_echo_n "(cached) " >&6 8410 - else 8742 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8743 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8744 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8745 + then : 8746 + printf %s "(cached) " >&6 8747 + else $as_nop 8411 8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8412 8749 /* end confdefs.h. */ 8413 8750 int i; 8414 8751 _ACEOF 8415 - if ac_fn_c_try_compile "$LINENO"; then : 8752 + if ac_fn_c_try_compile "$LINENO" 8753 + then : 8416 8754 xorg_cv_cc_flag_unused_command_line_argument=yes 8417 - else 8755 + else $as_nop 8418 8756 xorg_cv_cc_flag_unused_command_line_argument=no 8419 8757 fi 8420 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8758 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8421 8759 fi 8422 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8423 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8760 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8761 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8424 8762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8425 8763 CFLAGS="$xorg_testset_save_CFLAGS" 8426 8764 fi ··· 8438 8776 8439 8777 CFLAGS="$CFLAGS -Wnonnull" 8440 8778 8441 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8442 - $as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8779 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8780 + printf %s "checking if $CC supports -Wnonnull... " >&6; } 8443 8781 cacheid=xorg_cv_cc_flag__Wnonnull 8444 - if eval \${$cacheid+:} false; then : 8445 - $as_echo_n "(cached) " >&6 8446 - else 8782 + if eval test \${$cacheid+y} 8783 + then : 8784 + printf %s "(cached) " >&6 8785 + else $as_nop 8447 8786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448 8787 /* end confdefs.h. */ 8449 8788 int i; 8450 8789 int 8451 - main () 8790 + main (void) 8452 8791 { 8453 8792 8454 8793 ; 8455 8794 return 0; 8456 8795 } 8457 8796 _ACEOF 8458 - if ac_fn_c_try_link "$LINENO"; then : 8797 + if ac_fn_c_try_link "$LINENO" 8798 + then : 8459 8799 eval $cacheid=yes 8460 - else 8800 + else $as_nop 8461 8801 eval $cacheid=no 8462 8802 fi 8463 - rm -f core conftest.err conftest.$ac_objext \ 8803 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8464 8804 conftest$ac_exeext conftest.$ac_ext 8465 8805 fi 8466 8806 ··· 8468 8808 CFLAGS="$xorg_testset_save_CFLAGS" 8469 8809 8470 8810 eval supported=\$$cacheid 8471 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8472 - $as_echo "$supported" >&6; } 8811 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8812 + printf "%s\n" "$supported" >&6; } 8473 8813 if test "$supported" = "yes" ; then 8474 8814 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8475 8815 found="yes" ··· 8494 8834 8495 8835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8496 8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8497 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8498 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8499 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8500 - $as_echo_n "(cached) " >&6 8501 - else 8837 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8838 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8839 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8840 + then : 8841 + printf %s "(cached) " >&6 8842 + else $as_nop 8502 8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8503 8844 /* end confdefs.h. */ 8504 8845 int i; 8505 8846 _ACEOF 8506 - if ac_fn_c_try_compile "$LINENO"; then : 8847 + if ac_fn_c_try_compile "$LINENO" 8848 + then : 8507 8849 xorg_cv_cc_flag_unknown_warning_option=yes 8508 - else 8850 + else $as_nop 8509 8851 xorg_cv_cc_flag_unknown_warning_option=no 8510 8852 fi 8511 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8853 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8512 8854 fi 8513 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8514 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8855 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8856 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8515 8857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8516 8858 CFLAGS="$xorg_testset_save_CFLAGS" 8517 8859 fi ··· 8521 8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8522 8864 fi 8523 8865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8524 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8525 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8526 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8527 - $as_echo_n "(cached) " >&6 8528 - else 8866 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8867 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8868 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8869 + then : 8870 + printf %s "(cached) " >&6 8871 + else $as_nop 8529 8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8530 8873 /* end confdefs.h. */ 8531 8874 int i; 8532 8875 _ACEOF 8533 - if ac_fn_c_try_compile "$LINENO"; then : 8876 + if ac_fn_c_try_compile "$LINENO" 8877 + then : 8534 8878 xorg_cv_cc_flag_unused_command_line_argument=yes 8535 - else 8879 + else $as_nop 8536 8880 xorg_cv_cc_flag_unused_command_line_argument=no 8537 8881 fi 8538 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8882 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8539 8883 fi 8540 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8541 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8884 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8885 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8542 8886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8543 8887 CFLAGS="$xorg_testset_save_CFLAGS" 8544 8888 fi ··· 8556 8900 8557 8901 CFLAGS="$CFLAGS -Winit-self" 8558 8902 8559 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8560 - $as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8903 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8904 + printf %s "checking if $CC supports -Winit-self... " >&6; } 8561 8905 cacheid=xorg_cv_cc_flag__Winit_self 8562 - if eval \${$cacheid+:} false; then : 8563 - $as_echo_n "(cached) " >&6 8564 - else 8906 + if eval test \${$cacheid+y} 8907 + then : 8908 + printf %s "(cached) " >&6 8909 + else $as_nop 8565 8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8566 8911 /* end confdefs.h. */ 8567 8912 int i; 8568 8913 int 8569 - main () 8914 + main (void) 8570 8915 { 8571 8916 8572 8917 ; 8573 8918 return 0; 8574 8919 } 8575 8920 _ACEOF 8576 - if ac_fn_c_try_link "$LINENO"; then : 8921 + if ac_fn_c_try_link "$LINENO" 8922 + then : 8577 8923 eval $cacheid=yes 8578 - else 8924 + else $as_nop 8579 8925 eval $cacheid=no 8580 8926 fi 8581 - rm -f core conftest.err conftest.$ac_objext \ 8927 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8582 8928 conftest$ac_exeext conftest.$ac_ext 8583 8929 fi 8584 8930 ··· 8586 8932 CFLAGS="$xorg_testset_save_CFLAGS" 8587 8933 8588 8934 eval supported=\$$cacheid 8589 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8590 - $as_echo "$supported" >&6; } 8935 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8936 + printf "%s\n" "$supported" >&6; } 8591 8937 if test "$supported" = "yes" ; then 8592 8938 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8593 8939 found="yes" ··· 8612 8958 8613 8959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8614 8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8615 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8616 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8617 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8618 - $as_echo_n "(cached) " >&6 8619 - else 8961 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8962 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8963 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 8964 + then : 8965 + printf %s "(cached) " >&6 8966 + else $as_nop 8620 8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8621 8968 /* end confdefs.h. */ 8622 8969 int i; 8623 8970 _ACEOF 8624 - if ac_fn_c_try_compile "$LINENO"; then : 8971 + if ac_fn_c_try_compile "$LINENO" 8972 + then : 8625 8973 xorg_cv_cc_flag_unknown_warning_option=yes 8626 - else 8974 + else $as_nop 8627 8975 xorg_cv_cc_flag_unknown_warning_option=no 8628 8976 fi 8629 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8977 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8630 8978 fi 8631 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8632 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8979 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8980 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8633 8981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8634 8982 CFLAGS="$xorg_testset_save_CFLAGS" 8635 8983 fi ··· 8639 8987 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8640 8988 fi 8641 8989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8642 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8643 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8644 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8645 - $as_echo_n "(cached) " >&6 8646 - else 8990 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8991 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8992 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 8993 + then : 8994 + printf %s "(cached) " >&6 8995 + else $as_nop 8647 8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8648 8997 /* end confdefs.h. */ 8649 8998 int i; 8650 8999 _ACEOF 8651 - if ac_fn_c_try_compile "$LINENO"; then : 9000 + if ac_fn_c_try_compile "$LINENO" 9001 + then : 8652 9002 xorg_cv_cc_flag_unused_command_line_argument=yes 8653 - else 9003 + else $as_nop 8654 9004 xorg_cv_cc_flag_unused_command_line_argument=no 8655 9005 fi 8656 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9006 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8657 9007 fi 8658 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8659 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9008 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9009 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8660 9010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8661 9011 CFLAGS="$xorg_testset_save_CFLAGS" 8662 9012 fi ··· 8674 9024 8675 9025 CFLAGS="$CFLAGS -Wmain" 8676 9026 8677 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8678 - $as_echo_n "checking if $CC supports -Wmain... " >&6; } 9027 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9028 + printf %s "checking if $CC supports -Wmain... " >&6; } 8679 9029 cacheid=xorg_cv_cc_flag__Wmain 8680 - if eval \${$cacheid+:} false; then : 8681 - $as_echo_n "(cached) " >&6 8682 - else 9030 + if eval test \${$cacheid+y} 9031 + then : 9032 + printf %s "(cached) " >&6 9033 + else $as_nop 8683 9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8684 9035 /* end confdefs.h. */ 8685 9036 int i; 8686 9037 int 8687 - main () 9038 + main (void) 8688 9039 { 8689 9040 8690 9041 ; 8691 9042 return 0; 8692 9043 } 8693 9044 _ACEOF 8694 - if ac_fn_c_try_link "$LINENO"; then : 9045 + if ac_fn_c_try_link "$LINENO" 9046 + then : 8695 9047 eval $cacheid=yes 8696 - else 9048 + else $as_nop 8697 9049 eval $cacheid=no 8698 9050 fi 8699 - rm -f core conftest.err conftest.$ac_objext \ 9051 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8700 9052 conftest$ac_exeext conftest.$ac_ext 8701 9053 fi 8702 9054 ··· 8704 9056 CFLAGS="$xorg_testset_save_CFLAGS" 8705 9057 8706 9058 eval supported=\$$cacheid 8707 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8708 - $as_echo "$supported" >&6; } 9059 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9060 + printf "%s\n" "$supported" >&6; } 8709 9061 if test "$supported" = "yes" ; then 8710 9062 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8711 9063 found="yes" ··· 8730 9082 8731 9083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8732 9084 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8733 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8734 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8735 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8736 - $as_echo_n "(cached) " >&6 8737 - else 9085 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9086 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9087 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9088 + then : 9089 + printf %s "(cached) " >&6 9090 + else $as_nop 8738 9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8739 9092 /* end confdefs.h. */ 8740 9093 int i; 8741 9094 _ACEOF 8742 - if ac_fn_c_try_compile "$LINENO"; then : 9095 + if ac_fn_c_try_compile "$LINENO" 9096 + then : 8743 9097 xorg_cv_cc_flag_unknown_warning_option=yes 8744 - else 9098 + else $as_nop 8745 9099 xorg_cv_cc_flag_unknown_warning_option=no 8746 9100 fi 8747 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9101 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8748 9102 fi 8749 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8750 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9103 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9104 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8751 9105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8752 9106 CFLAGS="$xorg_testset_save_CFLAGS" 8753 9107 fi ··· 8757 9111 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8758 9112 fi 8759 9113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8760 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8761 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8762 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8763 - $as_echo_n "(cached) " >&6 8764 - else 9114 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9115 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9116 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9117 + then : 9118 + printf %s "(cached) " >&6 9119 + else $as_nop 8765 9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8766 9121 /* end confdefs.h. */ 8767 9122 int i; 8768 9123 _ACEOF 8769 - if ac_fn_c_try_compile "$LINENO"; then : 9124 + if ac_fn_c_try_compile "$LINENO" 9125 + then : 8770 9126 xorg_cv_cc_flag_unused_command_line_argument=yes 8771 - else 9127 + else $as_nop 8772 9128 xorg_cv_cc_flag_unused_command_line_argument=no 8773 9129 fi 8774 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9130 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8775 9131 fi 8776 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8777 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9132 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9133 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8778 9134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8779 9135 CFLAGS="$xorg_testset_save_CFLAGS" 8780 9136 fi ··· 8792 9148 8793 9149 CFLAGS="$CFLAGS -Wmissing-braces" 8794 9150 8795 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 8796 - $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9151 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9152 + printf %s "checking if $CC supports -Wmissing-braces... " >&6; } 8797 9153 cacheid=xorg_cv_cc_flag__Wmissing_braces 8798 - if eval \${$cacheid+:} false; then : 8799 - $as_echo_n "(cached) " >&6 8800 - else 9154 + if eval test \${$cacheid+y} 9155 + then : 9156 + printf %s "(cached) " >&6 9157 + else $as_nop 8801 9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8802 9159 /* end confdefs.h. */ 8803 9160 int i; 8804 9161 int 8805 - main () 9162 + main (void) 8806 9163 { 8807 9164 8808 9165 ; 8809 9166 return 0; 8810 9167 } 8811 9168 _ACEOF 8812 - if ac_fn_c_try_link "$LINENO"; then : 9169 + if ac_fn_c_try_link "$LINENO" 9170 + then : 8813 9171 eval $cacheid=yes 8814 - else 9172 + else $as_nop 8815 9173 eval $cacheid=no 8816 9174 fi 8817 - rm -f core conftest.err conftest.$ac_objext \ 9175 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8818 9176 conftest$ac_exeext conftest.$ac_ext 8819 9177 fi 8820 9178 ··· 8822 9180 CFLAGS="$xorg_testset_save_CFLAGS" 8823 9181 8824 9182 eval supported=\$$cacheid 8825 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8826 - $as_echo "$supported" >&6; } 9183 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9184 + printf "%s\n" "$supported" >&6; } 8827 9185 if test "$supported" = "yes" ; then 8828 9186 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 8829 9187 found="yes" ··· 8848 9206 8849 9207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8850 9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8851 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8852 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8853 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8854 - $as_echo_n "(cached) " >&6 8855 - else 9209 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9210 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9211 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9212 + then : 9213 + printf %s "(cached) " >&6 9214 + else $as_nop 8856 9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8857 9216 /* end confdefs.h. */ 8858 9217 int i; 8859 9218 _ACEOF 8860 - if ac_fn_c_try_compile "$LINENO"; then : 9219 + if ac_fn_c_try_compile "$LINENO" 9220 + then : 8861 9221 xorg_cv_cc_flag_unknown_warning_option=yes 8862 - else 9222 + else $as_nop 8863 9223 xorg_cv_cc_flag_unknown_warning_option=no 8864 9224 fi 8865 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9225 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8866 9226 fi 8867 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8868 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9227 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9228 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8869 9229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8870 9230 CFLAGS="$xorg_testset_save_CFLAGS" 8871 9231 fi ··· 8875 9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8876 9236 fi 8877 9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8878 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8879 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8880 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8881 - $as_echo_n "(cached) " >&6 8882 - else 9238 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9239 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9240 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9241 + then : 9242 + printf %s "(cached) " >&6 9243 + else $as_nop 8883 9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8884 9245 /* end confdefs.h. */ 8885 9246 int i; 8886 9247 _ACEOF 8887 - if ac_fn_c_try_compile "$LINENO"; then : 9248 + if ac_fn_c_try_compile "$LINENO" 9249 + then : 8888 9250 xorg_cv_cc_flag_unused_command_line_argument=yes 8889 - else 9251 + else $as_nop 8890 9252 xorg_cv_cc_flag_unused_command_line_argument=no 8891 9253 fi 8892 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9254 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8893 9255 fi 8894 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8895 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9256 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9257 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8896 9258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8897 9259 CFLAGS="$xorg_testset_save_CFLAGS" 8898 9260 fi ··· 8910 9272 8911 9273 CFLAGS="$CFLAGS -Wsequence-point" 8912 9274 8913 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 8914 - $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9275 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9276 + printf %s "checking if $CC supports -Wsequence-point... " >&6; } 8915 9277 cacheid=xorg_cv_cc_flag__Wsequence_point 8916 - if eval \${$cacheid+:} false; then : 8917 - $as_echo_n "(cached) " >&6 8918 - else 9278 + if eval test \${$cacheid+y} 9279 + then : 9280 + printf %s "(cached) " >&6 9281 + else $as_nop 8919 9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8920 9283 /* end confdefs.h. */ 8921 9284 int i; 8922 9285 int 8923 - main () 9286 + main (void) 8924 9287 { 8925 9288 8926 9289 ; 8927 9290 return 0; 8928 9291 } 8929 9292 _ACEOF 8930 - if ac_fn_c_try_link "$LINENO"; then : 9293 + if ac_fn_c_try_link "$LINENO" 9294 + then : 8931 9295 eval $cacheid=yes 8932 - else 9296 + else $as_nop 8933 9297 eval $cacheid=no 8934 9298 fi 8935 - rm -f core conftest.err conftest.$ac_objext \ 9299 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 8936 9300 conftest$ac_exeext conftest.$ac_ext 8937 9301 fi 8938 9302 ··· 8940 9304 CFLAGS="$xorg_testset_save_CFLAGS" 8941 9305 8942 9306 eval supported=\$$cacheid 8943 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8944 - $as_echo "$supported" >&6; } 9307 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9308 + printf "%s\n" "$supported" >&6; } 8945 9309 if test "$supported" = "yes" ; then 8946 9310 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 8947 9311 found="yes" ··· 8966 9330 8967 9331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8968 9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8969 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8970 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8971 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8972 - $as_echo_n "(cached) " >&6 8973 - else 9333 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9334 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9335 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9336 + then : 9337 + printf %s "(cached) " >&6 9338 + else $as_nop 8974 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8975 9340 /* end confdefs.h. */ 8976 9341 int i; 8977 9342 _ACEOF 8978 - if ac_fn_c_try_compile "$LINENO"; then : 9343 + if ac_fn_c_try_compile "$LINENO" 9344 + then : 8979 9345 xorg_cv_cc_flag_unknown_warning_option=yes 8980 - else 9346 + else $as_nop 8981 9347 xorg_cv_cc_flag_unknown_warning_option=no 8982 9348 fi 8983 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9349 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8984 9350 fi 8985 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8986 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9351 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9352 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8987 9353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8988 9354 CFLAGS="$xorg_testset_save_CFLAGS" 8989 9355 fi ··· 8993 9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8994 9360 fi 8995 9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8996 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8997 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8998 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8999 - $as_echo_n "(cached) " >&6 9000 - else 9362 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9363 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9364 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9365 + then : 9366 + printf %s "(cached) " >&6 9367 + else $as_nop 9001 9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9002 9369 /* end confdefs.h. */ 9003 9370 int i; 9004 9371 _ACEOF 9005 - if ac_fn_c_try_compile "$LINENO"; then : 9372 + if ac_fn_c_try_compile "$LINENO" 9373 + then : 9006 9374 xorg_cv_cc_flag_unused_command_line_argument=yes 9007 - else 9375 + else $as_nop 9008 9376 xorg_cv_cc_flag_unused_command_line_argument=no 9009 9377 fi 9010 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9378 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9011 9379 fi 9012 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9013 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9380 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9381 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9014 9382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9015 9383 CFLAGS="$xorg_testset_save_CFLAGS" 9016 9384 fi ··· 9028 9396 9029 9397 CFLAGS="$CFLAGS -Wreturn-type" 9030 9398 9031 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9032 - $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9399 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9400 + printf %s "checking if $CC supports -Wreturn-type... " >&6; } 9033 9401 cacheid=xorg_cv_cc_flag__Wreturn_type 9034 - if eval \${$cacheid+:} false; then : 9035 - $as_echo_n "(cached) " >&6 9036 - else 9402 + if eval test \${$cacheid+y} 9403 + then : 9404 + printf %s "(cached) " >&6 9405 + else $as_nop 9037 9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9038 9407 /* end confdefs.h. */ 9039 9408 int i; 9040 9409 int 9041 - main () 9410 + main (void) 9042 9411 { 9043 9412 9044 9413 ; 9045 9414 return 0; 9046 9415 } 9047 9416 _ACEOF 9048 - if ac_fn_c_try_link "$LINENO"; then : 9417 + if ac_fn_c_try_link "$LINENO" 9418 + then : 9049 9419 eval $cacheid=yes 9050 - else 9420 + else $as_nop 9051 9421 eval $cacheid=no 9052 9422 fi 9053 - rm -f core conftest.err conftest.$ac_objext \ 9423 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9054 9424 conftest$ac_exeext conftest.$ac_ext 9055 9425 fi 9056 9426 ··· 9058 9428 CFLAGS="$xorg_testset_save_CFLAGS" 9059 9429 9060 9430 eval supported=\$$cacheid 9061 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9062 - $as_echo "$supported" >&6; } 9431 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9432 + printf "%s\n" "$supported" >&6; } 9063 9433 if test "$supported" = "yes" ; then 9064 9434 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9065 9435 found="yes" ··· 9084 9454 9085 9455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9086 9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9087 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9088 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9089 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9090 - $as_echo_n "(cached) " >&6 9091 - else 9457 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9458 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9459 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9460 + then : 9461 + printf %s "(cached) " >&6 9462 + else $as_nop 9092 9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9093 9464 /* end confdefs.h. */ 9094 9465 int i; 9095 9466 _ACEOF 9096 - if ac_fn_c_try_compile "$LINENO"; then : 9467 + if ac_fn_c_try_compile "$LINENO" 9468 + then : 9097 9469 xorg_cv_cc_flag_unknown_warning_option=yes 9098 - else 9470 + else $as_nop 9099 9471 xorg_cv_cc_flag_unknown_warning_option=no 9100 9472 fi 9101 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9473 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9102 9474 fi 9103 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9104 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9475 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9476 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9105 9477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9106 9478 CFLAGS="$xorg_testset_save_CFLAGS" 9107 9479 fi ··· 9111 9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9112 9484 fi 9113 9485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9114 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9115 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9116 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9117 - $as_echo_n "(cached) " >&6 9118 - else 9486 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9487 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9488 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9489 + then : 9490 + printf %s "(cached) " >&6 9491 + else $as_nop 9119 9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9120 9493 /* end confdefs.h. */ 9121 9494 int i; 9122 9495 _ACEOF 9123 - if ac_fn_c_try_compile "$LINENO"; then : 9496 + if ac_fn_c_try_compile "$LINENO" 9497 + then : 9124 9498 xorg_cv_cc_flag_unused_command_line_argument=yes 9125 - else 9499 + else $as_nop 9126 9500 xorg_cv_cc_flag_unused_command_line_argument=no 9127 9501 fi 9128 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9502 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9129 9503 fi 9130 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9131 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9504 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9505 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9132 9506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9133 9507 CFLAGS="$xorg_testset_save_CFLAGS" 9134 9508 fi ··· 9146 9520 9147 9521 CFLAGS="$CFLAGS -Wtrigraphs" 9148 9522 9149 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9150 - $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9523 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9524 + printf %s "checking if $CC supports -Wtrigraphs... " >&6; } 9151 9525 cacheid=xorg_cv_cc_flag__Wtrigraphs 9152 - if eval \${$cacheid+:} false; then : 9153 - $as_echo_n "(cached) " >&6 9154 - else 9526 + if eval test \${$cacheid+y} 9527 + then : 9528 + printf %s "(cached) " >&6 9529 + else $as_nop 9155 9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9156 9531 /* end confdefs.h. */ 9157 9532 int i; 9158 9533 int 9159 - main () 9534 + main (void) 9160 9535 { 9161 9536 9162 9537 ; 9163 9538 return 0; 9164 9539 } 9165 9540 _ACEOF 9166 - if ac_fn_c_try_link "$LINENO"; then : 9541 + if ac_fn_c_try_link "$LINENO" 9542 + then : 9167 9543 eval $cacheid=yes 9168 - else 9544 + else $as_nop 9169 9545 eval $cacheid=no 9170 9546 fi 9171 - rm -f core conftest.err conftest.$ac_objext \ 9547 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9172 9548 conftest$ac_exeext conftest.$ac_ext 9173 9549 fi 9174 9550 ··· 9176 9552 CFLAGS="$xorg_testset_save_CFLAGS" 9177 9553 9178 9554 eval supported=\$$cacheid 9179 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9180 - $as_echo "$supported" >&6; } 9555 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9556 + printf "%s\n" "$supported" >&6; } 9181 9557 if test "$supported" = "yes" ; then 9182 9558 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9183 9559 found="yes" ··· 9202 9578 9203 9579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9204 9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9205 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9206 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9207 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9208 - $as_echo_n "(cached) " >&6 9209 - else 9581 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9582 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9583 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9584 + then : 9585 + printf %s "(cached) " >&6 9586 + else $as_nop 9210 9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9211 9588 /* end confdefs.h. */ 9212 9589 int i; 9213 9590 _ACEOF 9214 - if ac_fn_c_try_compile "$LINENO"; then : 9591 + if ac_fn_c_try_compile "$LINENO" 9592 + then : 9215 9593 xorg_cv_cc_flag_unknown_warning_option=yes 9216 - else 9594 + else $as_nop 9217 9595 xorg_cv_cc_flag_unknown_warning_option=no 9218 9596 fi 9219 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9597 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9220 9598 fi 9221 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9222 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9599 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9600 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9223 9601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9224 9602 CFLAGS="$xorg_testset_save_CFLAGS" 9225 9603 fi ··· 9229 9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9230 9608 fi 9231 9609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9232 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9233 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9234 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9235 - $as_echo_n "(cached) " >&6 9236 - else 9610 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9611 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9612 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9613 + then : 9614 + printf %s "(cached) " >&6 9615 + else $as_nop 9237 9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9238 9617 /* end confdefs.h. */ 9239 9618 int i; 9240 9619 _ACEOF 9241 - if ac_fn_c_try_compile "$LINENO"; then : 9620 + if ac_fn_c_try_compile "$LINENO" 9621 + then : 9242 9622 xorg_cv_cc_flag_unused_command_line_argument=yes 9243 - else 9623 + else $as_nop 9244 9624 xorg_cv_cc_flag_unused_command_line_argument=no 9245 9625 fi 9246 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9626 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9247 9627 fi 9248 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9249 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9628 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9629 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9250 9630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9251 9631 CFLAGS="$xorg_testset_save_CFLAGS" 9252 9632 fi ··· 9264 9644 9265 9645 CFLAGS="$CFLAGS -Warray-bounds" 9266 9646 9267 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9268 - $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9647 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9648 + printf %s "checking if $CC supports -Warray-bounds... " >&6; } 9269 9649 cacheid=xorg_cv_cc_flag__Warray_bounds 9270 - if eval \${$cacheid+:} false; then : 9271 - $as_echo_n "(cached) " >&6 9272 - else 9650 + if eval test \${$cacheid+y} 9651 + then : 9652 + printf %s "(cached) " >&6 9653 + else $as_nop 9273 9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9274 9655 /* end confdefs.h. */ 9275 9656 int i; 9276 9657 int 9277 - main () 9658 + main (void) 9278 9659 { 9279 9660 9280 9661 ; 9281 9662 return 0; 9282 9663 } 9283 9664 _ACEOF 9284 - if ac_fn_c_try_link "$LINENO"; then : 9665 + if ac_fn_c_try_link "$LINENO" 9666 + then : 9285 9667 eval $cacheid=yes 9286 - else 9668 + else $as_nop 9287 9669 eval $cacheid=no 9288 9670 fi 9289 - rm -f core conftest.err conftest.$ac_objext \ 9671 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9290 9672 conftest$ac_exeext conftest.$ac_ext 9291 9673 fi 9292 9674 ··· 9294 9676 CFLAGS="$xorg_testset_save_CFLAGS" 9295 9677 9296 9678 eval supported=\$$cacheid 9297 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9298 - $as_echo "$supported" >&6; } 9679 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9680 + printf "%s\n" "$supported" >&6; } 9299 9681 if test "$supported" = "yes" ; then 9300 9682 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9301 9683 found="yes" ··· 9320 9702 9321 9703 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9322 9704 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9323 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9324 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9325 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9326 - $as_echo_n "(cached) " >&6 9327 - else 9705 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9706 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9707 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9708 + then : 9709 + printf %s "(cached) " >&6 9710 + else $as_nop 9328 9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9329 9712 /* end confdefs.h. */ 9330 9713 int i; 9331 9714 _ACEOF 9332 - if ac_fn_c_try_compile "$LINENO"; then : 9715 + if ac_fn_c_try_compile "$LINENO" 9716 + then : 9333 9717 xorg_cv_cc_flag_unknown_warning_option=yes 9334 - else 9718 + else $as_nop 9335 9719 xorg_cv_cc_flag_unknown_warning_option=no 9336 9720 fi 9337 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9721 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9338 9722 fi 9339 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9340 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9723 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9724 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9341 9725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9342 9726 CFLAGS="$xorg_testset_save_CFLAGS" 9343 9727 fi ··· 9347 9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9348 9732 fi 9349 9733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9350 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9351 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9352 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9353 - $as_echo_n "(cached) " >&6 9354 - else 9734 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9735 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9736 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9737 + then : 9738 + printf %s "(cached) " >&6 9739 + else $as_nop 9355 9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9356 9741 /* end confdefs.h. */ 9357 9742 int i; 9358 9743 _ACEOF 9359 - if ac_fn_c_try_compile "$LINENO"; then : 9744 + if ac_fn_c_try_compile "$LINENO" 9745 + then : 9360 9746 xorg_cv_cc_flag_unused_command_line_argument=yes 9361 - else 9747 + else $as_nop 9362 9748 xorg_cv_cc_flag_unused_command_line_argument=no 9363 9749 fi 9364 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9750 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9365 9751 fi 9366 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9367 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9752 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9753 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9368 9754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9369 9755 CFLAGS="$xorg_testset_save_CFLAGS" 9370 9756 fi ··· 9382 9768 9383 9769 CFLAGS="$CFLAGS -Wwrite-strings" 9384 9770 9385 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9386 - $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9771 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9772 + printf %s "checking if $CC supports -Wwrite-strings... " >&6; } 9387 9773 cacheid=xorg_cv_cc_flag__Wwrite_strings 9388 - if eval \${$cacheid+:} false; then : 9389 - $as_echo_n "(cached) " >&6 9390 - else 9774 + if eval test \${$cacheid+y} 9775 + then : 9776 + printf %s "(cached) " >&6 9777 + else $as_nop 9391 9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9392 9779 /* end confdefs.h. */ 9393 9780 int i; 9394 9781 int 9395 - main () 9782 + main (void) 9396 9783 { 9397 9784 9398 9785 ; 9399 9786 return 0; 9400 9787 } 9401 9788 _ACEOF 9402 - if ac_fn_c_try_link "$LINENO"; then : 9789 + if ac_fn_c_try_link "$LINENO" 9790 + then : 9403 9791 eval $cacheid=yes 9404 - else 9792 + else $as_nop 9405 9793 eval $cacheid=no 9406 9794 fi 9407 - rm -f core conftest.err conftest.$ac_objext \ 9795 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9408 9796 conftest$ac_exeext conftest.$ac_ext 9409 9797 fi 9410 9798 ··· 9412 9800 CFLAGS="$xorg_testset_save_CFLAGS" 9413 9801 9414 9802 eval supported=\$$cacheid 9415 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9416 - $as_echo "$supported" >&6; } 9803 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9804 + printf "%s\n" "$supported" >&6; } 9417 9805 if test "$supported" = "yes" ; then 9418 9806 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9419 9807 found="yes" ··· 9438 9826 9439 9827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9440 9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9441 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9442 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9443 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9444 - $as_echo_n "(cached) " >&6 9445 - else 9829 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9830 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9831 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9832 + then : 9833 + printf %s "(cached) " >&6 9834 + else $as_nop 9446 9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9447 9836 /* end confdefs.h. */ 9448 9837 int i; 9449 9838 _ACEOF 9450 - if ac_fn_c_try_compile "$LINENO"; then : 9839 + if ac_fn_c_try_compile "$LINENO" 9840 + then : 9451 9841 xorg_cv_cc_flag_unknown_warning_option=yes 9452 - else 9842 + else $as_nop 9453 9843 xorg_cv_cc_flag_unknown_warning_option=no 9454 9844 fi 9455 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9845 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9456 9846 fi 9457 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9458 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9847 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9848 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9459 9849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9460 9850 CFLAGS="$xorg_testset_save_CFLAGS" 9461 9851 fi ··· 9465 9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9466 9856 fi 9467 9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9468 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9469 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9470 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9471 - $as_echo_n "(cached) " >&6 9472 - else 9858 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9859 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9860 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9861 + then : 9862 + printf %s "(cached) " >&6 9863 + else $as_nop 9473 9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9474 9865 /* end confdefs.h. */ 9475 9866 int i; 9476 9867 _ACEOF 9477 - if ac_fn_c_try_compile "$LINENO"; then : 9868 + if ac_fn_c_try_compile "$LINENO" 9869 + then : 9478 9870 xorg_cv_cc_flag_unused_command_line_argument=yes 9479 - else 9871 + else $as_nop 9480 9872 xorg_cv_cc_flag_unused_command_line_argument=no 9481 9873 fi 9482 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9874 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9483 9875 fi 9484 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9485 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9876 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9877 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9486 9878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9487 9879 CFLAGS="$xorg_testset_save_CFLAGS" 9488 9880 fi ··· 9500 9892 9501 9893 CFLAGS="$CFLAGS -Waddress" 9502 9894 9503 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9504 - $as_echo_n "checking if $CC supports -Waddress... " >&6; } 9895 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9896 + printf %s "checking if $CC supports -Waddress... " >&6; } 9505 9897 cacheid=xorg_cv_cc_flag__Waddress 9506 - if eval \${$cacheid+:} false; then : 9507 - $as_echo_n "(cached) " >&6 9508 - else 9898 + if eval test \${$cacheid+y} 9899 + then : 9900 + printf %s "(cached) " >&6 9901 + else $as_nop 9509 9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9510 9903 /* end confdefs.h. */ 9511 9904 int i; 9512 9905 int 9513 - main () 9906 + main (void) 9514 9907 { 9515 9908 9516 9909 ; 9517 9910 return 0; 9518 9911 } 9519 9912 _ACEOF 9520 - if ac_fn_c_try_link "$LINENO"; then : 9913 + if ac_fn_c_try_link "$LINENO" 9914 + then : 9521 9915 eval $cacheid=yes 9522 - else 9916 + else $as_nop 9523 9917 eval $cacheid=no 9524 9918 fi 9525 - rm -f core conftest.err conftest.$ac_objext \ 9919 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9526 9920 conftest$ac_exeext conftest.$ac_ext 9527 9921 fi 9528 9922 ··· 9530 9924 CFLAGS="$xorg_testset_save_CFLAGS" 9531 9925 9532 9926 eval supported=\$$cacheid 9533 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9534 - $as_echo "$supported" >&6; } 9927 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9928 + printf "%s\n" "$supported" >&6; } 9535 9929 if test "$supported" = "yes" ; then 9536 9930 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9537 9931 found="yes" ··· 9556 9950 9557 9951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9558 9952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9559 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9560 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9561 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9562 - $as_echo_n "(cached) " >&6 9563 - else 9953 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9954 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9955 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 9956 + then : 9957 + printf %s "(cached) " >&6 9958 + else $as_nop 9564 9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9565 9960 /* end confdefs.h. */ 9566 9961 int i; 9567 9962 _ACEOF 9568 - if ac_fn_c_try_compile "$LINENO"; then : 9963 + if ac_fn_c_try_compile "$LINENO" 9964 + then : 9569 9965 xorg_cv_cc_flag_unknown_warning_option=yes 9570 - else 9966 + else $as_nop 9571 9967 xorg_cv_cc_flag_unknown_warning_option=no 9572 9968 fi 9573 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9969 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9574 9970 fi 9575 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9576 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9971 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9972 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9577 9973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9578 9974 CFLAGS="$xorg_testset_save_CFLAGS" 9579 9975 fi ··· 9583 9979 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9584 9980 fi 9585 9981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9586 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9587 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9588 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9589 - $as_echo_n "(cached) " >&6 9590 - else 9982 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9983 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9984 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 9985 + then : 9986 + printf %s "(cached) " >&6 9987 + else $as_nop 9591 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9592 9989 /* end confdefs.h. */ 9593 9990 int i; 9594 9991 _ACEOF 9595 - if ac_fn_c_try_compile "$LINENO"; then : 9992 + if ac_fn_c_try_compile "$LINENO" 9993 + then : 9596 9994 xorg_cv_cc_flag_unused_command_line_argument=yes 9597 - else 9995 + else $as_nop 9598 9996 xorg_cv_cc_flag_unused_command_line_argument=no 9599 9997 fi 9600 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9998 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9601 9999 fi 9602 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9603 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10000 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10001 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9604 10002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9605 10003 CFLAGS="$xorg_testset_save_CFLAGS" 9606 10004 fi ··· 9618 10016 9619 10017 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9620 10018 9621 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9622 - $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10019 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10020 + printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9623 10021 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9624 - if eval \${$cacheid+:} false; then : 9625 - $as_echo_n "(cached) " >&6 9626 - else 10022 + if eval test \${$cacheid+y} 10023 + then : 10024 + printf %s "(cached) " >&6 10025 + else $as_nop 9627 10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9628 10027 /* end confdefs.h. */ 9629 10028 int i; 9630 10029 int 9631 - main () 10030 + main (void) 9632 10031 { 9633 10032 9634 10033 ; 9635 10034 return 0; 9636 10035 } 9637 10036 _ACEOF 9638 - if ac_fn_c_try_link "$LINENO"; then : 10037 + if ac_fn_c_try_link "$LINENO" 10038 + then : 9639 10039 eval $cacheid=yes 9640 - else 10040 + else $as_nop 9641 10041 eval $cacheid=no 9642 10042 fi 9643 - rm -f core conftest.err conftest.$ac_objext \ 10043 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9644 10044 conftest$ac_exeext conftest.$ac_ext 9645 10045 fi 9646 10046 ··· 9648 10048 CFLAGS="$xorg_testset_save_CFLAGS" 9649 10049 9650 10050 eval supported=\$$cacheid 9651 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9652 - $as_echo "$supported" >&6; } 10051 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10052 + printf "%s\n" "$supported" >&6; } 9653 10053 if test "$supported" = "yes" ; then 9654 10054 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9655 10055 found="yes" ··· 9674 10074 9675 10075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9676 10076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9677 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9678 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9679 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9680 - $as_echo_n "(cached) " >&6 9681 - else 10077 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10078 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10079 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10080 + then : 10081 + printf %s "(cached) " >&6 10082 + else $as_nop 9682 10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9683 10084 /* end confdefs.h. */ 9684 10085 int i; 9685 10086 _ACEOF 9686 - if ac_fn_c_try_compile "$LINENO"; then : 10087 + if ac_fn_c_try_compile "$LINENO" 10088 + then : 9687 10089 xorg_cv_cc_flag_unknown_warning_option=yes 9688 - else 10090 + else $as_nop 9689 10091 xorg_cv_cc_flag_unknown_warning_option=no 9690 10092 fi 9691 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10093 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9692 10094 fi 9693 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9694 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10095 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10096 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9695 10097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9696 10098 CFLAGS="$xorg_testset_save_CFLAGS" 9697 10099 fi ··· 9701 10103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9702 10104 fi 9703 10105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9704 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9705 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9706 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9707 - $as_echo_n "(cached) " >&6 9708 - else 10106 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10107 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10108 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10109 + then : 10110 + printf %s "(cached) " >&6 10111 + else $as_nop 9709 10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9710 10113 /* end confdefs.h. */ 9711 10114 int i; 9712 10115 _ACEOF 9713 - if ac_fn_c_try_compile "$LINENO"; then : 10116 + if ac_fn_c_try_compile "$LINENO" 10117 + then : 9714 10118 xorg_cv_cc_flag_unused_command_line_argument=yes 9715 - else 10119 + else $as_nop 9716 10120 xorg_cv_cc_flag_unused_command_line_argument=no 9717 10121 fi 9718 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10122 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9719 10123 fi 9720 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9721 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10124 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10125 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9722 10126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9723 10127 CFLAGS="$xorg_testset_save_CFLAGS" 9724 10128 fi ··· 9736 10140 9737 10141 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 9738 10142 9739 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 9740 - $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10143 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10144 + printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 9741 10145 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 9742 - if eval \${$cacheid+:} false; then : 9743 - $as_echo_n "(cached) " >&6 9744 - else 10146 + if eval test \${$cacheid+y} 10147 + then : 10148 + printf %s "(cached) " >&6 10149 + else $as_nop 9745 10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9746 10151 /* end confdefs.h. */ 9747 10152 int i; 9748 10153 int 9749 - main () 10154 + main (void) 9750 10155 { 9751 10156 9752 10157 ; 9753 10158 return 0; 9754 10159 } 9755 10160 _ACEOF 9756 - if ac_fn_c_try_link "$LINENO"; then : 10161 + if ac_fn_c_try_link "$LINENO" 10162 + then : 9757 10163 eval $cacheid=yes 9758 - else 10164 + else $as_nop 9759 10165 eval $cacheid=no 9760 10166 fi 9761 - rm -f core conftest.err conftest.$ac_objext \ 10167 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9762 10168 conftest$ac_exeext conftest.$ac_ext 9763 10169 fi 9764 10170 ··· 9766 10172 CFLAGS="$xorg_testset_save_CFLAGS" 9767 10173 9768 10174 eval supported=\$$cacheid 9769 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9770 - $as_echo "$supported" >&6; } 10175 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10176 + printf "%s\n" "$supported" >&6; } 9771 10177 if test "$supported" = "yes" ; then 9772 10178 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 9773 10179 found="yes" ··· 9796 10202 9797 10203 9798 10204 # Check whether --enable-strict-compilation was given. 9799 - if test "${enable_strict_compilation+set}" = set; then : 10205 + if test ${enable_strict_compilation+y} 10206 + then : 9800 10207 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 9801 - else 10208 + else $as_nop 9802 10209 STRICT_COMPILE=no 9803 10210 fi 9804 10211 ··· 9825 10232 9826 10233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9827 10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9828 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9829 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9830 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9831 - $as_echo_n "(cached) " >&6 9832 - else 10235 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10236 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10237 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10238 + then : 10239 + printf %s "(cached) " >&6 10240 + else $as_nop 9833 10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9834 10242 /* end confdefs.h. */ 9835 10243 int i; 9836 10244 _ACEOF 9837 - if ac_fn_c_try_compile "$LINENO"; then : 10245 + if ac_fn_c_try_compile "$LINENO" 10246 + then : 9838 10247 xorg_cv_cc_flag_unknown_warning_option=yes 9839 - else 10248 + else $as_nop 9840 10249 xorg_cv_cc_flag_unknown_warning_option=no 9841 10250 fi 9842 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10251 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9843 10252 fi 9844 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9845 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10253 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10254 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9846 10255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9847 10256 CFLAGS="$xorg_testset_save_CFLAGS" 9848 10257 fi ··· 9852 10261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9853 10262 fi 9854 10263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9855 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9856 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9857 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9858 - $as_echo_n "(cached) " >&6 9859 - else 10264 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10265 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10266 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10267 + then : 10268 + printf %s "(cached) " >&6 10269 + else $as_nop 9860 10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9861 10271 /* end confdefs.h. */ 9862 10272 int i; 9863 10273 _ACEOF 9864 - if ac_fn_c_try_compile "$LINENO"; then : 10274 + if ac_fn_c_try_compile "$LINENO" 10275 + then : 9865 10276 xorg_cv_cc_flag_unused_command_line_argument=yes 9866 - else 10277 + else $as_nop 9867 10278 xorg_cv_cc_flag_unused_command_line_argument=no 9868 10279 fi 9869 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10280 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9870 10281 fi 9871 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9872 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10282 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10283 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9873 10284 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9874 10285 CFLAGS="$xorg_testset_save_CFLAGS" 9875 10286 fi ··· 9887 10298 9888 10299 CFLAGS="$CFLAGS -pedantic" 9889 10300 9890 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 9891 - $as_echo_n "checking if $CC supports -pedantic... " >&6; } 10301 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10302 + printf %s "checking if $CC supports -pedantic... " >&6; } 9892 10303 cacheid=xorg_cv_cc_flag__pedantic 9893 - if eval \${$cacheid+:} false; then : 9894 - $as_echo_n "(cached) " >&6 9895 - else 10304 + if eval test \${$cacheid+y} 10305 + then : 10306 + printf %s "(cached) " >&6 10307 + else $as_nop 9896 10308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9897 10309 /* end confdefs.h. */ 9898 10310 int i; 9899 10311 int 9900 - main () 10312 + main (void) 9901 10313 { 9902 10314 9903 10315 ; 9904 10316 return 0; 9905 10317 } 9906 10318 _ACEOF 9907 - if ac_fn_c_try_link "$LINENO"; then : 10319 + if ac_fn_c_try_link "$LINENO" 10320 + then : 9908 10321 eval $cacheid=yes 9909 - else 10322 + else $as_nop 9910 10323 eval $cacheid=no 9911 10324 fi 9912 - rm -f core conftest.err conftest.$ac_objext \ 10325 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 9913 10326 conftest$ac_exeext conftest.$ac_ext 9914 10327 fi 9915 10328 ··· 9917 10330 CFLAGS="$xorg_testset_save_CFLAGS" 9918 10331 9919 10332 eval supported=\$$cacheid 9920 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9921 - $as_echo "$supported" >&6; } 10333 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10334 + printf "%s\n" "$supported" >&6; } 9922 10335 if test "$supported" = "yes" ; then 9923 10336 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 9924 10337 found="yes" ··· 9943 10356 9944 10357 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9945 10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9946 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9947 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9948 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9949 - $as_echo_n "(cached) " >&6 9950 - else 10359 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10360 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10361 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10362 + then : 10363 + printf %s "(cached) " >&6 10364 + else $as_nop 9951 10365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9952 10366 /* end confdefs.h. */ 9953 10367 int i; 9954 10368 _ACEOF 9955 - if ac_fn_c_try_compile "$LINENO"; then : 10369 + if ac_fn_c_try_compile "$LINENO" 10370 + then : 9956 10371 xorg_cv_cc_flag_unknown_warning_option=yes 9957 - else 10372 + else $as_nop 9958 10373 xorg_cv_cc_flag_unknown_warning_option=no 9959 10374 fi 9960 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10375 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9961 10376 fi 9962 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9963 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10377 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10378 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9964 10379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9965 10380 CFLAGS="$xorg_testset_save_CFLAGS" 9966 10381 fi ··· 9970 10385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9971 10386 fi 9972 10387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9973 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9974 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9975 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9976 - $as_echo_n "(cached) " >&6 9977 - else 10388 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10389 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10390 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10391 + then : 10392 + printf %s "(cached) " >&6 10393 + else $as_nop 9978 10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9979 10395 /* end confdefs.h. */ 9980 10396 int i; 9981 10397 _ACEOF 9982 - if ac_fn_c_try_compile "$LINENO"; then : 10398 + if ac_fn_c_try_compile "$LINENO" 10399 + then : 9983 10400 xorg_cv_cc_flag_unused_command_line_argument=yes 9984 - else 10401 + else $as_nop 9985 10402 xorg_cv_cc_flag_unused_command_line_argument=no 9986 10403 fi 9987 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10404 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9988 10405 fi 9989 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9990 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10406 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10407 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9991 10408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9992 10409 CFLAGS="$xorg_testset_save_CFLAGS" 9993 10410 fi ··· 10005 10422 10006 10423 CFLAGS="$CFLAGS -Werror" 10007 10424 10008 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10009 - $as_echo_n "checking if $CC supports -Werror... " >&6; } 10425 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10426 + printf %s "checking if $CC supports -Werror... " >&6; } 10010 10427 cacheid=xorg_cv_cc_flag__Werror 10011 - if eval \${$cacheid+:} false; then : 10012 - $as_echo_n "(cached) " >&6 10013 - else 10428 + if eval test \${$cacheid+y} 10429 + then : 10430 + printf %s "(cached) " >&6 10431 + else $as_nop 10014 10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10015 10433 /* end confdefs.h. */ 10016 10434 int i; 10017 10435 int 10018 - main () 10436 + main (void) 10019 10437 { 10020 10438 10021 10439 ; 10022 10440 return 0; 10023 10441 } 10024 10442 _ACEOF 10025 - if ac_fn_c_try_link "$LINENO"; then : 10443 + if ac_fn_c_try_link "$LINENO" 10444 + then : 10026 10445 eval $cacheid=yes 10027 - else 10446 + else $as_nop 10028 10447 eval $cacheid=no 10029 10448 fi 10030 - rm -f core conftest.err conftest.$ac_objext \ 10449 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10031 10450 conftest$ac_exeext conftest.$ac_ext 10032 10451 fi 10033 10452 ··· 10035 10454 CFLAGS="$xorg_testset_save_CFLAGS" 10036 10455 10037 10456 eval supported=\$$cacheid 10038 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10039 - $as_echo "$supported" >&6; } 10457 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10458 + printf "%s\n" "$supported" >&6; } 10040 10459 if test "$supported" = "yes" ; then 10041 10460 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10042 10461 found="yes" ··· 10054 10473 10055 10474 CFLAGS="$CFLAGS -errwarn" 10056 10475 10057 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10058 - $as_echo_n "checking if $CC supports -errwarn... " >&6; } 10476 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10477 + printf %s "checking if $CC supports -errwarn... " >&6; } 10059 10478 cacheid=xorg_cv_cc_flag__errwarn 10060 - if eval \${$cacheid+:} false; then : 10061 - $as_echo_n "(cached) " >&6 10062 - else 10479 + if eval test \${$cacheid+y} 10480 + then : 10481 + printf %s "(cached) " >&6 10482 + else $as_nop 10063 10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10064 10484 /* end confdefs.h. */ 10065 10485 int i; 10066 10486 int 10067 - main () 10487 + main (void) 10068 10488 { 10069 10489 10070 10490 ; 10071 10491 return 0; 10072 10492 } 10073 10493 _ACEOF 10074 - if ac_fn_c_try_link "$LINENO"; then : 10494 + if ac_fn_c_try_link "$LINENO" 10495 + then : 10075 10496 eval $cacheid=yes 10076 - else 10497 + else $as_nop 10077 10498 eval $cacheid=no 10078 10499 fi 10079 - rm -f core conftest.err conftest.$ac_objext \ 10500 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10080 10501 conftest$ac_exeext conftest.$ac_ext 10081 10502 fi 10082 10503 ··· 10084 10505 CFLAGS="$xorg_testset_save_CFLAGS" 10085 10506 10086 10507 eval supported=\$$cacheid 10087 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10088 - $as_echo "$supported" >&6; } 10508 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10509 + printf "%s\n" "$supported" >&6; } 10089 10510 if test "$supported" = "yes" ; then 10090 10511 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10091 10512 found="yes" ··· 10113 10534 10114 10535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10115 10536 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10116 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10117 - $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10118 - if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10119 - $as_echo_n "(cached) " >&6 10120 - else 10537 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10538 + printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10539 + if test ${xorg_cv_cc_flag_unknown_warning_option+y} 10540 + then : 10541 + printf %s "(cached) " >&6 10542 + else $as_nop 10121 10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10122 10544 /* end confdefs.h. */ 10123 10545 int i; 10124 10546 _ACEOF 10125 - if ac_fn_c_try_compile "$LINENO"; then : 10547 + if ac_fn_c_try_compile "$LINENO" 10548 + then : 10126 10549 xorg_cv_cc_flag_unknown_warning_option=yes 10127 - else 10550 + else $as_nop 10128 10551 xorg_cv_cc_flag_unknown_warning_option=no 10129 10552 fi 10130 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10553 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10131 10554 fi 10132 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10133 - $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10555 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10556 + printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10134 10557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10135 10558 CFLAGS="$xorg_testset_save_CFLAGS" 10136 10559 fi ··· 10140 10563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10141 10564 fi 10142 10565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10143 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10144 - $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10145 - if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10146 - $as_echo_n "(cached) " >&6 10147 - else 10566 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10567 + printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10568 + if test ${xorg_cv_cc_flag_unused_command_line_argument+y} 10569 + then : 10570 + printf %s "(cached) " >&6 10571 + else $as_nop 10148 10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10149 10573 /* end confdefs.h. */ 10150 10574 int i; 10151 10575 _ACEOF 10152 - if ac_fn_c_try_compile "$LINENO"; then : 10576 + if ac_fn_c_try_compile "$LINENO" 10577 + then : 10153 10578 xorg_cv_cc_flag_unused_command_line_argument=yes 10154 - else 10579 + else $as_nop 10155 10580 xorg_cv_cc_flag_unused_command_line_argument=no 10156 10581 fi 10157 - rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10582 + rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10158 10583 fi 10159 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10160 - $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10584 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10585 + printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10161 10586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10162 10587 CFLAGS="$xorg_testset_save_CFLAGS" 10163 10588 fi ··· 10175 10600 10176 10601 CFLAGS="$CFLAGS -Werror=attributes" 10177 10602 10178 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10179 - $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10603 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10604 + printf %s "checking if $CC supports -Werror=attributes... " >&6; } 10180 10605 cacheid=xorg_cv_cc_flag__Werror_attributes 10181 - if eval \${$cacheid+:} false; then : 10182 - $as_echo_n "(cached) " >&6 10183 - else 10606 + if eval test \${$cacheid+y} 10607 + then : 10608 + printf %s "(cached) " >&6 10609 + else $as_nop 10184 10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10185 10611 /* end confdefs.h. */ 10186 10612 int i; 10187 10613 int 10188 - main () 10614 + main (void) 10189 10615 { 10190 10616 10191 10617 ; 10192 10618 return 0; 10193 10619 } 10194 10620 _ACEOF 10195 - if ac_fn_c_try_link "$LINENO"; then : 10621 + if ac_fn_c_try_link "$LINENO" 10622 + then : 10196 10623 eval $cacheid=yes 10197 - else 10624 + else $as_nop 10198 10625 eval $cacheid=no 10199 10626 fi 10200 - rm -f core conftest.err conftest.$ac_objext \ 10627 + rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10201 10628 conftest$ac_exeext conftest.$ac_ext 10202 10629 fi 10203 10630 ··· 10205 10632 CFLAGS="$xorg_testset_save_CFLAGS" 10206 10633 10207 10634 eval supported=\$$cacheid 10208 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10209 - $as_echo "$supported" >&6; } 10635 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10636 + printf "%s\n" "$supported" >&6; } 10210 10637 if test "$supported" = "yes" ; then 10211 10638 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10212 10639 found="yes" ··· 10219 10646 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10220 10647 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10221 10648 fi 10649 + 10222 10650 10223 10651 10224 10652 10225 10653 10226 10654 10227 10655 10656 + 10228 10657 cat >>confdefs.h <<_ACEOF 10229 10658 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10230 10659 _ACEOF ··· 10234 10663 PVM="0" 10235 10664 fi 10236 10665 10237 - cat >>confdefs.h <<_ACEOF 10238 - #define PACKAGE_VERSION_MINOR $PVM 10239 - _ACEOF 10666 + printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h 10240 10667 10241 10668 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10242 10669 if test "x$PVP" = "x"; then 10243 10670 PVP="0" 10244 10671 fi 10245 10672 10246 - cat >>confdefs.h <<_ACEOF 10247 - #define PACKAGE_VERSION_PATCHLEVEL $PVP 10248 - _ACEOF 10673 + printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h 10249 10674 10250 10675 10251 10676 ··· 10275 10700 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 10276 10701 # check for a man page file found in later versions that use 10277 10702 # traditional section numbers instead 10278 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10279 - $as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 10280 - if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 10281 - $as_echo_n "(cached) " >&6 10282 - else 10703 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 10704 + printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; } 10705 + if test ${ac_cv_file__usr_share_man_man7_attributes_7+y} 10706 + then : 10707 + printf %s "(cached) " >&6 10708 + else $as_nop 10283 10709 test "$cross_compiling" = yes && 10284 10710 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10285 10711 if test -r "/usr/share/man/man7/attributes.7"; then ··· 10288 10714 ac_cv_file__usr_share_man_man7_attributes_7=no 10289 10715 fi 10290 10716 fi 10291 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10292 - $as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10293 - if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 10717 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 10718 + printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 10719 + if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes 10720 + then : 10294 10721 SYSV_MAN_SECTIONS=false 10295 - else 10722 + else $as_nop 10296 10723 SYSV_MAN_SECTIONS=true 10297 10724 fi 10298 10725 ··· 10387 10814 10388 10815 10389 10816 # Check whether --enable-silent-rules was given. 10390 - if test "${enable_silent_rules+set}" = set; then : 10817 + if test ${enable_silent_rules+y} 10818 + then : 10391 10819 enableval=$enable_silent_rules; 10392 10820 fi 10393 10821 ··· 10397 10825 *) AM_DEFAULT_VERBOSITY=0;; 10398 10826 esac 10399 10827 am_make=${MAKE-make} 10400 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10401 - $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10402 - if ${am_cv_make_support_nested_variables+:} false; then : 10403 - $as_echo_n "(cached) " >&6 10404 - else 10405 - if $as_echo 'TRUE=$(BAR$(V)) 10828 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10829 + printf %s "checking whether $am_make supports nested variables... " >&6; } 10830 + if test ${am_cv_make_support_nested_variables+y} 10831 + then : 10832 + printf %s "(cached) " >&6 10833 + else $as_nop 10834 + if printf "%s\n" 'TRUE=$(BAR$(V)) 10406 10835 BAR0=false 10407 10836 BAR1=true 10408 10837 V=1 ··· 10414 10843 am_cv_make_support_nested_variables=no 10415 10844 fi 10416 10845 fi 10417 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10418 - $as_echo "$am_cv_make_support_nested_variables" >&6; } 10846 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10847 + printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } 10419 10848 if test $am_cv_make_support_nested_variables = yes; then 10420 10849 AM_V='$(V)' 10421 10850 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' ··· 10427 10856 10428 10857 10429 10858 10859 + 10860 + # Optional dependencies 10861 + 10862 + # Check whether --with-xkb was given. 10863 + if test ${with_xkb+y} 10864 + then : 10865 + withval=$with_xkb; use_xkb="$withval" 10866 + else $as_nop 10867 + use_xkb="yes" 10868 + fi 10869 + 10870 + if test x$use_xkb != xno ; then 10871 + XKBMODULE="xkbfile" 10872 + 10873 + printf "%s\n" "#define XKB 1" >>confdefs.h 10874 + 10875 + fi 10876 + 10430 10877 # Obtain compiler/linker options from dependencies 10431 10878 10432 10879 pkg_failed=no 10433 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17" >&5 10434 - $as_echo_n "checking for xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17... " >&6; } 10880 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" >&5 10881 + printf %s "checking for xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}... " >&6; } 10435 10882 10436 10883 if test -n "$EDITRES_CFLAGS"; then 10437 10884 pkg_cv_EDITRES_CFLAGS="$EDITRES_CFLAGS" 10438 10885 elif test -n "$PKG_CONFIG"; then 10439 10886 if test -n "$PKG_CONFIG" && \ 10440 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17\""; } >&5 10441 - ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17") 2>&5 10887 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5 10888 + ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5 10442 10889 ac_status=$? 10443 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10890 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10444 10891 test $ac_status = 0; }; then 10445 - pkg_cv_EDITRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17" 2>/dev/null` 10892 + pkg_cv_EDITRES_CFLAGS=`$PKG_CONFIG --cflags "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null` 10446 10893 test "x$?" != "x0" && pkg_failed=yes 10447 10894 else 10448 10895 pkg_failed=yes ··· 10454 10901 pkg_cv_EDITRES_LIBS="$EDITRES_LIBS" 10455 10902 elif test -n "$PKG_CONFIG"; then 10456 10903 if test -n "$PKG_CONFIG" && \ 10457 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17\""; } >&5 10458 - ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17") 2>&5 10904 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 \${XKBMODULE}\""; } >&5 10905 + ($PKG_CONFIG --exists --print-errors "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}") 2>&5 10459 10906 ac_status=$? 10460 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10907 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10461 10908 test $ac_status = 0; }; then 10462 - pkg_cv_EDITRES_LIBS=`$PKG_CONFIG --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17" 2>/dev/null` 10909 + pkg_cv_EDITRES_LIBS=`$PKG_CONFIG --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>/dev/null` 10463 10910 test "x$?" != "x0" && pkg_failed=yes 10464 10911 else 10465 10912 pkg_failed=yes ··· 10471 10918 10472 10919 10473 10920 if test $pkg_failed = yes; then 10474 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10475 - $as_echo "no" >&6; } 10921 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10922 + printf "%s\n" "no" >&6; } 10476 10923 10477 10924 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10478 10925 _pkg_short_errors_supported=yes ··· 10480 10927 _pkg_short_errors_supported=no 10481 10928 fi 10482 10929 if test $_pkg_short_errors_supported = yes; then 10483 - EDITRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17" 2>&1` 10930 + EDITRES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1` 10484 10931 else 10485 - EDITRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17" 2>&1` 10932 + EDITRES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}" 2>&1` 10486 10933 fi 10487 10934 # Put the nasty error message in config.log where it belongs 10488 10935 echo "$EDITRES_PKG_ERRORS" >&5 10489 10936 10490 - as_fn_error $? "Package requirements (xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17) were not met: 10937 + as_fn_error $? "Package requirements (xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}) were not met: 10491 10938 10492 10939 $EDITRES_PKG_ERRORS 10493 10940 ··· 10498 10945 and EDITRES_LIBS to avoid the need to call pkg-config. 10499 10946 See the pkg-config man page for more details." "$LINENO" 5 10500 10947 elif test $pkg_failed = untried; then 10501 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10502 - $as_echo "no" >&6; } 10503 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10504 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10948 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10949 + printf "%s\n" "no" >&6; } 10950 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10951 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 10505 10952 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10506 10953 is in your PATH or set the PKG_CONFIG environment variable to the full 10507 10954 path to pkg-config. ··· 10515 10962 else 10516 10963 EDITRES_CFLAGS=$pkg_cv_EDITRES_CFLAGS 10517 10964 EDITRES_LIBS=$pkg_cv_EDITRES_LIBS 10518 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10519 - $as_echo "yes" >&6; } 10965 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10966 + printf "%s\n" "yes" >&6; } 10520 10967 10521 10968 fi 10522 10969 10523 10970 10524 10971 pkg_failed=no 10525 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xt" >&5 10526 - $as_echo_n "checking for xt... " >&6; } 10972 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xt" >&5 10973 + printf %s "checking for xt... " >&6; } 10527 10974 10528 10975 if test -n "$APPDEFS_CFLAGS"; then 10529 10976 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 10530 10977 elif test -n "$PKG_CONFIG"; then 10531 10978 if test -n "$PKG_CONFIG" && \ 10532 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10979 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10533 10980 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10534 10981 ac_status=$? 10535 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10982 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10536 10983 test $ac_status = 0; }; then 10537 10984 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 10538 10985 test "x$?" != "x0" && pkg_failed=yes ··· 10546 10993 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 10547 10994 elif test -n "$PKG_CONFIG"; then 10548 10995 if test -n "$PKG_CONFIG" && \ 10549 - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10996 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5 10550 10997 ($PKG_CONFIG --exists --print-errors "xt") 2>&5 10551 10998 ac_status=$? 10552 - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10999 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10553 11000 test $ac_status = 0; }; then 10554 11001 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 10555 11002 test "x$?" != "x0" && pkg_failed=yes ··· 10563 11010 10564 11011 10565 11012 if test $pkg_failed = yes; then 10566 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10567 - $as_echo "no" >&6; } 11013 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11014 + printf "%s\n" "no" >&6; } 10568 11015 10569 11016 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10570 11017 _pkg_short_errors_supported=yes ··· 10590 11037 and APPDEFS_LIBS to avoid the need to call pkg-config. 10591 11038 See the pkg-config man page for more details." "$LINENO" 5 10592 11039 elif test $pkg_failed = untried; then 10593 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10594 - $as_echo "no" >&6; } 10595 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10596 - $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11040 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 11041 + printf "%s\n" "no" >&6; } 11042 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11043 + printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 10597 11044 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10598 11045 is in your PATH or set the PKG_CONFIG environment variable to the full 10599 11046 path to pkg-config. ··· 10607 11054 else 10608 11055 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 10609 11056 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 10610 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10611 - $as_echo "yes" >&6; } 11057 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11058 + printf "%s\n" "yes" >&6; } 10612 11059 10613 11060 fi 10614 11061 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 10615 11062 10616 11063 # Check whether --with-appdefaultdir was given. 10617 - if test "${with_appdefaultdir+set}" = set; then : 11064 + if test ${with_appdefaultdir+y} 11065 + then : 10618 11066 withval=$with_appdefaultdir; appdefaultdir="$withval" 10619 - else 11067 + else $as_nop 10620 11068 appdefaultdir="${xt_appdefaultdir}" 10621 11069 fi 10622 11070 ··· 10651 11099 case $ac_val in #( 10652 11100 *${as_nl}*) 10653 11101 case $ac_var in #( 10654 - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10655 - $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11102 + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11103 + printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10656 11104 esac 10657 11105 case $ac_var in #( 10658 11106 _ | IFS | as_nl) ;; #( ··· 10682 11130 /^ac_cv_env_/b end 10683 11131 t clear 10684 11132 :clear 10685 - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11133 + s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 10686 11134 t end 10687 11135 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10688 11136 :end' >>confcache 10689 11137 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10690 11138 if test -w "$cache_file"; then 10691 11139 if test "x$cache_file" != "x/dev/null"; then 10692 - { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10693 - $as_echo "$as_me: updating cache $cache_file" >&6;} 11140 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11141 + printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 10694 11142 if test ! -f "$cache_file" || test -h "$cache_file"; then 10695 11143 cat confcache >"$cache_file" 10696 11144 else ··· 10704 11152 fi 10705 11153 fi 10706 11154 else 10707 - { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10708 - $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11155 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11156 + printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 10709 11157 fi 10710 11158 fi 10711 11159 rm -f confcache ··· 10722 11170 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10723 11171 # 1. Remove the extension, and $U if already installed. 10724 11172 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10725 - ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11173 + ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 10726 11174 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10727 11175 # will be set to the directory where LIBOBJS objects are built. 10728 11176 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" ··· 10733 11181 LTLIBOBJS=$ac_ltlibobjs 10734 11182 10735 11183 10736 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10737 - $as_echo_n "checking that generated files are newer than configure... " >&6; } 11184 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11185 + printf %s "checking that generated files are newer than configure... " >&6; } 10738 11186 if test -n "$am_sleep_pid"; then 10739 11187 # Hide warnings about reused PIDs. 10740 11188 wait $am_sleep_pid 2>/dev/null 10741 11189 fi 10742 - { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10743 - $as_echo "done" >&6; } 11190 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 11191 + printf "%s\n" "done" >&6; } 10744 11192 if test -n "$EXEEXT"; then 10745 11193 am__EXEEXT_TRUE= 10746 11194 am__EXEEXT_FALSE='#' ··· 10766 11214 ac_write_fail=0 10767 11215 ac_clean_files_save=$ac_clean_files 10768 11216 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10769 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10770 - $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11217 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11218 + printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 10771 11219 as_write_fail=0 10772 11220 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10773 11221 #! $SHELL ··· 10790 11238 10791 11239 # Be more Bourne compatible 10792 11240 DUALCASE=1; export DUALCASE # for MKS sh 10793 - if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11241 + as_nop=: 11242 + if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 11243 + then : 10794 11244 emulate sh 10795 11245 NULLCMD=: 10796 11246 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10797 11247 # is contrary to our usage. Disable this feature. 10798 11248 alias -g '${1+"$@"}'='"$@"' 10799 11249 setopt NO_GLOB_SUBST 10800 - else 11250 + else $as_nop 10801 11251 case `(set -o) 2>/dev/null` in #( 10802 11252 *posix*) : 10803 11253 set -o posix ;; #( ··· 10805 11255 ;; 10806 11256 esac 10807 11257 fi 11258 + 10808 11259 10809 11260 11261 + # Reset variables that may have inherited troublesome values from 11262 + # the environment. 11263 + 11264 + # IFS needs to be set, to space, tab, and newline, in precisely that order. 11265 + # (If _AS_PATH_WALK were called with IFS unset, it would have the 11266 + # side effect of setting IFS to empty, thus disabling word splitting.) 11267 + # Quoting is to prevent editors from complaining about space-tab. 10810 11268 as_nl=' 10811 11269 ' 10812 11270 export as_nl 10813 - # Printing a long string crashes Solaris 7 /usr/bin/printf. 10814 - as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10815 - as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10816 - as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10817 - # Prefer a ksh shell builtin over an external printf program on Solaris, 10818 - # but without wasting forks for bash or zsh. 10819 - if test -z "$BASH_VERSION$ZSH_VERSION" \ 10820 - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10821 - as_echo='print -r --' 10822 - as_echo_n='print -rn --' 10823 - elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10824 - as_echo='printf %s\n' 10825 - as_echo_n='printf %s' 10826 - else 10827 - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10828 - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10829 - as_echo_n='/usr/ucb/echo -n' 10830 - else 10831 - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10832 - as_echo_n_body='eval 10833 - arg=$1; 10834 - case $arg in #( 10835 - *"$as_nl"*) 10836 - expr "X$arg" : "X\\(.*\\)$as_nl"; 10837 - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10838 - esac; 10839 - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10840 - ' 10841 - export as_echo_n_body 10842 - as_echo_n='sh -c $as_echo_n_body as_echo' 10843 - fi 10844 - export as_echo_body 10845 - as_echo='sh -c $as_echo_body as_echo' 10846 - fi 11271 + IFS=" "" $as_nl" 11272 + 11273 + PS1='$ ' 11274 + PS2='> ' 11275 + PS4='+ ' 11276 + 11277 + # Ensure predictable behavior from utilities with locale-dependent output. 11278 + LC_ALL=C 11279 + export LC_ALL 11280 + LANGUAGE=C 11281 + export LANGUAGE 11282 + 11283 + # We cannot yet rely on "unset" to work, but we need these variables 11284 + # to be unset--not just set to an empty or harmless value--now, to 11285 + # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 11286 + # also avoids known problems related to "unset" and subshell syntax 11287 + # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 11288 + for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 11289 + do eval test \${$as_var+y} \ 11290 + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11291 + done 11292 + 11293 + # Ensure that fds 0, 1, and 2 are open. 11294 + if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 11295 + if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 11296 + if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 10847 11297 10848 11298 # The user is always right. 10849 - if test "${PATH_SEPARATOR+set}" != set; then 11299 + if ${PATH_SEPARATOR+false} :; then 10850 11300 PATH_SEPARATOR=: 10851 11301 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10852 11302 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || ··· 10855 11305 fi 10856 11306 10857 11307 10858 - # IFS 10859 - # We need space, tab and new line, in precisely that order. Quoting is 10860 - # there to prevent editors from complaining about space-tab. 10861 - # (If _AS_PATH_WALK were called with IFS unset, it would disable word 10862 - # splitting by setting IFS to empty value.) 10863 - IFS=" "" $as_nl" 10864 - 10865 11308 # Find who we are. Look in the path if we contain no directory separator. 10866 11309 as_myself= 10867 11310 case $0 in #(( ··· 10870 11313 for as_dir in $PATH 10871 11314 do 10872 11315 IFS=$as_save_IFS 10873 - test -z "$as_dir" && as_dir=. 10874 - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11316 + case $as_dir in #((( 11317 + '') as_dir=./ ;; 11318 + */) ;; 11319 + *) as_dir=$as_dir/ ;; 11320 + esac 11321 + test -r "$as_dir$0" && as_myself=$as_dir$0 && break 10875 11322 done 10876 11323 IFS=$as_save_IFS 10877 11324 ··· 10883 11330 as_myself=$0 10884 11331 fi 10885 11332 if test ! -f "$as_myself"; then 10886 - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11333 + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10887 11334 exit 1 10888 11335 fi 10889 11336 10890 - # Unset variables that we do not need and which cause bugs (e.g. in 10891 - # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10892 - # suppresses any "Segmentation fault" message there. '((' could 10893 - # trigger a bug in pdksh 5.2.14. 10894 - for as_var in BASH_ENV ENV MAIL MAILPATH 10895 - do eval test x\${$as_var+set} = xset \ 10896 - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10897 - done 10898 - PS1='$ ' 10899 - PS2='> ' 10900 - PS4='+ ' 10901 - 10902 - # NLS nuisances. 10903 - LC_ALL=C 10904 - export LC_ALL 10905 - LANGUAGE=C 10906 - export LANGUAGE 10907 - 10908 - # CDPATH. 10909 - (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10910 11337 10911 11338 10912 11339 # as_fn_error STATUS ERROR [LINENO LOG_FD] ··· 10919 11346 as_status=$1; test $as_status -eq 0 && as_status=1 10920 11347 if test "$4"; then 10921 11348 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10922 - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11349 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10923 11350 fi 10924 - $as_echo "$as_me: error: $2" >&2 11351 + printf "%s\n" "$as_me: error: $2" >&2 10925 11352 as_fn_exit $as_status 10926 11353 } # as_fn_error 11354 + 10927 11355 10928 11356 10929 11357 # as_fn_set_status STATUS ··· 10952 11380 { eval $1=; unset $1;} 10953 11381 } 10954 11382 as_unset=as_fn_unset 11383 + 10955 11384 # as_fn_append VAR VALUE 10956 11385 # ---------------------- 10957 11386 # Append the text in VALUE to the end of the definition contained in VAR. Take 10958 11387 # advantage of any shell optimizations that allow amortized linear growth over 10959 11388 # repeated appends, instead of the typical quadratic growth present in naive 10960 11389 # implementations. 10961 - if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11390 + if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 11391 + then : 10962 11392 eval 'as_fn_append () 10963 11393 { 10964 11394 eval $1+=\$2 10965 11395 }' 10966 - else 11396 + else $as_nop 10967 11397 as_fn_append () 10968 11398 { 10969 11399 eval $1=\$$1\$2 ··· 10975 11405 # Perform arithmetic evaluation on the ARGs, and store the result in the 10976 11406 # global $as_val. Take advantage of shells that can avoid forks. The arguments 10977 11407 # must be portable across $(()) and expr. 10978 - if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11408 + if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 11409 + then : 10979 11410 eval 'as_fn_arith () 10980 11411 { 10981 11412 as_val=$(( $* )) 10982 11413 }' 10983 - else 11414 + else $as_nop 10984 11415 as_fn_arith () 10985 11416 { 10986 11417 as_val=`expr "$@" || test $? -eq 1` ··· 11011 11442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11012 11443 X"$0" : 'X\(//\)$' \| \ 11013 11444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11014 - $as_echo X/"$0" | 11445 + printf "%s\n" X/"$0" | 11015 11446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11016 11447 s//\1/ 11017 11448 q ··· 11033 11464 as_cr_digits='0123456789' 11034 11465 as_cr_alnum=$as_cr_Letters$as_cr_digits 11035 11466 11467 + 11468 + # Determine whether it's possible to make 'echo' print without a newline. 11469 + # These variables are no longer used directly by Autoconf, but are AC_SUBSTed 11470 + # for compatibility with existing Makefiles. 11036 11471 ECHO_C= ECHO_N= ECHO_T= 11037 11472 case `echo -n x` in #((((( 11038 11473 -n*) ··· 11046 11481 ECHO_N='-n';; 11047 11482 esac 11048 11483 11484 + # For backward compatibility with old third-party macros, we provide 11485 + # the shell variables $as_echo and $as_echo_n. New code should use 11486 + # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 11487 + as_echo='printf %s\n' 11488 + as_echo_n='printf %s' 11489 + 11049 11490 rm -f conf$$ conf$$.exe conf$$.file 11050 11491 if test -d conf$$.dir; then 11051 11492 rm -f conf$$.dir/conf$$.file ··· 11087 11528 as_dirs= 11088 11529 while :; do 11089 11530 case $as_dir in #( 11090 - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11531 + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11091 11532 *) as_qdir=$as_dir;; 11092 11533 esac 11093 11534 as_dirs="'$as_qdir' $as_dirs" ··· 11096 11537 X"$as_dir" : 'X\(//\)[^/]' \| \ 11097 11538 X"$as_dir" : 'X\(//\)$' \| \ 11098 11539 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11099 - $as_echo X"$as_dir" | 11540 + printf "%s\n" X"$as_dir" | 11100 11541 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11101 11542 s//\1/ 11102 11543 q ··· 11158 11599 # report actual input values of CONFIG_FILES etc. instead of their 11159 11600 # values after options handling. 11160 11601 ac_log=" 11161 - This file was extended by editres $as_me 1.0.8, which was 11162 - generated by GNU Autoconf 2.69. Invocation command line was 11602 + This file was extended by editres $as_me 1.0.9, which was 11603 + generated by GNU Autoconf 2.71. Invocation command line was 11163 11604 11164 11605 CONFIG_FILES = $CONFIG_FILES 11165 11606 CONFIG_HEADERS = $CONFIG_HEADERS ··· 11218 11659 Configuration commands: 11219 11660 $config_commands 11220 11661 11221 - Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/issues>." 11662 + Report bugs to <https://gitlab.freedesktop.org/xorg/app/editres/-/issues>." 11222 11663 11223 11664 _ACEOF 11665 + ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 11666 + ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 11224 11667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11225 - ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11668 + ac_cs_config='$ac_cs_config_escaped' 11226 11669 ac_cs_version="\\ 11227 - editres config.status 1.0.8 11228 - configured by $0, generated by GNU Autoconf 2.69, 11670 + editres config.status 1.0.9 11671 + configured by $0, generated by GNU Autoconf 2.71, 11229 11672 with options \\"\$ac_cs_config\\" 11230 11673 11231 - Copyright (C) 2012 Free Software Foundation, Inc. 11674 + Copyright (C) 2021 Free Software Foundation, Inc. 11232 11675 This config.status script is free software; the Free Software Foundation 11233 11676 gives unlimited permission to copy, distribute and modify it." 11234 11677 ··· 11268 11711 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11269 11712 ac_cs_recheck=: ;; 11270 11713 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11271 - $as_echo "$ac_cs_version"; exit ;; 11714 + printf "%s\n" "$ac_cs_version"; exit ;; 11272 11715 --config | --confi | --conf | --con | --co | --c ) 11273 - $as_echo "$ac_cs_config"; exit ;; 11716 + printf "%s\n" "$ac_cs_config"; exit ;; 11274 11717 --debug | --debu | --deb | --de | --d | -d ) 11275 11718 debug=: ;; 11276 11719 --file | --fil | --fi | --f ) 11277 11720 $ac_shift 11278 11721 case $ac_optarg in 11279 - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11722 + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11280 11723 '') as_fn_error $? "missing file argument" ;; 11281 11724 esac 11282 11725 as_fn_append CONFIG_FILES " '$ac_optarg'" ··· 11284 11727 --header | --heade | --head | --hea ) 11285 11728 $ac_shift 11286 11729 case $ac_optarg in 11287 - *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11730 + *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11288 11731 esac 11289 11732 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11290 11733 ac_need_defaults=false;; ··· 11293 11736 as_fn_error $? "ambiguous option: \`$1' 11294 11737 Try \`$0 --help' for more information.";; 11295 11738 --help | --hel | -h ) 11296 - $as_echo "$ac_cs_usage"; exit ;; 11739 + printf "%s\n" "$ac_cs_usage"; exit ;; 11297 11740 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11298 11741 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11299 11742 ac_cs_silent=: ;; ··· 11321 11764 if \$ac_cs_recheck; then 11322 11765 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11323 11766 shift 11324 - \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11767 + \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 11325 11768 CONFIG_SHELL='$SHELL' 11326 11769 export CONFIG_SHELL 11327 11770 exec "\$@" ··· 11335 11778 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11336 11779 ## Running $as_me. ## 11337 11780 _ASBOX 11338 - $as_echo "$ac_log" 11781 + printf "%s\n" "$ac_log" 11339 11782 } >&5 11340 11783 11341 11784 _ACEOF ··· 11368 11811 # We use the long form for the default assignment because of an extremely 11369 11812 # bizarre bug on SunOS 4.1.3. 11370 11813 if $ac_need_defaults; then 11371 - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11372 - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11373 - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11814 + test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 11815 + test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 11816 + test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands 11374 11817 fi 11375 11818 11376 11819 # Have a temporary directory for convenience. Make it in the build tree ··· 11706 12149 esac || 11707 12150 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11708 12151 esac 11709 - case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12152 + case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11710 12153 as_fn_append ac_file_inputs " '$ac_f'" 11711 12154 done 11712 12155 ··· 11714 12157 # use $as_me), people would be surprised to read: 11715 12158 # /* config.h. Generated by config.status. */ 11716 12159 configure_input='Generated from '` 11717 - $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12160 + printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11718 12161 `' by configure.' 11719 12162 if test x"$ac_file" != x-; then 11720 12163 configure_input="$ac_file. $configure_input" 11721 - { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11722 - $as_echo "$as_me: creating $ac_file" >&6;} 12164 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12165 + printf "%s\n" "$as_me: creating $ac_file" >&6;} 11723 12166 fi 11724 12167 # Neutralize special characters interpreted by sed in replacement strings. 11725 12168 case $configure_input in #( 11726 12169 *\&* | *\|* | *\\* ) 11727 - ac_sed_conf_input=`$as_echo "$configure_input" | 12170 + ac_sed_conf_input=`printf "%s\n" "$configure_input" | 11728 12171 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11729 12172 *) ac_sed_conf_input=$configure_input;; 11730 12173 esac ··· 11741 12184 X"$ac_file" : 'X\(//\)[^/]' \| \ 11742 12185 X"$ac_file" : 'X\(//\)$' \| \ 11743 12186 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11744 - $as_echo X"$ac_file" | 12187 + printf "%s\n" X"$ac_file" | 11745 12188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11746 12189 s//\1/ 11747 12190 q ··· 11765 12208 case "$ac_dir" in 11766 12209 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11767 12210 *) 11768 - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12211 + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 11769 12212 # A ".." for each directory in $ac_dir_suffix. 11770 - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12213 + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11771 12214 case $ac_top_builddir_sub in 11772 12215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11773 12216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; ··· 11829 12272 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11830 12273 *datarootdir*) ac_datarootdir_seen=yes;; 11831 12274 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11832 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11833 - $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12275 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12276 + printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11834 12277 _ACEOF 11835 12278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11836 12279 ac_datarootdir_hack=' ··· 11874 12317 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11875 12318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11876 12319 "$ac_tmp/out"`; test -z "$ac_out"; } && 11877 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12320 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11878 12321 which seems to be undefined. Please make sure it is defined" >&5 11879 - $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12322 + printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11880 12323 which seems to be undefined. Please make sure it is defined" >&2;} 11881 12324 11882 12325 rm -f "$ac_tmp/stdin" ··· 11892 12335 # 11893 12336 if test x"$ac_file" != x-; then 11894 12337 { 11895 - $as_echo "/* $configure_input */" \ 12338 + printf "%s\n" "/* $configure_input */" >&1 \ 11896 12339 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11897 12340 } >"$ac_tmp/config.h" \ 11898 12341 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11899 12342 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11900 - { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11901 - $as_echo "$as_me: $ac_file is unchanged" >&6;} 12343 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12344 + printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 11902 12345 else 11903 12346 rm -f "$ac_file" 11904 12347 mv "$ac_tmp/config.h" "$ac_file" \ 11905 12348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11906 12349 fi 11907 12350 else 11908 - $as_echo "/* $configure_input */" \ 12351 + printf "%s\n" "/* $configure_input */" >&1 \ 11909 12352 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11910 12353 || as_fn_error $? "could not create -" "$LINENO" 5 11911 12354 fi ··· 11925 12368 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11926 12369 X"$_am_arg" : 'X\(//\)$' \| \ 11927 12370 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11928 - $as_echo X"$_am_arg" | 12371 + printf "%s\n" X"$_am_arg" | 11929 12372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11930 12373 s//\1/ 11931 12374 q ··· 11945 12388 s/.*/./; q'`/stamp-h$_am_stamp_count 11946 12389 ;; 11947 12390 11948 - :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11949 - $as_echo "$as_me: executing $ac_file commands" >&6;} 12391 + :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12392 + printf "%s\n" "$as_me: executing $ac_file commands" >&6;} 11950 12393 ;; 11951 12394 esac 11952 12395 ··· 11978 12421 X"$mf" : 'X\(//\)[^/]' \| \ 11979 12422 X"$mf" : 'X\(//\)$' \| \ 11980 12423 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11981 - $as_echo X"$mf" | 12424 + printf "%s\n" X"$mf" | 11982 12425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11983 12426 s//\1/ 11984 12427 q ··· 12020 12463 X"$file" : 'X\(//\)[^/]' \| \ 12021 12464 X"$file" : 'X\(//\)$' \| \ 12022 12465 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12023 - $as_echo X"$file" | 12466 + printf "%s\n" X"$file" | 12024 12467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12025 12468 s//\1/ 12026 12469 q ··· 12079 12522 $ac_cs_success || as_fn_exit 1 12080 12523 fi 12081 12524 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12082 - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12083 - $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12525 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12526 + printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12084 12527 fi 12085 12528
+13 -3
app/editres/configure.ac
··· 23 23 24 24 # Initialize Autoconf 25 25 AC_PREREQ([2.60]) 26 - AC_INIT([editres], [1.0.8], 27 - [https://gitlab.freedesktop.org/xorg/app/editres/issues], [editres]) 26 + AC_INIT([editres], [1.0.9], 27 + [https://gitlab.freedesktop.org/xorg/app/editres/-/issues], [editres]) 28 28 AC_CONFIG_SRCDIR([Makefile.am]) 29 29 AC_CONFIG_HEADERS([config.h]) 30 30 ··· 37 37 XORG_MACROS_VERSION(1.8) 38 38 XORG_DEFAULT_OPTIONS 39 39 40 + # Optional dependencies 41 + AC_ARG_WITH(xkb, 42 + AS_HELP_STRING([--without-xkb], 43 + [Disable use of XKB to sound bells (Default is with-xkb)]), 44 + use_xkb="$withval", use_xkb="yes") 45 + if test x$use_xkb != xno ; then 46 + XKBMODULE="xkbfile" 47 + AC_DEFINE([XKB], 1, [Define to use XkbStdBell (libxkbfile)]) 48 + fi 49 + 40 50 # Obtain compiler/linker options from dependencies 41 - PKG_CHECK_MODULES(EDITRES, [xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17]) 51 + PKG_CHECK_MODULES(EDITRES, [xaw7 x11 xt >= 1.0.99.1 xmu xproto >= 7.0.17 ${XKBMODULE}]) 42 52 43 53 PKG_CHECK_MODULES(APPDEFS, xt) 44 54 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
+40 -13
app/editres/editres.c
··· 23 23 in this Software without prior written authorization from The Open Group. 24 24 */ 25 25 26 + #ifdef HAVE_CONFIG_H 27 + # include "config.h" 28 + #endif 29 + 26 30 #include <stdio.h> 27 31 #include <stdlib.h> 28 32 #include <X11/Intrinsic.h> ··· 45 49 int global_effective_protocol_version = CURRENT_PROTOCOL_VERSION; 46 50 47 51 /* toolkit type of client whose "resources" we are currently editing */ 48 - String global_effective_toolkit = "xt"; 52 + const char *global_effective_toolkit = "xt"; 49 53 50 54 int global_error_code; 51 55 unsigned long global_serial_num; ··· 61 65 AppResources global_resources; 62 66 63 67 64 - static void Syntax ( XtAppContext app_con, char *call ) _X_NORETURN; 68 + static void Syntax (XtAppContext, const char *, int) _X_NORETURN; 65 69 66 70 static String fallback_resources[] = { 67 71 NULL, ··· 70 74 #define Offset(field) (XtOffsetOf(AppResources, field)) 71 75 72 76 static XtResource editres_resources[] = { 73 - {"debug", "Debug", XtRBoolean, sizeof(Boolean), 77 + {(String)"debug", (String)"Debug", XtRBoolean, sizeof(Boolean), 74 78 Offset(debug), XtRImmediate, (XtPointer) FALSE}, 75 - {"numFlashes", "NumFlashes", XtRInt, sizeof(int), 79 + {(String)"numFlashes", (String)"NumFlashes", XtRInt, sizeof(int), 76 80 Offset(num_flashes), XtRImmediate, (XtPointer) NUM_FLASHES}, 77 - {"flashTime", "FlashTime", XtRInt, sizeof(int), 81 + {(String)"flashTime", (String)"FlashTime", XtRInt, sizeof(int), 78 82 Offset(flash_time), XtRImmediate, (XtPointer) FLASH_TIME}, 79 - {"flashColor", XtCForeground, XtRPixel, sizeof(Pixel), 83 + {(String)"flashColor", XtCForeground, XtRPixel, sizeof(Pixel), 80 84 Offset(flash_color), XtRImmediate, (XtPointer) XtDefaultForeground}, 81 - {"saveResourceFile", "SaveResourcesFile", XtRString, sizeof(String), 85 + {(String)"saveResourceFile", (String)"SaveResourcesFile", XtRString, sizeof(String), 82 86 Offset(save_resources_file), XtRString, (XtPointer) ""}, 83 87 }; 84 88 ··· 89 93 { 90 94 XtAppContext app_con; 91 95 96 + /* Handle args that don't require opening a display */ 97 + for (int n = 1; n < argc; n++) { 98 + const char *argn = argv[n]; 99 + /* accept single or double dash for -help & -version */ 100 + if (argn[0] == '-' && argn[1] == '-') { 101 + argn++; 102 + } 103 + if (strcmp(argn, "-help") == 0) { 104 + Syntax(NULL, argv[0], 0); 105 + } 106 + if (strcmp(argn, "-version") == 0) { 107 + puts(PACKAGE_STRING); 108 + exit(0); 109 + } 110 + } 111 + 92 112 global_toplevel = XtAppInitialize(&app_con, "Editres", NULL, ZERO, 93 113 &argc, argv, fallback_resources, 94 114 NULL, ZERO); 95 115 96 - if (argc != 1) 97 - Syntax(app_con, argv[0]); 116 + if (argc != 1) { 117 + fputs("Unknown argument(s):", stderr); 118 + for (int n = 1; n < argc; n++) { 119 + fprintf(stderr, " %s", argv[n]); 120 + } 121 + fputs("\n\n", stderr); 122 + Syntax(app_con, argv[0], 1); 123 + } 98 124 99 125 SetApplicationActions(app_con); 100 126 XtGetApplicationResources(global_toplevel, (XtPointer) &global_resources, ··· 136 162 */ 137 163 138 164 static void 139 - Syntax(XtAppContext app_con, char *call) 165 + Syntax(XtAppContext app_con, const char *call, int exit_val) 140 166 { 141 - XtDestroyApplicationContext(app_con); 142 - fprintf(stderr, "Usage: %s\n", call); 143 - exit(1); 167 + if (app_con != NULL) 168 + XtDestroyApplicationContext(app_con); 169 + fprintf(stderr, "Usage: %s [ toolkitoptions ] [-help] [-version]\n", call); 170 + exit(exit_val); 144 171 }
+4 -4
app/editres/editresP.h
··· 315 315 * Global variables. 316 316 */ 317 317 extern int global_effective_protocol_version; 318 - extern String global_effective_toolkit; 318 + extern const char *global_effective_toolkit; 319 319 extern int global_error_code; 320 320 extern unsigned long global_serial_num; 321 321 extern int (*global_old_error_handler)(Display *, XErrorEvent *); ··· 405 405 extern char * ProtocolFailure ( ProtocolStream * stream ); 406 406 extern XrmQuarkList Quarkify ( char ** list, const char * ptr ); 407 407 extern void Quit ( Widget w, XtPointer client_data, XtPointer call_data ) _X_NORETURN; 408 - extern void RebuildMenusAndLabel ( String toolkit ); 408 + extern void RebuildMenusAndLabel ( const char * toolkit ); 409 409 extern void ResourceListCallback ( Widget list, XtPointer node_ptr, XtPointer junk ); 410 410 extern void SaveResource ( Widget w, XtPointer res_box_ptr, XtPointer junk ); 411 411 extern void SendTree ( Widget w, XtPointer value, XtPointer call_data ); ··· 414 414 extern void SetCommand ( Widget w, ResCommand command, String msg ); 415 415 extern void SetEntriesSensitive ( Widget *entries, int num, Boolean sensitive ); 416 416 extern void SetFile ( Widget w, XtPointer junk, XtPointer garbage ); 417 - extern void SetMessage ( Widget w, String str ); 417 + extern void SetMessage ( Widget w, const char * str ); 418 418 extern void SetResourceString ( Widget w, XtPointer node_ptr, XtPointer junk ); 419 419 extern void TreeRelabel ( Widget w, XtPointer client_data, XtPointer call_data ); 420 420 extern void TreeSelect ( Widget w, XtPointer client_data, XtPointer call_data ); ··· 423 423 extern void _FindWidget ( Widget w ); 424 424 extern void _FlashActiveWidgets ( TreeInfo * tree_info ); 425 425 extern void _PopdownFileDialog ( Widget w, XtPointer client_data, XtPointer junk ); 426 - extern void _PopupFileDialog ( Widget w, String str, String default_value, XtCallbackProc func, XtPointer data ); 426 + extern void _PopupFileDialog ( Widget w, const char *str, const char *default_value, XtCallbackProc func, XtPointer data ); 427 427 extern void _TreeActivateNode ( WNode * node, SelectTypes type ); 428 428 extern void _TreeRelabel ( TreeInfo * tree_info, LabelTypes type ); 429 429 extern void _TreeRelabelNode ( WNode * node, LabelTypes type, Boolean recurse );
+4
app/editres/geometry.c
··· 25 25 * Author: Chris D. Peterson, MIT X Consortium 26 26 */ 27 27 28 + #ifdef HAVE_CONFIG_H 29 + # include "config.h" 30 + #endif 31 + 28 32 #include <X11/Intrinsic.h> 29 33 #include <X11/StringDefs.h> 30 34 #include <X11/Shell.h>
+25 -21
app/editres/handler.c
··· 24 24 */ 25 25 26 26 27 + #ifdef HAVE_CONFIG_H 28 + # include "config.h" 29 + #endif 30 + 27 31 #include <X11/Intrinsic.h> 28 32 #include <X11/StringDefs.h> 29 33 ··· 180 184 if (global_tree_info == NULL) 181 185 return; 182 186 183 - XtSetArg (args[0], XtNx, -report->slider_x); 184 - XtSetArg (args[1], XtNy, -report->slider_y); 187 + XtSetArg (args[0], (String)XtNx, -report->slider_x); 188 + XtSetArg (args[1], (String)XtNy, -report->slider_y); 185 189 186 190 XtSetValues(global_tree_info->tree_widget, args, TWO); 187 191 } ··· 204 208 XawPannerReport *report = (XawPannerReport *) report_ptr; 205 209 Widget panner = (Widget) panner_ptr; 206 210 207 - XtSetArg (args[n], XtNsliderX, report->slider_x); n++; 208 - XtSetArg (args[n], XtNsliderY, report->slider_y); n++; 211 + XtSetArg (args[n], (String)XtNsliderX, report->slider_x); n++; 212 + XtSetArg (args[n], (String)XtNsliderY, report->slider_y); n++; 209 213 if (report->changed != (XawPRSliderX | XawPRSliderY)) { 210 - XtSetArg (args[n], XtNsliderWidth, report->slider_width); n++; 211 - XtSetArg (args[n], XtNsliderHeight, report->slider_height); n++; 212 - XtSetArg (args[n], XtNcanvasWidth, report->canvas_width); n++; 213 - XtSetArg (args[n], XtNcanvasHeight, report->canvas_height); n++; 214 + XtSetArg (args[n], (String)XtNsliderWidth, report->slider_width); n++; 215 + XtSetArg (args[n], (String)XtNsliderHeight, report->slider_height); n++; 216 + XtSetArg (args[n], (String)XtNcanvasWidth, report->canvas_width); n++; 217 + XtSetArg (args[n], (String)XtNcanvasHeight, report->canvas_height); n++; 214 218 } 215 219 XtSetValues (panner, args, n); 216 220 } ··· 320 324 XtSetSensitive(any_info->left_dot, FALSE); 321 325 XtSetSensitive(any_info->left_star, FALSE); 322 326 323 - XtSetArg(args[0], XtNstate, TRUE); 327 + XtSetArg(args[0], (String)XtNstate, TRUE); 324 328 XtSetValues(any_info->left_star, args, ONE); 325 329 } 326 330 ··· 328 332 XtSetSensitive(any_info->right_dot, FALSE); 329 333 XtSetSensitive(any_info->right_star, FALSE); 330 334 331 - XtSetArg(args[0], XtNstate, TRUE); 335 + XtSetArg(args[0], (String)XtNstate, TRUE); 332 336 XtSetValues(any_info->right_star, args, ONE); 333 337 } 334 338 any_info->left_count++; ··· 346 350 XtSetSensitive(any_info->left_dot, TRUE); 347 351 XtSetSensitive(any_info->left_star, TRUE); 348 352 349 - XtSetArg(args[0], XtNstate, TRUE); 353 + XtSetArg(args[0], (String)XtNstate, TRUE); 350 354 XtSetValues(any_info->left_dot, args, ONE); 351 355 } 352 356 ··· 354 358 XtSetSensitive(any_info->right_dot, TRUE); 355 359 XtSetSensitive(any_info->right_star, TRUE); 356 360 357 - XtSetArg(args[0], XtNstate, TRUE); 361 + XtSetArg(args[0], (String)XtNstate, TRUE); 358 362 XtSetValues(any_info->right_dot, args, ONE); 359 363 } 360 364 } ··· 382 386 } 383 387 384 388 if (list_info->list_index == XAW_LIST_NONE) 385 - result = "unknown"; 389 + result = (String)"unknown"; 386 390 else 387 391 result = list_info->string; 388 392 ··· 467 471 len = strlen(buf) + 2; /* Leave space for ':' and '\0' */ 468 472 469 473 #ifdef notdef 470 - XtSetArg(args[0], XtNstring, &temp); 474 + XtSetArg(args[0], (String)XtNstring, &temp); 471 475 XtGetValues(res_box->value_wid, args, ONE); 472 476 len += strlen(temp); 473 477 #endif ··· 483 487 strcat(malloc_string, temp); 484 488 #endif 485 489 486 - XtSetArg(args[0], XtNlabel, malloc_string); 490 + XtSetArg(args[0], (String)XtNlabel, malloc_string); 487 491 XtSetValues(res_box->res_label, args, ONE); 488 492 } 489 493 ··· 571 575 return; 572 576 } 573 577 574 - XtSetArg(args[0], XtNlabel, &resource_string); 578 + XtSetArg(args[0], (String)XtNlabel, &resource_string); 575 579 XtGetValues(res_box->res_label, args, ONE); 576 580 577 - XtSetArg(args[0], XtNstring, &value_ptr); 581 + XtSetArg(args[0], (String)XtNstring, &value_ptr); 578 582 XtGetValues(res_box->value_wid, args, ONE); 579 583 580 584 fprintf(fp, "%s %s\n", resource_string, value_ptr); ··· 677 681 info.stream = stream; 678 682 info.count = 0; 679 683 680 - XtSetArg(args[0], XtNlabel, &value); 684 + XtSetArg(args[0], (String)XtNlabel, &value); 681 685 XtGetValues(node->resources->res_box->res_label, args, ONE); 682 686 683 687 info.database = NULL; ··· 743 747 info.stream = stream; 744 748 info.count = 1; 745 749 746 - XtSetArg(args[0], XtNlabel, &value); 750 + XtSetArg(args[0], (String)XtNlabel, &value); 747 751 XtGetValues(node->resources->res_box->res_label, args, ONE); 748 752 749 753 info.database = NULL; ··· 858 862 info.count = 0; 859 863 info.stream = NULL; 860 864 861 - XtSetArg(args[0], XtNlabel, &line); 865 + XtSetArg(args[0], (String)XtNlabel, &line); 862 866 XtGetValues(node->resources->res_box->res_label, args, ONE); 863 867 864 868 info.database = NULL; ··· 895 899 896 900 state = CheckDatabase(info->database, name_quarks, class_quarks); 897 901 898 - XtSetArg(args[0], XtNstate, state); 902 + XtSetArg(args[0], (String)XtNstate, state); 899 903 XtSetValues(node->widget, args, ONE); 900 904 TreeToggle(node->widget, (XtPointer) node, (XtPointer)(long) state); 901 905
+214 -200
app/editres/install-sh
··· 1 1 #!/bin/sh 2 2 # install - install a program, script, or datafile 3 3 4 - scriptversion=2011-11-20.07; # UTC 4 + scriptversion=2020-11-14.01; # UTC 5 5 6 6 # This originates from X11R5 (mit/util/scripts/install.sh), which was 7 7 # later released in X11R6 (xc/config/util/install.sh) with the ··· 41 41 # This script is compatible with the BSD install script, but was written 42 42 # from scratch. 43 43 44 + tab=' ' 44 45 nl=' 45 46 ' 46 - IFS=" "" $nl" 47 + IFS=" $tab$nl" 47 48 48 - # set DOITPROG to echo to test this script 49 + # Set DOITPROG to "echo" to test this script. 49 50 50 - # Don't use :- since 4.3BSD and earlier shells don't like it. 51 51 doit=${DOITPROG-} 52 - if test -z "$doit"; then 53 - doit_exec=exec 54 - else 55 - doit_exec=$doit 56 - fi 52 + doit_exec=${doit:-exec} 57 53 58 54 # Put in absolute file names if you don't have them in your path; 59 55 # or use environment vars. ··· 68 64 rmprog=${RMPROG-rm} 69 65 stripprog=${STRIPPROG-strip} 70 66 71 - posix_glob='?' 72 - initialize_posix_glob=' 73 - test "$posix_glob" != "?" || { 74 - if (set -f) 2>/dev/null; then 75 - posix_glob= 76 - else 77 - posix_glob=: 78 - fi 79 - } 80 - ' 81 - 82 67 posix_mkdir= 83 68 84 69 # Desired mode of installed file. 85 70 mode=0755 86 71 72 + # Create dirs (including intermediate dirs) using mode 755. 73 + # This is like GNU 'install' as of coreutils 8.32 (2020). 74 + mkdir_umask=22 75 + 76 + backupsuffix= 87 77 chgrpcmd= 88 78 chmodcmd=$chmodprog 89 79 chowncmd= ··· 97 87 dst_arg= 98 88 99 89 copy_on_change=false 100 - no_target_directory= 90 + is_target_a_directory=possibly 101 91 102 92 usage="\ 103 93 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE ··· 114 104 --version display version info and exit. 115 105 116 106 -c (ignored) 117 - -C install only if different (preserve the last data modification time) 107 + -C install only if different (preserve data modification time) 118 108 -d create directories instead of installing files. 119 109 -g GROUP $chgrpprog installed files to GROUP. 120 110 -m MODE $chmodprog installed files to MODE. 121 111 -o USER $chownprog installed files to USER. 112 + -p pass -p to $cpprog. 122 113 -s $stripprog installed files. 114 + -S SUFFIX attempt to back up existing files, with suffix SUFFIX. 123 115 -t DIRECTORY install into DIRECTORY. 124 116 -T report an error if DSTFILE is a directory. 125 117 126 118 Environment variables override the default commands: 127 119 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG 128 120 RMPROG STRIPPROG 121 + 122 + By default, rm is invoked with -f; when overridden with RMPROG, 123 + it's up to you to specify -f if you want it. 124 + 125 + If -S is not specified, no backups are attempted. 126 + 127 + Email bug reports to bug-automake@gnu.org. 128 + Automake home page: https://www.gnu.org/software/automake/ 129 129 " 130 130 131 131 while test $# -ne 0; do ··· 137 137 -d) dir_arg=true;; 138 138 139 139 -g) chgrpcmd="$chgrpprog $2" 140 - shift;; 140 + shift;; 141 141 142 142 --help) echo "$usage"; exit $?;; 143 143 144 144 -m) mode=$2 145 - case $mode in 146 - *' '* | *' '* | *' 147 - '* | *'*'* | *'?'* | *'['*) 148 - echo "$0: invalid mode: $mode" >&2 149 - exit 1;; 150 - esac 151 - shift;; 145 + case $mode in 146 + *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) 147 + echo "$0: invalid mode: $mode" >&2 148 + exit 1;; 149 + esac 150 + shift;; 152 151 153 152 -o) chowncmd="$chownprog $2" 154 - shift;; 153 + shift;; 154 + 155 + -p) cpprog="$cpprog -p";; 155 156 156 157 -s) stripcmd=$stripprog;; 157 158 158 - -t) dst_arg=$2 159 - # Protect names problematic for 'test' and other utilities. 160 - case $dst_arg in 161 - -* | [=\(\)!]) dst_arg=./$dst_arg;; 162 - esac 163 - shift;; 159 + -S) backupsuffix="$2" 160 + shift;; 164 161 165 - -T) no_target_directory=true;; 162 + -t) 163 + is_target_a_directory=always 164 + dst_arg=$2 165 + # Protect names problematic for 'test' and other utilities. 166 + case $dst_arg in 167 + -* | [=\(\)!]) dst_arg=./$dst_arg;; 168 + esac 169 + shift;; 170 + 171 + -T) is_target_a_directory=never;; 166 172 167 173 --version) echo "$0 $scriptversion"; exit $?;; 168 174 169 - --) shift 170 - break;; 175 + --) shift 176 + break;; 171 177 172 - -*) echo "$0: invalid option: $1" >&2 173 - exit 1;; 178 + -*) echo "$0: invalid option: $1" >&2 179 + exit 1;; 174 180 175 181 *) break;; 176 182 esac 177 183 shift 178 184 done 185 + 186 + # We allow the use of options -d and -T together, by making -d 187 + # take the precedence; this is for compatibility with GNU install. 188 + 189 + if test -n "$dir_arg"; then 190 + if test -n "$dst_arg"; then 191 + echo "$0: target directory not allowed when installing a directory." >&2 192 + exit 1 193 + fi 194 + fi 179 195 180 196 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then 181 197 # When -d is used, all remaining arguments are directories to create. ··· 208 224 fi 209 225 210 226 if test -z "$dir_arg"; then 227 + if test $# -gt 1 || test "$is_target_a_directory" = always; then 228 + if test ! -d "$dst_arg"; then 229 + echo "$0: $dst_arg: Is not a directory." >&2 230 + exit 1 231 + fi 232 + fi 233 + fi 234 + 235 + if test -z "$dir_arg"; then 211 236 do_exit='(exit $ret); exit $ret' 212 237 trap "ret=129; $do_exit" 1 213 238 trap "ret=130; $do_exit" 2 ··· 223 248 224 249 *[0-7]) 225 250 if test -z "$stripcmd"; then 226 - u_plus_rw= 251 + u_plus_rw= 227 252 else 228 - u_plus_rw='% 200' 253 + u_plus_rw='% 200' 229 254 fi 230 255 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; 231 256 *) 232 257 if test -z "$stripcmd"; then 233 - u_plus_rw= 258 + u_plus_rw= 234 259 else 235 - u_plus_rw=,u+rw 260 + u_plus_rw=,u+rw 236 261 fi 237 262 cp_umask=$mode$u_plus_rw;; 238 263 esac ··· 250 275 dstdir=$dst 251 276 test -d "$dstdir" 252 277 dstdir_status=$? 278 + # Don't chown directories that already exist. 279 + if test $dstdir_status = 0; then 280 + chowncmd="" 281 + fi 253 282 else 254 283 255 284 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command ··· 266 295 fi 267 296 dst=$dst_arg 268 297 269 - # If destination is a directory, append the input filename; won't work 270 - # if double slashes aren't ignored. 298 + # If destination is a directory, append the input filename. 271 299 if test -d "$dst"; then 272 - if test -n "$no_target_directory"; then 273 - echo "$0: $dst_arg: Is a directory" >&2 274 - exit 1 300 + if test "$is_target_a_directory" = never; then 301 + echo "$0: $dst_arg: Is a directory" >&2 302 + exit 1 275 303 fi 276 304 dstdir=$dst 277 - dst=$dstdir/`basename "$src"` 305 + dstbase=`basename "$src"` 306 + case $dst in 307 + */) dst=$dst$dstbase;; 308 + *) dst=$dst/$dstbase;; 309 + esac 278 310 dstdir_status=0 279 311 else 280 - # Prefer dirname, but fall back on a substitute if dirname fails. 281 - dstdir=` 282 - (dirname "$dst") 2>/dev/null || 283 - expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 284 - X"$dst" : 'X\(//\)[^/]' \| \ 285 - X"$dst" : 'X\(//\)$' \| \ 286 - X"$dst" : 'X\(/\)' \| . 2>/dev/null || 287 - echo X"$dst" | 288 - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 289 - s//\1/ 290 - q 291 - } 292 - /^X\(\/\/\)[^/].*/{ 293 - s//\1/ 294 - q 295 - } 296 - /^X\(\/\/\)$/{ 297 - s//\1/ 298 - q 299 - } 300 - /^X\(\/\).*/{ 301 - s//\1/ 302 - q 303 - } 304 - s/.*/./; q' 305 - ` 306 - 312 + dstdir=`dirname "$dst"` 307 313 test -d "$dstdir" 308 314 dstdir_status=$? 309 315 fi 310 316 fi 317 + 318 + case $dstdir in 319 + */) dstdirslash=$dstdir;; 320 + *) dstdirslash=$dstdir/;; 321 + esac 311 322 312 323 obsolete_mkdir_used=false 313 324 314 325 if test $dstdir_status != 0; then 315 326 case $posix_mkdir in 316 327 '') 317 - # Create intermediate dirs using mode 755 as modified by the umask. 318 - # This is like FreeBSD 'install' as of 1997-10-28. 319 - umask=`umask` 320 - case $stripcmd.$umask in 321 - # Optimize common cases. 322 - *[2367][2367]) mkdir_umask=$umask;; 323 - .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; 328 + # With -d, create the new directory with the user-specified mode. 329 + # Otherwise, rely on $mkdir_umask. 330 + if test -n "$dir_arg"; then 331 + mkdir_mode=-m$mode 332 + else 333 + mkdir_mode= 334 + fi 335 + 336 + posix_mkdir=false 337 + # The $RANDOM variable is not portable (e.g., dash). Use it 338 + # here however when possible just to lower collision chance. 339 + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 324 340 325 - *[0-7]) 326 - mkdir_umask=`expr $umask + 22 \ 327 - - $umask % 100 % 40 + $umask % 20 \ 328 - - $umask % 10 % 4 + $umask % 2 329 - `;; 330 - *) mkdir_umask=$umask,go-w;; 331 - esac 341 + trap ' 342 + ret=$? 343 + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null 344 + exit $ret 345 + ' 0 332 346 333 - # With -d, create the new directory with the user-specified mode. 334 - # Otherwise, rely on $mkdir_umask. 335 - if test -n "$dir_arg"; then 336 - mkdir_mode=-m$mode 347 + # Because "mkdir -p" follows existing symlinks and we likely work 348 + # directly in world-writeable /tmp, make sure that the '$tmpdir' 349 + # directory is successfully created first before we actually test 350 + # 'mkdir -p'. 351 + if (umask $mkdir_umask && 352 + $mkdirprog $mkdir_mode "$tmpdir" && 353 + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1 354 + then 355 + if test -z "$dir_arg" || { 356 + # Check for POSIX incompatibilities with -m. 357 + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 358 + # other-writable bit of parent directory when it shouldn't. 359 + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 360 + test_tmpdir="$tmpdir/a" 361 + ls_ld_tmpdir=`ls -ld "$test_tmpdir"` 362 + case $ls_ld_tmpdir in 363 + d????-?r-*) different_mode=700;; 364 + d????-?--*) different_mode=755;; 365 + *) false;; 366 + esac && 367 + $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { 368 + ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` 369 + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 370 + } 371 + } 372 + then posix_mkdir=: 373 + fi 374 + rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 337 375 else 338 - mkdir_mode= 376 + # Remove any dirs left behind by ancient mkdir implementations. 377 + rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null 339 378 fi 340 - 341 - posix_mkdir=false 342 - case $umask in 343 - *[123567][0-7][0-7]) 344 - # POSIX mkdir -p sets u+wx bits regardless of umask, which 345 - # is incompatible with FreeBSD 'install' when (umask & 300) != 0. 346 - ;; 347 - *) 348 - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ 349 - trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 350 - 351 - if (umask $mkdir_umask && 352 - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 353 - then 354 - if test -z "$dir_arg" || { 355 - # Check for POSIX incompatibilities with -m. 356 - # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or 357 - # other-writable bit of parent directory when it shouldn't. 358 - # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. 359 - ls_ld_tmpdir=`ls -ld "$tmpdir"` 360 - case $ls_ld_tmpdir in 361 - d????-?r-*) different_mode=700;; 362 - d????-?--*) different_mode=755;; 363 - *) false;; 364 - esac && 365 - $mkdirprog -m$different_mode -p -- "$tmpdir" && { 366 - ls_ld_tmpdir_1=`ls -ld "$tmpdir"` 367 - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" 368 - } 369 - } 370 - then posix_mkdir=: 371 - fi 372 - rmdir "$tmpdir/d" "$tmpdir" 373 - else 374 - # Remove any dirs left behind by ancient mkdir implementations. 375 - rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null 376 - fi 377 - trap '' 0;; 378 - esac;; 379 + trap '' 0;; 379 380 esac 380 381 381 382 if 382 383 $posix_mkdir && ( 383 - umask $mkdir_umask && 384 - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" 384 + umask $mkdir_umask && 385 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" 385 386 ) 386 387 then : 387 388 else 388 389 389 - # The umask is ridiculous, or mkdir does not conform to POSIX, 390 + # mkdir does not conform to POSIX, 390 391 # or it failed possibly due to a race condition. Create the 391 392 # directory the slow way, step by step, checking for races as we go. 392 393 393 394 case $dstdir in 394 - /*) prefix='/';; 395 - [-=\(\)!]*) prefix='./';; 396 - *) prefix='';; 395 + /*) prefix='/';; 396 + [-=\(\)!]*) prefix='./';; 397 + *) prefix='';; 397 398 esac 398 - 399 - eval "$initialize_posix_glob" 400 399 401 400 oIFS=$IFS 402 401 IFS=/ 403 - $posix_glob set -f 402 + set -f 404 403 set fnord $dstdir 405 404 shift 406 - $posix_glob set +f 405 + set +f 407 406 IFS=$oIFS 408 407 409 408 prefixes= 410 409 411 410 for d 412 411 do 413 - test X"$d" = X && continue 412 + test X"$d" = X && continue 414 413 415 - prefix=$prefix$d 416 - if test -d "$prefix"; then 417 - prefixes= 418 - else 419 - if $posix_mkdir; then 420 - (umask=$mkdir_umask && 421 - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break 422 - # Don't fail if two instances are running concurrently. 423 - test -d "$prefix" || exit 1 424 - else 425 - case $prefix in 426 - *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; 427 - *) qprefix=$prefix;; 428 - esac 429 - prefixes="$prefixes '$qprefix'" 430 - fi 431 - fi 432 - prefix=$prefix/ 414 + prefix=$prefix$d 415 + if test -d "$prefix"; then 416 + prefixes= 417 + else 418 + if $posix_mkdir; then 419 + (umask $mkdir_umask && 420 + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break 421 + # Don't fail if two instances are running concurrently. 422 + test -d "$prefix" || exit 1 423 + else 424 + case $prefix in 425 + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; 426 + *) qprefix=$prefix;; 427 + esac 428 + prefixes="$prefixes '$qprefix'" 429 + fi 430 + fi 431 + prefix=$prefix/ 433 432 done 434 433 435 434 if test -n "$prefixes"; then 436 - # Don't fail if two instances are running concurrently. 437 - (umask $mkdir_umask && 438 - eval "\$doit_exec \$mkdirprog $prefixes") || 439 - test -d "$dstdir" || exit 1 440 - obsolete_mkdir_used=true 435 + # Don't fail if two instances are running concurrently. 436 + (umask $mkdir_umask && 437 + eval "\$doit_exec \$mkdirprog $prefixes") || 438 + test -d "$dstdir" || exit 1 439 + obsolete_mkdir_used=true 441 440 fi 442 441 fi 443 442 fi ··· 450 449 else 451 450 452 451 # Make a couple of temp file names in the proper directory. 453 - dsttmp=$dstdir/_inst.$$_ 454 - rmtmp=$dstdir/_rm.$$_ 452 + dsttmp=${dstdirslash}_inst.$$_ 453 + rmtmp=${dstdirslash}_rm.$$_ 455 454 456 455 # Trap to clean up those temp files at exit. 457 456 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 458 457 459 458 # Copy the file name to the temp name. 460 - (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && 459 + (umask $cp_umask && 460 + { test -z "$stripcmd" || { 461 + # Create $dsttmp read-write so that cp doesn't create it read-only, 462 + # which would cause strip to fail. 463 + if test -z "$doit"; then 464 + : >"$dsttmp" # No need to fork-exec 'touch'. 465 + else 466 + $doit touch "$dsttmp" 467 + fi 468 + } 469 + } && 470 + $doit_exec $cpprog "$src" "$dsttmp") && 461 471 462 472 # and set any options; do chmod last to preserve setuid bits. 463 473 # ··· 472 482 473 483 # If -C, don't bother to copy if it wouldn't change the file. 474 484 if $copy_on_change && 475 - old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && 476 - new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && 477 - 478 - eval "$initialize_posix_glob" && 479 - $posix_glob set -f && 485 + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && 486 + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && 487 + set -f && 480 488 set X $old && old=:$2:$4:$5:$6 && 481 489 set X $new && new=:$2:$4:$5:$6 && 482 - $posix_glob set +f && 483 - 490 + set +f && 484 491 test "$old" = "$new" && 485 492 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 486 493 then 487 494 rm -f "$dsttmp" 488 495 else 496 + # If $backupsuffix is set, and the file being installed 497 + # already exists, attempt a backup. Don't worry if it fails, 498 + # e.g., if mv doesn't support -f. 499 + if test -n "$backupsuffix" && test -f "$dst"; then 500 + $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null 501 + fi 502 + 489 503 # Rename the file to the real destination. 490 504 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || 491 505 ··· 493 507 # to itself, or perhaps because mv is so ancient that it does not 494 508 # support -f. 495 509 { 496 - # Now remove or move aside any old file at destination location. 497 - # We try this two ways since rm can't unlink itself on some 498 - # systems and the destination file might be busy for other 499 - # reasons. In this case, the final cleanup might fail but the new 500 - # file should still install successfully. 501 - { 502 - test ! -f "$dst" || 503 - $doit $rmcmd -f "$dst" 2>/dev/null || 504 - { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && 505 - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } 506 - } || 507 - { echo "$0: cannot unlink or rename $dst" >&2 508 - (exit 1); exit 1 509 - } 510 - } && 510 + # Now remove or move aside any old file at destination location. 511 + # We try this two ways since rm can't unlink itself on some 512 + # systems and the destination file might be busy for other 513 + # reasons. In this case, the final cleanup might fail but the new 514 + # file should still install successfully. 515 + { 516 + test ! -f "$dst" || 517 + $doit $rmcmd "$dst" 2>/dev/null || 518 + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && 519 + { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } 520 + } || 521 + { echo "$0: cannot unlink or rename $dst" >&2 522 + (exit 1); exit 1 523 + } 524 + } && 511 525 512 - # Now rename the file to the real destination. 513 - $doit $mvcmd "$dsttmp" "$dst" 526 + # Now rename the file to the real destination. 527 + $doit $mvcmd "$dsttmp" "$dst" 514 528 } 515 529 fi || exit 1 516 530 ··· 519 533 done 520 534 521 535 # Local variables: 522 - # eval: (add-hook 'write-file-hooks 'time-stamp) 536 + # eval: (add-hook 'before-save-hook 'time-stamp) 523 537 # time-stamp-start: "scriptversion=" 524 538 # time-stamp-format: "%:y-%02m-%02d.%02H" 525 - # time-stamp-time-zone: "UTC" 539 + # time-stamp-time-zone: "UTC0" 526 540 # time-stamp-end: "; # UTC" 527 541 # End:
-3
app/editres/man/Makefile.in
··· 127 127 CCDEPMODE = @CCDEPMODE@ 128 128 CFLAGS = @CFLAGS@ 129 129 CHANGELOG_CMD = @CHANGELOG_CMD@ 130 - CPP = @CPP@ 131 130 CPPFLAGS = @CPPFLAGS@ 132 131 CWARNFLAGS = @CWARNFLAGS@ 133 132 CYGPATH_W = @CYGPATH_W@ ··· 140 139 ECHO_T = @ECHO_T@ 141 140 EDITRES_CFLAGS = @EDITRES_CFLAGS@ 142 141 EDITRES_LIBS = @EDITRES_LIBS@ 143 - EGREP = @EGREP@ 144 142 EXEEXT = @EXEEXT@ 145 143 FILE_MAN_DIR = @FILE_MAN_DIR@ 146 144 FILE_MAN_SUFFIX = @FILE_MAN_SUFFIX@ 147 - GREP = @GREP@ 148 145 INSTALL = @INSTALL@ 149 146 INSTALL_CMD = @INSTALL_CMD@ 150 147 INSTALL_DATA = @INSTALL_DATA@
+10 -1
app/editres/man/editres.man
··· 28 28 .SH NAME 29 29 editres \- a dynamic resource editor for X Toolkit applications 30 30 .SH SYNTAX 31 - \fBeditres\fP [ \fI\-toolkitoption\fP .\|.\|. ] 31 + \fBeditres\fP [ \fI\-toolkitoption\fP .\|.\|. ] [\fB\-help\fP] [\fB\-version\fP] 32 32 .SH OPTIONS 33 33 .I Editres 34 34 accepts all of the standard X Toolkit command line 35 35 options (see \fIX(__miscmansuffix__)\fP). The order of the command line options is 36 36 not important. 37 + .PP 38 + .I Editres 39 + also accepts the following additional options: 40 + .TP 12 41 + .B \-help 42 + Prints a usage message and exits. 43 + .TP 12 44 + .B \-version 45 + Prints version info and exits. 37 46 .SH DESCRIPTION 38 47 Editres is a tool that allows users and application developers to view 39 48 the full widget hierarchy of any X Toolkit application that speaks the
+4
app/editres/setvalues.c
··· 25 25 * Author: Chris D. Peterson, MIT X Consortium 26 26 */ 27 27 28 + #ifdef HAVE_CONFIG_H 29 + # include "config.h" 30 + #endif 31 + 28 32 #include <X11/Intrinsic.h> 29 33 #include <X11/StringDefs.h> 30 34 #include <X11/Xresource.h>
+25 -21
app/editres/svpopup.c
··· 25 25 * Author: Chris D. Peterson, MIT X Consortium 26 26 */ 27 27 28 + #ifdef HAVE_CONFIG_H 29 + # include "config.h" 30 + #endif 31 + 28 32 #include <X11/Intrinsic.h> 29 33 #include <X11/StringDefs.h> /* Get standard string definitions. */ 30 34 #include <X11/Xatom.h> ··· 80 84 * Clear out the old strings, and set the active widget to the name widget. 81 85 */ 82 86 83 - XtSetArg(args[0], XtNstring, ""); 87 + XtSetArg(args[0], (String)XtNstring, ""); 84 88 XtSetValues(global_screen_data.res_text, args, ONE); 85 89 XtSetValues(global_screen_data.val_text, args, ONE); 86 90 ··· 165 169 166 170 XtSetKeyboardFocus(XtParent(new), new); 167 171 168 - XtSetArg(args[0], XtNborderColor, &old_border); 169 - XtSetArg(args[1], XtNbackground, &old_bg); 172 + XtSetArg(args[0], (String)XtNborderColor, &old_border); 173 + XtSetArg(args[1], (String)XtNbackground, &old_bg); 170 174 XtGetValues(new, args, TWO); 171 175 172 - XtSetArg(args[0], XtNborderColor, &new_border); 176 + XtSetArg(args[0], (String)XtNborderColor, &new_border); 173 177 XtGetValues(old, args, ONE); 174 178 175 179 if (old_border != old_bg) /* Colors are already correct, return. */ 176 180 return; 177 181 178 - XtSetArg(args[0], XtNborderColor, old_border); 182 + XtSetArg(args[0], (String)XtNborderColor, old_border); 179 183 XtSetValues(old, args, ONE); 180 184 181 - XtSetArg(args[0], XtNborderColor, new_border); 185 + XtSetArg(args[0], (String)XtNborderColor, new_border); 182 186 XtSetValues(new, args, ONE); 183 187 } 184 188 ··· 210 214 211 215 212 216 num_args = 0; 213 - XtSetArg(args[num_args], XtNfromVert, label); num_args++; 217 + XtSetArg(args[num_args], (String)XtNfromVert, label); num_args++; 214 218 res_label = XtCreateManagedWidget("resourceLabel", labelWidgetClass, 215 219 form, args, num_args); 216 220 217 221 num_args = 0; 218 - XtSetArg(args[num_args], XtNfromVert, label); num_args++; 219 - XtSetArg(args[num_args], XtNfromHoriz, res_label); num_args++; 222 + XtSetArg(args[num_args], (String)XtNfromVert, label); num_args++; 223 + XtSetArg(args[num_args], (String)XtNfromHoriz, res_label); num_args++; 220 224 scr_data->res_text = XtCreateManagedWidget("resourceText", 221 225 asciiTextWidgetClass, 222 226 form, args, num_args); 223 227 224 228 num_args = 0; 225 - XtSetArg(args[num_args], XtNfromVert, scr_data->res_text); num_args++; 229 + XtSetArg(args[num_args], (String)XtNfromVert, scr_data->res_text); num_args++; 226 230 (void) XtCreateManagedWidget("valueLabel", labelWidgetClass, 227 231 form, args, num_args); 228 232 229 233 num_args = 0; 230 - XtSetArg(args[num_args], XtNfromHoriz, res_label); num_args++; 231 - XtSetArg(args[num_args], XtNfromVert, scr_data->res_text); num_args++; 234 + XtSetArg(args[num_args], (String)XtNfromHoriz, res_label); num_args++; 235 + XtSetArg(args[num_args], (String)XtNfromVert, scr_data->res_text); num_args++; 232 236 scr_data->val_text = XtCreateManagedWidget("valueText", 233 237 asciiTextWidgetClass, 234 238 form, args, num_args); 235 239 236 240 num_args = 0; 237 - XtSetArg(args[num_args], XtNfromVert, scr_data->val_text); num_args++; 241 + XtSetArg(args[num_args], (String)XtNfromVert, scr_data->val_text); num_args++; 238 242 do_it = XtCreateManagedWidget("setValues", commandWidgetClass, 239 243 form, args, num_args); 240 244 241 245 num_args = 0; 242 - XtSetArg(args[num_args], XtNfromVert, scr_data->val_text); num_args++; 243 - XtSetArg(args[num_args], XtNfromHoriz, do_it); num_args++; 246 + XtSetArg(args[num_args], (String)XtNfromVert, scr_data->val_text); num_args++; 247 + XtSetArg(args[num_args], (String)XtNfromHoriz, do_it); num_args++; 244 248 cancel = XtCreateManagedWidget("cancel", commandWidgetClass, 245 249 form, args, num_args); 246 250 247 - XtAddCallback(do_it, XtNcallback, DoSetValues, NULL); 248 - XtAddCallback(cancel, XtNcallback, CancelSetValues, NULL); 251 + XtAddCallback(do_it, (String)XtNcallback, DoSetValues, NULL); 252 + XtAddCallback(cancel, (String)XtNcallback, CancelSetValues, NULL); 249 253 250 254 /* 251 255 * Initialize the text entry fields. ··· 255 259 Pixel color; 256 260 257 261 num_args = 0; 258 - XtSetArg(args[num_args], XtNbackground, &color); num_args++; 262 + XtSetArg(args[num_args], (String)XtNbackground, &color); num_args++; 259 263 XtGetValues(scr_data->val_text, args, num_args); 260 264 261 265 num_args = 0; 262 - XtSetArg(args[num_args], XtNborderColor, color); num_args++; 266 + XtSetArg(args[num_args], (String)XtNborderColor, color); num_args++; 263 267 XtSetValues(scr_data->val_text, args, num_args); 264 268 265 269 XtSetKeyboardFocus(form, scr_data->res_text); ··· 288 292 return; 289 293 } 290 294 291 - XtSetArg(args[0], XtNstring, &res_name); 295 + XtSetArg(args[0], (String)XtNstring, &res_name); 292 296 XtGetValues(global_screen_data.res_text, args, ONE); 293 297 294 - XtSetArg(args[0], XtNstring, &res_value); 298 + XtSetArg(args[0], (String)XtNstring, &res_value); 295 299 XtGetValues(global_screen_data.val_text, args, ONE); 296 300 297 301 _XEditResResetStream(stream);
+6 -2
app/editres/utils.c
··· 23 23 in this Software without prior written authorization from The Open Group. 24 24 */ 25 25 26 + #ifdef HAVE_CONFIG_H 27 + # include "config.h" 28 + #endif 29 + 26 30 #include <X11/Intrinsic.h> 27 31 #include <X11/Xutil.h> 28 32 #include <X11/Xos.h> ··· 56 60 */ 57 61 58 62 void 59 - SetMessage(Widget w, String str) 63 + SetMessage(Widget w, const char *str) 60 64 { 61 65 Arg args[1]; 62 66 ··· 308 312 } FileDialogInfo; 309 313 310 314 void 311 - _PopupFileDialog(Widget w, String str, String default_value, 315 + _PopupFileDialog(Widget w, const char *str, const char *default_value, 312 316 XtCallbackProc func, XtPointer data) 313 317 { 314 318 FileDialogInfo * file_info;
+82 -78
app/editres/widgets.c
··· 27 27 * Code for creating all widgets used by EditRes. 28 28 */ 29 29 30 + #ifdef HAVE_CONFIG_H 31 + # include "config.h" 32 + #endif 33 + 30 34 #include <stdio.h> 31 35 #include <X11/Intrinsic.h> 32 36 #include <X11/StringDefs.h> /* Get standard string definitions. */ ··· 56 60 */ 57 61 58 62 static Widget CreateTopArea ( Widget parent ); 59 - static void CreateCommandMenu ( Widget parent, String toolkit ); 60 - static void CreateTreeCommandMenu ( Widget parent, String toolkit ); 63 + static void CreateCommandMenu ( Widget parent, const char *toolkit ); 64 + static void CreateTreeCommandMenu ( Widget parent, const char *toolkit ); 61 65 static void CreateResourceNameForm ( Widget parent, WNode * node ); 62 66 static void SetToggleGroupLeaders ( WNode * node ); 63 67 static void MakeBoxLookNice ( Widget dot, Widget star, Widget any, ··· 87 91 #define Offset(index) sizeof(String) * index 88 92 89 93 #define res_entry(index, name, class) \ 90 - {name, class, XtRString, sizeof(String), \ 94 + {(String)name, (String)class, XtRString, sizeof(String), \ 91 95 Offset(index), XtRString, (XtPointer)NULL} 92 96 93 97 static XtResource resources[] = { ··· 134 138 #undef Offset 135 139 136 140 void 137 - RebuildMenusAndLabel(String toolkit) 141 + RebuildMenusAndLabel(const char *toolkit) 138 142 { 139 143 if (strcmp(global_effective_toolkit, toolkit)) { 140 144 CreateCommandMenu(box, toolkit); ··· 255 259 Widget CM_entries[NUM_CM_ENTRIES]; 256 260 257 261 static void 258 - CreateCommandMenu(Widget parent, String toolkit) 262 + CreateCommandMenu(Widget parent, const char *toolkit) 259 263 { 260 264 Arg args[1]; 261 265 ··· 265 269 parent, NULL, ZERO); 266 270 267 271 /* set the menu name to the toolkit name */ 268 - XtSetArg(args[0], XtNmenuName, toolkit); 272 + XtSetArg(args[0], (String)XtNmenuName, toolkit); 269 273 XtSetValues(cbutton, args, ONE); 270 274 271 275 cmenu = XtCreatePopupShell(toolkit, simpleMenuWidgetClass, cbutton, ··· 334 338 Widget TM_entries[NUM_TM_ENTRIES]; 335 339 336 340 static void 337 - CreateTreeCommandMenu(Widget parent, String toolkit) 341 + CreateTreeCommandMenu(Widget parent, const char *toolkit) 338 342 { 339 343 int i, number; 340 344 static struct tree_ops_menu tree_menu[] = { ··· 362 366 tbutton = XtCreateManagedWidget("treeCommands", menuButtonWidgetClass, 363 367 parent, NULL, ZERO); 364 368 365 - XtSetArg(args[0], XtNmenuName, toolkit); 369 + XtSetArg(args[0], (String)XtNmenuName, toolkit); 366 370 XtSetValues(tbutton, args, ONE); 367 371 368 372 tmenu = XtCreatePopupShell(toolkit, simpleMenuWidgetClass, tbutton, ··· 417 421 { 418 422 Arg args[1]; 419 423 420 - XtSetArg(args[0], XtNbackgroundPixmap, &old_pixmap); 424 + XtSetArg(args[0], (String)XtNbackgroundPixmap, &old_pixmap); 421 425 XtGetValues(XtParent(tree), args, ONE); 422 426 423 - XtSetArg(args[0], XtNbackgroundPixmap, None); 427 + XtSetArg(args[0], (String)XtNbackgroundPixmap, None); 424 428 XtSetValues(XtParent(tree), args, ONE); 425 429 426 430 XtUnmapWidget(tree); ··· 442 446 XawTreeForceLayout(tree); 443 447 XtMapWidget(tree); 444 448 445 - XtSetArg(args[0], XtNbackgroundPixmap, old_pixmap); 449 + XtSetArg(args[0], (String)XtNbackgroundPixmap, old_pixmap); 446 450 XtSetValues(XtParent(tree), args, ONE); 447 451 } 448 452 ··· 466 470 void 467 471 CreateResourceBoxWidgets(WNode *node, char **names, char **cons_names) 468 472 { 469 - Widget pane, box, button, viewport, pane_child; 473 + Widget rbox, pane, button, viewport, pane_child; 470 474 ResourceBoxInfo * res_box; 471 475 Dimension max_width = WidthOfScreen(XtScreen(node->widget)) - 20; 472 476 Dimension max_height = HeightOfScreen(XtScreen(node->widget)) - 40; ··· 501 505 502 506 XtSetKeyboardFocus(pane, res_box->value_wid); /* send keyboard to value. */ 503 507 504 - box = XtCreateManagedWidget("commandBox", boxWidgetClass, 508 + rbox = XtCreateManagedWidget("commandBox", boxWidgetClass, 505 509 pane, NULL, ZERO); 506 510 507 511 button = XtCreateManagedWidget("setFile", commandWidgetClass, 508 - box, NULL, ZERO); 512 + rbox, NULL, ZERO); 509 513 XtAddCallback(button, XtNcallback, SetFile, NULL); 510 514 511 515 button = XtCreateManagedWidget("save", commandWidgetClass, 512 - box, NULL, ZERO); 516 + rbox, NULL, ZERO); 513 517 XtAddCallback(button, XtNcallback, SaveResource,(XtPointer) res_box); 514 518 515 519 button = XtCreateManagedWidget("apply", commandWidgetClass, 516 - box, NULL, ZERO); 520 + rbox, NULL, ZERO); 517 521 XtAddCallback(button, XtNcallback, ApplyResource,(XtPointer) node); 518 522 519 523 button = XtCreateManagedWidget("saveAndApply", commandWidgetClass, 520 - box, NULL, ZERO); 524 + rbox, NULL, ZERO); 521 525 XtAddCallback(button, XtNcallback, SaveResource,(XtPointer) res_box); 522 526 XtAddCallback(button, XtNcallback, ApplyResource,(XtPointer) node); 523 527 524 528 button = XtCreateManagedWidget("cancel", commandWidgetClass, 525 - box, NULL, ZERO); 529 + rbox, NULL, ZERO); 526 530 XtAddCallback(button,XtNcallback,PopdownResBox,(XtPointer)res_box->shell); 527 531 528 532 SetToggleGroupLeaders(node); ··· 563 567 while (TRUE) { 564 568 565 569 num_args = 0; 566 - XtSetArg(args[num_args], XtNfromHoriz, name); num_args++; 567 - XtSetArg(args[num_args], XtNradioData, "."); num_args++; 570 + XtSetArg(args[num_args], (String)XtNfromHoriz, name); num_args++; 571 + XtSetArg(args[num_args], (String)XtNradioData, "."); num_args++; 568 572 dot = XtCreateManagedWidget("dot", toggleWidgetClass, 569 573 form, args, num_args); 570 574 XtAddCallback(dot, XtNcallback, 571 575 ActivateWidgetsAndSetResourceString,(XtPointer) node); 572 576 573 577 num_args = 0; 574 - XtSetArg(args[num_args], XtNfromHoriz, class); num_args++; 575 - XtSetArg(args[num_args], XtNfromVert, dot); num_args++; 576 - XtSetArg(args[num_args], XtNradioGroup, dot); num_args++; 577 - XtSetArg(args[num_args], XtNradioData, "*"); num_args++; 578 + XtSetArg(args[num_args], (String)XtNfromHoriz, class); num_args++; 579 + XtSetArg(args[num_args], (String)XtNfromVert, dot); num_args++; 580 + XtSetArg(args[num_args], (String)XtNradioGroup, dot); num_args++; 581 + XtSetArg(args[num_args], (String)XtNradioData, "*"); num_args++; 578 582 star = XtCreateManagedWidget("star", toggleWidgetClass, 579 583 form, args, num_args); 580 584 XtAddCallback(star,XtNcallback, ··· 618 622 old_info = new_info; 619 623 620 624 num_args = 0; 621 - XtSetArg(args[num_args], XtNfromHoriz, dot); num_args++; 622 - XtSetArg(args[num_args], XtNlabel, names[i]); num_args++; 623 - XtSetArg(args[num_args], XtNradioData, names[i]); num_args++; 625 + XtSetArg(args[num_args], (String)XtNfromHoriz, dot); num_args++; 626 + XtSetArg(args[num_args], (String)XtNlabel, names[i]); num_args++; 627 + XtSetArg(args[num_args], (String)XtNradioData, names[i]); num_args++; 624 628 name = XtCreateManagedWidget("name", toggleWidgetClass, 625 629 form, args, num_args); 626 630 XtAddCallback(name,XtNcallback, 627 631 ActivateWidgetsAndSetResourceString,(XtPointer) node); 628 632 629 633 num_args = 0; 630 - XtSetArg(args[num_args], XtNfromHoriz, star); num_args++; 631 - XtSetArg(args[num_args], XtNfromVert, name); num_args++; 632 - XtSetArg(args[num_args], XtNlabel, classes[i]); num_args++; 633 - XtSetArg(args[num_args], XtNradioGroup, name); num_args++; 634 - XtSetArg(args[num_args], XtNradioData, classes[i]); num_args++; 634 + XtSetArg(args[num_args], (String)XtNfromHoriz, star); num_args++; 635 + XtSetArg(args[num_args], (String)XtNfromVert, name); num_args++; 636 + XtSetArg(args[num_args], (String)XtNlabel, classes[i]); num_args++; 637 + XtSetArg(args[num_args], (String)XtNradioGroup, name); num_args++; 638 + XtSetArg(args[num_args], (String)XtNradioData, classes[i]); num_args++; 635 639 class = XtCreateManagedWidget("class", toggleWidgetClass, 636 640 form,args,num_args); 637 641 XtAddCallback(class, XtNcallback, 638 642 ActivateWidgetsAndSetResourceString,(XtPointer) node); 639 643 640 644 num_args = 0; 641 - XtSetArg(args[num_args], XtNfromHoriz, star); num_args++; 642 - XtSetArg(args[num_args], XtNfromVert, class); num_args++; 643 - XtSetArg(args[num_args], XtNradioData, "?"); num_args++; 644 - XtSetArg(args[num_args], XtNradioGroup, name); num_args++; 645 + XtSetArg(args[num_args], (String)XtNfromHoriz, star); num_args++; 646 + XtSetArg(args[num_args], (String)XtNfromVert, class); num_args++; 647 + XtSetArg(args[num_args], (String)XtNradioData, "?"); num_args++; 648 + XtSetArg(args[num_args], (String)XtNradioGroup, name); num_args++; 645 649 single = XtCreateManagedWidget("single", toggleWidgetClass, 646 650 form, args, num_args); 647 651 XtAddCallback(single,XtNcallback, 648 652 ActivateWidgetsAndSetResourceString,(XtPointer) node); 649 653 650 654 num_args = 0; 651 - XtSetArg(args[num_args], XtNfromHoriz, any); num_args++; 652 - XtSetArg(args[num_args], XtNfromVert, single); num_args++; 653 - XtSetArg(args[num_args], XtNradioGroup, name); num_args++; 654 - XtSetArg(args[num_args], XtNradioData, ANY_RADIO_DATA); num_args++; 655 + XtSetArg(args[num_args], (String)XtNfromHoriz, any); num_args++; 656 + XtSetArg(args[num_args], (String)XtNfromVert, single); num_args++; 657 + XtSetArg(args[num_args], (String)XtNradioGroup, name); num_args++; 658 + XtSetArg(args[num_args], (String)XtNradioData, ANY_RADIO_DATA); num_args++; 655 659 any = XtCreateManagedWidget("any", toggleWidgetClass, 656 660 form, args, num_args); 657 661 ··· 682 686 NameInfo *name; 683 687 ResourceBoxInfo * res_box = node->resources->res_box; 684 688 static Arg args[] = { 685 - {XtNstate, (XtArgVal) TRUE} 689 + {(String)XtNstate, (XtArgVal) TRUE} 686 690 }; 687 691 688 692 for (name = res_box->name_info; name != NULL; name = name->next) { ··· 723 727 */ 724 728 725 729 num_args = 0; 726 - XtSetArg(args[num_args], XtNhorizDistance, &(h_dist[0])); num_args++; 727 - XtSetArg(args[num_args], XtNwidth, &width_1); num_args++; 730 + XtSetArg(args[num_args], (String)XtNhorizDistance, &(h_dist[0])); num_args++; 731 + XtSetArg(args[num_args], (String)XtNwidth, &width_1); num_args++; 728 732 XtGetValues(dot, args, num_args); 729 733 730 734 num_args = 0; 731 - XtSetArg(args[num_args], XtNhorizDistance, &(h_dist[1])); num_args++; 732 - XtSetArg(args[num_args], XtNwidth, &width_2); num_args++; 735 + XtSetArg(args[num_args], (String)XtNhorizDistance, &(h_dist[1])); num_args++; 736 + XtSetArg(args[num_args], (String)XtNwidth, &width_2); num_args++; 733 737 XtGetValues(star, args, num_args); 734 738 735 739 num_args = 0; 736 - XtSetArg(args[num_args], XtNhorizDistance, &(h_dist[2])); num_args++; 737 - XtSetArg(args[num_args], XtNwidth, &any_width); num_args++; 740 + XtSetArg(args[num_args], (String)XtNhorizDistance, &(h_dist[2])); num_args++; 741 + XtSetArg(args[num_args], (String)XtNwidth, &any_width); num_args++; 738 742 XtGetValues(any, args, num_args); 739 743 740 744 dot_star_width = (width_1 > width_2) ? width_1 : width_2; ··· 743 747 } 744 748 745 749 num_args = 0; 746 - XtSetArg(args[num_args], XtNhorizDistance, h_dist[0]); num_args++; 750 + XtSetArg(args[num_args], (String)XtNhorizDistance, h_dist[0]); num_args++; 747 751 XtSetValues(any, args, num_args); 748 752 749 753 /* 750 754 * Add a new arg, and continue... 751 755 */ 752 - XtSetArg(args[num_args], XtNwidth, dot_star_width); num_args++; 756 + XtSetArg(args[num_args], (String)XtNwidth, dot_star_width); num_args++; 753 757 XtSetValues(star, args, num_args); 754 758 XtSetValues(dot, args, num_args); 755 759 ··· 761 765 */ 762 766 763 767 num_args = 0; 764 - XtSetArg(args[num_args], XtNwidth, &width_1); num_args++; 765 - XtSetArg(args[num_args], XtNhorizDistance, &(h_dist[0])); num_args++; 768 + XtSetArg(args[num_args], (String)XtNwidth, &width_1); num_args++; 769 + XtSetArg(args[num_args], (String)XtNhorizDistance, &(h_dist[0])); num_args++; 766 770 XtGetValues(name, args, num_args); 767 771 768 772 num_args = 0; 769 - XtSetArg(args[num_args], XtNwidth, &width_2); num_args++; 770 - XtSetArg(args[num_args], XtNhorizDistance, &(h_dist[1])); num_args++; 773 + XtSetArg(args[num_args], (String)XtNwidth, &width_2); num_args++; 774 + XtSetArg(args[num_args], (String)XtNhorizDistance, &(h_dist[1])); num_args++; 771 775 XtGetValues(class, args, num_args); 772 776 773 777 if (width_2 > width_1) width_1 = width_2; 774 778 if (h_dist[1] > h_dist[0]) h_dist[0] = h_dist[1]; 775 779 776 780 num_args = 0; 777 - XtSetArg(args[num_args], XtNwidth, &width_2); num_args++; 778 - XtSetArg(args[num_args], XtNhorizDistance, &(h_dist[1])); num_args++; 781 + XtSetArg(args[num_args], (String)XtNwidth, &width_2); num_args++; 782 + XtSetArg(args[num_args], (String)XtNhorizDistance, &(h_dist[1])); num_args++; 779 783 XtGetValues(single, args, num_args); 780 784 781 785 name_class_width = (width_1 > width_2) ? width_1 : width_2; ··· 787 791 num_args = 0; 788 792 if (endbox < 0) { 789 793 any_width -= dot_star_width & 1; 790 - XtSetArg(args[num_args], XtNhorizDistance, 794 + XtSetArg(args[num_args], (String)XtNhorizDistance, 791 795 h_dist[2] + (dot_star_width >> 1) + (dot_star_width & 1)); 792 796 ++num_args; 793 797 } 794 798 795 - XtSetArg(args[num_args], XtNwidth, any_width); num_args++; 799 + XtSetArg(args[num_args], (String)XtNwidth, any_width); num_args++; 796 800 XtSetValues(any, args, num_args); 797 801 798 802 num_args = 0; 799 - XtSetArg(args[num_args], XtNwidth, name_class_width); num_args++; 800 - XtSetArg(args[num_args], XtNhorizDistance, h_dist[0]); num_args++; 803 + XtSetArg(args[num_args], (String)XtNwidth, name_class_width); num_args++; 804 + XtSetArg(args[num_args], (String)XtNhorizDistance, h_dist[0]); num_args++; 801 805 XtSetValues(name, args, num_args); 802 806 XtSetValues(class, args, num_args); 803 807 XtSetValues(single, args, num_args); ··· 832 836 * list. 833 837 */ 834 838 if (!names) { 835 - XtSetArg(args[num_args], XtNlist, noneList); num_args++; 836 - XtSetArg(args[num_args], XtNnumberStrings, 1); num_args++; 837 - XtSetArg(args[num_args], XtNsensitive, False); num_args++; 839 + XtSetArg(args[num_args], (String)XtNlist, noneList); num_args++; 840 + XtSetArg(args[num_args], (String)XtNnumberStrings, 1); num_args++; 841 + XtSetArg(args[num_args], (String)XtNsensitive, False); num_args++; 838 842 } 839 - else { XtSetArg(args[num_args], XtNlist, names); num_args++; } 843 + else { XtSetArg(args[num_args], (String)XtNlist, names); num_args++; } 840 844 viewport = XtCreateManagedWidget("normalViewport", viewportWidgetClass, 841 845 parent, NULL, 0); 842 846 res_box->norm_list = XtCreateManagedWidget("namesList", listWidgetClass, ··· 851 855 parent, NULL, ZERO); 852 856 853 857 num_args = 0; 854 - XtSetArg(args[num_args], XtNlist, cons_names); num_args++; 858 + XtSetArg(args[num_args], (String)XtNlist, cons_names); num_args++; 855 859 viewport = XtCreateManagedWidget("constraintViewport", viewportWidgetClass, 856 860 parent, NULL, 0); 857 861 res_box->cons_list = XtCreateManagedWidget("constraintList", ··· 885 889 parent, NULL, ZERO); 886 890 887 891 num_args = 0; 888 - XtSetArg(args[num_args], XtNleft, XawChainLeft); num_args++; 889 - XtSetArg(args[num_args], XtNright, XawChainLeft); num_args++; 890 - XtSetArg(args[num_args], XtNtop, XawChainTop); num_args++; 891 - XtSetArg(args[num_args], XtNbottom, XawChainBottom); num_args++; 892 + XtSetArg(args[num_args], (String)XtNleft, XawChainLeft); num_args++; 893 + XtSetArg(args[num_args], (String)XtNright, XawChainLeft); num_args++; 894 + XtSetArg(args[num_args], (String)XtNtop, XawChainTop); num_args++; 895 + XtSetArg(args[num_args], (String)XtNbottom, XawChainBottom); num_args++; 892 896 label = XtCreateManagedWidget("valueLabel", labelWidgetClass, 893 897 form, args, num_args); 894 898 895 899 num_args = 0; 896 - XtSetArg(args[num_args], XtNfromHoriz, label); num_args++; 897 - XtSetArg(args[num_args], XtNleft, XawChainLeft); num_args++; 898 - XtSetArg(args[num_args], XtNright, XawChainRight); num_args++; 899 - XtSetArg(args[num_args], XtNtop, XawChainTop); num_args++; 900 - XtSetArg(args[num_args], XtNbottom, XawChainBottom); num_args++; 900 + XtSetArg(args[num_args], (String)XtNfromHoriz, label); num_args++; 901 + XtSetArg(args[num_args], (String)XtNleft, XawChainLeft); num_args++; 902 + XtSetArg(args[num_args], (String)XtNright, XawChainRight); num_args++; 903 + XtSetArg(args[num_args], (String)XtNtop, XawChainTop); num_args++; 904 + XtSetArg(args[num_args], (String)XtNbottom, XawChainBottom); num_args++; 901 905 res_box->value_wid = XtCreateManagedWidget("valueText", 902 906 asciiTextWidgetClass, 903 907 form, args, num_args); ··· 925 929 Dimension width, height, bw; 926 930 927 931 num_args = 0; 928 - XtSetArg(args[num_args], XtNwidth, &width); num_args++; 929 - XtSetArg(args[num_args], XtNheight, &height); num_args++; 930 - XtSetArg(args[num_args], XtNborderWidth, &bw); num_args++; 932 + XtSetArg(args[num_args], (String)XtNwidth, &width); num_args++; 933 + XtSetArg(args[num_args], (String)XtNheight, &height); num_args++; 934 + XtSetArg(args[num_args], (String)XtNborderWidth, &bw); num_args++; 931 935 XtGetValues(node->widget, args, num_args); 932 936 XtTranslateCoords(node->widget, 933 937 (Position) (width/2 + bw), (Position) (height/2 + bw), ··· 958 962 y = 0; 959 963 960 964 num_args = 0; 961 - XtSetArg(args[num_args], XtNx, x); num_args++; 962 - XtSetArg(args[num_args], XtNy, y); num_args++; 965 + XtSetArg(args[num_args], (String)XtNx, x); num_args++; 966 + XtSetArg(args[num_args], (String)XtNy, y); num_args++; 963 967 XtSetValues(shell, args, num_args); 964 968 965 969 XtPopup(shell, XtGrabNone);
+10 -6
app/editres/wtree.c
··· 23 23 in this Software without prior written authorization from The Open Group. 24 24 */ 25 25 26 + #ifdef HAVE_CONFIG_H 27 + # include "config.h" 28 + #endif 29 + 26 30 #include <stdio.h> 27 31 #include <X11/Intrinsic.h> 28 32 #include <X11/Xutil.h> ··· 111 115 top->name, top->parent->name, "not been created yet"); 112 116 SetMessage(global_screen_data.info_label, msg); 113 117 } 114 - XtSetArg(args[num_args], XtNtreeParent, top->parent->widget); 118 + XtSetArg(args[num_args], (String)XtNtreeParent, top->parent->widget); 115 119 num_args++; 116 120 } 117 121 ··· 365 369 state = FALSE; 366 370 break; 367 371 case SelectInvert: 368 - XtSetArg(args[0], XtNstate, &state); 372 + XtSetArg(args[0], (String)XtNstate, &state); 369 373 XtGetValues(node->widget, args, ONE); 370 374 371 375 state = !state; ··· 376 380 return; 377 381 } 378 382 379 - XtSetArg(args[0], XtNstate, state); 383 + XtSetArg(args[0], (String)XtNstate, state); 380 384 XtSetValues(node->widget, args, ONE); 381 385 TreeToggle(node->widget, (XtPointer) node, (XtPointer)(long) state); 382 386 ··· 422 426 else 423 427 snprintf(buf, sizeof(buf), "win: 0x%lx", node->window); 424 428 425 - XtSetArg(args[0], XtNlabel, buf); 429 + XtSetArg(args[0], (String)XtNlabel, buf); 426 430 break; 427 431 case ToggleLabel: 428 - XtSetArg(args[0], XtNlabel, &label); 432 + XtSetArg(args[0], (String)XtNlabel, &label); 429 433 XtGetValues(node->widget, args, ONE); 430 434 if (label && !strcmp(label, node->name)) 431 435 XtSetArg(args[0], XtNlabel, node->class); ··· 461 465 Arg args[1]; 462 466 Cardinal i; 463 467 464 - XtSetArg(args[0], XtNstate, TRUE); 468 + XtSetArg(args[0], (String)XtNstate, TRUE); 465 469 466 470 if ((type == SelectParent) || (type == SelectAncestors)) { 467 471 node = node->parent;