2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xmodmap 1.0.7.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 test -n "$DJDIR" || exec 7<&0 </dev/null
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix=/usr/local
554 ac_config_libobj_dir=.
561 # Identity of this package.
562 PACKAGE_NAME='xmodmap'
563 PACKAGE_TARNAME='xmodmap'
564 PACKAGE_VERSION='1.0.7'
565 PACKAGE_STRING='xmodmap 1.0.7'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
583 # ifdef HAVE_STDLIB_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
606 ac_subst_vars='am__EXEEXT_FALSE
648 MAINTAINER_MODE_FALSE
668 INSTALL_STRIP_PROGRAM
720 program_transform_name
733 enable_option_checking
734 enable_dependency_tracking
735 enable_maintainer_mode
736 enable_selective_werror
737 enable_strict_compilation
741 ac_precious_vars='build_alias
757 # Initialize some variables set by options.
759 ac_init_version=false
760 ac_unrecognized_opts=
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
771 program_transform_name=s,x,x,
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
817 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
822 # Accept the important Cygnus configure options, so we can diagnose typos.
824 case $ac_dashdash$ac_option in
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
846 cache_file=config.cache ;;
848 -datadir | --datadir | --datadi | --datad)
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error $? "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
874 eval enable_$ac_useropt=no ;;
876 -docdir | --docdir | --docdi | --doc | --do)
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error $? "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
900 eval enable_$ac_useropt=\$ac_optarg ;;
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
915 -help | --help | --hel | --he | -h)
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 htmldir=$ac_optarg ;;
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
945 -libdir | --libdir | --libdi | --libd)
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
957 -localedir | --localedir | --localedi | --localed | --locale)
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975 # Obsolete; use --without-fp.
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1036 -psdir | --psdir | --psdi | --psd | --ps)
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 sbindir=$ac_optarg ;;
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 sharedstatedir=$ac_optarg ;;
1062 -site | --site | --sit)
1064 -site=* | --site=* | --sit=*)
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error $? "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1104 eval with_$ac_useropt=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1120 eval with_$ac_useropt=no ;;
1123 # Obsolete; use --with-x.
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1140 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information"
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' | [0-9]* | *[!_$as_cr_alnum]* )
1149 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error $? "missing argument to $ac_option"
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1173 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178 # Check all directory arguments for consistency.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1185 # Remove trailing slashes.
1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\$ac_val;;
1191 # Be sure to have absolute directory names.
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1204 target=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used" >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 as_fn_error $? "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 as_fn_error $? "pwd does not report name of working directory"
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233 ac_srcdir_defaulted=yes
1234 # Try the directory containing this script, then the parent directory.
1235 ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1263 ac_srcdir_defaulted=no
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1297 \`configure' configures xmodmap 1.0.7 to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 Defaults for the options are specified in brackets.
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking ...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root [DATAROOTDIR/doc/xmodmap]
1346 --htmldir=DIR html documentation [DOCDIR]
1347 --dvidir=DIR dvi documentation [DOCDIR]
1348 --pdfdir=DIR pdf documentation [DOCDIR]
1349 --psdir=DIR ps documentation [DOCDIR]
1355 --program-prefix=PREFIX prepend PREFIX to installed program names
1356 --program-suffix=SUFFIX append SUFFIX to installed program names
1357 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360 --build=BUILD configure for building on BUILD [guessed]
1361 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1365 if test -n "$ac_init_help"; then
1366 case $ac_init_help in
1367 short | recursive ) echo "Configuration of xmodmap 1.0.7:";;
1372 --disable-option-checking ignore unrecognized --enable/--with options
1373 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1374 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1375 --disable-dependency-tracking speeds up one-time build
1376 --enable-dependency-tracking do not reject slow dependency extractors
1377 --enable-maintainer-mode enable make rules and dependencies not useful
1378 (and sometimes confusing) to the casual installer
1379 --disable-selective-werror
1380 Turn off selective compiler errors. (default:
1382 --enable-strict-compilation
1383 Enable all warnings from compiler and make them
1384 errors (default: disabled)
1385 --enable-silent-rules less verbose build output (undo: `make V=1')
1386 --disable-silent-rules verbose build output (undo: `make V=0')
1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1391 --with-lint Use a lint-style source code checker (default:
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1403 PKG_CONFIG path to pkg-config utility
1405 C compiler flags for XMODMAP, overriding pkg-config
1407 linker flags for XMODMAP, overriding pkg-config
1408 LINT Path to a lint-style command
1409 LINT_FLAGS Flags for the lint-style command
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1414 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1419 if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
1421 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422 test -d "$ac_dir" ||
1423 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1444 .) # We are building in place.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1468 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1477 xmodmap configure 1.0.7
1478 generated by GNU Autoconf 2.68
1480 Copyright (C) 2010 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1487 ## ------------------------ ##
1488 ## Autoconf initialization. ##
1489 ## ------------------------ ##
1491 # ac_fn_c_try_compile LINENO
1492 # --------------------------
1493 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_compile ()
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext
1498 if { { ac_try="$ac_compile"
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 $as_echo "$ac_try_echo"; } >&5
1505 (eval "$ac_compile") 2>conftest.err
1507 if test -s conftest.err; then
1508 grep -v '^ *+' conftest.err >conftest.er1
1509 cat conftest.er1 >&5
1510 mv -f conftest.er1 conftest.err
1512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; } && {
1514 test -z "$ac_c_werror_flag" ||
1515 test ! -s conftest.err
1516 } && test -s conftest.$ac_objext; then :
1519 $as_echo "$as_me: failed program was:" >&5
1520 sed 's/^/| /' conftest.$ac_ext >&5
1524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1525 as_fn_set_status $ac_retval
1527 } # ac_fn_c_try_compile
1529 # ac_fn_c_try_cpp LINENO
1530 # ----------------------
1531 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 if { { ac_try="$ac_cpp conftest.$ac_ext"
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } > conftest.i && {
1551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1566 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1567 # -------------------------------------------------------
1568 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1569 # the include files in INCLUDES and setting the cache variable VAR
1571 ac_fn_c_check_header_mongrel ()
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 if eval \${$3+:} false; then :
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1576 $as_echo_n "checking for $2... " >&6; }
1577 if eval \${$3+:} false; then :
1578 $as_echo_n "(cached) " >&6
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1584 # Is the header compilable?
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1586 $as_echo_n "checking $2 usability... " >&6; }
1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588 /* end confdefs.h. */
1592 if ac_fn_c_try_compile "$LINENO"; then :
1593 ac_header_compiler=yes
1595 ac_header_compiler=no
1597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1599 $as_echo "$ac_header_compiler" >&6; }
1601 # Is the header present?
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1603 $as_echo_n "checking $2 presence... " >&6; }
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1608 if ac_fn_c_try_cpp "$LINENO"; then :
1609 ac_header_preproc=yes
1611 ac_header_preproc=no
1613 rm -f conftest.err conftest.i conftest.$ac_ext
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1615 $as_echo "$ac_header_preproc" >&6; }
1617 # So? What about this header?
1618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1621 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1623 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1627 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1629 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1631 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1633 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1635 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 ( $as_echo "## ---------------------------------------------------------------------- ##
1637 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1638 ## ---------------------------------------------------------------------- ##"
1639 ) | sed "s/^/$as_me: WARNING: /" >&2
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1643 $as_echo_n "checking for $2... " >&6; }
1644 if eval \${$3+:} false; then :
1645 $as_echo_n "(cached) " >&6
1647 eval "$3=\$ac_header_compiler"
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 } # ac_fn_c_check_header_mongrel
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.
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_link"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
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
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;;
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
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; }; }; then :
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
1691 ac_retval=$ac_status
1693 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1705 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
1711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h. */
1716 if ac_fn_c_try_compile "$LINENO"; then :
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1728 } # ac_fn_c_check_header_compile
1730 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1731 # ---------------------------------------------
1732 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1734 ac_fn_c_check_decl ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 as_decl_name=`echo $2|sed 's/ *(.*//'`
1738 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1740 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1741 if eval \${$3+:} false; then :
1742 $as_echo_n "(cached) " >&6
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1750 #ifndef $as_decl_name
1752 (void) $as_decl_use;
1754 (void) $as_decl_name;
1762 if ac_fn_c_try_compile "$LINENO"; then :
1767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 $as_echo "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 } # ac_fn_c_check_decl
1776 # ac_fn_c_try_link LINENO
1777 # -----------------------
1778 # Try to link conftest.$ac_ext, and return whether this succeeded.
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 rm -f conftest.$ac_objext conftest$ac_exeext
1783 if { { ac_try="$ac_link"
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_link") 2>conftest.err
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && {
1799 test -z "$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 } && test -s conftest$ac_exeext && {
1802 test "$cross_compiling" = yes ||
1803 $as_test_x conftest$ac_exeext
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1812 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814 # interfere with the next link command; also delete a directory that is
1815 # left behind by Apple's compiler. We do this before executing the actions.
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818 as_fn_set_status $ac_retval
1820 } # ac_fn_c_try_link
1822 # ac_fn_c_check_func LINENO FUNC VAR
1823 # ----------------------------------
1824 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1825 ac_fn_c_check_func ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if eval \${$3+:} false; then :
1831 $as_echo_n "(cached) " >&6
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1837 #define $2 innocuous_$2
1839 /* System header to define __stub macros and hopefully few prototypes,
1840 which can conflict with char $2 (); below.
1841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1842 <limits.h> exists even on freestanding compilers. */
1845 # include <limits.h>
1847 # include <assert.h>
1852 /* Override any GCC internal prototype to avoid an error.
1853 Use char because int might match the return type of a GCC
1854 builtin and then its argument prototype would still apply. */
1859 /* The GNU C library defines this for functions which it implements
1860 to always fail with ENOSYS. Some functions are actually named
1861 something starting with __ and the normal name is an alias. */
1862 #if defined __stub_$2 || defined __stub___$2
1874 if ac_fn_c_try_link "$LINENO"; then :
1879 rm -f core conftest.err conftest.$ac_objext \
1880 conftest$ac_exeext conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 } # ac_fn_c_check_func
1888 cat >config.log <<_ACEOF
1889 This file contains any messages produced by compilers while
1890 running configure, to aid debugging if configure makes a mistake.
1892 It was created by xmodmap $as_me 1.0.7, which was
1893 generated by GNU Autoconf 2.68. Invocation command line was
1905 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1906 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1907 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1908 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1909 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1911 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1912 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1914 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1915 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1916 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1917 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1918 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1919 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1920 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928 test -z "$as_dir" && as_dir=.
1929 $as_echo "PATH: $as_dir"
1945 # Keep a trace of the command line.
1946 # Strip out --no-create and --no-recursion so they do not pile up.
1947 # Strip out --silent because we don't want to record it for future runs.
1948 # Also quote any args containing shell meta-characters.
1949 # Make two passes to allow for proper duplicate-argument suppression.
1953 ac_must_keep_next=false
1959 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1960 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1961 | -silent | --silent | --silen | --sile | --sil)
1964 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1969 as_fn_append ac_configure_args1 " '$ac_arg'"
1970 if test $ac_must_keep_next = true; then
1971 ac_must_keep_next=false # Got value, back to normal.
1974 *=* | --config-cache | -C | -disable-* | --disable-* \
1975 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1976 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1977 | -with-* | --with-* | -without-* | --without-* | --x)
1978 case "$ac_configure_args0 " in
1979 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1982 -* ) ac_must_keep_next=true ;;
1985 as_fn_append ac_configure_args " '$ac_arg'"
1990 { ac_configure_args0=; unset ac_configure_args0;}
1991 { ac_configure_args1=; unset ac_configure_args1;}
1993 # When interrupted or exit'd, cleanup temporary files, and complete
1994 # config.log. We remove comments because anyway the quotes in there
1995 # would cause problems or look ugly.
1996 # WARNING: Use '\'' to represent an apostrophe within the trap.
1997 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1998 trap 'exit_status=$?
1999 # Save into config.log some information that might help in debugging.
2003 $as_echo "## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##"
2007 # The following way of writing the cache mishandles newlines in values,
2009 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010 eval ac_val=\$$ac_var
2014 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2018 _ | IFS | as_nl) ;; #(
2019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020 *) { eval $ac_var=; unset $ac_var;} ;;
2025 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026 *${as_nl}ac_space=\ *)
2028 "s/'\''/'\''\\\\'\'''\''/g;
2029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2039 $as_echo "## ----------------- ##
2040 ## Output variables. ##
2041 ## ----------------- ##"
2043 for ac_var in $ac_subst_vars
2045 eval ac_val=\$$ac_var
2047 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2049 $as_echo "$ac_var='\''$ac_val'\''"
2053 if test -n "$ac_subst_files"; then
2054 $as_echo "## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##"
2058 for ac_var in $ac_subst_files
2060 eval ac_val=\$$ac_var
2062 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 $as_echo "$ac_var='\''$ac_val'\''"
2069 if test -s confdefs.h; then
2070 $as_echo "## ----------- ##
2077 test "$ac_signal" != 0 &&
2078 $as_echo "$as_me: caught signal $ac_signal"
2079 $as_echo "$as_me: exit $exit_status"
2081 rm -f core *.core core.conftest.* &&
2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2085 for ac_signal in 1 2 13 15; do
2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2091 rm -f -r conftest* confdefs.h
2093 $as_echo "/* confdefs.h */" > confdefs.h
2095 # Predefined preprocessor variables.
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_NAME "$PACKAGE_NAME"
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_STRING "$PACKAGE_STRING"
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2117 cat >>confdefs.h <<_ACEOF
2118 #define PACKAGE_URL "$PACKAGE_URL"
2122 # Let the site file select an alternate cache file if it wants to.
2123 # Prefer an explicitly selected file to automatically selected ones.
2126 if test -n "$CONFIG_SITE"; then
2127 # We do not want a PATH search for config.site.
2128 case $CONFIG_SITE in #((
2129 -*) ac_site_file1=./$CONFIG_SITE;;
2130 */*) ac_site_file1=$CONFIG_SITE;;
2131 *) ac_site_file1=./$CONFIG_SITE;;
2133 elif test "x$prefix" != xNONE; then
2134 ac_site_file1=$prefix/share/config.site
2135 ac_site_file2=$prefix/etc/config.site
2137 ac_site_file1=$ac_default_prefix/share/config.site
2138 ac_site_file2=$ac_default_prefix/etc/config.site
2140 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2142 test "x$ac_site_file" = xNONE && continue
2143 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2146 sed 's/^/| /' "$ac_site_file" >&5
2148 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2150 as_fn_error $? "failed to load site script $ac_site_file
2151 See \`config.log' for more details" "$LINENO" 5; }
2155 if test -r "$cache_file"; then
2156 # Some versions of bash will fail to source /dev/null (special files
2157 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2158 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160 $as_echo "$as_me: loading cache $cache_file" >&6;}
2162 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2163 *) . "./$cache_file";;
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168 $as_echo "$as_me: creating cache $cache_file" >&6;}
2172 # Check that the precious variables saved in the cache have kept the same
2174 ac_cache_corrupted=false
2175 for ac_var in $ac_precious_vars; do
2176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2177 eval ac_new_set=\$ac_env_${ac_var}_set
2178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2179 eval ac_new_val=\$ac_env_${ac_var}_value
2180 case $ac_old_set,$ac_new_set in
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2184 ac_cache_corrupted=: ;;
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2187 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2188 ac_cache_corrupted=: ;;
2191 if test "x$ac_old_val" != "x$ac_new_val"; then
2192 # differences in whitespace do not lead to failure.
2193 ac_old_val_w=`echo x $ac_old_val`
2194 ac_new_val_w=`echo x $ac_new_val`
2195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2197 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2198 ac_cache_corrupted=:
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2201 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2202 eval $ac_var=\$ac_old_val
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2205 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2207 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2210 # Pass precious variables to config.status.
2211 if test "$ac_new_set" = set; then
2213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 *) ac_arg=$ac_var=$ac_new_val ;;
2216 case " $ac_configure_args " in
2217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2222 if $ac_cache_corrupted; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2226 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2227 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2229 ## -------------------- ##
2230 ## Main body of script. ##
2231 ## -------------------- ##
2234 ac_cpp='$CPP $CPPFLAGS'
2235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2241 ac_config_headers="$ac_config_headers config.h"
2243 # Needed for asprintf on GNU libc
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249 if test -n "$ac_tool_prefix"; then
2250 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if ${ac_cv_prog_CC+:} false; then :
2255 $as_echo_n "(cached) " >&6
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 if test -n "$CC"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2280 $as_echo "$CC" >&6; }
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2283 $as_echo "no" >&6; }
2288 if test -z "$ac_cv_prog_CC"; then
2290 # Extract the first word of "gcc", so it can be a program name with args.
2291 set dummy gcc; ac_word=$2
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2295 $as_echo_n "(cached) " >&6
2297 if test -n "$ac_ct_CC"; then
2298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_ac_ct_CC="gcc"
2308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2320 $as_echo "$ac_ct_CC" >&6; }
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2323 $as_echo "no" >&6; }
2326 if test "x$ac_ct_CC" = x; then
2329 case $cross_compiling:$ac_tool_warned in
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2333 ac_tool_warned=yes ;;
2341 if test -z "$CC"; then
2342 if test -n "$ac_tool_prefix"; then
2343 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2344 set dummy ${ac_tool_prefix}cc; ac_word=$2
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2346 $as_echo_n "checking for $ac_word... " >&6; }
2347 if ${ac_cv_prog_CC+:} false; then :
2348 $as_echo_n "(cached) " >&6
2350 if test -n "$CC"; then
2351 ac_cv_prog_CC="$CC" # Let the user override the test.
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 ac_cv_prog_CC="${ac_tool_prefix}cc"
2361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2371 if test -n "$CC"; then
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2373 $as_echo "$CC" >&6; }
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2376 $as_echo "no" >&6; }
2382 if test -z "$CC"; then
2383 # Extract the first word of "cc", so it can be a program name with args.
2384 set dummy cc; ac_word=$2
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2386 $as_echo_n "checking for $ac_word... " >&6; }
2387 if ${ac_cv_prog_CC+:} false; then :
2388 $as_echo_n "(cached) " >&6
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398 test -z "$as_dir" && as_dir=.
2399 for ac_exec_ext in '' $ac_executable_extensions; do
2400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2401 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2402 ac_prog_rejected=yes
2406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2413 if test $ac_prog_rejected = yes; then
2414 # We found a bogon in the path, so make sure we never use it.
2415 set dummy $ac_cv_prog_CC
2417 if test $# != 0; then
2418 # We chose a different compiler from the bogus one.
2419 # However, it has the same basename, so the bogon will be chosen
2420 # first if we set CC to just the basename; use the full file name.
2422 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2428 if test -n "$CC"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2430 $as_echo "$CC" >&6; }
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2433 $as_echo "no" >&6; }
2438 if test -z "$CC"; then
2439 if test -n "$ac_tool_prefix"; then
2440 for ac_prog in cl.exe
2442 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2443 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445 $as_echo_n "checking for $ac_word... " >&6; }
2446 if ${ac_cv_prog_CC+:} false; then :
2447 $as_echo_n "(cached) " >&6
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 test -z "$as_dir" && as_dir=.
2457 for ac_exec_ext in '' $ac_executable_extensions; do
2458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2459 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2470 if test -n "$CC"; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2472 $as_echo "$CC" >&6; }
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2475 $as_echo "no" >&6; }
2479 test -n "$CC" && break
2482 if test -z "$CC"; then
2484 for ac_prog in cl.exe
2486 # Extract the first word of "$ac_prog", so it can be a program name with args.
2487 set dummy $ac_prog; ac_word=$2
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2489 $as_echo_n "checking for $ac_word... " >&6; }
2490 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2491 $as_echo_n "(cached) " >&6
2493 if test -n "$ac_ct_CC"; then
2494 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 test -z "$as_dir" && as_dir=.
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503 ac_cv_prog_ac_ct_CC="$ac_prog"
2504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2513 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2514 if test -n "$ac_ct_CC"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2516 $as_echo "$ac_ct_CC" >&6; }
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2519 $as_echo "no" >&6; }
2523 test -n "$ac_ct_CC" && break
2526 if test "x$ac_ct_CC" = x; then
2529 case $cross_compiling:$ac_tool_warned in
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533 ac_tool_warned=yes ;;
2542 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 as_fn_error $? "no acceptable C compiler found in \$PATH
2545 See \`config.log' for more details" "$LINENO" 5; }
2547 # Provide some information about the compiler.
2548 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2551 for ac_option in --version -v -V -qversion; do
2552 { { ac_try="$ac_compiler $ac_option >&5"
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2558 $as_echo "$ac_try_echo"; } >&5
2559 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2561 if test -s conftest.err; then
2563 ... rest of stderr output deleted ...
2564 10q' conftest.err >conftest.er1
2565 cat conftest.er1 >&5
2567 rm -f conftest.er1 conftest.err
2568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569 test $ac_status = 0; }
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2583 ac_clean_files_save=$ac_clean_files
2584 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2585 # Try to create an executable without -o first, disregard a.out.
2586 # It will help us diagnose broken compilers, and finding out an intuition
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2589 $as_echo_n "checking whether the C compiler works... " >&6; }
2590 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2592 # The possible output files:
2593 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2596 for ac_file in $ac_files
2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2600 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2605 if { { ac_try="$ac_link_default"
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 $as_echo "$ac_try_echo"; } >&5
2612 (eval "$ac_link_default") 2>&5
2614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2615 test $ac_status = 0; }; then :
2616 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2617 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2618 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2619 # so that the user can short-circuit this test for compilers unknown to
2621 for ac_file in $ac_files ''
2623 test -f "$ac_file" || continue
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2628 # We found the default executable, but exeext='' is most
2632 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2634 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636 # We set ac_cv_exeext here because the later test for it is not
2637 # safe: cross compilers may not add the suffix if given an `-o'
2638 # argument, so we may need to know it at that point already.
2639 # Even if this section looks crufty: it has the advantage of
2646 test "$ac_cv_exeext" = no && ac_cv_exeext=
2651 if test -z "$ac_file"; then :
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2653 $as_echo "no" >&6; }
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 as_fn_error 77 "C compiler cannot create executables
2660 See \`config.log' for more details" "$LINENO" 5; }
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2666 $as_echo_n "checking for C compiler default output file name... " >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2668 $as_echo "$ac_file" >&6; }
2669 ac_exeext=$ac_cv_exeext
2671 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2672 ac_clean_files=$ac_clean_files_save
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2674 $as_echo_n "checking for suffix of executables... " >&6; }
2675 if { { ac_try="$ac_link"
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2681 $as_echo "$ac_try_echo"; } >&5
2682 (eval "$ac_link") 2>&5
2684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2685 test $ac_status = 0; }; then :
2686 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2687 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2688 # work properly (i.e., refer to `conftest.exe'), while it won't with
2690 for ac_file in conftest.exe conftest conftest.*; do
2691 test -f "$ac_file" || continue
2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2694 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2702 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2703 See \`config.log' for more details" "$LINENO" 5; }
2705 rm -f conftest conftest$ac_cv_exeext
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2707 $as_echo "$ac_cv_exeext" >&6; }
2709 rm -f conftest.$ac_ext
2710 EXEEXT=$ac_cv_exeext
2712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2713 /* end confdefs.h. */
2718 FILE *f = fopen ("conftest.out", "w");
2719 return ferror (f) || fclose (f) != 0;
2725 ac_clean_files="$ac_clean_files conftest.out"
2726 # Check that the compiler produces executables we can run. If not, either
2727 # the compiler is broken, or we cross compile.
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2729 $as_echo_n "checking whether we are cross compiling... " >&6; }
2730 if test "$cross_compiling" != yes; then
2731 { { ac_try="$ac_link"
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737 $as_echo "$ac_try_echo"; } >&5
2738 (eval "$ac_link") 2>&5
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }
2742 if { ac_try='./conftest$ac_cv_exeext'
2743 { { case "(($ac_try" in
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2748 $as_echo "$ac_try_echo"; } >&5
2749 (eval "$ac_try") 2>&5
2751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2752 test $ac_status = 0; }; }; then
2755 if test "$cross_compiling" = maybe; then
2758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2760 as_fn_error $? "cannot run C compiled programs.
2761 If you meant to cross compile, use \`--host'.
2762 See \`config.log' for more details" "$LINENO" 5; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2767 $as_echo "$cross_compiling" >&6; }
2769 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2770 ac_clean_files=$ac_clean_files_save
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2772 $as_echo_n "checking for suffix of object files... " >&6; }
2773 if ${ac_cv_objext+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2787 rm -f conftest.o conftest.obj
2788 if { { ac_try="$ac_compile"
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2794 $as_echo "$ac_try_echo"; } >&5
2795 (eval "$ac_compile") 2>&5
2797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2798 test $ac_status = 0; }; then :
2799 for ac_file in conftest.o conftest.obj conftest.*; do
2800 test -f "$ac_file" || continue;
2802 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2803 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2808 $as_echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2813 as_fn_error $? "cannot compute suffix of object files: cannot compile
2814 See \`config.log' for more details" "$LINENO" 5; }
2816 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2819 $as_echo "$ac_cv_objext" >&6; }
2820 OBJEXT=$ac_cv_objext
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2823 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2824 if ${ac_cv_c_compiler_gnu+:} false; then :
2825 $as_echo_n "(cached) " >&6
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2841 if ac_fn_c_try_compile "$LINENO"; then :
2846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2851 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2852 if test $ac_compiler_gnu = yes; then
2857 ac_test_CFLAGS=${CFLAGS+set}
2858 ac_save_CFLAGS=$CFLAGS
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2860 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2861 if ${ac_cv_prog_cc_g+:} false; then :
2862 $as_echo_n "(cached) " >&6
2864 ac_save_c_werror_flag=$ac_c_werror_flag
2865 ac_c_werror_flag=yes
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2879 if ac_fn_c_try_compile "$LINENO"; then :
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2894 if ac_fn_c_try_compile "$LINENO"; then :
2897 ac_c_werror_flag=$ac_save_c_werror_flag
2899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2900 /* end confdefs.h. */
2910 if ac_fn_c_try_compile "$LINENO"; then :
2913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918 ac_c_werror_flag=$ac_save_c_werror_flag
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2921 $as_echo "$ac_cv_prog_cc_g" >&6; }
2922 if test "$ac_test_CFLAGS" = set; then
2923 CFLAGS=$ac_save_CFLAGS
2924 elif test $ac_cv_prog_cc_g = yes; then
2925 if test "$GCC" = yes; then
2931 if test "$GCC" = yes; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2938 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2939 if ${ac_cv_prog_cc_c89+:} false; then :
2940 $as_echo_n "(cached) " >&6
2942 ac_cv_prog_cc_c89=no
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2948 #include <sys/types.h>
2949 #include <sys/stat.h>
2950 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2951 struct buf { int x; };
2952 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2953 static char *e (p, i)
2959 static char *f (char * (*g) (char **, int), char **p, ...)
2964 s = g (p, va_arg (v,int));
2969 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2970 function prototypes and stuff, but not '\xHH' hex character constants.
2971 These don't provoke an error unfortunately, instead are silently treated
2972 as 'x'. The following induces an error, until -std is added to get
2973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2974 array size at least. It's necessary to write '\x00'==0 to get something
2975 that's true only with -std. */
2976 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2978 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2979 inside strings and character constants. */
2981 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2983 int test (int i, double x);
2984 struct s1 {int (*f) (int a);};
2985 struct s2 {int (*f) (double a);};
2986 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2992 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2997 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2998 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3000 CC="$ac_save_CC $ac_arg"
3001 if ac_fn_c_try_compile "$LINENO"; then :
3002 ac_cv_prog_cc_c89=$ac_arg
3004 rm -f core conftest.err conftest.$ac_objext
3005 test "x$ac_cv_prog_cc_c89" != "xno" && break
3007 rm -f conftest.$ac_ext
3012 case "x$ac_cv_prog_cc_c89" in
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3015 $as_echo "none needed" >&6; } ;;
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3018 $as_echo "unsupported" >&6; } ;;
3020 CC="$CC $ac_cv_prog_cc_c89"
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3022 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3024 if test "x$ac_cv_prog_cc_c89" != xno; then :
3029 ac_cpp='$CPP $CPPFLAGS'
3030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 ac_cpp='$CPP $CPPFLAGS'
3037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3041 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3042 # On Suns, sometimes $CPP names a directory.
3043 if test -n "$CPP" && test -d "$CPP"; then
3046 if test -z "$CPP"; then
3047 if ${ac_cv_prog_CPP+:} false; then :
3048 $as_echo_n "(cached) " >&6
3050 # Double quotes because CPP needs to be expanded
3051 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3054 for ac_c_preproc_warn_flag in '' yes
3056 # Use a header file that comes with gcc, so configuring glibc
3057 # with a fresh cross-compiler works.
3058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3059 # <limits.h> exists even on freestanding compilers.
3060 # On the NeXT, cc -E runs the code through the compiler's parser,
3061 # not just through cpp. "Syntax error" is here to catch this case.
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3065 # include <limits.h>
3067 # include <assert.h>
3071 if ac_fn_c_try_cpp "$LINENO"; then :
3074 # Broken: fails on valid input.
3077 rm -f conftest.err conftest.i conftest.$ac_ext
3079 # OK, works on sane cases. Now check whether nonexistent headers
3080 # can be detected and how.
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083 #include <ac_nonexistent.h>
3085 if ac_fn_c_try_cpp "$LINENO"; then :
3086 # Broken: success on invalid input.
3089 # Passes both tests.
3093 rm -f conftest.err conftest.i conftest.$ac_ext
3096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3097 rm -f conftest.i conftest.err conftest.$ac_ext
3098 if $ac_preproc_ok; then :
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3111 $as_echo "$CPP" >&6; }
3113 for ac_c_preproc_warn_flag in '' yes
3115 # Use a header file that comes with gcc, so configuring glibc
3116 # with a fresh cross-compiler works.
3117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3118 # <limits.h> exists even on freestanding compilers.
3119 # On the NeXT, cc -E runs the code through the compiler's parser,
3120 # not just through cpp. "Syntax error" is here to catch this case.
3121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3122 /* end confdefs.h. */
3124 # include <limits.h>
3126 # include <assert.h>
3130 if ac_fn_c_try_cpp "$LINENO"; then :
3133 # Broken: fails on valid input.
3136 rm -f conftest.err conftest.i conftest.$ac_ext
3138 # OK, works on sane cases. Now check whether nonexistent headers
3139 # can be detected and how.
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3142 #include <ac_nonexistent.h>
3144 if ac_fn_c_try_cpp "$LINENO"; then :
3145 # Broken: success on invalid input.
3148 # Passes both tests.
3152 rm -f conftest.err conftest.i conftest.$ac_ext
3155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3156 rm -f conftest.i conftest.err conftest.$ac_ext
3157 if $ac_preproc_ok; then :
3160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3162 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3163 See \`config.log' for more details" "$LINENO" 5; }
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3174 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3175 if ${ac_cv_path_GREP+:} false; then :
3176 $as_echo_n "(cached) " >&6
3178 if test -z "$GREP"; then
3179 ac_path_GREP_found=false
3180 # Loop through the user's path and test for each of PROGNAME-LIST
3181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3185 test -z "$as_dir" && as_dir=.
3186 for ac_prog in grep ggrep; do
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3189 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3190 # Check for GNU ac_path_GREP and select it if it is found.
3191 # Check for GNU $ac_path_GREP
3192 case `"$ac_path_GREP" --version 2>&1` in
3194 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3197 $as_echo_n 0123456789 >"conftest.in"
3200 cat "conftest.in" "conftest.in" >"conftest.tmp"
3201 mv "conftest.tmp" "conftest.in"
3202 cp "conftest.in" "conftest.nl"
3203 $as_echo 'GREP' >> "conftest.nl"
3204 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3206 as_fn_arith $ac_count + 1 && ac_count=$as_val
3207 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3208 # Best one so far, save it but keep looking for a better one
3209 ac_cv_path_GREP="$ac_path_GREP"
3210 ac_path_GREP_max=$ac_count
3212 # 10*(2^10) chars as input seems more than enough
3213 test $ac_count -gt 10 && break
3215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3218 $ac_path_GREP_found && break 3
3223 if test -z "$ac_cv_path_GREP"; then
3224 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3227 ac_cv_path_GREP=$GREP
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3232 $as_echo "$ac_cv_path_GREP" >&6; }
3233 GREP="$ac_cv_path_GREP"
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3237 $as_echo_n "checking for egrep... " >&6; }
3238 if ${ac_cv_path_EGREP+:} false; then :
3239 $as_echo_n "(cached) " >&6
3241 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3242 then ac_cv_path_EGREP="$GREP -E"
3244 if test -z "$EGREP"; then
3245 ac_path_EGREP_found=false
3246 # Loop through the user's path and test for each of PROGNAME-LIST
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3251 test -z "$as_dir" && as_dir=.
3252 for ac_prog in egrep; do
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3255 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3256 # Check for GNU ac_path_EGREP and select it if it is found.
3257 # Check for GNU $ac_path_EGREP
3258 case `"$ac_path_EGREP" --version 2>&1` in
3260 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3263 $as_echo_n 0123456789 >"conftest.in"
3266 cat "conftest.in" "conftest.in" >"conftest.tmp"
3267 mv "conftest.tmp" "conftest.in"
3268 cp "conftest.in" "conftest.nl"
3269 $as_echo 'EGREP' >> "conftest.nl"
3270 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3272 as_fn_arith $ac_count + 1 && ac_count=$as_val
3273 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3274 # Best one so far, save it but keep looking for a better one
3275 ac_cv_path_EGREP="$ac_path_EGREP"
3276 ac_path_EGREP_max=$ac_count
3278 # 10*(2^10) chars as input seems more than enough
3279 test $ac_count -gt 10 && break
3281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3284 $ac_path_EGREP_found && break 3
3289 if test -z "$ac_cv_path_EGREP"; then
3290 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3293 ac_cv_path_EGREP=$EGREP
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3299 $as_echo "$ac_cv_path_EGREP" >&6; }
3300 EGREP="$ac_cv_path_EGREP"
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3304 $as_echo_n "checking for ANSI C header files... " >&6; }
3305 if ${ac_cv_header_stdc+:} false; then :
3306 $as_echo_n "(cached) " >&6
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324 ac_cv_header_stdc=yes
3326 ac_cv_header_stdc=no
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 if test $ac_cv_header_stdc = yes; then
3331 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3338 $EGREP "memchr" >/dev/null 2>&1; then :
3341 ac_cv_header_stdc=no
3347 if test $ac_cv_header_stdc = yes; then
3348 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3355 $EGREP "free" >/dev/null 2>&1; then :
3358 ac_cv_header_stdc=no
3364 if test $ac_cv_header_stdc = yes; then
3365 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3366 if test "$cross_compiling" = yes; then :
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3373 #if ((' ' & 0x0FF) == 0x020)
3374 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3375 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3377 # define ISLOWER(c) \
3378 (('a' <= (c) && (c) <= 'i') \
3379 || ('j' <= (c) && (c) <= 'r') \
3380 || ('s' <= (c) && (c) <= 'z'))
3381 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3384 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3389 for (i = 0; i < 256; i++)
3390 if (XOR (islower (i), ISLOWER (i))
3391 || toupper (i) != TOUPPER (i))
3396 if ac_fn_c_try_run "$LINENO"; then :
3399 ac_cv_header_stdc=no
3401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3402 conftest.$ac_objext conftest.beam conftest.$ac_ext
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3408 $as_echo "$ac_cv_header_stdc" >&6; }
3409 if test $ac_cv_header_stdc = yes; then
3411 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3415 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3416 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3417 inttypes.h stdint.h unistd.h
3419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3420 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3422 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3423 cat >>confdefs.h <<_ACEOF
3424 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3433 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3434 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3441 if test "$MINIX" = yes; then
3443 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3446 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3449 $as_echo "#define _MINIX 1" >>confdefs.h
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3455 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3456 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3457 $as_echo_n "(cached) " >&6
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3462 # define __EXTENSIONS__ 1
3463 $ac_includes_default
3472 if ac_fn_c_try_compile "$LINENO"; then :
3473 ac_cv_safe_to_define___extensions__=yes
3475 ac_cv_safe_to_define___extensions__=no
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3480 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3481 test $ac_cv_safe_to_define___extensions__ = yes &&
3482 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3484 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3486 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3488 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3490 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3494 # Initialize Automake
3495 am__api_version='1.11'
3498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3499 if test -f "$ac_dir/install-sh"; then
3501 ac_install_sh="$ac_aux_dir/install-sh -c"
3503 elif test -f "$ac_dir/install.sh"; then
3505 ac_install_sh="$ac_aux_dir/install.sh -c"
3507 elif test -f "$ac_dir/shtool"; then
3509 ac_install_sh="$ac_aux_dir/shtool install -c"
3513 if test -z "$ac_aux_dir"; then
3514 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3517 # These three variables are undocumented and unsupported,
3518 # and are intended to be withdrawn in a future Autoconf release.
3519 # They can cause serious problems if a builder's source tree is in a directory
3520 # whose full name contains unusual characters.
3521 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3522 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3523 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3526 # Find a good install program. We prefer a C program (faster),
3527 # so one script is as good as another. But avoid the broken or
3528 # incompatible versions:
3529 # SysV /etc/install, /usr/sbin/install
3530 # SunOS /usr/etc/install
3531 # IRIX /sbin/install
3533 # AmigaOS /C/install, which installs bootblocks on floppy discs
3534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537 # OS/2's system install, which has a completely different semantic
3538 # ./install, which can be erroneously created by make from ./install.sh.
3539 # Reject install programs that cannot install multiple files.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3542 if test -z "$INSTALL"; then
3543 if ${ac_cv_path_install+:} false; then :
3544 $as_echo_n "(cached) " >&6
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 # Account for people who put trailing slashes in PATH elements.
3552 case $as_dir/ in #((
3553 ./ | .// | /[cC]/* | \
3554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3558 # OSF1 and SCO ODT 3.0 have their own names for install.
3559 # Don't use installbsd from OSF since it installs stuff as root
3561 for ac_prog in ginstall scoinst install; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564 if test $ac_prog = install &&
3565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # AIX install. It has an incompatible calling convention.
3568 elif test $ac_prog = install &&
3569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570 # program-specific install script used by HP pwplus--don't use.
3573 rm -rf conftest.one conftest.two conftest.dir
3574 echo one > conftest.one
3575 echo two > conftest.two
3577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578 test -s conftest.one && test -s conftest.two &&
3579 test -s conftest.dir/conftest.one &&
3580 test -s conftest.dir/conftest.two
3582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3595 rm -rf conftest.one conftest.two conftest.dir
3598 if test "${ac_cv_path_install+set}" = set; then
3599 INSTALL=$ac_cv_path_install
3601 # As a last resort, use the slow shell script. Don't cache a
3602 # value for INSTALL within a source directory, because that will
3603 # break other packages using the cache if that directory is
3604 # removed, or if the value is a relative name.
3605 INSTALL=$ac_install_sh
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3609 $as_echo "$INSTALL" >&6; }
3611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612 # It thinks the first close brace ends the variable substitution.
3613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3620 $as_echo_n "checking whether build environment is sane... " >&6; }
3623 echo timestamp > conftest.file
3624 # Reject unsafe characters in $srcdir or the absolute working directory
3625 # name. Accept space and tab only in the latter.
3629 *[\\\"\#\$\&\'\`$am_lf]*)
3630 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3633 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3634 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3637 # Do `set' in a subshell so we don't clobber the current shell's
3638 # arguments. Must try -L first in case configure is actually a
3639 # symlink; some systems play weird games with the mod time of symlinks
3640 # (eg FreeBSD returns the mod time of the symlink's containing
3643 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3644 if test "$*" = "X"; then
3646 set X `ls -t "$srcdir/configure" conftest.file`
3649 if test "$*" != "X $srcdir/configure conftest.file" \
3650 && test "$*" != "X conftest.file $srcdir/configure"; then
3652 # If neither matched, then we have a broken ls. This can happen
3653 # if, for instance, CONFIG_SHELL is bash and it inherits a
3654 # broken ls alias from the environment. This has actually
3655 # happened. Such a system could not be considered "sane".
3656 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3657 alias in your environment" "$LINENO" 5
3660 test "$2" = conftest.file
3666 as_fn_error $? "newly created file is older than distributed files!
3667 Check your system clock" "$LINENO" 5
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 test "$program_prefix" != NONE &&
3672 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3673 # Use a double $ so make ignores it.
3674 test "$program_suffix" != NONE &&
3675 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3676 # Double any \ or $.
3677 # By default was `s,x,x', remove it if useless.
3678 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3679 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3681 # expand $ac_aux_dir to an absolute path
3682 am_aux_dir=`cd $ac_aux_dir && pwd`
3684 if test x"${MISSING+set}" != xset; then
3687 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3689 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3692 # Use eval to expand $SHELL
3693 if eval "$MISSING --run true"; then
3694 am_missing_run="$MISSING --run "
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3698 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3701 if test x"${install_sh}" != xset; then
3704 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3706 install_sh="\${SHELL} $am_aux_dir/install-sh"
3710 # Installed binaries are usually stripped using `strip' when the user
3711 # run `make install-strip'. However `strip' might not be the right
3712 # tool to use in cross-compilation environments, therefore Automake
3713 # will honor the `STRIP' environment variable to overrule this program.
3714 if test "$cross_compiling" != no; then
3715 if test -n "$ac_tool_prefix"; then
3716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3717 set dummy ${ac_tool_prefix}strip; ac_word=$2
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3719 $as_echo_n "checking for $ac_word... " >&6; }
3720 if ${ac_cv_prog_STRIP+:} false; then :
3721 $as_echo_n "(cached) " >&6
3723 if test -n "$STRIP"; then
3724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 STRIP=$ac_cv_prog_STRIP
3744 if test -n "$STRIP"; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3746 $as_echo "$STRIP" >&6; }
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3749 $as_echo "no" >&6; }
3754 if test -z "$ac_cv_prog_STRIP"; then
3756 # Extract the first word of "strip", so it can be a program name with args.
3757 set dummy strip; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -n "$ac_ct_STRIP"; then
3764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773 ac_cv_prog_ac_ct_STRIP="strip"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3784 if test -n "$ac_ct_STRIP"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3786 $as_echo "$ac_ct_STRIP" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3792 if test "x$ac_ct_STRIP" = x; then
3795 case $cross_compiling:$ac_tool_warned in
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3799 ac_tool_warned=yes ;;
3804 STRIP="$ac_cv_prog_STRIP"
3808 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3811 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3812 if test -z "$MKDIR_P"; then
3813 if ${ac_cv_path_mkdir+:} false; then :
3814 $as_echo_n "(cached) " >&6
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3820 test -z "$as_dir" && as_dir=.
3821 for ac_prog in mkdir gmkdir; do
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3824 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3825 'mkdir (GNU coreutils) '* | \
3826 'mkdir (coreutils) '* | \
3827 'mkdir (fileutils) '4.1*)
3828 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3838 test -d ./--version && rmdir ./--version
3839 if test "${ac_cv_path_mkdir+set}" = set; then
3840 MKDIR_P="$ac_cv_path_mkdir -p"
3842 # As a last resort, use the slow shell script. Don't cache a
3843 # value for MKDIR_P within a source directory, because that will
3844 # break other packages using the cache if that directory is
3845 # removed, or if the value is a relative name.
3846 MKDIR_P="$ac_install_sh -d"
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3850 $as_echo "$MKDIR_P" >&6; }
3854 [\\/$]* | ?:[\\/]*) ;;
3855 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3858 for ac_prog in gawk mawk nawk awk
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861 set dummy $ac_prog; ac_word=$2
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3863 $as_echo_n "checking for $ac_word... " >&6; }
3864 if ${ac_cv_prog_AWK+:} false; then :
3865 $as_echo_n "(cached) " >&6
3867 if test -n "$AWK"; then
3868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874 test -z "$as_dir" && as_dir=.
3875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3877 ac_cv_prog_AWK="$ac_prog"
3878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 if test -n "$AWK"; then
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3890 $as_echo "$AWK" >&6; }
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3893 $as_echo "no" >&6; }
3897 test -n "$AWK" && break
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3901 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3903 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3904 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3905 $as_echo_n "(cached) " >&6
3907 cat >conftest.make <<\_ACEOF
3910 @echo '@@@%%%=$(MAKE)=@@@%%%'
3912 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3913 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3915 eval ac_cv_prog_make_${ac_make}_set=yes;;
3917 eval ac_cv_prog_make_${ac_make}_set=no;;
3921 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3923 $as_echo "yes" >&6; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3928 SET_MAKE="MAKE=${MAKE-make}"
3931 rm -rf .tst 2>/dev/null
3932 mkdir .tst 2>/dev/null
3933 if test -d .tst; then
3938 rmdir .tst 2>/dev/null
3940 DEPDIR="${am__leading_dot}deps"
3942 ac_config_commands="$ac_config_commands depfiles"
3945 am_make=${MAKE-make}
3946 cat > confinc << 'END'
3948 @echo this is the am__doit target
3951 # If we don't find an include directive, just comment out the code.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3953 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3957 # First try GNU make style include.
3958 echo "include confinc" > confmf
3959 # Ignore all kinds of additional output from `make'.
3960 case `$am_make -s -f confmf 2> /dev/null` in #(
3961 *the\ am__doit\ target*)
3967 # Now try BSD make style include.
3968 if test "$am__include" = "#"; then
3969 echo '.include "confinc"' > confmf
3970 case `$am_make -s -f confmf 2> /dev/null` in #(
3971 *the\ am__doit\ target*)
3972 am__include=.include
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3981 $as_echo "$_am_result" >&6; }
3982 rm -f confinc confmf
3984 # Check whether --enable-dependency-tracking was given.
3985 if test "${enable_dependency_tracking+set}" = set; then :
3986 enableval=$enable_dependency_tracking;
3989 if test "x$enable_dependency_tracking" != xno; then
3990 am_depcomp="$ac_aux_dir/depcomp"
3994 if test "x$enable_dependency_tracking" != xno; then
4003 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4004 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4005 # is not polluted with repeated "-I."
4006 am__isrc=' -I$(srcdir)'
4007 # test to see if srcdir already configured
4008 if test -f $srcdir/config.status; then
4009 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4013 # test whether we have cygpath
4014 if test -z "$CYGPATH_W"; then
4015 if (cygpath --version) >/dev/null 2>/dev/null; then
4016 CYGPATH_W='cygpath -w'
4023 # Define the identity of the package.
4028 cat >>confdefs.h <<_ACEOF
4029 #define PACKAGE "$PACKAGE"
4033 cat >>confdefs.h <<_ACEOF
4034 #define VERSION "$VERSION"
4037 # Some tools Automake needs.
4039 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4042 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4045 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4048 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4051 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4053 # We need awk for the "check" target. The system "awk" is bad on
4055 # Always define AMTAR for backward compatibility.
4057 AMTAR=${AMTAR-"${am_missing_run}tar"}
4059 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4064 depcc="$CC" am_compiler_list=
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4067 $as_echo_n "checking dependency style of $depcc... " >&6; }
4068 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4069 $as_echo_n "(cached) " >&6
4071 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4072 # We make a subdir and do the tests there. Otherwise we can end up
4073 # making bogus files that we don't know about and never remove. For
4074 # instance it was reported that on HP-UX the gcc test will end up
4075 # making a dummy file named `D' -- because `-MD' means `put the output
4079 # Copy depcomp to subdir because otherwise we won't find it if we're
4080 # using a relative directory.
4081 cp "$am_depcomp" conftest.dir
4083 # We will build objects and dependencies in a subdirectory because
4084 # it helps to detect inapplicable dependency modes. For instance
4085 # both Tru64's cc and ICC support -MD to output dependencies as a
4086 # side effect of compilation, but ICC will put the dependencies in
4087 # the current directory while Tru64 will put them in the object
4091 am_cv_CC_dependencies_compiler_type=none
4092 if test "$am_compiler_list" = ""; then
4093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4096 case " $depcc " in #(
4097 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4100 for depmode in $am_compiler_list; do
4101 # Setup a source with many dependencies, because some compilers
4102 # like to wrap large dependency lists on column 80 (with \), and
4103 # we should not choose a depcomp mode which is confused by this.
4105 # We need to recreate these files for each test, as the compiler may
4106 # overwrite some of them when testing with obscure command lines.
4107 # This happens at least with the AIX C compiler.
4109 for i in 1 2 3 4 5 6; do
4110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4112 # Solaris 8's {/usr,}/bin/sh.
4113 touch sub/conftst$i.h
4115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4118 # mode. It turns out that the SunPro C++ compiler does not properly
4119 # handle `-M -o', and we need to detect this. Also, some Intel
4120 # versions had trouble with output in subdirs
4121 am__obj=sub/conftest.${OBJEXT-o}
4122 am__minus_obj="-o $am__obj"
4125 # This depmode causes a compiler race in universal mode.
4126 test "$am__universal" = false || continue
4129 # after this tag, mechanisms are not by side-effect, so they'll
4130 # only be used when explicitly requested
4131 if test "x$enable_dependency_tracking" = xyes; then
4137 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4138 # This compiler won't grok `-c -o', but also, the minuso test has
4139 # not run yet. These depmodes are late enough in the game, and
4140 # so weak that their functioning should not be impacted.
4141 am__obj=conftest.${OBJEXT-o}
4146 if depmode=$depmode \
4147 source=sub/conftest.c object=$am__obj \
4148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4150 >/dev/null 2>conftest.err &&
4151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4155 # icc doesn't choke on unknown options, it will just issue warnings
4156 # or remarks (even with -Werror). So we grep stderr for any message
4157 # that says an option was ignored or not supported.
4158 # When given -MP, icc 7.0 and 7.1 complain thusly:
4159 # icc: Command line warning: ignoring option '-M'; no argument required
4160 # The diagnosis changed in icc 8.0:
4161 # icc: Command line remark: option '-MP' not supported
4162 if (grep 'ignoring option' conftest.err ||
4163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4164 am_cv_CC_dependencies_compiler_type=$depmode
4173 am_cv_CC_dependencies_compiler_type=none
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4178 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4179 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4182 test "x$enable_dependency_tracking" != xno \
4183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4185 am__fastdepCC_FALSE='#'
4187 am__fastdepCC_TRUE='#'
4188 am__fastdepCC_FALSE=
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4195 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4196 # Check whether --enable-maintainer-mode was given.
4197 if test "${enable_maintainer_mode+set}" = set; then :
4198 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4200 USE_MAINTAINER_MODE=no
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4204 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4205 if test $USE_MAINTAINER_MODE = yes; then
4206 MAINTAINER_MODE_TRUE=
4207 MAINTAINER_MODE_FALSE='#'
4209 MAINTAINER_MODE_TRUE='#'
4210 MAINTAINER_MODE_FALSE=
4213 MAINT=$MAINTAINER_MODE_TRUE
4217 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4230 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4231 if ${ac_cv_prog_cc_c99+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 ac_cv_prog_cc_c99=no
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237 /* end confdefs.h. */
4239 #include <stdbool.h>
4244 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4245 #define debug(...) fprintf (stderr, __VA_ARGS__)
4246 #define showlist(...) puts (#__VA_ARGS__)
4247 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4249 test_varargs_macros (void)
4254 debug ("X = %d\n", x);
4255 showlist (The first, second, and third items.);
4256 report (x>y, "x is %d but y is %d", x, y);
4259 // Check long long types.
4260 #define BIG64 18446744073709551615ull
4261 #define BIG32 4294967295ul
4262 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4264 your preprocessor is broken;
4268 your preprocessor is broken;
4270 static long long int bignum = -9223372036854775807LL;
4271 static unsigned long long int ubignum = BIG64;
4273 struct incomplete_array
4281 const wchar_t *name;
4285 typedef const char *ccp;
4288 test_restrict (ccp restrict text)
4290 // See if C++-style comments work.
4291 // Iterate through items via the restricted pointer.
4292 // Also check for declarations in for loops.
4293 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4298 // Check varargs and va_copy.
4300 test_varargs (const char *format, ...)
4303 va_start (args, format);
4305 va_copy (args_copy, args);
4316 str = va_arg (args_copy, const char *);
4319 number = va_arg (args_copy, int);
4322 fnumber = va_arg (args_copy, double);
4337 _Bool success = false;
4340 if (test_restrict ("String literal") == 0)
4342 char *restrict newvar = "Another string";
4345 test_varargs ("s, d' f .", "string", 65, 34.234);
4346 test_varargs_macros ();
4348 // Check flexible array members.
4349 struct incomplete_array *ia =
4350 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4352 for (int i = 0; i < ia->datasize; ++i)
4353 ia->data[i] = i * 1.234;
4355 // Check named initializers.
4356 struct named_init ni = {
4358 .name = L"Test wide string",
4359 .average = 543.34343,
4364 int dynamic_array[ni.number];
4365 dynamic_array[ni.number - 1] = 543;
4367 // work around unused variable warnings
4368 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4369 || dynamic_array[ni.number - 1] != 543);
4375 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4377 CC="$ac_save_CC $ac_arg"
4378 if ac_fn_c_try_compile "$LINENO"; then :
4379 ac_cv_prog_cc_c99=$ac_arg
4381 rm -f core conftest.err conftest.$ac_objext
4382 test "x$ac_cv_prog_cc_c99" != "xno" && break
4384 rm -f conftest.$ac_ext
4389 case "x$ac_cv_prog_cc_c99" in
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4392 $as_echo "none needed" >&6; } ;;
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4395 $as_echo "unsupported" >&6; } ;;
4397 CC="$CC $ac_cv_prog_cc_c99"
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4399 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4401 if test "x$ac_cv_prog_cc_c99" != xno; then :
4410 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4411 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4417 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4418 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4424 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4425 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4434 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4435 if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4437 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4441 $as_echo_n "(cached) " >&6
4445 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4467 if test -n "$PKG_CONFIG"; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4469 $as_echo "$PKG_CONFIG" >&6; }
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4477 if test -z "$ac_cv_path_PKG_CONFIG"; then
4478 ac_pt_PKG_CONFIG=$PKG_CONFIG
4479 # Extract the first word of "pkg-config", so it can be a program name with args.
4480 set dummy pkg-config; ac_word=$2
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4482 $as_echo_n "checking for $ac_word... " >&6; }
4483 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 case $ac_pt_PKG_CONFIG in
4488 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4510 if test -n "$ac_pt_PKG_CONFIG"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4512 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4518 if test "x$ac_pt_PKG_CONFIG" = x; then
4521 case $cross_compiling:$ac_tool_warned in
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4525 ac_tool_warned=yes ;;
4527 PKG_CONFIG=$ac_pt_PKG_CONFIG
4530 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4534 if test -n "$PKG_CONFIG"; then
4535 _pkg_min_version=0.9.0
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4537 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4538 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4548 # Make sure we can run config.sub.
4549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4550 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4553 $as_echo_n "checking build system type... " >&6; }
4554 if ${ac_cv_build+:} false; then :
4555 $as_echo_n "(cached) " >&6
4557 ac_build_alias=$build_alias
4558 test "x$ac_build_alias" = x &&
4559 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4560 test "x$ac_build_alias" = x &&
4561 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4563 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4567 $as_echo "$ac_cv_build" >&6; }
4568 case $ac_cv_build in
4570 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4573 ac_save_IFS=$IFS; IFS='-'
4579 # Remember, the first character of IFS is used to create $*,
4580 # except with old shells:
4583 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4587 $as_echo_n "checking host system type... " >&6; }
4588 if ${ac_cv_host+:} false; then :
4589 $as_echo_n "(cached) " >&6
4591 if test "x$host_alias" = x; then
4592 ac_cv_host=$ac_cv_build
4594 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4595 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4600 $as_echo "$ac_cv_host" >&6; }
4603 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4606 ac_save_IFS=$IFS; IFS='-'
4612 # Remember, the first character of IFS is used to create $*,
4613 # except with old shells:
4616 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4620 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4621 if ${ac_cv_path_SED+:} false; then :
4622 $as_echo_n "(cached) " >&6
4624 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4625 for ac_i in 1 2 3 4 5 6 7; do
4626 ac_script="$ac_script$as_nl$ac_script"
4628 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4629 { ac_script=; unset ac_script;}
4630 if test -z "$SED"; then
4631 ac_path_SED_found=false
4632 # Loop through the user's path and test for each of PROGNAME-LIST
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4637 test -z "$as_dir" && as_dir=.
4638 for ac_prog in sed gsed; do
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4641 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4642 # Check for GNU ac_path_SED and select it if it is found.
4643 # Check for GNU $ac_path_SED
4644 case `"$ac_path_SED" --version 2>&1` in
4646 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4649 $as_echo_n 0123456789 >"conftest.in"
4652 cat "conftest.in" "conftest.in" >"conftest.tmp"
4653 mv "conftest.tmp" "conftest.in"
4654 cp "conftest.in" "conftest.nl"
4655 $as_echo '' >> "conftest.nl"
4656 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4657 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4658 as_fn_arith $ac_count + 1 && ac_count=$as_val
4659 if test $ac_count -gt ${ac_path_SED_max-0}; then
4660 # Best one so far, save it but keep looking for a better one
4661 ac_cv_path_SED="$ac_path_SED"
4662 ac_path_SED_max=$ac_count
4664 # 10*(2^10) chars as input seems more than enough
4665 test $ac_count -gt 10 && break
4667 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 $ac_path_SED_found && break 3
4675 if test -z "$ac_cv_path_SED"; then
4676 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4684 $as_echo "$ac_cv_path_SED" >&6; }
4685 SED="$ac_cv_path_SED"
4693 # Check whether --enable-selective-werror was given.
4694 if test "${enable_selective_werror+set}" = set; then :
4695 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4697 SELECTIVE_WERROR=yes
4704 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4705 if test "x$SUNCC" = "xyes"; then
4711 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4725 xorg_testset_save_CFLAGS="$CFLAGS"
4727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4732 $as_echo_n "(cached) " >&6
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 xorg_cv_cc_flag_unknown_warning_option=yes
4741 xorg_cv_cc_flag_unknown_warning_option=no
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4748 CFLAGS="$xorg_testset_save_CFLAGS"
4751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 xorg_cv_cc_flag_unused_command_line_argument=yes
4768 xorg_cv_cc_flag_unused_command_line_argument=no
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4775 CFLAGS="$xorg_testset_save_CFLAGS"
4780 if test $found = "no" ; then
4781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4789 CFLAGS="$CFLAGS -Wall"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4792 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4793 cacheid=xorg_cv_cc_flag__Wall
4794 if eval \${$cacheid+:} false; then :
4795 $as_echo_n "(cached) " >&6
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4808 if ac_fn_c_try_link "$LINENO"; then :
4813 rm -f core conftest.err conftest.$ac_objext \
4814 conftest$ac_exeext conftest.$ac_ext
4818 CFLAGS="$xorg_testset_save_CFLAGS"
4820 eval supported=\$$cacheid
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4822 $as_echo "$supported" >&6; }
4823 if test "$supported" = "yes" ; then
4824 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4843 xorg_testset_save_CFLAGS="$CFLAGS"
4845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4856 if ac_fn_c_try_compile "$LINENO"; then :
4857 xorg_cv_cc_flag_unknown_warning_option=yes
4859 xorg_cv_cc_flag_unknown_warning_option=no
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4866 CFLAGS="$xorg_testset_save_CFLAGS"
4869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4877 $as_echo_n "(cached) " >&6
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 xorg_cv_cc_flag_unused_command_line_argument=yes
4886 xorg_cv_cc_flag_unused_command_line_argument=no
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4893 CFLAGS="$xorg_testset_save_CFLAGS"
4898 if test $found = "no" ; then
4899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4907 CFLAGS="$CFLAGS -Wpointer-arith"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4910 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4911 cacheid=xorg_cv_cc_flag__Wpointer_arith
4912 if eval \${$cacheid+:} false; then :
4913 $as_echo_n "(cached) " >&6
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4926 if ac_fn_c_try_link "$LINENO"; then :
4931 rm -f core conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
4936 CFLAGS="$xorg_testset_save_CFLAGS"
4938 eval supported=\$$cacheid
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4940 $as_echo "$supported" >&6; }
4941 if test "$supported" = "yes" ; then
4942 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4961 xorg_testset_save_CFLAGS="$CFLAGS"
4963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4966 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4967 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4968 $as_echo_n "(cached) " >&6
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4974 if ac_fn_c_try_compile "$LINENO"; then :
4975 xorg_cv_cc_flag_unknown_warning_option=yes
4977 xorg_cv_cc_flag_unknown_warning_option=no
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4982 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4984 CFLAGS="$xorg_testset_save_CFLAGS"
4987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4993 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4994 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4995 $as_echo_n "(cached) " >&6
4997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4998 /* end confdefs.h. */
5001 if ac_fn_c_try_compile "$LINENO"; then :
5002 xorg_cv_cc_flag_unused_command_line_argument=yes
5004 xorg_cv_cc_flag_unused_command_line_argument=no
5006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5009 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5011 CFLAGS="$xorg_testset_save_CFLAGS"
5016 if test $found = "no" ; then
5017 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5025 CFLAGS="$CFLAGS -Wmissing-declarations"
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5028 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5029 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5030 if eval \${$cacheid+:} false; then :
5031 $as_echo_n "(cached) " >&6
5033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5034 /* end confdefs.h. */
5044 if ac_fn_c_try_link "$LINENO"; then :
5049 rm -f core conftest.err conftest.$ac_objext \
5050 conftest$ac_exeext conftest.$ac_ext
5054 CFLAGS="$xorg_testset_save_CFLAGS"
5056 eval supported=\$$cacheid
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5058 $as_echo "$supported" >&6; }
5059 if test "$supported" = "yes" ; then
5060 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5079 xorg_testset_save_CFLAGS="$CFLAGS"
5081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5084 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5085 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5086 $as_echo_n "(cached) " >&6
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5092 if ac_fn_c_try_compile "$LINENO"; then :
5093 xorg_cv_cc_flag_unknown_warning_option=yes
5095 xorg_cv_cc_flag_unknown_warning_option=no
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5100 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5101 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5102 CFLAGS="$xorg_testset_save_CFLAGS"
5105 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5111 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5112 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5113 $as_echo_n "(cached) " >&6
5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5119 if ac_fn_c_try_compile "$LINENO"; then :
5120 xorg_cv_cc_flag_unused_command_line_argument=yes
5122 xorg_cv_cc_flag_unused_command_line_argument=no
5124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5127 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5129 CFLAGS="$xorg_testset_save_CFLAGS"
5134 if test $found = "no" ; then
5135 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5139 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5143 CFLAGS="$CFLAGS -Wformat=2"
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5146 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5147 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5148 if eval \${$cacheid+:} false; then :
5149 $as_echo_n "(cached) " >&6
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5162 if ac_fn_c_try_link "$LINENO"; then :
5167 rm -f core conftest.err conftest.$ac_objext \
5168 conftest$ac_exeext conftest.$ac_ext
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5174 eval supported=\$$cacheid
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5176 $as_echo "$supported" >&6; }
5177 if test "$supported" = "yes" ; then
5178 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5183 if test $found = "no" ; then
5184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5188 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5192 CFLAGS="$CFLAGS -Wformat"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5195 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5196 cacheid=xorg_cv_cc_flag__Wformat
5197 if eval \${$cacheid+:} false; then :
5198 $as_echo_n "(cached) " >&6
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5211 if ac_fn_c_try_link "$LINENO"; then :
5216 rm -f core conftest.err conftest.$ac_objext \
5217 conftest$ac_exeext conftest.$ac_ext
5221 CFLAGS="$xorg_testset_save_CFLAGS"
5223 eval supported=\$$cacheid
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5225 $as_echo "$supported" >&6; }
5226 if test "$supported" = "yes" ; then
5227 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5248 xorg_testset_save_CFLAGS="$CFLAGS"
5250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5255 $as_echo_n "(cached) " >&6
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262 xorg_cv_cc_flag_unknown_warning_option=yes
5264 xorg_cv_cc_flag_unknown_warning_option=no
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5271 CFLAGS="$xorg_testset_save_CFLAGS"
5274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5282 $as_echo_n "(cached) " >&6
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 xorg_cv_cc_flag_unused_command_line_argument=yes
5291 xorg_cv_cc_flag_unused_command_line_argument=no
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5298 CFLAGS="$xorg_testset_save_CFLAGS"
5303 if test $found = "no" ; then
5304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312 CFLAGS="$CFLAGS -Wstrict-prototypes"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5315 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5316 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5317 if eval \${$cacheid+:} false; then :
5318 $as_echo_n "(cached) " >&6
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5331 if ac_fn_c_try_link "$LINENO"; then :
5336 rm -f core conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5341 CFLAGS="$xorg_testset_save_CFLAGS"
5343 eval supported=\$$cacheid
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345 $as_echo "$supported" >&6; }
5346 if test "$supported" = "yes" ; then
5347 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5366 xorg_testset_save_CFLAGS="$CFLAGS"
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 xorg_cv_cc_flag_unknown_warning_option=yes
5382 xorg_cv_cc_flag_unknown_warning_option=no
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5389 CFLAGS="$xorg_testset_save_CFLAGS"
5392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 xorg_cv_cc_flag_unused_command_line_argument=yes
5409 xorg_cv_cc_flag_unused_command_line_argument=no
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5416 CFLAGS="$xorg_testset_save_CFLAGS"
5421 if test $found = "no" ; then
5422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5430 CFLAGS="$CFLAGS -Wmissing-prototypes"
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5433 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5434 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5435 if eval \${$cacheid+:} false; then :
5436 $as_echo_n "(cached) " >&6
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5449 if ac_fn_c_try_link "$LINENO"; then :
5454 rm -f core conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
5459 CFLAGS="$xorg_testset_save_CFLAGS"
5461 eval supported=\$$cacheid
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463 $as_echo "$supported" >&6; }
5464 if test "$supported" = "yes" ; then
5465 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5484 xorg_testset_save_CFLAGS="$CFLAGS"
5486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5491 $as_echo_n "(cached) " >&6
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 xorg_cv_cc_flag_unknown_warning_option=yes
5500 xorg_cv_cc_flag_unknown_warning_option=no
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5507 CFLAGS="$xorg_testset_save_CFLAGS"
5510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525 xorg_cv_cc_flag_unused_command_line_argument=yes
5527 xorg_cv_cc_flag_unused_command_line_argument=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5534 CFLAGS="$xorg_testset_save_CFLAGS"
5539 if test $found = "no" ; then
5540 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5548 CFLAGS="$CFLAGS -Wnested-externs"
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5551 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5552 cacheid=xorg_cv_cc_flag__Wnested_externs
5553 if eval \${$cacheid+:} false; then :
5554 $as_echo_n "(cached) " >&6
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5567 if ac_fn_c_try_link "$LINENO"; then :
5572 rm -f core conftest.err conftest.$ac_objext \
5573 conftest$ac_exeext conftest.$ac_ext
5577 CFLAGS="$xorg_testset_save_CFLAGS"
5579 eval supported=\$$cacheid
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5581 $as_echo "$supported" >&6; }
5582 if test "$supported" = "yes" ; then
5583 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5602 xorg_testset_save_CFLAGS="$CFLAGS"
5604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 xorg_cv_cc_flag_unknown_warning_option=yes
5618 xorg_cv_cc_flag_unknown_warning_option=no
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5625 CFLAGS="$xorg_testset_save_CFLAGS"
5628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5636 $as_echo_n "(cached) " >&6
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 xorg_cv_cc_flag_unused_command_line_argument=yes
5645 xorg_cv_cc_flag_unused_command_line_argument=no
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5652 CFLAGS="$xorg_testset_save_CFLAGS"
5657 if test $found = "no" ; then
5658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5666 CFLAGS="$CFLAGS -Wbad-function-cast"
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5669 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5670 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5671 if eval \${$cacheid+:} false; then :
5672 $as_echo_n "(cached) " >&6
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5685 if ac_fn_c_try_link "$LINENO"; then :
5690 rm -f core conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5695 CFLAGS="$xorg_testset_save_CFLAGS"
5697 eval supported=\$$cacheid
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5699 $as_echo "$supported" >&6; }
5700 if test "$supported" = "yes" ; then
5701 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5720 xorg_testset_save_CFLAGS="$CFLAGS"
5722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5727 $as_echo_n "(cached) " >&6
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 xorg_cv_cc_flag_unknown_warning_option=yes
5736 xorg_cv_cc_flag_unknown_warning_option=no
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5743 CFLAGS="$xorg_testset_save_CFLAGS"
5746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5754 $as_echo_n "(cached) " >&6
5756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5757 /* end confdefs.h. */
5760 if ac_fn_c_try_compile "$LINENO"; then :
5761 xorg_cv_cc_flag_unused_command_line_argument=yes
5763 xorg_cv_cc_flag_unused_command_line_argument=no
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5770 CFLAGS="$xorg_testset_save_CFLAGS"
5775 if test $found = "no" ; then
5776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5784 CFLAGS="$CFLAGS -Wold-style-definition"
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5787 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5788 cacheid=xorg_cv_cc_flag__Wold_style_definition
5789 if eval \${$cacheid+:} false; then :
5790 $as_echo_n "(cached) " >&6
5792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5803 if ac_fn_c_try_link "$LINENO"; then :
5808 rm -f core conftest.err conftest.$ac_objext \
5809 conftest$ac_exeext conftest.$ac_ext
5813 CFLAGS="$xorg_testset_save_CFLAGS"
5815 eval supported=\$$cacheid
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5817 $as_echo "$supported" >&6; }
5818 if test "$supported" = "yes" ; then
5819 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5838 xorg_testset_save_CFLAGS="$CFLAGS"
5840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5845 $as_echo_n "(cached) " >&6
5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5848 /* end confdefs.h. */
5851 if ac_fn_c_try_compile "$LINENO"; then :
5852 xorg_cv_cc_flag_unknown_warning_option=yes
5854 xorg_cv_cc_flag_unknown_warning_option=no
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5861 CFLAGS="$xorg_testset_save_CFLAGS"
5864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5872 $as_echo_n "(cached) " >&6
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5878 if ac_fn_c_try_compile "$LINENO"; then :
5879 xorg_cv_cc_flag_unused_command_line_argument=yes
5881 xorg_cv_cc_flag_unused_command_line_argument=no
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5888 CFLAGS="$xorg_testset_save_CFLAGS"
5893 if test $found = "no" ; then
5894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5902 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5905 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5906 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5907 if eval \${$cacheid+:} false; then :
5908 $as_echo_n "(cached) " >&6
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5921 if ac_fn_c_try_link "$LINENO"; then :
5926 rm -f core conftest.err conftest.$ac_objext \
5927 conftest$ac_exeext conftest.$ac_ext
5931 CFLAGS="$xorg_testset_save_CFLAGS"
5933 eval supported=\$$cacheid
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5935 $as_echo "$supported" >&6; }
5936 if test "$supported" = "yes" ; then
5937 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5946 # This chunk adds additional warnings that could catch undesired effects.
5960 xorg_testset_save_CFLAGS="$CFLAGS"
5962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5967 $as_echo_n "(cached) " >&6
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 xorg_cv_cc_flag_unknown_warning_option=yes
5976 xorg_cv_cc_flag_unknown_warning_option=no
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5983 CFLAGS="$xorg_testset_save_CFLAGS"
5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5994 $as_echo_n "(cached) " >&6
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001 xorg_cv_cc_flag_unused_command_line_argument=yes
6003 xorg_cv_cc_flag_unused_command_line_argument=no
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6010 CFLAGS="$xorg_testset_save_CFLAGS"
6015 if test $found = "no" ; then
6016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024 CFLAGS="$CFLAGS -Wunused"
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6027 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6028 cacheid=xorg_cv_cc_flag__Wunused
6029 if eval \${$cacheid+:} false; then :
6030 $as_echo_n "(cached) " >&6
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6043 if ac_fn_c_try_link "$LINENO"; then :
6048 rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6053 CFLAGS="$xorg_testset_save_CFLAGS"
6055 eval supported=\$$cacheid
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6057 $as_echo "$supported" >&6; }
6058 if test "$supported" = "yes" ; then
6059 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6078 xorg_testset_save_CFLAGS="$CFLAGS"
6080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085 $as_echo_n "(cached) " >&6
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092 xorg_cv_cc_flag_unknown_warning_option=yes
6094 xorg_cv_cc_flag_unknown_warning_option=no
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101 CFLAGS="$xorg_testset_save_CFLAGS"
6104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112 $as_echo_n "(cached) " >&6
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 xorg_cv_cc_flag_unused_command_line_argument=yes
6121 xorg_cv_cc_flag_unused_command_line_argument=no
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6133 if test $found = "no" ; then
6134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142 CFLAGS="$CFLAGS -Wuninitialized"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6145 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6146 cacheid=xorg_cv_cc_flag__Wuninitialized
6147 if eval \${$cacheid+:} false; then :
6148 $as_echo_n "(cached) " >&6
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6161 if ac_fn_c_try_link "$LINENO"; then :
6166 rm -f core conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6171 CFLAGS="$xorg_testset_save_CFLAGS"
6173 eval supported=\$$cacheid
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175 $as_echo "$supported" >&6; }
6176 if test "$supported" = "yes" ; then
6177 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6196 xorg_testset_save_CFLAGS="$CFLAGS"
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6203 $as_echo_n "(cached) " >&6
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 xorg_cv_cc_flag_unknown_warning_option=yes
6212 xorg_cv_cc_flag_unknown_warning_option=no
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219 CFLAGS="$xorg_testset_save_CFLAGS"
6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6230 $as_echo_n "(cached) " >&6
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237 xorg_cv_cc_flag_unused_command_line_argument=yes
6239 xorg_cv_cc_flag_unused_command_line_argument=no
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246 CFLAGS="$xorg_testset_save_CFLAGS"
6251 if test $found = "no" ; then
6252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260 CFLAGS="$CFLAGS -Wshadow"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6263 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6264 cacheid=xorg_cv_cc_flag__Wshadow
6265 if eval \${$cacheid+:} false; then :
6266 $as_echo_n "(cached) " >&6
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6279 if ac_fn_c_try_link "$LINENO"; then :
6284 rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6291 eval supported=\$$cacheid
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293 $as_echo "$supported" >&6; }
6294 if test "$supported" = "yes" ; then
6295 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6314 xorg_testset_save_CFLAGS="$CFLAGS"
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6321 $as_echo_n "(cached) " >&6
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328 xorg_cv_cc_flag_unknown_warning_option=yes
6330 xorg_cv_cc_flag_unknown_warning_option=no
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6337 CFLAGS="$xorg_testset_save_CFLAGS"
6340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355 xorg_cv_cc_flag_unused_command_line_argument=yes
6357 xorg_cv_cc_flag_unused_command_line_argument=no
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6364 CFLAGS="$xorg_testset_save_CFLAGS"
6369 if test $found = "no" ; then
6370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6378 CFLAGS="$CFLAGS -Wcast-qual"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6381 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6382 cacheid=xorg_cv_cc_flag__Wcast_qual
6383 if eval \${$cacheid+:} false; then :
6384 $as_echo_n "(cached) " >&6
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6397 if ac_fn_c_try_link "$LINENO"; then :
6402 rm -f core conftest.err conftest.$ac_objext \
6403 conftest$ac_exeext conftest.$ac_ext
6407 CFLAGS="$xorg_testset_save_CFLAGS"
6409 eval supported=\$$cacheid
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411 $as_echo "$supported" >&6; }
6412 if test "$supported" = "yes" ; then
6413 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6432 xorg_testset_save_CFLAGS="$CFLAGS"
6434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6439 $as_echo_n "(cached) " >&6
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 xorg_cv_cc_flag_unknown_warning_option=yes
6448 xorg_cv_cc_flag_unknown_warning_option=no
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6455 CFLAGS="$xorg_testset_save_CFLAGS"
6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6466 $as_echo_n "(cached) " >&6
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 xorg_cv_cc_flag_unused_command_line_argument=yes
6475 xorg_cv_cc_flag_unused_command_line_argument=no
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482 CFLAGS="$xorg_testset_save_CFLAGS"
6487 if test $found = "no" ; then
6488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6492 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6496 CFLAGS="$CFLAGS -Wmissing-noreturn"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6499 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6500 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6501 if eval \${$cacheid+:} false; then :
6502 $as_echo_n "(cached) " >&6
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6515 if ac_fn_c_try_link "$LINENO"; then :
6520 rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6525 CFLAGS="$xorg_testset_save_CFLAGS"
6527 eval supported=\$$cacheid
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6529 $as_echo "$supported" >&6; }
6530 if test "$supported" = "yes" ; then
6531 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6550 xorg_testset_save_CFLAGS="$CFLAGS"
6552 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6555 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6556 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6557 $as_echo_n "(cached) " >&6
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6563 if ac_fn_c_try_compile "$LINENO"; then :
6564 xorg_cv_cc_flag_unknown_warning_option=yes
6566 xorg_cv_cc_flag_unknown_warning_option=no
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6571 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6572 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6573 CFLAGS="$xorg_testset_save_CFLAGS"
6576 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6582 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6583 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6584 $as_echo_n "(cached) " >&6
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6590 if ac_fn_c_try_compile "$LINENO"; then :
6591 xorg_cv_cc_flag_unused_command_line_argument=yes
6593 xorg_cv_cc_flag_unused_command_line_argument=no
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6598 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6600 CFLAGS="$xorg_testset_save_CFLAGS"
6605 if test $found = "no" ; then
6606 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6610 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6614 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6617 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6618 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6619 if eval \${$cacheid+:} false; then :
6620 $as_echo_n "(cached) " >&6
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6633 if ac_fn_c_try_link "$LINENO"; then :
6638 rm -f core conftest.err conftest.$ac_objext \
6639 conftest$ac_exeext conftest.$ac_ext
6643 CFLAGS="$xorg_testset_save_CFLAGS"
6645 eval supported=\$$cacheid
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6647 $as_echo "$supported" >&6; }
6648 if test "$supported" = "yes" ; then
6649 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6668 xorg_testset_save_CFLAGS="$CFLAGS"
6670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6675 $as_echo_n "(cached) " >&6
6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6678 /* end confdefs.h. */
6681 if ac_fn_c_try_compile "$LINENO"; then :
6682 xorg_cv_cc_flag_unknown_warning_option=yes
6684 xorg_cv_cc_flag_unknown_warning_option=no
6686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6689 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6690 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6691 CFLAGS="$xorg_testset_save_CFLAGS"
6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6700 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6701 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6702 $as_echo_n "(cached) " >&6
6704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6705 /* end confdefs.h. */
6708 if ac_fn_c_try_compile "$LINENO"; then :
6709 xorg_cv_cc_flag_unused_command_line_argument=yes
6711 xorg_cv_cc_flag_unused_command_line_argument=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6716 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6718 CFLAGS="$xorg_testset_save_CFLAGS"
6723 if test $found = "no" ; then
6724 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6728 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6732 CFLAGS="$CFLAGS -Wredundant-decls"
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6735 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6736 cacheid=xorg_cv_cc_flag__Wredundant_decls
6737 if eval \${$cacheid+:} false; then :
6738 $as_echo_n "(cached) " >&6
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6751 if ac_fn_c_try_link "$LINENO"; then :
6756 rm -f core conftest.err conftest.$ac_objext \
6757 conftest$ac_exeext conftest.$ac_ext
6761 CFLAGS="$xorg_testset_save_CFLAGS"
6763 eval supported=\$$cacheid
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765 $as_echo "$supported" >&6; }
6766 if test "$supported" = "yes" ; then
6767 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6774 # These are currently disabled because they are noisy. They will be enabled
6775 # in the future once the codebase is sufficiently modernized to silence
6776 # them. For now, I don't want them to drown out the other warnings.
6777 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6778 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6779 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6781 # Turn some warnings into errors, so we don't accidently get successful builds
6782 # when there are problems that should be fixed.
6784 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6798 xorg_testset_save_CFLAGS="$CFLAGS"
6800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6803 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6804 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6805 $as_echo_n "(cached) " >&6
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6811 if ac_fn_c_try_compile "$LINENO"; then :
6812 xorg_cv_cc_flag_unknown_warning_option=yes
6814 xorg_cv_cc_flag_unknown_warning_option=no
6816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6819 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6821 CFLAGS="$xorg_testset_save_CFLAGS"
6824 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6830 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6831 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6832 $as_echo_n "(cached) " >&6
6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6835 /* end confdefs.h. */
6838 if ac_fn_c_try_compile "$LINENO"; then :
6839 xorg_cv_cc_flag_unused_command_line_argument=yes
6841 xorg_cv_cc_flag_unused_command_line_argument=no
6843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6846 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6848 CFLAGS="$xorg_testset_save_CFLAGS"
6853 if test $found = "no" ; then
6854 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6858 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6862 CFLAGS="$CFLAGS -Werror=implicit"
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6865 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6866 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6867 if eval \${$cacheid+:} false; then :
6868 $as_echo_n "(cached) " >&6
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6881 if ac_fn_c_try_link "$LINENO"; then :
6886 rm -f core conftest.err conftest.$ac_objext \
6887 conftest$ac_exeext conftest.$ac_ext
6891 CFLAGS="$xorg_testset_save_CFLAGS"
6893 eval supported=\$$cacheid
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6895 $as_echo "$supported" >&6; }
6896 if test "$supported" = "yes" ; then
6897 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6902 if test $found = "no" ; then
6903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6914 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6915 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6916 if eval \${$cacheid+:} false; then :
6917 $as_echo_n "(cached) " >&6
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6930 if ac_fn_c_try_link "$LINENO"; then :
6935 rm -f core conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6940 CFLAGS="$xorg_testset_save_CFLAGS"
6942 eval supported=\$$cacheid
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6944 $as_echo "$supported" >&6; }
6945 if test "$supported" = "yes" ; then
6946 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6965 xorg_testset_save_CFLAGS="$CFLAGS"
6967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6972 $as_echo_n "(cached) " >&6
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979 xorg_cv_cc_flag_unknown_warning_option=yes
6981 xorg_cv_cc_flag_unknown_warning_option=no
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6988 CFLAGS="$xorg_testset_save_CFLAGS"
6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6999 $as_echo_n "(cached) " >&6
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006 xorg_cv_cc_flag_unused_command_line_argument=yes
7008 xorg_cv_cc_flag_unused_command_line_argument=no
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7015 CFLAGS="$xorg_testset_save_CFLAGS"
7020 if test $found = "no" ; then
7021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029 CFLAGS="$CFLAGS -Werror=nonnull"
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7032 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7033 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
7034 if eval \${$cacheid+:} false; then :
7035 $as_echo_n "(cached) " >&6
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7048 if ac_fn_c_try_link "$LINENO"; then :
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7058 CFLAGS="$xorg_testset_save_CFLAGS"
7060 eval supported=\$$cacheid
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7062 $as_echo "$supported" >&6; }
7063 if test "$supported" = "yes" ; then
7064 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7083 xorg_testset_save_CFLAGS="$CFLAGS"
7085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7090 $as_echo_n "(cached) " >&6
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7096 if ac_fn_c_try_compile "$LINENO"; then :
7097 xorg_cv_cc_flag_unknown_warning_option=yes
7099 xorg_cv_cc_flag_unknown_warning_option=no
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7106 CFLAGS="$xorg_testset_save_CFLAGS"
7109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7117 $as_echo_n "(cached) " >&6
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7123 if ac_fn_c_try_compile "$LINENO"; then :
7124 xorg_cv_cc_flag_unused_command_line_argument=yes
7126 xorg_cv_cc_flag_unused_command_line_argument=no
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7138 if test $found = "no" ; then
7139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7147 CFLAGS="$CFLAGS -Werror=init-self"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7150 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7151 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7152 if eval \${$cacheid+:} false; then :
7153 $as_echo_n "(cached) " >&6
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7166 if ac_fn_c_try_link "$LINENO"; then :
7171 rm -f core conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7176 CFLAGS="$xorg_testset_save_CFLAGS"
7178 eval supported=\$$cacheid
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7180 $as_echo "$supported" >&6; }
7181 if test "$supported" = "yes" ; then
7182 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7201 xorg_testset_save_CFLAGS="$CFLAGS"
7203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7208 $as_echo_n "(cached) " >&6
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215 xorg_cv_cc_flag_unknown_warning_option=yes
7217 xorg_cv_cc_flag_unknown_warning_option=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7224 CFLAGS="$xorg_testset_save_CFLAGS"
7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7235 $as_echo_n "(cached) " >&6
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7241 if ac_fn_c_try_compile "$LINENO"; then :
7242 xorg_cv_cc_flag_unused_command_line_argument=yes
7244 xorg_cv_cc_flag_unused_command_line_argument=no
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7256 if test $found = "no" ; then
7257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7265 CFLAGS="$CFLAGS -Werror=main"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7268 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7269 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7270 if eval \${$cacheid+:} false; then :
7271 $as_echo_n "(cached) " >&6
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7284 if ac_fn_c_try_link "$LINENO"; then :
7289 rm -f core conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7294 CFLAGS="$xorg_testset_save_CFLAGS"
7296 eval supported=\$$cacheid
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298 $as_echo "$supported" >&6; }
7299 if test "$supported" = "yes" ; then
7300 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7319 xorg_testset_save_CFLAGS="$CFLAGS"
7321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7326 $as_echo_n "(cached) " >&6
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 xorg_cv_cc_flag_unknown_warning_option=yes
7335 xorg_cv_cc_flag_unknown_warning_option=no
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7342 CFLAGS="$xorg_testset_save_CFLAGS"
7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7359 if ac_fn_c_try_compile "$LINENO"; then :
7360 xorg_cv_cc_flag_unused_command_line_argument=yes
7362 xorg_cv_cc_flag_unused_command_line_argument=no
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7369 CFLAGS="$xorg_testset_save_CFLAGS"
7374 if test $found = "no" ; then
7375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383 CFLAGS="$CFLAGS -Werror=missing-braces"
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7386 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7387 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7388 if eval \${$cacheid+:} false; then :
7389 $as_echo_n "(cached) " >&6
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7402 if ac_fn_c_try_link "$LINENO"; then :
7407 rm -f core conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
7412 CFLAGS="$xorg_testset_save_CFLAGS"
7414 eval supported=\$$cacheid
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416 $as_echo "$supported" >&6; }
7417 if test "$supported" = "yes" ; then
7418 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7437 xorg_testset_save_CFLAGS="$CFLAGS"
7439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7442 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7443 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7444 $as_echo_n "(cached) " >&6
7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h. */
7450 if ac_fn_c_try_compile "$LINENO"; then :
7451 xorg_cv_cc_flag_unknown_warning_option=yes
7453 xorg_cv_cc_flag_unknown_warning_option=no
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7458 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7460 CFLAGS="$xorg_testset_save_CFLAGS"
7463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7469 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7470 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7471 $as_echo_n "(cached) " >&6
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7474 /* end confdefs.h. */
7477 if ac_fn_c_try_compile "$LINENO"; then :
7478 xorg_cv_cc_flag_unused_command_line_argument=yes
7480 xorg_cv_cc_flag_unused_command_line_argument=no
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7485 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7492 if test $found = "no" ; then
7493 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7497 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7501 CFLAGS="$CFLAGS -Werror=sequence-point"
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7504 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7505 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7506 if eval \${$cacheid+:} false; then :
7507 $as_echo_n "(cached) " >&6
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7520 if ac_fn_c_try_link "$LINENO"; then :
7525 rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
7530 CFLAGS="$xorg_testset_save_CFLAGS"
7532 eval supported=\$$cacheid
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7534 $as_echo "$supported" >&6; }
7535 if test "$supported" = "yes" ; then
7536 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7555 xorg_testset_save_CFLAGS="$CFLAGS"
7557 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7560 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7561 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7562 $as_echo_n "(cached) " >&6
7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7565 /* end confdefs.h. */
7568 if ac_fn_c_try_compile "$LINENO"; then :
7569 xorg_cv_cc_flag_unknown_warning_option=yes
7571 xorg_cv_cc_flag_unknown_warning_option=no
7573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7576 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7587 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7588 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7589 $as_echo_n "(cached) " >&6
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596 xorg_cv_cc_flag_unused_command_line_argument=yes
7598 xorg_cv_cc_flag_unused_command_line_argument=no
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7603 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7604 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7605 CFLAGS="$xorg_testset_save_CFLAGS"
7610 if test $found = "no" ; then
7611 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7615 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7619 CFLAGS="$CFLAGS -Werror=return-type"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7622 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7623 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7624 if eval \${$cacheid+:} false; then :
7625 $as_echo_n "(cached) " >&6
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7638 if ac_fn_c_try_link "$LINENO"; then :
7643 rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7648 CFLAGS="$xorg_testset_save_CFLAGS"
7650 eval supported=\$$cacheid
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7652 $as_echo "$supported" >&6; }
7653 if test "$supported" = "yes" ; then
7654 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7659 if test $found = "no" ; then
7660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7671 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7672 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7673 if eval \${$cacheid+:} false; then :
7674 $as_echo_n "(cached) " >&6
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7687 if ac_fn_c_try_link "$LINENO"; then :
7692 rm -f core conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7697 CFLAGS="$xorg_testset_save_CFLAGS"
7699 eval supported=\$$cacheid
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701 $as_echo "$supported" >&6; }
7702 if test "$supported" = "yes" ; then
7703 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7722 xorg_testset_save_CFLAGS="$CFLAGS"
7724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7729 $as_echo_n "(cached) " >&6
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736 xorg_cv_cc_flag_unknown_warning_option=yes
7738 xorg_cv_cc_flag_unknown_warning_option=no
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7745 CFLAGS="$xorg_testset_save_CFLAGS"
7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7756 $as_echo_n "(cached) " >&6
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7762 if ac_fn_c_try_compile "$LINENO"; then :
7763 xorg_cv_cc_flag_unused_command_line_argument=yes
7765 xorg_cv_cc_flag_unused_command_line_argument=no
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7772 CFLAGS="$xorg_testset_save_CFLAGS"
7777 if test $found = "no" ; then
7778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7786 CFLAGS="$CFLAGS -Werror=trigraphs"
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7789 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7790 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7791 if eval \${$cacheid+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7805 if ac_fn_c_try_link "$LINENO"; then :
7810 rm -f core conftest.err conftest.$ac_objext \
7811 conftest$ac_exeext conftest.$ac_ext
7815 CFLAGS="$xorg_testset_save_CFLAGS"
7817 eval supported=\$$cacheid
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7819 $as_echo "$supported" >&6; }
7820 if test "$supported" = "yes" ; then
7821 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7840 xorg_testset_save_CFLAGS="$CFLAGS"
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7847 $as_echo_n "(cached) " >&6
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854 xorg_cv_cc_flag_unknown_warning_option=yes
7856 xorg_cv_cc_flag_unknown_warning_option=no
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7863 CFLAGS="$xorg_testset_save_CFLAGS"
7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7874 $as_echo_n "(cached) " >&6
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7880 if ac_fn_c_try_compile "$LINENO"; then :
7881 xorg_cv_cc_flag_unused_command_line_argument=yes
7883 xorg_cv_cc_flag_unused_command_line_argument=no
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7895 if test $found = "no" ; then
7896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7904 CFLAGS="$CFLAGS -Werror=array-bounds"
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7907 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7908 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7909 if eval \${$cacheid+:} false; then :
7910 $as_echo_n "(cached) " >&6
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7923 if ac_fn_c_try_link "$LINENO"; then :
7928 rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7933 CFLAGS="$xorg_testset_save_CFLAGS"
7935 eval supported=\$$cacheid
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7937 $as_echo "$supported" >&6; }
7938 if test "$supported" = "yes" ; then
7939 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7958 xorg_testset_save_CFLAGS="$CFLAGS"
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7965 $as_echo_n "(cached) " >&6
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 xorg_cv_cc_flag_unknown_warning_option=yes
7974 xorg_cv_cc_flag_unknown_warning_option=no
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7981 CFLAGS="$xorg_testset_save_CFLAGS"
7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7992 $as_echo_n "(cached) " >&6
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 xorg_cv_cc_flag_unused_command_line_argument=yes
8001 xorg_cv_cc_flag_unused_command_line_argument=no
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8013 if test $found = "no" ; then
8014 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8018 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8022 CFLAGS="$CFLAGS -Werror=write-strings"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8025 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8026 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
8027 if eval \${$cacheid+:} false; then :
8028 $as_echo_n "(cached) " >&6
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8041 if ac_fn_c_try_link "$LINENO"; then :
8046 rm -f core conftest.err conftest.$ac_objext \
8047 conftest$ac_exeext conftest.$ac_ext
8051 CFLAGS="$xorg_testset_save_CFLAGS"
8053 eval supported=\$$cacheid
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8055 $as_echo "$supported" >&6; }
8056 if test "$supported" = "yes" ; then
8057 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8076 xorg_testset_save_CFLAGS="$CFLAGS"
8078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8083 $as_echo_n "(cached) " >&6
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086 /* end confdefs.h. */
8089 if ac_fn_c_try_compile "$LINENO"; then :
8090 xorg_cv_cc_flag_unknown_warning_option=yes
8092 xorg_cv_cc_flag_unknown_warning_option=no
8094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8099 CFLAGS="$xorg_testset_save_CFLAGS"
8102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8110 $as_echo_n "(cached) " >&6
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8116 if ac_fn_c_try_compile "$LINENO"; then :
8117 xorg_cv_cc_flag_unused_command_line_argument=yes
8119 xorg_cv_cc_flag_unused_command_line_argument=no
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8131 if test $found = "no" ; then
8132 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8136 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8140 CFLAGS="$CFLAGS -Werror=address"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8143 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8144 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8145 if eval \${$cacheid+:} false; then :
8146 $as_echo_n "(cached) " >&6
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8159 if ac_fn_c_try_link "$LINENO"; then :
8164 rm -f core conftest.err conftest.$ac_objext \
8165 conftest$ac_exeext conftest.$ac_ext
8169 CFLAGS="$xorg_testset_save_CFLAGS"
8171 eval supported=\$$cacheid
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8173 $as_echo "$supported" >&6; }
8174 if test "$supported" = "yes" ; then
8175 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8194 xorg_testset_save_CFLAGS="$CFLAGS"
8196 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8199 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8200 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8201 $as_echo_n "(cached) " >&6
8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h. */
8207 if ac_fn_c_try_compile "$LINENO"; then :
8208 xorg_cv_cc_flag_unknown_warning_option=yes
8210 xorg_cv_cc_flag_unknown_warning_option=no
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8215 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8216 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8217 CFLAGS="$xorg_testset_save_CFLAGS"
8220 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8221 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8226 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8227 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8228 $as_echo_n "(cached) " >&6
8230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8234 if ac_fn_c_try_compile "$LINENO"; then :
8235 xorg_cv_cc_flag_unused_command_line_argument=yes
8237 xorg_cv_cc_flag_unused_command_line_argument=no
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8242 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8244 CFLAGS="$xorg_testset_save_CFLAGS"
8249 if test $found = "no" ; then
8250 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8254 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8261 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8262 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8263 if eval \${$cacheid+:} false; then :
8264 $as_echo_n "(cached) " >&6
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8277 if ac_fn_c_try_link "$LINENO"; then :
8282 rm -f core conftest.err conftest.$ac_objext \
8283 conftest$ac_exeext conftest.$ac_ext
8287 CFLAGS="$xorg_testset_save_CFLAGS"
8289 eval supported=\$$cacheid
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8291 $as_echo "$supported" >&6; }
8292 if test "$supported" = "yes" ; then
8293 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8298 if test $found = "no" ; then
8299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8303 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8307 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8310 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8311 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8312 if eval \${$cacheid+:} false; then :
8313 $as_echo_n "(cached) " >&6
8315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8316 /* end confdefs.h. */
8326 if ac_fn_c_try_link "$LINENO"; then :
8331 rm -f core conftest.err conftest.$ac_objext \
8332 conftest$ac_exeext conftest.$ac_ext
8336 CFLAGS="$xorg_testset_save_CFLAGS"
8338 eval supported=\$$cacheid
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8340 $as_echo "$supported" >&6; }
8341 if test "$supported" = "yes" ; then
8342 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8361 xorg_testset_save_CFLAGS="$CFLAGS"
8363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8368 $as_echo_n "(cached) " >&6
8370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8371 /* end confdefs.h. */
8374 if ac_fn_c_try_compile "$LINENO"; then :
8375 xorg_cv_cc_flag_unknown_warning_option=yes
8377 xorg_cv_cc_flag_unknown_warning_option=no
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8384 CFLAGS="$xorg_testset_save_CFLAGS"
8387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8395 $as_echo_n "(cached) " >&6
8397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8398 /* end confdefs.h. */
8401 if ac_fn_c_try_compile "$LINENO"; then :
8402 xorg_cv_cc_flag_unused_command_line_argument=yes
8404 xorg_cv_cc_flag_unused_command_line_argument=no
8406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8411 CFLAGS="$xorg_testset_save_CFLAGS"
8416 if test $found = "no" ; then
8417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8425 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8428 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8429 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8430 if eval \${$cacheid+:} false; then :
8431 $as_echo_n "(cached) " >&6
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8444 if ac_fn_c_try_link "$LINENO"; then :
8449 rm -f core conftest.err conftest.$ac_objext \
8450 conftest$ac_exeext conftest.$ac_ext
8454 CFLAGS="$xorg_testset_save_CFLAGS"
8456 eval supported=\$$cacheid
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8458 $as_echo "$supported" >&6; }
8459 if test "$supported" = "yes" ; then
8460 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8465 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8467 { $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
8468 $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;}
8482 xorg_testset_save_CFLAGS="$CFLAGS"
8484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8487 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8488 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8489 $as_echo_n "(cached) " >&6
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496 xorg_cv_cc_flag_unknown_warning_option=yes
8498 xorg_cv_cc_flag_unknown_warning_option=no
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8503 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8505 CFLAGS="$xorg_testset_save_CFLAGS"
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8514 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8515 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8522 if ac_fn_c_try_compile "$LINENO"; then :
8523 xorg_cv_cc_flag_unused_command_line_argument=yes
8525 xorg_cv_cc_flag_unused_command_line_argument=no
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8530 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8532 CFLAGS="$xorg_testset_save_CFLAGS"
8537 if test $found = "no" ; then
8538 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546 CFLAGS="$CFLAGS -Wimplicit"
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8549 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8550 cacheid=xorg_cv_cc_flag__Wimplicit
8551 if eval \${$cacheid+:} false; then :
8552 $as_echo_n "(cached) " >&6
8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8565 if ac_fn_c_try_link "$LINENO"; then :
8570 rm -f core conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
8575 CFLAGS="$xorg_testset_save_CFLAGS"
8577 eval supported=\$$cacheid
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8579 $as_echo "$supported" >&6; }
8580 if test "$supported" = "yes" ; then
8581 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8600 xorg_testset_save_CFLAGS="$CFLAGS"
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8607 $as_echo_n "(cached) " >&6
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614 xorg_cv_cc_flag_unknown_warning_option=yes
8616 xorg_cv_cc_flag_unknown_warning_option=no
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8623 CFLAGS="$xorg_testset_save_CFLAGS"
8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8634 $as_echo_n "(cached) " >&6
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8640 if ac_fn_c_try_compile "$LINENO"; then :
8641 xorg_cv_cc_flag_unused_command_line_argument=yes
8643 xorg_cv_cc_flag_unused_command_line_argument=no
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650 CFLAGS="$xorg_testset_save_CFLAGS"
8655 if test $found = "no" ; then
8656 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664 CFLAGS="$CFLAGS -Wnonnull"
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8667 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8668 cacheid=xorg_cv_cc_flag__Wnonnull
8669 if eval \${$cacheid+:} false; then :
8670 $as_echo_n "(cached) " >&6
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8683 if ac_fn_c_try_link "$LINENO"; then :
8688 rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8693 CFLAGS="$xorg_testset_save_CFLAGS"
8695 eval supported=\$$cacheid
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8697 $as_echo "$supported" >&6; }
8698 if test "$supported" = "yes" ; then
8699 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8718 xorg_testset_save_CFLAGS="$CFLAGS"
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8723 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8724 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8725 $as_echo_n "(cached) " >&6
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732 xorg_cv_cc_flag_unknown_warning_option=yes
8734 xorg_cv_cc_flag_unknown_warning_option=no
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741 CFLAGS="$xorg_testset_save_CFLAGS"
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8752 $as_echo_n "(cached) " >&6
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759 xorg_cv_cc_flag_unused_command_line_argument=yes
8761 xorg_cv_cc_flag_unused_command_line_argument=no
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8766 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8768 CFLAGS="$xorg_testset_save_CFLAGS"
8773 if test $found = "no" ; then
8774 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782 CFLAGS="$CFLAGS -Winit-self"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8785 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8786 cacheid=xorg_cv_cc_flag__Winit_self
8787 if eval \${$cacheid+:} false; then :
8788 $as_echo_n "(cached) " >&6
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8801 if ac_fn_c_try_link "$LINENO"; then :
8806 rm -f core conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8811 CFLAGS="$xorg_testset_save_CFLAGS"
8813 eval supported=\$$cacheid
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815 $as_echo "$supported" >&6; }
8816 if test "$supported" = "yes" ; then
8817 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8836 xorg_testset_save_CFLAGS="$CFLAGS"
8838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8843 $as_echo_n "(cached) " >&6
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850 xorg_cv_cc_flag_unknown_warning_option=yes
8852 xorg_cv_cc_flag_unknown_warning_option=no
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8857 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8859 CFLAGS="$xorg_testset_save_CFLAGS"
8862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8869 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8870 $as_echo_n "(cached) " >&6
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877 xorg_cv_cc_flag_unused_command_line_argument=yes
8879 xorg_cv_cc_flag_unused_command_line_argument=no
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8884 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8886 CFLAGS="$xorg_testset_save_CFLAGS"
8891 if test $found = "no" ; then
8892 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8900 CFLAGS="$CFLAGS -Wmain"
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8903 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8904 cacheid=xorg_cv_cc_flag__Wmain
8905 if eval \${$cacheid+:} false; then :
8906 $as_echo_n "(cached) " >&6
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8919 if ac_fn_c_try_link "$LINENO"; then :
8924 rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8929 CFLAGS="$xorg_testset_save_CFLAGS"
8931 eval supported=\$$cacheid
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8933 $as_echo "$supported" >&6; }
8934 if test "$supported" = "yes" ; then
8935 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8954 xorg_testset_save_CFLAGS="$CFLAGS"
8956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8961 $as_echo_n "(cached) " >&6
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968 xorg_cv_cc_flag_unknown_warning_option=yes
8970 xorg_cv_cc_flag_unknown_warning_option=no
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977 CFLAGS="$xorg_testset_save_CFLAGS"
8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8988 $as_echo_n "(cached) " >&6
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8994 if ac_fn_c_try_compile "$LINENO"; then :
8995 xorg_cv_cc_flag_unused_command_line_argument=yes
8997 xorg_cv_cc_flag_unused_command_line_argument=no
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9004 CFLAGS="$xorg_testset_save_CFLAGS"
9009 if test $found = "no" ; then
9010 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018 CFLAGS="$CFLAGS -Wmissing-braces"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9021 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9022 cacheid=xorg_cv_cc_flag__Wmissing_braces
9023 if eval \${$cacheid+:} false; then :
9024 $as_echo_n "(cached) " >&6
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9037 if ac_fn_c_try_link "$LINENO"; then :
9042 rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9047 CFLAGS="$xorg_testset_save_CFLAGS"
9049 eval supported=\$$cacheid
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051 $as_echo "$supported" >&6; }
9052 if test "$supported" = "yes" ; then
9053 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9072 xorg_testset_save_CFLAGS="$CFLAGS"
9074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9079 $as_echo_n "(cached) " >&6
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9085 if ac_fn_c_try_compile "$LINENO"; then :
9086 xorg_cv_cc_flag_unknown_warning_option=yes
9088 xorg_cv_cc_flag_unknown_warning_option=no
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9095 CFLAGS="$xorg_testset_save_CFLAGS"
9098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9106 $as_echo_n "(cached) " >&6
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113 xorg_cv_cc_flag_unused_command_line_argument=yes
9115 xorg_cv_cc_flag_unused_command_line_argument=no
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9122 CFLAGS="$xorg_testset_save_CFLAGS"
9127 if test $found = "no" ; then
9128 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136 CFLAGS="$CFLAGS -Wsequence-point"
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9139 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9140 cacheid=xorg_cv_cc_flag__Wsequence_point
9141 if eval \${$cacheid+:} false; then :
9142 $as_echo_n "(cached) " >&6
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9155 if ac_fn_c_try_link "$LINENO"; then :
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9165 CFLAGS="$xorg_testset_save_CFLAGS"
9167 eval supported=\$$cacheid
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9169 $as_echo "$supported" >&6; }
9170 if test "$supported" = "yes" ; then
9171 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9190 xorg_testset_save_CFLAGS="$CFLAGS"
9192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9197 $as_echo_n "(cached) " >&6
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204 xorg_cv_cc_flag_unknown_warning_option=yes
9206 xorg_cv_cc_flag_unknown_warning_option=no
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9230 if ac_fn_c_try_compile "$LINENO"; then :
9231 xorg_cv_cc_flag_unused_command_line_argument=yes
9233 xorg_cv_cc_flag_unused_command_line_argument=no
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9240 CFLAGS="$xorg_testset_save_CFLAGS"
9245 if test $found = "no" ; then
9246 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9254 CFLAGS="$CFLAGS -Wreturn-type"
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9257 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9258 cacheid=xorg_cv_cc_flag__Wreturn_type
9259 if eval \${$cacheid+:} false; then :
9260 $as_echo_n "(cached) " >&6
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9273 if ac_fn_c_try_link "$LINENO"; then :
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9283 CFLAGS="$xorg_testset_save_CFLAGS"
9285 eval supported=\$$cacheid
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9287 $as_echo "$supported" >&6; }
9288 if test "$supported" = "yes" ; then
9289 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9308 xorg_testset_save_CFLAGS="$CFLAGS"
9310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9315 $as_echo_n "(cached) " >&6
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 xorg_cv_cc_flag_unknown_warning_option=yes
9324 xorg_cv_cc_flag_unknown_warning_option=no
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9331 CFLAGS="$xorg_testset_save_CFLAGS"
9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9342 $as_echo_n "(cached) " >&6
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9348 if ac_fn_c_try_compile "$LINENO"; then :
9349 xorg_cv_cc_flag_unused_command_line_argument=yes
9351 xorg_cv_cc_flag_unused_command_line_argument=no
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9358 CFLAGS="$xorg_testset_save_CFLAGS"
9363 if test $found = "no" ; then
9364 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372 CFLAGS="$CFLAGS -Wtrigraphs"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9375 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9376 cacheid=xorg_cv_cc_flag__Wtrigraphs
9377 if eval \${$cacheid+:} false; then :
9378 $as_echo_n "(cached) " >&6
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9391 if ac_fn_c_try_link "$LINENO"; then :
9396 rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9401 CFLAGS="$xorg_testset_save_CFLAGS"
9403 eval supported=\$$cacheid
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9405 $as_echo "$supported" >&6; }
9406 if test "$supported" = "yes" ; then
9407 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9426 xorg_testset_save_CFLAGS="$CFLAGS"
9428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9433 $as_echo_n "(cached) " >&6
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 xorg_cv_cc_flag_unknown_warning_option=yes
9442 xorg_cv_cc_flag_unknown_warning_option=no
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9449 CFLAGS="$xorg_testset_save_CFLAGS"
9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9460 $as_echo_n "(cached) " >&6
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467 xorg_cv_cc_flag_unused_command_line_argument=yes
9469 xorg_cv_cc_flag_unused_command_line_argument=no
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9476 CFLAGS="$xorg_testset_save_CFLAGS"
9481 if test $found = "no" ; then
9482 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490 CFLAGS="$CFLAGS -Warray-bounds"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9493 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9494 cacheid=xorg_cv_cc_flag__Warray_bounds
9495 if eval \${$cacheid+:} false; then :
9496 $as_echo_n "(cached) " >&6
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9509 if ac_fn_c_try_link "$LINENO"; then :
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9519 CFLAGS="$xorg_testset_save_CFLAGS"
9521 eval supported=\$$cacheid
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523 $as_echo "$supported" >&6; }
9524 if test "$supported" = "yes" ; then
9525 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9544 xorg_testset_save_CFLAGS="$CFLAGS"
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9551 $as_echo_n "(cached) " >&6
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9557 if ac_fn_c_try_compile "$LINENO"; then :
9558 xorg_cv_cc_flag_unknown_warning_option=yes
9560 xorg_cv_cc_flag_unknown_warning_option=no
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9565 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9567 CFLAGS="$xorg_testset_save_CFLAGS"
9570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9576 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9577 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9578 $as_echo_n "(cached) " >&6
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9584 if ac_fn_c_try_compile "$LINENO"; then :
9585 xorg_cv_cc_flag_unused_command_line_argument=yes
9587 xorg_cv_cc_flag_unused_command_line_argument=no
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9599 if test $found = "no" ; then
9600 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608 CFLAGS="$CFLAGS -Wwrite-strings"
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9611 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9612 cacheid=xorg_cv_cc_flag__Wwrite_strings
9613 if eval \${$cacheid+:} false; then :
9614 $as_echo_n "(cached) " >&6
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9627 if ac_fn_c_try_link "$LINENO"; then :
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9639 eval supported=\$$cacheid
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641 $as_echo "$supported" >&6; }
9642 if test "$supported" = "yes" ; then
9643 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9662 xorg_testset_save_CFLAGS="$CFLAGS"
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9669 $as_echo_n "(cached) " >&6
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676 xorg_cv_cc_flag_unknown_warning_option=yes
9678 xorg_cv_cc_flag_unknown_warning_option=no
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9696 $as_echo_n "(cached) " >&6
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9702 if ac_fn_c_try_compile "$LINENO"; then :
9703 xorg_cv_cc_flag_unused_command_line_argument=yes
9705 xorg_cv_cc_flag_unused_command_line_argument=no
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9712 CFLAGS="$xorg_testset_save_CFLAGS"
9717 if test $found = "no" ; then
9718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9726 CFLAGS="$CFLAGS -Waddress"
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9729 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9730 cacheid=xorg_cv_cc_flag__Waddress
9731 if eval \${$cacheid+:} false; then :
9732 $as_echo_n "(cached) " >&6
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9745 if ac_fn_c_try_link "$LINENO"; then :
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9755 CFLAGS="$xorg_testset_save_CFLAGS"
9757 eval supported=\$$cacheid
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9759 $as_echo "$supported" >&6; }
9760 if test "$supported" = "yes" ; then
9761 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9780 xorg_testset_save_CFLAGS="$CFLAGS"
9782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9787 $as_echo_n "(cached) " >&6
9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9790 /* end confdefs.h. */
9793 if ac_fn_c_try_compile "$LINENO"; then :
9794 xorg_cv_cc_flag_unknown_warning_option=yes
9796 xorg_cv_cc_flag_unknown_warning_option=no
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9803 CFLAGS="$xorg_testset_save_CFLAGS"
9806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9814 $as_echo_n "(cached) " >&6
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9820 if ac_fn_c_try_compile "$LINENO"; then :
9821 xorg_cv_cc_flag_unused_command_line_argument=yes
9823 xorg_cv_cc_flag_unused_command_line_argument=no
9825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9830 CFLAGS="$xorg_testset_save_CFLAGS"
9835 if test $found = "no" ; then
9836 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9840 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9847 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9848 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9849 if eval \${$cacheid+:} false; then :
9850 $as_echo_n "(cached) " >&6
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9863 if ac_fn_c_try_link "$LINENO"; then :
9868 rm -f core conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9873 CFLAGS="$xorg_testset_save_CFLAGS"
9875 eval supported=\$$cacheid
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9877 $as_echo "$supported" >&6; }
9878 if test "$supported" = "yes" ; then
9879 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9898 xorg_testset_save_CFLAGS="$CFLAGS"
9900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9905 $as_echo_n "(cached) " >&6
9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9908 /* end confdefs.h. */
9911 if ac_fn_c_try_compile "$LINENO"; then :
9912 xorg_cv_cc_flag_unknown_warning_option=yes
9914 xorg_cv_cc_flag_unknown_warning_option=no
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9921 CFLAGS="$xorg_testset_save_CFLAGS"
9924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9932 $as_echo_n "(cached) " >&6
9934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9935 /* end confdefs.h. */
9938 if ac_fn_c_try_compile "$LINENO"; then :
9939 xorg_cv_cc_flag_unused_command_line_argument=yes
9941 xorg_cv_cc_flag_unused_command_line_argument=no
9943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9948 CFLAGS="$xorg_testset_save_CFLAGS"
9953 if test $found = "no" ; then
9954 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9965 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9966 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9967 if eval \${$cacheid+:} false; then :
9968 $as_echo_n "(cached) " >&6
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9981 if ac_fn_c_try_link "$LINENO"; then :
9986 rm -f core conftest.err conftest.$ac_objext \
9987 conftest$ac_exeext conftest.$ac_ext
9991 CFLAGS="$xorg_testset_save_CFLAGS"
9993 eval supported=\$$cacheid
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9995 $as_echo "$supported" >&6; }
9996 if test "$supported" = "yes" ; then
9997 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10011 CWARNFLAGS="$BASE_CFLAGS"
10012 if test "x$GCC" = xyes ; then
10013 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10023 # Check whether --enable-strict-compilation was given.
10024 if test "${enable_strict_compilation+set}" = set; then :
10025 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10049 xorg_testset_save_CFLAGS="$CFLAGS"
10051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10054 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10055 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10056 $as_echo_n "(cached) " >&6
10058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10059 /* end confdefs.h. */
10062 if ac_fn_c_try_compile "$LINENO"; then :
10063 xorg_cv_cc_flag_unknown_warning_option=yes
10065 xorg_cv_cc_flag_unknown_warning_option=no
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10070 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10072 CFLAGS="$xorg_testset_save_CFLAGS"
10075 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10081 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10082 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10083 $as_echo_n "(cached) " >&6
10085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10086 /* end confdefs.h. */
10089 if ac_fn_c_try_compile "$LINENO"; then :
10090 xorg_cv_cc_flag_unused_command_line_argument=yes
10092 xorg_cv_cc_flag_unused_command_line_argument=no
10094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10097 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10099 CFLAGS="$xorg_testset_save_CFLAGS"
10104 if test $found = "no" ; then
10105 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10109 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10113 CFLAGS="$CFLAGS -pedantic"
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10116 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10117 cacheid=xorg_cv_cc_flag__pedantic
10118 if eval \${$cacheid+:} false; then :
10119 $as_echo_n "(cached) " >&6
10121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10132 if ac_fn_c_try_link "$LINENO"; then :
10137 rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
10142 CFLAGS="$xorg_testset_save_CFLAGS"
10144 eval supported=\$$cacheid
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10146 $as_echo "$supported" >&6; }
10147 if test "$supported" = "yes" ; then
10148 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10167 xorg_testset_save_CFLAGS="$CFLAGS"
10169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10174 $as_echo_n "(cached) " >&6
10176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10177 /* end confdefs.h. */
10180 if ac_fn_c_try_compile "$LINENO"; then :
10181 xorg_cv_cc_flag_unknown_warning_option=yes
10183 xorg_cv_cc_flag_unknown_warning_option=no
10185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10190 CFLAGS="$xorg_testset_save_CFLAGS"
10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10201 $as_echo_n "(cached) " >&6
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10207 if ac_fn_c_try_compile "$LINENO"; then :
10208 xorg_cv_cc_flag_unused_command_line_argument=yes
10210 xorg_cv_cc_flag_unused_command_line_argument=no
10212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10217 CFLAGS="$xorg_testset_save_CFLAGS"
10222 if test $found = "no" ; then
10223 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10227 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10231 CFLAGS="$CFLAGS -Werror"
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10234 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10235 cacheid=xorg_cv_cc_flag__Werror
10236 if eval \${$cacheid+:} false; then :
10237 $as_echo_n "(cached) " >&6
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10250 if ac_fn_c_try_link "$LINENO"; then :
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10260 CFLAGS="$xorg_testset_save_CFLAGS"
10262 eval supported=\$$cacheid
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10264 $as_echo "$supported" >&6; }
10265 if test "$supported" = "yes" ; then
10266 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10271 if test $found = "no" ; then
10272 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280 CFLAGS="$CFLAGS -errwarn"
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10283 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10284 cacheid=xorg_cv_cc_flag__errwarn
10285 if eval \${$cacheid+:} false; then :
10286 $as_echo_n "(cached) " >&6
10288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10289 /* end confdefs.h. */
10299 if ac_fn_c_try_link "$LINENO"; then :
10304 rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
10309 CFLAGS="$xorg_testset_save_CFLAGS"
10311 eval supported=\$$cacheid
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10313 $as_echo "$supported" >&6; }
10314 if test "$supported" = "yes" ; then
10315 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10322 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10323 # activate it with -Werror, so we add it here explicitly.
10337 xorg_testset_save_CFLAGS="$CFLAGS"
10339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10342 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10343 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10344 $as_echo_n "(cached) " >&6
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10350 if ac_fn_c_try_compile "$LINENO"; then :
10351 xorg_cv_cc_flag_unknown_warning_option=yes
10353 xorg_cv_cc_flag_unknown_warning_option=no
10355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10358 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10360 CFLAGS="$xorg_testset_save_CFLAGS"
10363 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10369 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10370 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10371 $as_echo_n "(cached) " >&6
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10377 if ac_fn_c_try_compile "$LINENO"; then :
10378 xorg_cv_cc_flag_unused_command_line_argument=yes
10380 xorg_cv_cc_flag_unused_command_line_argument=no
10382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10385 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10387 CFLAGS="$xorg_testset_save_CFLAGS"
10392 if test $found = "no" ; then
10393 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10397 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10401 CFLAGS="$CFLAGS -Werror=attributes"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10404 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10405 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10406 if eval \${$cacheid+:} false; then :
10407 $as_echo_n "(cached) " >&6
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10420 if ac_fn_c_try_link "$LINENO"; then :
10425 rm -f core conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
10430 CFLAGS="$xorg_testset_save_CFLAGS"
10432 eval supported=\$$cacheid
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10434 $as_echo "$supported" >&6; }
10435 if test "$supported" = "yes" ; then
10436 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10443 if test "x$STRICT_COMPILE" = "xyes"; then
10444 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10445 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10453 cat >>confdefs.h <<_ACEOF
10454 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10457 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10458 if test "x$PVM" = "x"; then
10462 cat >>confdefs.h <<_ACEOF
10463 #define PACKAGE_VERSION_MINOR $PVM
10466 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10467 if test "x$PVP" = "x"; then
10471 cat >>confdefs.h <<_ACEOF
10472 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10477 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10478 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10479 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10480 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10485 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10486 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10487 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10488 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10489 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10496 if test x$APP_MAN_SUFFIX = x ; then
10499 if test x$APP_MAN_DIR = x ; then
10500 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10503 if test x$LIB_MAN_SUFFIX = x ; then
10506 if test x$LIB_MAN_DIR = x ; then
10507 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10510 if test x$FILE_MAN_SUFFIX = x ; then
10512 solaris*) FILE_MAN_SUFFIX=4 ;;
10513 *) FILE_MAN_SUFFIX=5 ;;
10516 if test x$FILE_MAN_DIR = x ; then
10517 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10520 if test x$MISC_MAN_SUFFIX = x ; then
10522 solaris*) MISC_MAN_SUFFIX=5 ;;
10523 *) MISC_MAN_SUFFIX=7 ;;
10526 if test x$MISC_MAN_DIR = x ; then
10527 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10530 if test x$DRIVER_MAN_SUFFIX = x ; then
10532 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10533 *) DRIVER_MAN_SUFFIX=4 ;;
10536 if test x$DRIVER_MAN_DIR = x ; then
10537 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10540 if test x$ADMIN_MAN_SUFFIX = x ; then
10542 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10543 *) ADMIN_MAN_SUFFIX=8 ;;
10546 if test x$ADMIN_MAN_DIR = x ; then
10547 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10564 XORG_MAN_PAGE="X Version 11"
10567 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10568 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10569 -e 's|__xservername__|Xorg|g' \
10570 -e 's|__xconfigfile__|xorg.conf|g' \
10571 -e 's|__projectroot__|\$(prefix)|g' \
10572 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10573 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10574 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10575 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10576 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10577 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10578 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10582 # Check whether --enable-silent-rules was given.
10583 if test "${enable_silent_rules+set}" = set; then :
10584 enableval=$enable_silent_rules;
10587 case $enable_silent_rules in
10588 yes) AM_DEFAULT_VERBOSITY=0;;
10589 no) AM_DEFAULT_VERBOSITY=1;;
10590 *) AM_DEFAULT_VERBOSITY=0;;
10596 for ac_func in strncasecmp asprintf
10598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10601 cat >>confdefs.h <<_ACEOF
10602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10609 # Checks for pkg-config packages
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XMODMAP" >&5
10613 $as_echo_n "checking for XMODMAP... " >&6; }
10615 if test -n "$XMODMAP_CFLAGS"; then
10616 pkg_cv_XMODMAP_CFLAGS="$XMODMAP_CFLAGS"
10617 elif test -n "$PKG_CONFIG"; then
10618 if test -n "$PKG_CONFIG" && \
10619 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
10620 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10623 test $ac_status = 0; }; then
10624 pkg_cv_XMODMAP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
10631 if test -n "$XMODMAP_LIBS"; then
10632 pkg_cv_XMODMAP_LIBS="$XMODMAP_LIBS"
10633 elif test -n "$PKG_CONFIG"; then
10634 if test -n "$PKG_CONFIG" && \
10635 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
10636 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
10638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10639 test $ac_status = 0; }; then
10640 pkg_cv_XMODMAP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
10650 if test $pkg_failed = yes; then
10652 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10653 _pkg_short_errors_supported=yes
10655 _pkg_short_errors_supported=no
10657 if test $_pkg_short_errors_supported = yes; then
10658 XMODMAP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1`
10660 XMODMAP_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1`
10662 # Put the nasty error message in config.log where it belongs
10663 echo "$XMODMAP_PKG_ERRORS" >&5
10665 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
10667 $XMODMAP_PKG_ERRORS
10669 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10670 installed software in a non-standard prefix.
10672 Alternatively, you may set the environment variables XMODMAP_CFLAGS
10673 and XMODMAP_LIBS to avoid the need to call pkg-config.
10674 See the pkg-config man page for more details.
10676 elif test $pkg_failed = untried; then
10677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10679 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10680 is in your PATH or set the PKG_CONFIG environment variable to the full
10681 path to pkg-config.
10683 Alternatively, you may set the environment variables XMODMAP_CFLAGS
10684 and XMODMAP_LIBS to avoid the need to call pkg-config.
10685 See the pkg-config man page for more details.
10687 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10688 See \`config.log' for more details" "$LINENO" 5; }
10690 XMODMAP_CFLAGS=$pkg_cv_XMODMAP_CFLAGS
10691 XMODMAP_LIBS=$pkg_cv_XMODMAP_LIBS
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10693 $as_echo "yes" >&6; }
10702 # Check whether --with-lint was given.
10703 if test "${with_lint+set}" = set; then :
10704 withval=$with_lint; use_lint=$withval
10710 # Obtain platform specific info like program name and options
10711 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
10713 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10715 lint_options="-badflag"
10717 *freebsd* | *netbsd*)
10719 lint_options="-u -b"
10723 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10727 # Test for the presence of the program (either guessed by the code or spelled out by the user)
10728 if test "x$use_lint" = x"yes" ; then
10729 # Extract the first word of "$lint_name", so it can be a program name with args.
10730 set dummy $lint_name; ac_word=$2
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732 $as_echo_n "checking for $ac_word... " >&6; }
10733 if ${ac_cv_path_LINT+:} false; then :
10734 $as_echo_n "(cached) " >&6
10738 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $PATH
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10759 LINT=$ac_cv_path_LINT
10760 if test -n "$LINT"; then
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10762 $as_echo "$LINT" >&6; }
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765 $as_echo "no" >&6; }
10769 if test "x$LINT" = "x"; then
10770 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10772 elif test "x$use_lint" = x"no" ; then
10773 if test "x$LINT" != "x"; then
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10775 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10778 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10781 # User supplied flags override default flags
10782 if test "x$LINT_FLAGS" != "x"; then
10783 lint_options=$LINT_FLAGS
10786 LINT_FLAGS=$lint_options
10788 if test "x$LINT" != x; then
10799 ac_config_files="$ac_config_files Makefile man/Makefile"
10801 cat >confcache <<\_ACEOF
10802 # This file is a shell script that caches the results of configure
10803 # tests run on this system so they can be shared between configure
10804 # scripts and configure runs, see configure's option --config-cache.
10805 # It is not useful on other systems. If it contains results you don't
10806 # want to keep, you may remove or edit it.
10808 # config.status only pays attention to the cache file if you give it
10809 # the --recheck option to rerun configure.
10811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10813 # following values.
10817 # The following way of writing the cache mishandles newlines in values,
10818 # but we know of no workaround that is simple, portable, and efficient.
10819 # So, we kill variables containing newlines.
10820 # Ultrix sh set writes to stderr and can't be redirected directly,
10821 # and sets the high bit in the cache file unless we assign to the vars.
10823 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10824 eval ac_val=\$$ac_var
10828 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10832 _ | IFS | as_nl) ;; #(
10833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10834 *) { eval $ac_var=; unset $ac_var;} ;;
10840 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10841 *${as_nl}ac_space=\ *)
10842 # `set' does not quote correctly, so add quotes: double-quote
10843 # substitution turns \\\\ into \\, and sed turns \\ into \.
10846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10849 # `set' quotes correctly as required by POSIX, so do not add quotes.
10850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10859 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10861 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10863 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10864 if test -w "$cache_file"; then
10865 if test "x$cache_file" != "x/dev/null"; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10867 $as_echo "$as_me: updating cache $cache_file" >&6;}
10868 if test ! -f "$cache_file" || test -h "$cache_file"; then
10869 cat confcache >"$cache_file"
10871 case $cache_file in #(
10873 mv -f confcache "$cache_file"$$ &&
10874 mv -f "$cache_file"$$ "$cache_file" ;; #(
10876 mv -f confcache "$cache_file" ;;
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10882 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10887 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10888 # Let make expand exec_prefix.
10889 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10891 DEFS=-DHAVE_CONFIG_H
10896 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10897 # 1. Remove the extension, and $U if already installed.
10898 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10899 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10900 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10901 # will be set to the directory where LIBOBJS objects are built.
10902 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10903 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10905 LIBOBJS=$ac_libobjs
10907 LTLIBOBJS=$ac_ltlibobjs
10910 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10911 as_fn_error $? "conditional \"AMDEP\" was never defined.
10912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10914 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10915 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10918 if test -n "$EXEEXT"; then
10920 am__EXEEXT_FALSE='#'
10922 am__EXEEXT_TRUE='#'
10926 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10927 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10930 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
10931 as_fn_error $? "conditional \"LINT\" was never defined.
10932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10935 : "${CONFIG_STATUS=./config.status}"
10937 ac_clean_files_save=$ac_clean_files
10938 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10940 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10942 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10944 # Generated by $as_me.
10945 # Run this file to recreate the current configuration.
10946 # Compiler output produced by configure, useful for debugging
10947 # configure, is in config.log if it exists.
10950 ac_cs_recheck=false
10953 SHELL=\${CONFIG_SHELL-$SHELL}
10956 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10957 ## -------------------- ##
10958 ## M4sh Initialization. ##
10959 ## -------------------- ##
10961 # Be more Bourne compatible
10962 DUALCASE=1; export DUALCASE # for MKS sh
10963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10966 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10967 # is contrary to our usage. Disable this feature.
10968 alias -g '${1+"$@"}'='"$@"'
10969 setopt NO_GLOB_SUBST
10971 case `(set -o) 2>/dev/null` in #(
10983 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10984 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10986 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10987 # Prefer a ksh shell builtin over an external printf program on Solaris,
10988 # but without wasting forks for bash or zsh.
10989 if test -z "$BASH_VERSION$ZSH_VERSION" \
10990 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10991 as_echo='print -r --'
10992 as_echo_n='print -rn --'
10993 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10994 as_echo='printf %s\n'
10995 as_echo_n='printf %s'
10997 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10998 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10999 as_echo_n='/usr/ucb/echo -n'
11001 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11002 as_echo_n_body='eval
11006 expr "X$arg" : "X\\(.*\\)$as_nl";
11007 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11009 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11011 export as_echo_n_body
11012 as_echo_n='sh -c $as_echo_n_body as_echo'
11014 export as_echo_body
11015 as_echo='sh -c $as_echo_body as_echo'
11018 # The user is always right.
11019 if test "${PATH_SEPARATOR+set}" != set; then
11021 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11022 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11029 # We need space, tab and new line, in precisely that order. Quoting is
11030 # there to prevent editors from complaining about space-tab.
11031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11032 # splitting by setting IFS to empty value.)
11035 # Find who we are. Look in the path if we contain no directory separator.
11038 *[\\/]* ) as_myself=$0 ;;
11039 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11040 for as_dir in $PATH
11043 test -z "$as_dir" && as_dir=.
11044 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11050 # We did not find ourselves, most probably we were run as `sh COMMAND'
11051 # in which case we are not to be found in the path.
11052 if test "x$as_myself" = x; then
11055 if test ! -f "$as_myself"; then
11056 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11060 # Unset variables that we do not need and which cause bugs (e.g. in
11061 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11062 # suppresses any "Segmentation fault" message there. '((' could
11063 # trigger a bug in pdksh 5.2.14.
11064 for as_var in BASH_ENV ENV MAIL MAILPATH
11065 do eval test x\${$as_var+set} = xset \
11066 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11079 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11082 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11083 # ----------------------------------------
11084 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11085 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11086 # script with STATUS, using 1 if that was 0.
11089 as_status=$1; test $as_status -eq 0 && as_status=1
11091 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11092 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11094 $as_echo "$as_me: error: $2" >&2
11095 as_fn_exit $as_status
11099 # as_fn_set_status STATUS
11100 # -----------------------
11101 # Set $? to STATUS, without forking.
11102 as_fn_set_status ()
11105 } # as_fn_set_status
11107 # as_fn_exit STATUS
11108 # -----------------
11109 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11113 as_fn_set_status $1
11119 # Portably unset VAR.
11122 { eval $1=; unset $1;}
11124 as_unset=as_fn_unset
11125 # as_fn_append VAR VALUE
11126 # ----------------------
11127 # Append the text in VALUE to the end of the definition contained in VAR. Take
11128 # advantage of any shell optimizations that allow amortized linear growth over
11129 # repeated appends, instead of the typical quadratic growth present in naive
11131 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11132 eval 'as_fn_append ()
11143 # as_fn_arith ARG...
11144 # ------------------
11145 # Perform arithmetic evaluation on the ARGs, and store the result in the
11146 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11147 # must be portable across $(()) and expr.
11148 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11149 eval 'as_fn_arith ()
11156 as_val=`expr "$@" || test $? -eq 1`
11161 if expr a : '\(a\)' >/dev/null 2>&1 &&
11162 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11168 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11169 as_basename=basename
11174 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11180 as_me=`$as_basename -- "$0" ||
11181 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11182 X"$0" : 'X\(//\)$' \| \
11183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11185 sed '/^.*\/\([^/][^/]*\)\/*$/{
11199 # Avoid depending upon Character Ranges.
11200 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11203 as_cr_digits='0123456789'
11204 as_cr_alnum=$as_cr_Letters$as_cr_digits
11206 ECHO_C= ECHO_N= ECHO_T=
11207 case `echo -n x` in #(((((
11209 case `echo 'xy\c'` in
11210 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11212 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11219 rm -f conf$$ conf$$.exe conf$$.file
11220 if test -d conf$$.dir; then
11221 rm -f conf$$.dir/conf$$.file
11224 mkdir conf$$.dir 2>/dev/null
11226 if (echo >conf$$.file) 2>/dev/null; then
11227 if ln -s conf$$.file conf$$ 2>/dev/null; then
11229 # ... but there are two gotchas:
11230 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11231 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11232 # In both cases, we have to default to `cp -p'.
11233 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11235 elif ln conf$$.file conf$$ 2>/dev/null; then
11243 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11244 rmdir conf$$.dir 2>/dev/null
11249 # Create "$as_dir" as a directory, including parents if necessary.
11254 -*) as_dir=./$as_dir;;
11256 test -d "$as_dir" || eval $as_mkdir_p || {
11260 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11261 *) as_qdir=$as_dir;;
11263 as_dirs="'$as_qdir' $as_dirs"
11264 as_dir=`$as_dirname -- "$as_dir" ||
11265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11266 X"$as_dir" : 'X\(//\)[^/]' \| \
11267 X"$as_dir" : 'X\(//\)$' \| \
11268 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11269 $as_echo X"$as_dir" |
11270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11274 /^X\(\/\/\)[^/].*/{
11287 test -d "$as_dir" && break
11289 test -z "$as_dirs" || eval "mkdir $as_dirs"
11290 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11294 if mkdir -p . 2>/dev/null; then
11295 as_mkdir_p='mkdir -p "$as_dir"'
11297 test -d ./-p && rmdir ./-p
11301 if test -x / >/dev/null 2>&1; then
11302 as_test_x='test -x'
11304 if ls -dL / >/dev/null 2>&1; then
11311 if test -d "$1"; then
11317 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11318 ???[sx]*):;;*)false;;esac;fi
11322 as_executable_p=$as_test_x
11324 # Sed expression to map a string onto a valid CPP name.
11325 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11327 # Sed expression to map a string onto a valid variable name.
11328 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11332 ## ----------------------------------- ##
11333 ## Main body of $CONFIG_STATUS script. ##
11334 ## ----------------------------------- ##
11336 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11339 # Save the log message, to keep $0 and so on meaningful, and to
11340 # report actual input values of CONFIG_FILES etc. instead of their
11341 # values after options handling.
11343 This file was extended by xmodmap $as_me 1.0.7, which was
11344 generated by GNU Autoconf 2.68. Invocation command line was
11346 CONFIG_FILES = $CONFIG_FILES
11347 CONFIG_HEADERS = $CONFIG_HEADERS
11348 CONFIG_LINKS = $CONFIG_LINKS
11349 CONFIG_COMMANDS = $CONFIG_COMMANDS
11352 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11357 case $ac_config_files in *"
11358 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11361 case $ac_config_headers in *"
11362 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11367 # Files that config.status was made for.
11368 config_files="$ac_config_files"
11369 config_headers="$ac_config_headers"
11370 config_commands="$ac_config_commands"
11374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11376 \`$as_me' instantiates files and other configuration actions
11377 from templates according to the current configuration. Unless the files
11378 and actions are specified as TAGs, all are instantiated by default.
11380 Usage: $0 [OPTION]... [TAG]...
11382 -h, --help print this help, then exit
11383 -V, --version print version number and configuration settings, then exit
11384 --config print configuration, then exit
11385 -q, --quiet, --silent
11386 do not print progress messages
11387 -d, --debug don't remove temporary files
11388 --recheck update $as_me by reconfiguring in the same conditions
11389 --file=FILE[:TEMPLATE]
11390 instantiate the configuration file FILE
11391 --header=FILE[:TEMPLATE]
11392 instantiate the configuration header FILE
11394 Configuration files:
11397 Configuration headers:
11400 Configuration commands:
11403 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11407 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11409 xmodmap config.status 1.0.7
11410 configured by $0, generated by GNU Autoconf 2.68,
11411 with options \\"\$ac_cs_config\\"
11413 Copyright (C) 2010 Free Software Foundation, Inc.
11414 This config.status script is free software; the Free Software Foundation
11415 gives unlimited permission to copy, distribute and modify it."
11422 test -n "\$AWK" || AWK=awk
11425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11426 # The default lists apply if the user does not specify any file.
11432 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11433 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11437 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11449 # Handling of the options.
11450 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11452 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11453 $as_echo "$ac_cs_version"; exit ;;
11454 --config | --confi | --conf | --con | --co | --c )
11455 $as_echo "$ac_cs_config"; exit ;;
11456 --debug | --debu | --deb | --de | --d | -d )
11458 --file | --fil | --fi | --f )
11461 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11462 '') as_fn_error $? "missing file argument" ;;
11464 as_fn_append CONFIG_FILES " '$ac_optarg'"
11465 ac_need_defaults=false;;
11466 --header | --heade | --head | --hea )
11469 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11471 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11472 ac_need_defaults=false;;
11474 # Conflict between --help and --header
11475 as_fn_error $? "ambiguous option: \`$1'
11476 Try \`$0 --help' for more information.";;
11477 --help | --hel | -h )
11478 $as_echo "$ac_cs_usage"; exit ;;
11479 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11480 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11483 # This is an error.
11484 -*) as_fn_error $? "unrecognized option: \`$1'
11485 Try \`$0 --help' for more information." ;;
11487 *) as_fn_append ac_config_targets " $1"
11488 ac_need_defaults=false ;;
11494 ac_configure_extra_args=
11496 if $ac_cs_silent; then
11498 ac_configure_extra_args="$ac_configure_extra_args --silent"
11502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11503 if \$ac_cs_recheck; then
11504 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11506 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11507 CONFIG_SHELL='$SHELL'
11508 export CONFIG_SHELL
11513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11518 ## Running $as_me. ##
11524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11528 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11534 # Handling of arguments.
11535 for ac_config_target in $ac_config_targets
11537 case $ac_config_target in
11538 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11539 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11540 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11541 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11543 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11548 # If the user did not use the arguments to specify the items to instantiate,
11549 # then the envvar interface is used. Set only those that are not.
11550 # We use the long form for the default assignment because of an extremely
11551 # bizarre bug on SunOS 4.1.3.
11552 if $ac_need_defaults; then
11553 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11554 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11555 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11558 # Have a temporary directory for convenience. Make it in the build tree
11559 # simply because there is no reason against having it here, and in addition,
11560 # creating and moving files from /tmp can sometimes cause problems.
11561 # Hook for its removal unless debugging.
11562 # Note that there is a small window in which the directory will not be cleaned:
11563 # after its creation but before its name has been assigned to `$tmp'.
11567 trap 'exit_status=$?
11568 : "${ac_tmp:=$tmp}"
11569 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11571 trap 'as_fn_exit 1' 1 2 13 15
11573 # Create a (secure) tmp directory for tmp files.
11576 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11580 tmp=./conf$$-$RANDOM
11581 (umask 077 && mkdir "$tmp")
11582 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11585 # Set up the scripts for CONFIG_FILES section.
11586 # No need to generate them if there are no CONFIG_FILES.
11587 # This happens for instance with `./config.status config.h'.
11588 if test -n "$CONFIG_FILES"; then
11591 ac_cr=`echo X | tr X '\015'`
11592 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11593 # But we know of no other shell where ac_cr would be empty at this
11594 # point, so we can use a bashism as a fallback.
11595 if test "x$ac_cr" = x; then
11596 eval ac_cr=\$\'\\r\'
11598 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11599 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11602 ac_cs_awk_cr=$ac_cr
11605 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11610 echo "cat >conf$$subs.awk <<_ACEOF" &&
11611 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11613 } >conf$$subs.sh ||
11614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11615 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11617 for ac_last_try in false false false false false :; do
11618 . ./conf$$subs.sh ||
11619 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11621 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11622 if test $ac_delim_n = $ac_delim_num; then
11624 elif $ac_last_try; then
11625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11630 rm -f conf$$subs.sh
11632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11633 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11637 s/^/S["/; s/!.*/"]=/
11647 s/\(.\{148\}\)..*/\1/
11649 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11654 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11661 s/\(.\{148\}\)..*/\1/
11663 s/["\\]/\\&/g; s/^/"/; s/$/"/
11667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11672 ' <conf$$subs.awk | sed '
11677 ' >>$CONFIG_STATUS || ac_write_fail=1
11678 rm -f conf$$subs.awk
11679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11681 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11682 for (key in S) S_is_set[key] = 1
11688 nfields = split(line, field, "@")
11690 len = length(field[1])
11691 for (i = 2; i < nfields; i++) {
11693 keylen = length(key)
11694 if (S_is_set[key]) {
11696 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11697 len += length(value) + length(field[++i])
11708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11709 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11710 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11713 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11714 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11717 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11718 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11719 # trailing colons and then remove the whole line if VPATH becomes empty
11720 # (actually we leave an empty line to preserve line numbers).
11721 if test "x$srcdir" = x.; then
11722 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741 fi # test -n "$CONFIG_FILES"
11743 # Set up the scripts for CONFIG_HEADERS section.
11744 # No need to generate them if there are no CONFIG_HEADERS.
11745 # This happens for instance with `./config.status Makefile'.
11746 if test -n "$CONFIG_HEADERS"; then
11747 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11751 # Transform confdefs.h into an awk script `defines.awk', embedded as
11752 # here-document in config.status, that substitutes the proper values into
11753 # config.h.in to produce config.h.
11755 # Create a delimiter string that does not exist in confdefs.h, to ease
11756 # handling of long lines.
11758 for ac_last_try in false false :; do
11759 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11760 if test -z "$ac_tt"; then
11762 elif $ac_last_try; then
11763 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11769 # For the awk script, D is an array of macro values keyed by name,
11770 # likewise P contains macro parameters if any. Preserve backslash
11771 # newline sequences.
11773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11775 s/.\{148\}/&'"$ac_delim"'/g
11778 s/^[ ]*#[ ]*define[ ][ ]*/ /
11785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11787 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11792 D["\1"]=" \3\\\\\\n"\\/p
11794 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11799 s/.\{148\}/&'"$ac_delim"'/g
11804 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11807 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11809 ' <confdefs.h | sed '
11810 s/'"$ac_delim"'/"\\\
11811 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11814 for (key in D) D_is_set[key] = 1
11817 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11819 split(line, arg, " ")
11820 if (arg[1] == "#") {
11824 defundef = substr(arg[1], 2)
11827 split(mac1, mac2, "(") #)
11829 prefix = substr(line, 1, index(line, defundef) - 1)
11830 if (D_is_set[macro]) {
11831 # Preserve the white space surrounding the "#".
11832 print prefix "define", macro P[macro] D[macro]
11835 # Replace #undef with comments. This is necessary, for example,
11836 # in the case of _POSIX_SOURCE, which is predefined and required
11837 # on some systems where configure will not decide to define it.
11838 if (defundef == "undef") {
11839 print "/*", prefix defundef, macro, "*/"
11847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11848 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11849 fi # test -n "$CONFIG_HEADERS"
11852 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11857 :[FHLC]) ac_mode=$ac_tag; continue;;
11859 case $ac_mode$ac_tag in
11861 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11862 :[FH]-) ac_tag=-:-;;
11863 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11880 -) ac_f="$ac_tmp/stdin";;
11881 *) # Look for the file first in the build tree, then in the source tree
11882 # (if the path is not absolute). The absolute path cannot be DOS-style,
11883 # because $ac_f cannot contain `:'.
11887 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11889 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11891 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11892 as_fn_append ac_file_inputs " '$ac_f'"
11895 # Let's still pretend it is `configure' which instantiates (i.e., don't
11896 # use $as_me), people would be surprised to read:
11897 # /* config.h. Generated by config.status. */
11898 configure_input='Generated from '`
11899 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11901 if test x"$ac_file" != x-; then
11902 configure_input="$ac_file. $configure_input"
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11904 $as_echo "$as_me: creating $ac_file" >&6;}
11906 # Neutralize special characters interpreted by sed in replacement strings.
11907 case $configure_input in #(
11908 *\&* | *\|* | *\\* )
11909 ac_sed_conf_input=`$as_echo "$configure_input" |
11910 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11911 *) ac_sed_conf_input=$configure_input;;
11915 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11916 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11921 ac_dir=`$as_dirname -- "$ac_file" ||
11922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11923 X"$ac_file" : 'X\(//\)[^/]' \| \
11924 X"$ac_file" : 'X\(//\)$' \| \
11925 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11926 $as_echo X"$ac_file" |
11927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11931 /^X\(\/\/\)[^/].*/{
11944 as_dir="$ac_dir"; as_fn_mkdir_p
11948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11951 # A ".." for each directory in $ac_dir_suffix.
11952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11953 case $ac_top_builddir_sub in
11954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11958 ac_abs_top_builddir=$ac_pwd
11959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11960 # for backward compatibility:
11961 ac_top_builddir=$ac_top_build_prefix
11964 .) # We are building in place.
11966 ac_top_srcdir=$ac_top_builddir_sub
11967 ac_abs_top_srcdir=$ac_pwd ;;
11968 [\\/]* | ?:[\\/]* ) # Absolute name.
11969 ac_srcdir=$srcdir$ac_dir_suffix;
11970 ac_top_srcdir=$srcdir
11971 ac_abs_top_srcdir=$srcdir ;;
11972 *) # Relative name.
11973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11974 ac_top_srcdir=$ac_top_build_prefix$srcdir
11975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11987 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11988 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11990 ac_MKDIR_P=$MKDIR_P
11992 [\\/$]* | ?:[\\/]* ) ;;
11993 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11998 # If the template does not know about datarootdir, expand it.
11999 # FIXME: This hack should be removed a few years after 2.60.
12000 ac_datarootdir_hack=; ac_datarootdir_seen=
12011 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12012 *datarootdir*) ac_datarootdir_seen=yes;;
12013 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12015 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12018 ac_datarootdir_hack='
12019 s&@datadir@&$datadir&g
12020 s&@docdir@&$docdir&g
12021 s&@infodir@&$infodir&g
12022 s&@localedir@&$localedir&g
12023 s&@mandir@&$mandir&g
12024 s&\\\${datarootdir}&$datarootdir&g' ;;
12028 # Neutralize VPATH when `$srcdir' = `.'.
12029 # Shell code in configure.ac might set extrasub.
12030 # FIXME: do we really want to maintain this feature?
12031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12032 ac_sed_extra="$ac_vpsub
12035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12038 s|@configure_input@|$ac_sed_conf_input|;t t
12039 s&@top_builddir@&$ac_top_builddir_sub&;t t
12040 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12041 s&@srcdir@&$ac_srcdir&;t t
12042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12043 s&@top_srcdir@&$ac_top_srcdir&;t t
12044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12045 s&@builddir@&$ac_builddir&;t t
12046 s&@abs_builddir@&$ac_abs_builddir&;t t
12047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12048 s&@INSTALL@&$ac_INSTALL&;t t
12049 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12050 $ac_datarootdir_hack
12052 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12053 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12055 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12056 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12057 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12058 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12060 which seems to be undefined. Please make sure it is defined" >&5
12061 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12062 which seems to be undefined. Please make sure it is defined" >&2;}
12064 rm -f "$ac_tmp/stdin"
12066 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12067 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12075 if test x"$ac_file" != x-; then
12077 $as_echo "/* $configure_input */" \
12078 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12079 } >"$ac_tmp/config.h" \
12080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12081 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12083 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12086 mv "$ac_tmp/config.h" "$ac_file" \
12087 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12090 $as_echo "/* $configure_input */" \
12091 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12092 || as_fn_error $? "could not create -" "$LINENO" 5
12094 # Compute "$ac_file"'s index in $config_headers.
12097 for _am_header in $config_headers :; do
12098 case $_am_header in
12099 $_am_arg | $_am_arg:* )
12102 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12105 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12106 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12107 X"$_am_arg" : 'X\(//\)[^/]' \| \
12108 X"$_am_arg" : 'X\(//\)$' \| \
12109 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12110 $as_echo X"$_am_arg" |
12111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12115 /^X\(\/\/\)[^/].*/{
12127 s/.*/./; q'`/stamp-h$_am_stamp_count
12130 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12131 $as_echo "$as_me: executing $ac_file commands" >&6;}
12136 case $ac_file$ac_mode in
12137 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12138 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12139 # are listed without --file. Let's play safe and only enable the eval
12140 # if we detect the quoting.
12141 case $CONFIG_FILES in
12142 *\'*) eval set x "$CONFIG_FILES" ;;
12143 *) set x $CONFIG_FILES ;;
12148 # Strip MF so we end up with the name of the file.
12149 mf=`echo "$mf" | sed -e 's/:.*$//'`
12150 # Check whether this is an Automake generated Makefile or not.
12151 # We used to match only the files named `Makefile.in', but
12152 # some people rename them; so instead we look at the file content.
12153 # Grep'ing the first line is not enough: some people post-process
12154 # each Makefile.in and add a new line on top of each file to say so.
12155 # Grep'ing the whole file is not good either: AIX grep has a line
12156 # limit of 2048, but all sed's we know have understand at least 4000.
12157 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12158 dirpart=`$as_dirname -- "$mf" ||
12159 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12160 X"$mf" : 'X\(//\)[^/]' \| \
12161 X"$mf" : 'X\(//\)$' \| \
12162 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12168 /^X\(\/\/\)[^/].*/{
12184 # Extract the definition of DEPDIR, am__include, and am__quote
12185 # from the Makefile without running `make'.
12186 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12187 test -z "$DEPDIR" && continue
12188 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12189 test -z "am__include" && continue
12190 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12191 # When using ansi2knr, U may be empty or an underscore; expand it
12192 U=`sed -n 's/^U = //p' < "$mf"`
12193 # Find all dependency output files, they are included files with
12194 # $(DEPDIR) in their names. We invoke sed twice because it is the
12195 # simplest approach to changing $(DEPDIR) to its actual value in the
12197 for file in `sed -n "
12198 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12199 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12200 # Make sure the directory exists.
12201 test -f "$dirpart/$file" && continue
12202 fdir=`$as_dirname -- "$file" ||
12203 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12204 X"$file" : 'X\(//\)[^/]' \| \
12205 X"$file" : 'X\(//\)$' \| \
12206 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12207 $as_echo X"$file" |
12208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12212 /^X\(\/\/\)[^/].*/{
12225 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12226 # echo "creating $dirpart/$file"
12227 echo '# dummy' > "$dirpart/$file"
12239 ac_clean_files=$ac_clean_files_save
12241 test $ac_write_fail = 0 ||
12242 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12245 # configure is writing to config.log, and then calls config.status.
12246 # config.status does its own redirection, appending to config.log.
12247 # Unfortunately, on DOS this fails, as config.log is still kept open
12248 # by configure, so config.status won't be able to write to it; its
12249 # output is simply discarded. So we exec the FD to /dev/null,
12250 # effectively closing config.log, so it can be properly (re)opened and
12251 # appended to by config.status. When coming back to configure, we
12252 # need to make the FD available again.
12253 if test "$no_create" != yes; then
12255 ac_config_status_args=
12256 test "$silent" = yes &&
12257 ac_config_status_args="$ac_config_status_args --quiet"
12259 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12261 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12262 # would make configure fail if this is the last instruction.
12263 $ac_cs_success || as_fn_exit 1
12265 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12267 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}