2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xkbevd 1.1.3.
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='xkbevd'
563 PACKAGE_TARNAME='xkbevd'
564 PACKAGE_VERSION='1.1.3'
565 PACKAGE_STRING='xkbevd 1.1.3'
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
666 MAINTAINER_MODE_FALSE
676 INSTALL_STRIP_PROGRAM
718 program_transform_name
731 enable_option_checking
732 enable_maintainer_mode
733 enable_dependency_tracking
734 enable_selective_werror
735 enable_strict_compilation
738 ac_precious_vars='build_alias
754 # Initialize some variables set by options.
756 ac_init_version=false
757 ac_unrecognized_opts=
759 # The variables have the same names as the options, with
760 # dashes changed to underlines.
768 program_transform_name=s,x,x,
776 # Installation directory options.
777 # These are left unexpanded so users can "make install exec_prefix=/foo"
778 # and all the variables that are supposed to be based on exec_prefix
779 # by default will actually change.
780 # Use braces instead of parens because sh, perl, etc. also accept them.
781 # (The list follows the same order as the GNU Coding Standards.)
782 bindir='${exec_prefix}/bin'
783 sbindir='${exec_prefix}/sbin'
784 libexecdir='${exec_prefix}/libexec'
785 datarootdir='${prefix}/share'
786 datadir='${datarootdir}'
787 sysconfdir='${prefix}/etc'
788 sharedstatedir='${prefix}/com'
789 localstatedir='${prefix}/var'
790 includedir='${prefix}/include'
791 oldincludedir='/usr/include'
792 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
793 infodir='${datarootdir}/info'
798 libdir='${exec_prefix}/lib'
799 localedir='${datarootdir}/locale'
800 mandir='${datarootdir}/man'
806 # If the previous option needs an argument, assign it.
807 if test -n "$ac_prev"; then
808 eval $ac_prev=\$ac_option
814 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 # Accept the important Cygnus configure options, so we can diagnose typos.
821 case $ac_dashdash$ac_option in
825 -bindir | --bindir | --bindi | --bind | --bin | --bi)
827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 -build | --build | --buil | --bui | --bu)
831 ac_prev=build_alias ;;
832 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833 build_alias=$ac_optarg ;;
835 -cache-file | --cache-file | --cache-fil | --cache-fi \
836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837 ac_prev=cache_file ;;
838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840 cache_file=$ac_optarg ;;
843 cache_file=config.cache ;;
845 -datadir | --datadir | --datadi | --datad)
847 -datadir=* | --datadir=* | --datadi=* | --datad=*)
848 datadir=$ac_optarg ;;
850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851 | --dataroo | --dataro | --datar)
852 ac_prev=datarootdir ;;
853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855 datarootdir=$ac_optarg ;;
857 -disable-* | --disable-*)
858 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error $? "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
871 eval enable_$ac_useropt=no ;;
873 -docdir | --docdir | --docdi | --doc | --do)
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
883 -enable-* | --enable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
897 eval enable_$ac_useropt=\$ac_optarg ;;
899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901 | --exec | --exe | --ex)
902 ac_prev=exec_prefix ;;
903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905 | --exec=* | --exe=* | --ex=*)
906 exec_prefix=$ac_optarg ;;
908 -gas | --gas | --ga | --g)
909 # Obsolete; use --with-gas.
912 -help | --help | --hel | --he | -h)
914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915 ac_init_help=recursive ;;
916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917 ac_init_help=short ;;
919 -host | --host | --hos | --ho)
920 ac_prev=host_alias ;;
921 -host=* | --host=* | --hos=* | --ho=*)
922 host_alias=$ac_optarg ;;
924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
928 htmldir=$ac_optarg ;;
930 -includedir | --includedir | --includedi | --included | --include \
931 | --includ | --inclu | --incl | --inc)
932 ac_prev=includedir ;;
933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934 | --includ=* | --inclu=* | --incl=* | --inc=*)
935 includedir=$ac_optarg ;;
937 -infodir | --infodir | --infodi | --infod | --info | --inf)
939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940 infodir=$ac_optarg ;;
942 -libdir | --libdir | --libdi | --libd)
944 -libdir=* | --libdir=* | --libdi=* | --libd=*)
947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948 | --libexe | --libex | --libe)
949 ac_prev=libexecdir ;;
950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951 | --libexe=* | --libex=* | --libe=*)
952 libexecdir=$ac_optarg ;;
954 -localedir | --localedir | --localedi | --localed | --locale)
956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957 localedir=$ac_optarg ;;
959 -localstatedir | --localstatedir | --localstatedi | --localstated \
960 | --localstate | --localstat | --localsta | --localst | --locals)
961 ac_prev=localstatedir ;;
962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964 localstatedir=$ac_optarg ;;
966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 # Obsolete; use --without-fp.
975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976 | --no-cr | --no-c | -n)
979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985 | --oldin | --oldi | --old | --ol | --o)
986 ac_prev=oldincludedir ;;
987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990 oldincludedir=$ac_optarg ;;
992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997 -program-prefix | --program-prefix | --program-prefi | --program-pref \
998 | --program-pre | --program-pr | --program-p)
999 ac_prev=program_prefix ;;
1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002 program_prefix=$ac_optarg ;;
1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005 | --program-suf | --program-su | --program-s)
1006 ac_prev=program_suffix ;;
1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009 program_suffix=$ac_optarg ;;
1011 -program-transform-name | --program-transform-name \
1012 | --program-transform-nam | --program-transform-na \
1013 | --program-transform-n | --program-transform- \
1014 | --program-transform | --program-transfor \
1015 | --program-transfo | --program-transf \
1016 | --program-trans | --program-tran \
1017 | --progr-tra | --program-tr | --program-t)
1018 ac_prev=program_transform_name ;;
1019 -program-transform-name=* | --program-transform-name=* \
1020 | --program-transform-nam=* | --program-transform-na=* \
1021 | --program-transform-n=* | --program-transform-=* \
1022 | --program-transform=* | --program-transfor=* \
1023 | --program-transfo=* | --program-transf=* \
1024 | --program-trans=* | --program-tran=* \
1025 | --progr-tra=* | --program-tr=* | --program-t=*)
1026 program_transform_name=$ac_optarg ;;
1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031 pdfdir=$ac_optarg ;;
1033 -psdir | --psdir | --psdi | --psd | --ps)
1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1046 sbindir=$ac_optarg ;;
1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050 | --sharedst | --shareds | --shared | --share | --shar \
1052 ac_prev=sharedstatedir ;;
1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1057 sharedstatedir=$ac_optarg ;;
1059 -site | --site | --sit)
1061 -site=* | --site=* | --sit=*)
1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067 srcdir=$ac_optarg ;;
1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070 | --syscon | --sysco | --sysc | --sys | --sy)
1071 ac_prev=sysconfdir ;;
1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074 sysconfdir=$ac_optarg ;;
1076 -target | --target | --targe | --targ | --tar | --ta | --t)
1077 ac_prev=target_alias ;;
1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079 target_alias=$ac_optarg ;;
1081 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084 -version | --version | --versio | --versi | --vers | -V)
1085 ac_init_version=: ;;
1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error $? "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1101 eval with_$ac_useropt=\$ac_optarg ;;
1103 -without-* | --without-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error $? "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1117 eval with_$ac_useropt=no ;;
1120 # Obsolete; use --with-x.
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information"
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 case $ac_envvar in #(
1145 '' | [0-9]* | *[!_$as_cr_alnum]* )
1146 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 as_fn_error $? "missing argument to $ac_option"
1167 if test -n "$ac_unrecognized_opts"; then
1168 case $enable_option_checking in
1170 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 # Check all directory arguments for consistency.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val=\$$ac_var
1182 # Remove trailing slashes.
1185 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186 eval $ac_var=\$ac_val;;
1188 # Be sure to have absolute directory names.
1190 [\\/$]* | ?:[\\/]* ) continue;;
1191 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1193 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1201 target=$target_alias
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used" >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217 test "$silent" = yes && exec 6>/dev/null
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 as_fn_error $? "working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 as_fn_error $? "pwd does not report name of working directory"
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1260 ac_srcdir_defaulted=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 for ac_var in $ac_precious_vars; do
1281 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_${ac_var}_value=\$${ac_var}
1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 # Report the --help message.
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1294 \`configure' configures xkbevd 1.1.3 to adapt to many kinds of systems.
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1301 Defaults for the options are specified in brackets.
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking ...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1325 For better control, use the options below.
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/xkbevd]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1352 --program-prefix=PREFIX prepend PREFIX to installed program names
1353 --program-suffix=SUFFIX append SUFFIX to installed program names
1354 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1357 --build=BUILD configure for building on BUILD [guessed]
1358 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1362 if test -n "$ac_init_help"; then
1363 case $ac_init_help in
1364 short | recursive ) echo "Configuration of xkbevd 1.1.3:";;
1369 --disable-option-checking ignore unrecognized --enable/--with options
1370 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1371 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1372 --enable-maintainer-mode enable make rules and dependencies not useful
1373 (and sometimes confusing) to the casual installer
1374 --disable-dependency-tracking speeds up one-time build
1375 --enable-dependency-tracking do not reject slow dependency extractors
1376 --disable-selective-werror
1377 Turn off selective compiler errors. (default:
1379 --enable-strict-compilation
1380 Enable all warnings from compiler and make them
1381 errors (default: disabled)
1382 --enable-silent-rules less verbose build output (undo: `make V=1')
1383 --disable-silent-rules verbose build output (undo: `make V=0')
1385 Some influential environment variables:
1386 CC C compiler command
1387 CFLAGS C compiler flags
1388 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1389 nonstandard directory <lib dir>
1390 LIBS libraries to pass to the linker, e.g. -l<library>
1391 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1392 you have headers in a nonstandard directory <include dir>
1394 PKG_CONFIG path to pkg-config utility
1395 YACC The `Yet Another Compiler Compiler' implementation to use.
1396 Defaults to the first program found out of: `bison -y', `byacc',
1398 YFLAGS The list of arguments that will be passed by default to $YACC.
1399 This script will default YFLAGS to the empty string to avoid a
1400 default value of `-d' given by some make applications.
1402 C compiler flags for XKBEVD, overriding pkg-config
1403 XKBEVD_LIBS linker flags for XKBEVD, overriding pkg-config
1405 Use these variables to override the choices made by `configure' or to help
1406 it to find libraries and programs with nonstandard names/locations.
1408 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416 test -d "$ac_dir" ||
1417 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1438 .) # We are building in place.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1471 xkbevd configure 1.1.3
1472 generated by GNU Autoconf 2.68
1474 Copyright (C) 2010 Free Software Foundation, Inc.
1475 This configure script is free software; the Free Software Foundation
1476 gives unlimited permission to copy, distribute and modify it.
1481 ## ------------------------ ##
1482 ## Autoconf initialization. ##
1483 ## ------------------------ ##
1485 # ac_fn_c_try_compile LINENO
1486 # --------------------------
1487 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1488 ac_fn_c_try_compile ()
1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491 rm -f conftest.$ac_objext
1492 if { { ac_try="$ac_compile"
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_compile") 2>conftest.err
1501 if test -s conftest.err; then
1502 grep -v '^ *+' conftest.err >conftest.er1
1503 cat conftest.er1 >&5
1504 mv -f conftest.er1 conftest.err
1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1507 test $ac_status = 0; } && {
1508 test -z "$ac_c_werror_flag" ||
1509 test ! -s conftest.err
1510 } && test -s conftest.$ac_objext; then :
1513 $as_echo "$as_me: failed program was:" >&5
1514 sed 's/^/| /' conftest.$ac_ext >&5
1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1519 as_fn_set_status $ac_retval
1521 } # ac_fn_c_try_compile
1523 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1524 # ---------------------------------------------
1525 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1527 ac_fn_c_check_decl ()
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530 as_decl_name=`echo $2|sed 's/ *(.*//'`
1531 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1533 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1534 if eval \${$3+:} false; then :
1535 $as_echo_n "(cached) " >&6
1537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1538 /* end confdefs.h. */
1543 #ifndef $as_decl_name
1545 (void) $as_decl_use;
1547 (void) $as_decl_name;
1555 if ac_fn_c_try_compile "$LINENO"; then :
1560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1564 $as_echo "$ac_res" >&6; }
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567 } # ac_fn_c_check_decl
1569 # ac_fn_c_try_cpp LINENO
1570 # ----------------------
1571 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1575 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } > conftest.i && {
1591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1596 $as_echo "$as_me: failed program was:" >&5
1597 sed 's/^/| /' conftest.$ac_ext >&5
1601 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1602 as_fn_set_status $ac_retval
1606 # ac_fn_c_try_run LINENO
1607 # ----------------------
1608 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1609 # that executables *can* be run.
1612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1613 if { { ac_try="$ac_link"
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619 $as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_link") 2>&5
1622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1624 { { case "(($ac_try" in
1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1626 *) ac_try_echo=$ac_try;;
1628 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1629 $as_echo "$ac_try_echo"; } >&5
1630 (eval "$ac_try") 2>&5
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; }; }; then :
1636 $as_echo "$as_me: program exited with status $ac_status" >&5
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=$ac_status
1642 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
1648 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1649 # -------------------------------------------------------
1650 # Tests whether HEADER exists and can be compiled using the include files in
1651 # INCLUDES, setting the cache variable VAR accordingly.
1652 ac_fn_c_check_header_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661 /* end confdefs.h. */
1665 if ac_fn_c_try_compile "$LINENO"; then :
1670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 $as_echo "$ac_res" >&6; }
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677 } # ac_fn_c_check_header_compile
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 $as_test_x conftest$ac_exeext
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1715 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1716 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1717 # interfere with the next link command; also delete a directory that is
1718 # left behind by Apple's compiler. We do this before executing the actions.
1719 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721 as_fn_set_status $ac_retval
1723 } # ac_fn_c_try_link
1725 # ac_fn_c_check_func LINENO FUNC VAR
1726 # ----------------------------------
1727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1728 ac_fn_c_check_func ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 $as_echo_n "checking for $2... " >&6; }
1733 if eval \${$3+:} false; then :
1734 $as_echo_n "(cached) " >&6
1736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1737 /* end confdefs.h. */
1738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1740 #define $2 innocuous_$2
1742 /* System header to define __stub macros and hopefully few prototypes,
1743 which can conflict with char $2 (); below.
1744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1745 <limits.h> exists even on freestanding compilers. */
1748 # include <limits.h>
1750 # include <assert.h>
1755 /* Override any GCC internal prototype to avoid an error.
1756 Use char because int might match the return type of a GCC
1757 builtin and then its argument prototype would still apply. */
1762 /* The GNU C library defines this for functions which it implements
1763 to always fail with ENOSYS. Some functions are actually named
1764 something starting with __ and the normal name is an alias. */
1765 #if defined __stub_$2 || defined __stub___$2
1777 if ac_fn_c_try_link "$LINENO"; then :
1782 rm -f core conftest.err conftest.$ac_objext \
1783 conftest$ac_exeext conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 $as_echo "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 } # ac_fn_c_check_func
1791 cat >config.log <<_ACEOF
1792 This file contains any messages produced by compilers while
1793 running configure, to aid debugging if configure makes a mistake.
1795 It was created by xkbevd $as_me 1.1.3, which was
1796 generated by GNU Autoconf 2.68. Invocation command line was
1808 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1809 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1810 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1811 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1812 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1814 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1815 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1817 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1818 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1819 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1820 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1821 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1822 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1823 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 test -z "$as_dir" && as_dir=.
1832 $as_echo "PATH: $as_dir"
1848 # Keep a trace of the command line.
1849 # Strip out --no-create and --no-recursion so they do not pile up.
1850 # Strip out --silent because we don't want to record it for future runs.
1851 # Also quote any args containing shell meta-characters.
1852 # Make two passes to allow for proper duplicate-argument suppression.
1856 ac_must_keep_next=false
1862 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1863 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1864 | -silent | --silent | --silen | --sile | --sil)
1867 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1870 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1872 as_fn_append ac_configure_args1 " '$ac_arg'"
1873 if test $ac_must_keep_next = true; then
1874 ac_must_keep_next=false # Got value, back to normal.
1877 *=* | --config-cache | -C | -disable-* | --disable-* \
1878 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1879 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1880 | -with-* | --with-* | -without-* | --without-* | --x)
1881 case "$ac_configure_args0 " in
1882 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1885 -* ) ac_must_keep_next=true ;;
1888 as_fn_append ac_configure_args " '$ac_arg'"
1893 { ac_configure_args0=; unset ac_configure_args0;}
1894 { ac_configure_args1=; unset ac_configure_args1;}
1896 # When interrupted or exit'd, cleanup temporary files, and complete
1897 # config.log. We remove comments because anyway the quotes in there
1898 # would cause problems or look ugly.
1899 # WARNING: Use '\'' to represent an apostrophe within the trap.
1900 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1901 trap 'exit_status=$?
1902 # Save into config.log some information that might help in debugging.
1906 $as_echo "## ---------------- ##
1907 ## Cache variables. ##
1908 ## ---------------- ##"
1910 # The following way of writing the cache mishandles newlines in values,
1912 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1913 eval ac_val=\$$ac_var
1917 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1918 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1921 _ | IFS | as_nl) ;; #(
1922 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1923 *) { eval $ac_var=; unset $ac_var;} ;;
1928 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1929 *${as_nl}ac_space=\ *)
1931 "s/'\''/'\''\\\\'\'''\''/g;
1932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1942 $as_echo "## ----------------- ##
1943 ## Output variables. ##
1944 ## ----------------- ##"
1946 for ac_var in $ac_subst_vars
1948 eval ac_val=\$$ac_var
1950 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1952 $as_echo "$ac_var='\''$ac_val'\''"
1956 if test -n "$ac_subst_files"; then
1957 $as_echo "## ------------------- ##
1958 ## File substitutions. ##
1959 ## ------------------- ##"
1961 for ac_var in $ac_subst_files
1963 eval ac_val=\$$ac_var
1965 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 $as_echo "$ac_var='\''$ac_val'\''"
1972 if test -s confdefs.h; then
1973 $as_echo "## ----------- ##
1980 test "$ac_signal" != 0 &&
1981 $as_echo "$as_me: caught signal $ac_signal"
1982 $as_echo "$as_me: exit $exit_status"
1984 rm -f core *.core core.conftest.* &&
1985 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1988 for ac_signal in 1 2 13 15; do
1989 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1993 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1994 rm -f -r conftest* confdefs.h
1996 $as_echo "/* confdefs.h */" > confdefs.h
1998 # Predefined preprocessor variables.
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_NAME "$PACKAGE_NAME"
2004 cat >>confdefs.h <<_ACEOF
2005 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2008 cat >>confdefs.h <<_ACEOF
2009 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2016 cat >>confdefs.h <<_ACEOF
2017 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020 cat >>confdefs.h <<_ACEOF
2021 #define PACKAGE_URL "$PACKAGE_URL"
2025 # Let the site file select an alternate cache file if it wants to.
2026 # Prefer an explicitly selected file to automatically selected ones.
2029 if test -n "$CONFIG_SITE"; then
2030 # We do not want a PATH search for config.site.
2031 case $CONFIG_SITE in #((
2032 -*) ac_site_file1=./$CONFIG_SITE;;
2033 */*) ac_site_file1=$CONFIG_SITE;;
2034 *) ac_site_file1=./$CONFIG_SITE;;
2036 elif test "x$prefix" != xNONE; then
2037 ac_site_file1=$prefix/share/config.site
2038 ac_site_file2=$prefix/etc/config.site
2040 ac_site_file1=$ac_default_prefix/share/config.site
2041 ac_site_file2=$ac_default_prefix/etc/config.site
2043 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2045 test "x$ac_site_file" = xNONE && continue
2046 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2048 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2049 sed 's/^/| /' "$ac_site_file" >&5
2051 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2053 as_fn_error $? "failed to load site script $ac_site_file
2054 See \`config.log' for more details" "$LINENO" 5; }
2058 if test -r "$cache_file"; then
2059 # Some versions of bash will fail to source /dev/null (special files
2060 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2061 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2063 $as_echo "$as_me: loading cache $cache_file" >&6;}
2065 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2066 *) . "./$cache_file";;
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2071 $as_echo "$as_me: creating cache $cache_file" >&6;}
2075 # Check that the precious variables saved in the cache have kept the same
2077 ac_cache_corrupted=false
2078 for ac_var in $ac_precious_vars; do
2079 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2080 eval ac_new_set=\$ac_env_${ac_var}_set
2081 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2082 eval ac_new_val=\$ac_env_${ac_var}_value
2083 case $ac_old_set,$ac_new_set in
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2086 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2087 ac_cache_corrupted=: ;;
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2090 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2091 ac_cache_corrupted=: ;;
2094 if test "x$ac_old_val" != "x$ac_new_val"; then
2095 # differences in whitespace do not lead to failure.
2096 ac_old_val_w=`echo x $ac_old_val`
2097 ac_new_val_w=`echo x $ac_new_val`
2098 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2100 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2101 ac_cache_corrupted=:
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2104 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2105 eval $ac_var=\$ac_old_val
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2108 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2110 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2113 # Pass precious variables to config.status.
2114 if test "$ac_new_set" = set; then
2116 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2117 *) ac_arg=$ac_var=$ac_new_val ;;
2119 case " $ac_configure_args " in
2120 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2121 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2125 if $ac_cache_corrupted; then
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2129 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2130 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2132 ## -------------------- ##
2133 ## Main body of script. ##
2134 ## -------------------- ##
2137 ac_cpp='$CPP $CPPFLAGS'
2138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144 ac_config_headers="$ac_config_headers config.h"
2147 # Initialize Automake
2148 am__api_version='1.11'
2151 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2152 if test -f "$ac_dir/install-sh"; then
2154 ac_install_sh="$ac_aux_dir/install-sh -c"
2156 elif test -f "$ac_dir/install.sh"; then
2158 ac_install_sh="$ac_aux_dir/install.sh -c"
2160 elif test -f "$ac_dir/shtool"; then
2162 ac_install_sh="$ac_aux_dir/shtool install -c"
2166 if test -z "$ac_aux_dir"; then
2167 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2170 # These three variables are undocumented and unsupported,
2171 # and are intended to be withdrawn in a future Autoconf release.
2172 # They can cause serious problems if a builder's source tree is in a directory
2173 # whose full name contains unusual characters.
2174 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2175 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2176 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2179 # Find a good install program. We prefer a C program (faster),
2180 # so one script is as good as another. But avoid the broken or
2181 # incompatible versions:
2182 # SysV /etc/install, /usr/sbin/install
2183 # SunOS /usr/etc/install
2184 # IRIX /sbin/install
2186 # AmigaOS /C/install, which installs bootblocks on floppy discs
2187 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2188 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2189 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2190 # OS/2's system install, which has a completely different semantic
2191 # ./install, which can be erroneously created by make from ./install.sh.
2192 # Reject install programs that cannot install multiple files.
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2194 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2195 if test -z "$INSTALL"; then
2196 if ${ac_cv_path_install+:} false; then :
2197 $as_echo_n "(cached) " >&6
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 # Account for people who put trailing slashes in PATH elements.
2205 case $as_dir/ in #((
2206 ./ | .// | /[cC]/* | \
2207 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2208 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2211 # OSF1 and SCO ODT 3.0 have their own names for install.
2212 # Don't use installbsd from OSF since it installs stuff as root
2214 for ac_prog in ginstall scoinst install; do
2215 for ac_exec_ext in '' $ac_executable_extensions; do
2216 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2217 if test $ac_prog = install &&
2218 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2219 # AIX install. It has an incompatible calling convention.
2221 elif test $ac_prog = install &&
2222 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2223 # program-specific install script used by HP pwplus--don't use.
2226 rm -rf conftest.one conftest.two conftest.dir
2227 echo one > conftest.one
2228 echo two > conftest.two
2230 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2231 test -s conftest.one && test -s conftest.two &&
2232 test -s conftest.dir/conftest.one &&
2233 test -s conftest.dir/conftest.two
2235 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2248 rm -rf conftest.one conftest.two conftest.dir
2251 if test "${ac_cv_path_install+set}" = set; then
2252 INSTALL=$ac_cv_path_install
2254 # As a last resort, use the slow shell script. Don't cache a
2255 # value for INSTALL within a source directory, because that will
2256 # break other packages using the cache if that directory is
2257 # removed, or if the value is a relative name.
2258 INSTALL=$ac_install_sh
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2262 $as_echo "$INSTALL" >&6; }
2264 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2265 # It thinks the first close brace ends the variable substitution.
2266 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2268 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2270 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2273 $as_echo_n "checking whether build environment is sane... " >&6; }
2276 echo timestamp > conftest.file
2277 # Reject unsafe characters in $srcdir or the absolute working directory
2278 # name. Accept space and tab only in the latter.
2282 *[\\\"\#\$\&\'\`$am_lf]*)
2283 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2286 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2287 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2290 # Do `set' in a subshell so we don't clobber the current shell's
2291 # arguments. Must try -L first in case configure is actually a
2292 # symlink; some systems play weird games with the mod time of symlinks
2293 # (eg FreeBSD returns the mod time of the symlink's containing
2296 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2297 if test "$*" = "X"; then
2299 set X `ls -t "$srcdir/configure" conftest.file`
2302 if test "$*" != "X $srcdir/configure conftest.file" \
2303 && test "$*" != "X conftest.file $srcdir/configure"; then
2305 # If neither matched, then we have a broken ls. This can happen
2306 # if, for instance, CONFIG_SHELL is bash and it inherits a
2307 # broken ls alias from the environment. This has actually
2308 # happened. Such a system could not be considered "sane".
2309 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2310 alias in your environment" "$LINENO" 5
2313 test "$2" = conftest.file
2319 as_fn_error $? "newly created file is older than distributed files!
2320 Check your system clock" "$LINENO" 5
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2323 $as_echo "yes" >&6; }
2324 test "$program_prefix" != NONE &&
2325 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2326 # Use a double $ so make ignores it.
2327 test "$program_suffix" != NONE &&
2328 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2329 # Double any \ or $.
2330 # By default was `s,x,x', remove it if useless.
2331 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2332 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2334 # expand $ac_aux_dir to an absolute path
2335 am_aux_dir=`cd $ac_aux_dir && pwd`
2337 if test x"${MISSING+set}" != xset; then
2340 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2342 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2345 # Use eval to expand $SHELL
2346 if eval "$MISSING --run true"; then
2347 am_missing_run="$MISSING --run "
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2351 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2354 if test x"${install_sh}" != xset; then
2357 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2359 install_sh="\${SHELL} $am_aux_dir/install-sh"
2363 # Installed binaries are usually stripped using `strip' when the user
2364 # run `make install-strip'. However `strip' might not be the right
2365 # tool to use in cross-compilation environments, therefore Automake
2366 # will honor the `STRIP' environment variable to overrule this program.
2367 if test "$cross_compiling" != no; then
2368 if test -n "$ac_tool_prefix"; then
2369 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2370 set dummy ${ac_tool_prefix}strip; ac_word=$2
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2372 $as_echo_n "checking for $ac_word... " >&6; }
2373 if ${ac_cv_prog_STRIP+:} false; then :
2374 $as_echo_n "(cached) " >&6
2376 if test -n "$STRIP"; then
2377 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 STRIP=$ac_cv_prog_STRIP
2397 if test -n "$STRIP"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2399 $as_echo "$STRIP" >&6; }
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2402 $as_echo "no" >&6; }
2407 if test -z "$ac_cv_prog_STRIP"; then
2409 # Extract the first word of "strip", so it can be a program name with args.
2410 set dummy strip; ac_word=$2
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2412 $as_echo_n "checking for $ac_word... " >&6; }
2413 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2414 $as_echo_n "(cached) " >&6
2416 if test -n "$ac_ct_STRIP"; then
2417 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2426 ac_cv_prog_ac_ct_STRIP="strip"
2427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2437 if test -n "$ac_ct_STRIP"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2439 $as_echo "$ac_ct_STRIP" >&6; }
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2442 $as_echo "no" >&6; }
2445 if test "x$ac_ct_STRIP" = x; then
2448 case $cross_compiling:$ac_tool_warned in
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2452 ac_tool_warned=yes ;;
2457 STRIP="$ac_cv_prog_STRIP"
2461 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2464 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2465 if test -z "$MKDIR_P"; then
2466 if ${ac_cv_path_mkdir+:} false; then :
2467 $as_echo_n "(cached) " >&6
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2473 test -z "$as_dir" && as_dir=.
2474 for ac_prog in mkdir gmkdir; do
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2477 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2478 'mkdir (GNU coreutils) '* | \
2479 'mkdir (coreutils) '* | \
2480 'mkdir (fileutils) '4.1*)
2481 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2491 test -d ./--version && rmdir ./--version
2492 if test "${ac_cv_path_mkdir+set}" = set; then
2493 MKDIR_P="$ac_cv_path_mkdir -p"
2495 # As a last resort, use the slow shell script. Don't cache a
2496 # value for MKDIR_P within a source directory, because that will
2497 # break other packages using the cache if that directory is
2498 # removed, or if the value is a relative name.
2499 MKDIR_P="$ac_install_sh -d"
2502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2503 $as_echo "$MKDIR_P" >&6; }
2507 [\\/$]* | ?:[\\/]*) ;;
2508 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2511 for ac_prog in gawk mawk nawk awk
2513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_AWK+:} false; then :
2518 $as_echo_n "(cached) " >&6
2520 if test -n "$AWK"; then
2521 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_AWK="$ac_prog"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 if test -n "$AWK"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2543 $as_echo "$AWK" >&6; }
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2550 test -n "$AWK" && break
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2554 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2556 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2557 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2558 $as_echo_n "(cached) " >&6
2560 cat >conftest.make <<\_ACEOF
2563 @echo '@@@%%%=$(MAKE)=@@@%%%'
2565 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2566 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2568 eval ac_cv_prog_make_${ac_make}_set=yes;;
2570 eval ac_cv_prog_make_${ac_make}_set=no;;
2574 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576 $as_echo "yes" >&6; }
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 $as_echo "no" >&6; }
2581 SET_MAKE="MAKE=${MAKE-make}"
2584 rm -rf .tst 2>/dev/null
2585 mkdir .tst 2>/dev/null
2586 if test -d .tst; then
2591 rmdir .tst 2>/dev/null
2593 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2594 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2595 # is not polluted with repeated "-I."
2596 am__isrc=' -I$(srcdir)'
2597 # test to see if srcdir already configured
2598 if test -f $srcdir/config.status; then
2599 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2603 # test whether we have cygpath
2604 if test -z "$CYGPATH_W"; then
2605 if (cygpath --version) >/dev/null 2>/dev/null; then
2606 CYGPATH_W='cygpath -w'
2613 # Define the identity of the package.
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE "$PACKAGE"
2623 cat >>confdefs.h <<_ACEOF
2624 #define VERSION "$VERSION"
2627 # Some tools Automake needs.
2629 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2632 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2635 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2638 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2641 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2643 # We need awk for the "check" target. The system "awk" is bad on
2645 # Always define AMTAR for backward compatibility.
2647 AMTAR=${AMTAR-"${am_missing_run}tar"}
2649 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2657 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2658 # Check whether --enable-maintainer-mode was given.
2659 if test "${enable_maintainer_mode+set}" = set; then :
2660 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2662 USE_MAINTAINER_MODE=no
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2666 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2667 if test $USE_MAINTAINER_MODE = yes; then
2668 MAINTAINER_MODE_TRUE=
2669 MAINTAINER_MODE_FALSE='#'
2671 MAINTAINER_MODE_TRUE='#'
2672 MAINTAINER_MODE_FALSE=
2675 MAINT=$MAINTAINER_MODE_TRUE
2679 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2691 DEPDIR="${am__leading_dot}deps"
2693 ac_config_commands="$ac_config_commands depfiles"
2696 am_make=${MAKE-make}
2697 cat > confinc << 'END'
2699 @echo this is the am__doit target
2702 # If we don't find an include directive, just comment out the code.
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2704 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2708 # First try GNU make style include.
2709 echo "include confinc" > confmf
2710 # Ignore all kinds of additional output from `make'.
2711 case `$am_make -s -f confmf 2> /dev/null` in #(
2712 *the\ am__doit\ target*)
2718 # Now try BSD make style include.
2719 if test "$am__include" = "#"; then
2720 echo '.include "confinc"' > confmf
2721 case `$am_make -s -f confmf 2> /dev/null` in #(
2722 *the\ am__doit\ target*)
2723 am__include=.include
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2732 $as_echo "$_am_result" >&6; }
2733 rm -f confinc confmf
2735 # Check whether --enable-dependency-tracking was given.
2736 if test "${enable_dependency_tracking+set}" = set; then :
2737 enableval=$enable_dependency_tracking;
2740 if test "x$enable_dependency_tracking" != xno; then
2741 am_depcomp="$ac_aux_dir/depcomp"
2744 if test "x$enable_dependency_tracking" != xno; then
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 if test -n "$ac_tool_prefix"; then
2759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_CC+:} false; then :
2764 $as_echo_n "(cached) " >&6
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2797 if test -z "$ac_cv_prog_CC"; then
2799 # Extract the first word of "gcc", so it can be a program name with args.
2800 set dummy gcc; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2804 $as_echo_n "(cached) " >&6
2806 if test -n "$ac_ct_CC"; then
2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_ac_ct_CC="gcc"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2835 if test "x$ac_ct_CC" = x; then
2838 case $cross_compiling:$ac_tool_warned in
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CC+:} false; then :
2857 $as_echo_n "(cached) " >&6
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2869 ac_cv_prog_CC="${ac_tool_prefix}cc"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2891 if test -z "$CC"; then
2892 # Extract the first word of "cc", so it can be a program name with args.
2893 set dummy cc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2911 ac_prog_rejected=yes
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 if test $ac_prog_rejected = yes; then
2923 # We found a bogon in the path, so make sure we never use it.
2924 set dummy $ac_cv_prog_CC
2926 if test $# != 0; then
2927 # We chose a different compiler from the bogus one.
2928 # However, it has the same basename, so the bogon will be chosen
2929 # first if we set CC to just the basename; use the full file name.
2931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 for ac_prog in cl.exe
2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2988 test -n "$CC" && break
2991 if test -z "$CC"; then
2993 for ac_prog in cl.exe
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3012 ac_cv_prog_ac_ct_CC="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3032 test -n "$ac_ct_CC" && break
3035 if test "x$ac_ct_CC" = x; then
3038 case $cross_compiling:$ac_tool_warned in
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error $? "no acceptable C compiler found in \$PATH
3054 See \`config.log' for more details" "$LINENO" 5; }
3056 # Provide some information about the compiler.
3057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3060 for ac_option in --version -v -V -qversion; do
3061 { { ac_try="$ac_compiler $ac_option >&5"
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3070 if test -s conftest.err; then
3072 ... rest of stderr output deleted ...
3073 10q' conftest.err >conftest.er1
3074 cat conftest.er1 >&5
3076 rm -f conftest.er1 conftest.err
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3092 ac_clean_files_save=$ac_clean_files
3093 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3094 # Try to create an executable without -o first, disregard a.out.
3095 # It will help us diagnose broken compilers, and finding out an intuition
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3098 $as_echo_n "checking whether the C compiler works... " >&6; }
3099 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3101 # The possible output files:
3102 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3105 for ac_file in $ac_files
3108 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3109 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3114 if { { ac_try="$ac_link_default"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3120 $as_echo "$ac_try_echo"; } >&5
3121 (eval "$ac_link_default") 2>&5
3123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3124 test $ac_status = 0; }; then :
3125 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3126 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3127 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3128 # so that the user can short-circuit this test for compilers unknown to
3130 for ac_file in $ac_files ''
3132 test -f "$ac_file" || continue
3134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3137 # We found the default executable, but exeext='' is most
3141 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3143 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3145 # We set ac_cv_exeext here because the later test for it is not
3146 # safe: cross compilers may not add the suffix if given an `-o'
3147 # argument, so we may need to know it at that point already.
3148 # Even if this section looks crufty: it has the advantage of
3155 test "$ac_cv_exeext" = no && ac_cv_exeext=
3160 if test -z "$ac_file"; then :
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3162 $as_echo "no" >&6; }
3163 $as_echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error 77 "C compiler cannot create executables
3169 See \`config.log' for more details" "$LINENO" 5; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3172 $as_echo "yes" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3175 $as_echo_n "checking for C compiler default output file name... " >&6; }
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3177 $as_echo "$ac_file" >&6; }
3178 ac_exeext=$ac_cv_exeext
3180 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3181 ac_clean_files=$ac_clean_files_save
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3183 $as_echo_n "checking for suffix of executables... " >&6; }
3184 if { { ac_try="$ac_link"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_link") 2>&5
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3196 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3197 # work properly (i.e., refer to `conftest.exe'), while it won't with
3199 for ac_file in conftest.exe conftest conftest.*; do
3200 test -f "$ac_file" || continue
3202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3203 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3212 See \`config.log' for more details" "$LINENO" 5; }
3214 rm -f conftest conftest$ac_cv_exeext
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3216 $as_echo "$ac_cv_exeext" >&6; }
3218 rm -f conftest.$ac_ext
3219 EXEEXT=$ac_cv_exeext
3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222 /* end confdefs.h. */
3227 FILE *f = fopen ("conftest.out", "w");
3228 return ferror (f) || fclose (f) != 0;
3234 ac_clean_files="$ac_clean_files conftest.out"
3235 # Check that the compiler produces executables we can run. If not, either
3236 # the compiler is broken, or we cross compile.
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3238 $as_echo_n "checking whether we are cross compiling... " >&6; }
3239 if test "$cross_compiling" != yes; then
3240 { { ac_try="$ac_link"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3246 $as_echo "$ac_try_echo"; } >&5
3247 (eval "$ac_link") 2>&5
3249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3250 test $ac_status = 0; }
3251 if { ac_try='./conftest$ac_cv_exeext'
3252 { { case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_try") 2>&5
3260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; }; then
3264 if test "$cross_compiling" = maybe; then
3267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3269 as_fn_error $? "cannot run C compiled programs.
3270 If you meant to cross compile, use \`--host'.
3271 See \`config.log' for more details" "$LINENO" 5; }
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3276 $as_echo "$cross_compiling" >&6; }
3278 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3279 ac_clean_files=$ac_clean_files_save
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3281 $as_echo_n "checking for suffix of object files... " >&6; }
3282 if ${ac_cv_objext+:} false; then :
3283 $as_echo_n "(cached) " >&6
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286 /* end confdefs.h. */
3296 rm -f conftest.o conftest.obj
3297 if { { ac_try="$ac_compile"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303 $as_echo "$ac_try_echo"; } >&5
3304 (eval "$ac_compile") 2>&5
3306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
3308 for ac_file in conftest.o conftest.obj conftest.*; do
3309 test -f "$ac_file" || continue;
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3312 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "cannot compute suffix of object files: cannot compile
3323 See \`config.log' for more details" "$LINENO" 5; }
3325 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3328 $as_echo "$ac_cv_objext" >&6; }
3329 OBJEXT=$ac_cv_objext
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3332 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3333 if ${ac_cv_c_compiler_gnu+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3350 if ac_fn_c_try_compile "$LINENO"; then :
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3360 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3361 if test $ac_compiler_gnu = yes; then
3366 ac_test_CFLAGS=${CFLAGS+set}
3367 ac_save_CFLAGS=$CFLAGS
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3369 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3370 if ${ac_cv_prog_cc_g+:} false; then :
3371 $as_echo_n "(cached) " >&6
3373 ac_save_c_werror_flag=$ac_c_werror_flag
3374 ac_c_werror_flag=yes
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3388 if ac_fn_c_try_compile "$LINENO"; then :
3392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3393 /* end confdefs.h. */
3403 if ac_fn_c_try_compile "$LINENO"; then :
3406 ac_c_werror_flag=$ac_save_c_werror_flag
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3419 if ac_fn_c_try_compile "$LINENO"; then :
3422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3427 ac_c_werror_flag=$ac_save_c_werror_flag
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3430 $as_echo "$ac_cv_prog_cc_g" >&6; }
3431 if test "$ac_test_CFLAGS" = set; then
3432 CFLAGS=$ac_save_CFLAGS
3433 elif test $ac_cv_prog_cc_g = yes; then
3434 if test "$GCC" = yes; then
3440 if test "$GCC" = yes; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3447 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3448 if ${ac_cv_prog_cc_c89+:} false; then :
3449 $as_echo_n "(cached) " >&6
3451 ac_cv_prog_cc_c89=no
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3457 #include <sys/types.h>
3458 #include <sys/stat.h>
3459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3460 struct buf { int x; };
3461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3462 static char *e (p, i)
3468 static char *f (char * (*g) (char **, int), char **p, ...)
3473 s = g (p, va_arg (v,int));
3478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3479 function prototypes and stuff, but not '\xHH' hex character constants.
3480 These don't provoke an error unfortunately, instead are silently treated
3481 as 'x'. The following induces an error, until -std is added to get
3482 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3483 array size at least. It's necessary to write '\x00'==0 to get something
3484 that's true only with -std. */
3485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3487 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3488 inside strings and character constants. */
3490 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3492 int test (int i, double x);
3493 struct s1 {int (*f) (int a);};
3494 struct s2 {int (*f) (double a);};
3495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3501 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3506 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3507 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3509 CC="$ac_save_CC $ac_arg"
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_cv_prog_cc_c89=$ac_arg
3513 rm -f core conftest.err conftest.$ac_objext
3514 test "x$ac_cv_prog_cc_c89" != "xno" && break
3516 rm -f conftest.$ac_ext
3521 case "x$ac_cv_prog_cc_c89" in
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3524 $as_echo "none needed" >&6; } ;;
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3527 $as_echo "unsupported" >&6; } ;;
3529 CC="$CC $ac_cv_prog_cc_c89"
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3531 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3533 if test "x$ac_cv_prog_cc_c89" != xno; then :
3538 ac_cpp='$CPP $CPPFLAGS'
3539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 depcc="$CC" am_compiler_list=
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3546 $as_echo_n "checking dependency style of $depcc... " >&6; }
3547 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3548 $as_echo_n "(cached) " >&6
3550 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3551 # We make a subdir and do the tests there. Otherwise we can end up
3552 # making bogus files that we don't know about and never remove. For
3553 # instance it was reported that on HP-UX the gcc test will end up
3554 # making a dummy file named `D' -- because `-MD' means `put the output
3557 # Copy depcomp to subdir because otherwise we won't find it if we're
3558 # using a relative directory.
3559 cp "$am_depcomp" conftest.dir
3561 # We will build objects and dependencies in a subdirectory because
3562 # it helps to detect inapplicable dependency modes. For instance
3563 # both Tru64's cc and ICC support -MD to output dependencies as a
3564 # side effect of compilation, but ICC will put the dependencies in
3565 # the current directory while Tru64 will put them in the object
3569 am_cv_CC_dependencies_compiler_type=none
3570 if test "$am_compiler_list" = ""; then
3571 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3574 case " $depcc " in #(
3575 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3578 for depmode in $am_compiler_list; do
3579 # Setup a source with many dependencies, because some compilers
3580 # like to wrap large dependency lists on column 80 (with \), and
3581 # we should not choose a depcomp mode which is confused by this.
3583 # We need to recreate these files for each test, as the compiler may
3584 # overwrite some of them when testing with obscure command lines.
3585 # This happens at least with the AIX C compiler.
3587 for i in 1 2 3 4 5 6; do
3588 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3589 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3590 # Solaris 8's {/usr,}/bin/sh.
3591 touch sub/conftst$i.h
3593 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3595 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596 # mode. It turns out that the SunPro C++ compiler does not properly
3597 # handle `-M -o', and we need to detect this. Also, some Intel
3598 # versions had trouble with output in subdirs
3599 am__obj=sub/conftest.${OBJEXT-o}
3600 am__minus_obj="-o $am__obj"
3603 # This depmode causes a compiler race in universal mode.
3604 test "$am__universal" = false || continue
3607 # after this tag, mechanisms are not by side-effect, so they'll
3608 # only be used when explicitly requested
3609 if test "x$enable_dependency_tracking" = xyes; then
3615 msvisualcpp | msvcmsys)
3616 # This compiler won't grok `-c -o', but also, the minuso test has
3617 # not run yet. These depmodes are late enough in the game, and
3618 # so weak that their functioning should not be impacted.
3619 am__obj=conftest.${OBJEXT-o}
3624 if depmode=$depmode \
3625 source=sub/conftest.c object=$am__obj \
3626 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3627 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3628 >/dev/null 2>conftest.err &&
3629 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3630 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3631 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3632 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3633 # icc doesn't choke on unknown options, it will just issue warnings
3634 # or remarks (even with -Werror). So we grep stderr for any message
3635 # that says an option was ignored or not supported.
3636 # When given -MP, icc 7.0 and 7.1 complain thusly:
3637 # icc: Command line warning: ignoring option '-M'; no argument required
3638 # The diagnosis changed in icc 8.0:
3639 # icc: Command line remark: option '-MP' not supported
3640 if (grep 'ignoring option' conftest.err ||
3641 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3642 am_cv_CC_dependencies_compiler_type=$depmode
3651 am_cv_CC_dependencies_compiler_type=none
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3656 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3657 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3660 test "x$enable_dependency_tracking" != xno \
3661 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3663 am__fastdepCC_FALSE='#'
3665 am__fastdepCC_TRUE='#'
3666 am__fastdepCC_FALSE=
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3671 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3672 if ${ac_cv_prog_cc_c99+:} false; then :
3673 $as_echo_n "(cached) " >&6
3675 ac_cv_prog_cc_c99=no
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3680 #include <stdbool.h>
3685 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3686 #define debug(...) fprintf (stderr, __VA_ARGS__)
3687 #define showlist(...) puts (#__VA_ARGS__)
3688 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3690 test_varargs_macros (void)
3695 debug ("X = %d\n", x);
3696 showlist (The first, second, and third items.);
3697 report (x>y, "x is %d but y is %d", x, y);
3700 // Check long long types.
3701 #define BIG64 18446744073709551615ull
3702 #define BIG32 4294967295ul
3703 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3705 your preprocessor is broken;
3709 your preprocessor is broken;
3711 static long long int bignum = -9223372036854775807LL;
3712 static unsigned long long int ubignum = BIG64;
3714 struct incomplete_array
3722 const wchar_t *name;
3726 typedef const char *ccp;
3729 test_restrict (ccp restrict text)
3731 // See if C++-style comments work.
3732 // Iterate through items via the restricted pointer.
3733 // Also check for declarations in for loops.
3734 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3739 // Check varargs and va_copy.
3741 test_varargs (const char *format, ...)
3744 va_start (args, format);
3746 va_copy (args_copy, args);
3757 str = va_arg (args_copy, const char *);
3760 number = va_arg (args_copy, int);
3763 fnumber = va_arg (args_copy, double);
3778 _Bool success = false;
3781 if (test_restrict ("String literal") == 0)
3783 char *restrict newvar = "Another string";
3786 test_varargs ("s, d' f .", "string", 65, 34.234);
3787 test_varargs_macros ();
3789 // Check flexible array members.
3790 struct incomplete_array *ia =
3791 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3793 for (int i = 0; i < ia->datasize; ++i)
3794 ia->data[i] = i * 1.234;
3796 // Check named initializers.
3797 struct named_init ni = {
3799 .name = L"Test wide string",
3800 .average = 543.34343,
3805 int dynamic_array[ni.number];
3806 dynamic_array[ni.number - 1] = 543;
3808 // work around unused variable warnings
3809 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3810 || dynamic_array[ni.number - 1] != 543);
3816 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3818 CC="$ac_save_CC $ac_arg"
3819 if ac_fn_c_try_compile "$LINENO"; then :
3820 ac_cv_prog_cc_c99=$ac_arg
3822 rm -f core conftest.err conftest.$ac_objext
3823 test "x$ac_cv_prog_cc_c99" != "xno" && break
3825 rm -f conftest.$ac_ext
3830 case "x$ac_cv_prog_cc_c99" in
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3833 $as_echo "none needed" >&6; } ;;
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3836 $as_echo "unsupported" >&6; } ;;
3838 CC="$CC $ac_cv_prog_cc_c99"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3840 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3842 if test "x$ac_cv_prog_cc_c99" != xno; then :
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3854 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3855 # On Suns, sometimes $CPP names a directory.
3856 if test -n "$CPP" && test -d "$CPP"; then
3859 if test -z "$CPP"; then
3860 if ${ac_cv_prog_CPP+:} false; then :
3861 $as_echo_n "(cached) " >&6
3863 # Double quotes because CPP needs to be expanded
3864 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3867 for ac_c_preproc_warn_flag in '' yes
3869 # Use a header file that comes with gcc, so configuring glibc
3870 # with a fresh cross-compiler works.
3871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872 # <limits.h> exists even on freestanding compilers.
3873 # On the NeXT, cc -E runs the code through the compiler's parser,
3874 # not just through cpp. "Syntax error" is here to catch this case.
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3878 # include <limits.h>
3880 # include <assert.h>
3884 if ac_fn_c_try_cpp "$LINENO"; then :
3887 # Broken: fails on valid input.
3890 rm -f conftest.err conftest.i conftest.$ac_ext
3892 # OK, works on sane cases. Now check whether nonexistent headers
3893 # can be detected and how.
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3896 #include <ac_nonexistent.h>
3898 if ac_fn_c_try_cpp "$LINENO"; then :
3899 # Broken: success on invalid input.
3902 # Passes both tests.
3906 rm -f conftest.err conftest.i conftest.$ac_ext
3909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3910 rm -f conftest.i conftest.err conftest.$ac_ext
3911 if $ac_preproc_ok; then :
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3924 $as_echo "$CPP" >&6; }
3926 for ac_c_preproc_warn_flag in '' yes
3928 # Use a header file that comes with gcc, so configuring glibc
3929 # with a fresh cross-compiler works.
3930 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3931 # <limits.h> exists even on freestanding compilers.
3932 # On the NeXT, cc -E runs the code through the compiler's parser,
3933 # not just through cpp. "Syntax error" is here to catch this case.
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3937 # include <limits.h>
3939 # include <assert.h>
3943 if ac_fn_c_try_cpp "$LINENO"; then :
3946 # Broken: fails on valid input.
3949 rm -f conftest.err conftest.i conftest.$ac_ext
3951 # OK, works on sane cases. Now check whether nonexistent headers
3952 # can be detected and how.
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h. */
3955 #include <ac_nonexistent.h>
3957 if ac_fn_c_try_cpp "$LINENO"; then :
3958 # Broken: success on invalid input.
3961 # Passes both tests.
3965 rm -f conftest.err conftest.i conftest.$ac_ext
3968 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3969 rm -f conftest.i conftest.err conftest.$ac_ext
3970 if $ac_preproc_ok; then :
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3976 See \`config.log' for more details" "$LINENO" 5; }
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3987 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3988 if ${ac_cv_path_GREP+:} false; then :
3989 $as_echo_n "(cached) " >&6
3991 if test -z "$GREP"; then
3992 ac_path_GREP_found=false
3993 # Loop through the user's path and test for each of PROGNAME-LIST
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3998 test -z "$as_dir" && as_dir=.
3999 for ac_prog in grep ggrep; do
4000 for ac_exec_ext in '' $ac_executable_extensions; do
4001 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4002 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4003 # Check for GNU ac_path_GREP and select it if it is found.
4004 # Check for GNU $ac_path_GREP
4005 case `"$ac_path_GREP" --version 2>&1` in
4007 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4010 $as_echo_n 0123456789 >"conftest.in"
4013 cat "conftest.in" "conftest.in" >"conftest.tmp"
4014 mv "conftest.tmp" "conftest.in"
4015 cp "conftest.in" "conftest.nl"
4016 $as_echo 'GREP' >> "conftest.nl"
4017 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019 as_fn_arith $ac_count + 1 && ac_count=$as_val
4020 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4021 # Best one so far, save it but keep looking for a better one
4022 ac_cv_path_GREP="$ac_path_GREP"
4023 ac_path_GREP_max=$ac_count
4025 # 10*(2^10) chars as input seems more than enough
4026 test $ac_count -gt 10 && break
4028 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 $ac_path_GREP_found && break 3
4036 if test -z "$ac_cv_path_GREP"; then
4037 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4040 ac_cv_path_GREP=$GREP
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4045 $as_echo "$ac_cv_path_GREP" >&6; }
4046 GREP="$ac_cv_path_GREP"
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4050 $as_echo_n "checking for egrep... " >&6; }
4051 if ${ac_cv_path_EGREP+:} false; then :
4052 $as_echo_n "(cached) " >&6
4054 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4055 then ac_cv_path_EGREP="$GREP -E"
4057 if test -z "$EGREP"; then
4058 ac_path_EGREP_found=false
4059 # Loop through the user's path and test for each of PROGNAME-LIST
4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4064 test -z "$as_dir" && as_dir=.
4065 for ac_prog in egrep; do
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4068 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4069 # Check for GNU ac_path_EGREP and select it if it is found.
4070 # Check for GNU $ac_path_EGREP
4071 case `"$ac_path_EGREP" --version 2>&1` in
4073 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4076 $as_echo_n 0123456789 >"conftest.in"
4079 cat "conftest.in" "conftest.in" >"conftest.tmp"
4080 mv "conftest.tmp" "conftest.in"
4081 cp "conftest.in" "conftest.nl"
4082 $as_echo 'EGREP' >> "conftest.nl"
4083 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4084 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4085 as_fn_arith $ac_count + 1 && ac_count=$as_val
4086 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4087 # Best one so far, save it but keep looking for a better one
4088 ac_cv_path_EGREP="$ac_path_EGREP"
4089 ac_path_EGREP_max=$ac_count
4091 # 10*(2^10) chars as input seems more than enough
4092 test $ac_count -gt 10 && break
4094 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4097 $ac_path_EGREP_found && break 3
4102 if test -z "$ac_cv_path_EGREP"; then
4103 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4106 ac_cv_path_EGREP=$EGREP
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4112 $as_echo "$ac_cv_path_EGREP" >&6; }
4113 EGREP="$ac_cv_path_EGREP"
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4117 $as_echo_n "checking for ANSI C header files... " >&6; }
4118 if ${ac_cv_header_stdc+:} false; then :
4119 $as_echo_n "(cached) " >&6
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4136 if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_header_stdc=yes
4139 ac_cv_header_stdc=no
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 if test $ac_cv_header_stdc = yes; then
4144 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4151 $EGREP "memchr" >/dev/null 2>&1; then :
4154 ac_cv_header_stdc=no
4160 if test $ac_cv_header_stdc = yes; then
4161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163 /* end confdefs.h. */
4167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168 $EGREP "free" >/dev/null 2>&1; then :
4171 ac_cv_header_stdc=no
4177 if test $ac_cv_header_stdc = yes; then
4178 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4179 if test "$cross_compiling" = yes; then :
4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h. */
4186 #if ((' ' & 0x0FF) == 0x020)
4187 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4188 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4190 # define ISLOWER(c) \
4191 (('a' <= (c) && (c) <= 'i') \
4192 || ('j' <= (c) && (c) <= 'r') \
4193 || ('s' <= (c) && (c) <= 'z'))
4194 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4197 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4202 for (i = 0; i < 256; i++)
4203 if (XOR (islower (i), ISLOWER (i))
4204 || toupper (i) != TOUPPER (i))
4209 if ac_fn_c_try_run "$LINENO"; then :
4212 ac_cv_header_stdc=no
4214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4215 conftest.$ac_objext conftest.beam conftest.$ac_ext
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4221 $as_echo "$ac_cv_header_stdc" >&6; }
4222 if test $ac_cv_header_stdc = yes; then
4224 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4229 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4230 inttypes.h stdint.h unistd.h
4232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4233 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4235 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4236 cat >>confdefs.h <<_ACEOF
4237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4249 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4250 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4256 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4257 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4263 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4264 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4273 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4274 if test -n "$ac_tool_prefix"; then
4275 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4276 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4278 $as_echo_n "checking for $ac_word... " >&6; }
4279 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4280 $as_echo_n "(cached) " >&6
4284 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4306 if test -n "$PKG_CONFIG"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4308 $as_echo "$PKG_CONFIG" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4316 if test -z "$ac_cv_path_PKG_CONFIG"; then
4317 ac_pt_PKG_CONFIG=$PKG_CONFIG
4318 # Extract the first word of "pkg-config", so it can be a program name with args.
4319 set dummy pkg-config; ac_word=$2
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 $as_echo_n "checking for $ac_word... " >&6; }
4322 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4323 $as_echo_n "(cached) " >&6
4325 case $ac_pt_PKG_CONFIG in
4327 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4349 if test -n "$ac_pt_PKG_CONFIG"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4351 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4357 if test "x$ac_pt_PKG_CONFIG" = x; then
4360 case $cross_compiling:$ac_tool_warned in
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4364 ac_tool_warned=yes ;;
4366 PKG_CONFIG=$ac_pt_PKG_CONFIG
4369 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4373 if test -n "$PKG_CONFIG"; then
4374 _pkg_min_version=0.9.0
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4376 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4377 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4379 $as_echo "yes" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4387 # Make sure we can run config.sub.
4388 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4389 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4392 $as_echo_n "checking build system type... " >&6; }
4393 if ${ac_cv_build+:} false; then :
4394 $as_echo_n "(cached) " >&6
4396 ac_build_alias=$build_alias
4397 test "x$ac_build_alias" = x &&
4398 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4399 test "x$ac_build_alias" = x &&
4400 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4401 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4402 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4406 $as_echo "$ac_cv_build" >&6; }
4407 case $ac_cv_build in
4409 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4412 ac_save_IFS=$IFS; IFS='-'
4418 # Remember, the first character of IFS is used to create $*,
4419 # except with old shells:
4422 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4426 $as_echo_n "checking host system type... " >&6; }
4427 if ${ac_cv_host+:} false; then :
4428 $as_echo_n "(cached) " >&6
4430 if test "x$host_alias" = x; then
4431 ac_cv_host=$ac_cv_build
4433 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4434 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4439 $as_echo "$ac_cv_host" >&6; }
4442 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4445 ac_save_IFS=$IFS; IFS='-'
4451 # Remember, the first character of IFS is used to create $*,
4452 # except with old shells:
4455 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4459 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4460 if ${ac_cv_path_SED+:} false; then :
4461 $as_echo_n "(cached) " >&6
4463 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4464 for ac_i in 1 2 3 4 5 6 7; do
4465 ac_script="$ac_script$as_nl$ac_script"
4467 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4468 { ac_script=; unset ac_script;}
4469 if test -z "$SED"; then
4470 ac_path_SED_found=false
4471 # Loop through the user's path and test for each of PROGNAME-LIST
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_prog in sed gsed; do
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4480 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4481 # Check for GNU ac_path_SED and select it if it is found.
4482 # Check for GNU $ac_path_SED
4483 case `"$ac_path_SED" --version 2>&1` in
4485 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4488 $as_echo_n 0123456789 >"conftest.in"
4491 cat "conftest.in" "conftest.in" >"conftest.tmp"
4492 mv "conftest.tmp" "conftest.in"
4493 cp "conftest.in" "conftest.nl"
4494 $as_echo '' >> "conftest.nl"
4495 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4496 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4497 as_fn_arith $ac_count + 1 && ac_count=$as_val
4498 if test $ac_count -gt ${ac_path_SED_max-0}; then
4499 # Best one so far, save it but keep looking for a better one
4500 ac_cv_path_SED="$ac_path_SED"
4501 ac_path_SED_max=$ac_count
4503 # 10*(2^10) chars as input seems more than enough
4504 test $ac_count -gt 10 && break
4506 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4509 $ac_path_SED_found && break 3
4514 if test -z "$ac_cv_path_SED"; then
4515 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4523 $as_echo "$ac_cv_path_SED" >&6; }
4524 SED="$ac_cv_path_SED"
4532 # Check whether --enable-selective-werror was given.
4533 if test "${enable_selective_werror+set}" = set; then :
4534 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4536 SELECTIVE_WERROR=yes
4543 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4544 if test "x$SUNCC" = "xyes"; then
4550 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4564 xorg_testset_save_CFLAGS="$CFLAGS"
4566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4569 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4570 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4571 $as_echo_n "(cached) " >&6
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4577 if ac_fn_c_try_compile "$LINENO"; then :
4578 xorg_cv_cc_flag_unknown_warning_option=yes
4580 xorg_cv_cc_flag_unknown_warning_option=no
4582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4585 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4587 CFLAGS="$xorg_testset_save_CFLAGS"
4590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4596 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4597 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4598 $as_echo_n "(cached) " >&6
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4604 if ac_fn_c_try_compile "$LINENO"; then :
4605 xorg_cv_cc_flag_unused_command_line_argument=yes
4607 xorg_cv_cc_flag_unused_command_line_argument=no
4609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4612 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4614 CFLAGS="$xorg_testset_save_CFLAGS"
4619 if test $found = "no" ; then
4620 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4624 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4628 CFLAGS="$CFLAGS -Wall"
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4631 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4632 cacheid=xorg_cv_cc_flag__Wall
4633 if eval \${$cacheid+:} false; then :
4634 $as_echo_n "(cached) " >&6
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4647 if ac_fn_c_try_link "$LINENO"; then :
4652 rm -f core conftest.err conftest.$ac_objext \
4653 conftest$ac_exeext conftest.$ac_ext
4657 CFLAGS="$xorg_testset_save_CFLAGS"
4659 eval supported=\$$cacheid
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4661 $as_echo "$supported" >&6; }
4662 if test "$supported" = "yes" ; then
4663 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4682 xorg_testset_save_CFLAGS="$CFLAGS"
4684 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4687 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4688 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4689 $as_echo_n "(cached) " >&6
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4695 if ac_fn_c_try_compile "$LINENO"; then :
4696 xorg_cv_cc_flag_unknown_warning_option=yes
4698 xorg_cv_cc_flag_unknown_warning_option=no
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4703 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4705 CFLAGS="$xorg_testset_save_CFLAGS"
4708 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4714 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4715 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4716 $as_echo_n "(cached) " >&6
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4722 if ac_fn_c_try_compile "$LINENO"; then :
4723 xorg_cv_cc_flag_unused_command_line_argument=yes
4725 xorg_cv_cc_flag_unused_command_line_argument=no
4727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4730 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4732 CFLAGS="$xorg_testset_save_CFLAGS"
4737 if test $found = "no" ; then
4738 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4742 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4746 CFLAGS="$CFLAGS -Wpointer-arith"
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4749 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4750 cacheid=xorg_cv_cc_flag__Wpointer_arith
4751 if eval \${$cacheid+:} false; then :
4752 $as_echo_n "(cached) " >&6
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4765 if ac_fn_c_try_link "$LINENO"; then :
4770 rm -f core conftest.err conftest.$ac_objext \
4771 conftest$ac_exeext conftest.$ac_ext
4775 CFLAGS="$xorg_testset_save_CFLAGS"
4777 eval supported=\$$cacheid
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4779 $as_echo "$supported" >&6; }
4780 if test "$supported" = "yes" ; then
4781 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4800 xorg_testset_save_CFLAGS="$CFLAGS"
4802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814 xorg_cv_cc_flag_unknown_warning_option=yes
4816 xorg_cv_cc_flag_unknown_warning_option=no
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4823 CFLAGS="$xorg_testset_save_CFLAGS"
4826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 xorg_cv_cc_flag_unused_command_line_argument=yes
4843 xorg_cv_cc_flag_unused_command_line_argument=no
4845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4850 CFLAGS="$xorg_testset_save_CFLAGS"
4855 if test $found = "no" ; then
4856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4864 CFLAGS="$CFLAGS -Wmissing-declarations"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4867 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4868 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4869 if eval \${$cacheid+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h. */
4883 if ac_fn_c_try_link "$LINENO"; then :
4888 rm -f core conftest.err conftest.$ac_objext \
4889 conftest$ac_exeext conftest.$ac_ext
4893 CFLAGS="$xorg_testset_save_CFLAGS"
4895 eval supported=\$$cacheid
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4897 $as_echo "$supported" >&6; }
4898 if test "$supported" = "yes" ; then
4899 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4918 xorg_testset_save_CFLAGS="$CFLAGS"
4920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4925 $as_echo_n "(cached) " >&6
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4931 if ac_fn_c_try_compile "$LINENO"; then :
4932 xorg_cv_cc_flag_unknown_warning_option=yes
4934 xorg_cv_cc_flag_unknown_warning_option=no
4936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4941 CFLAGS="$xorg_testset_save_CFLAGS"
4944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4952 $as_echo_n "(cached) " >&6
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4958 if ac_fn_c_try_compile "$LINENO"; then :
4959 xorg_cv_cc_flag_unused_command_line_argument=yes
4961 xorg_cv_cc_flag_unused_command_line_argument=no
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4968 CFLAGS="$xorg_testset_save_CFLAGS"
4973 if test $found = "no" ; then
4974 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4978 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4982 CFLAGS="$CFLAGS -Wformat=2"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4985 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4986 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4987 if eval \${$cacheid+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4991 /* end confdefs.h. */
5001 if ac_fn_c_try_link "$LINENO"; then :
5006 rm -f core conftest.err conftest.$ac_objext \
5007 conftest$ac_exeext conftest.$ac_ext
5011 CFLAGS="$xorg_testset_save_CFLAGS"
5013 eval supported=\$$cacheid
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5015 $as_echo "$supported" >&6; }
5016 if test "$supported" = "yes" ; then
5017 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5022 if test $found = "no" ; then
5023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5027 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5031 CFLAGS="$CFLAGS -Wformat"
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
5034 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
5035 cacheid=xorg_cv_cc_flag__Wformat
5036 if eval \${$cacheid+:} false; then :
5037 $as_echo_n "(cached) " >&6
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5050 if ac_fn_c_try_link "$LINENO"; then :
5055 rm -f core conftest.err conftest.$ac_objext \
5056 conftest$ac_exeext conftest.$ac_ext
5060 CFLAGS="$xorg_testset_save_CFLAGS"
5062 eval supported=\$$cacheid
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5064 $as_echo "$supported" >&6; }
5065 if test "$supported" = "yes" ; then
5066 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5087 xorg_testset_save_CFLAGS="$CFLAGS"
5089 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5094 $as_echo_n "(cached) " >&6
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5100 if ac_fn_c_try_compile "$LINENO"; then :
5101 xorg_cv_cc_flag_unknown_warning_option=yes
5103 xorg_cv_cc_flag_unknown_warning_option=no
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5110 CFLAGS="$xorg_testset_save_CFLAGS"
5113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5121 $as_echo_n "(cached) " >&6
5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h. */
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128 xorg_cv_cc_flag_unused_command_line_argument=yes
5130 xorg_cv_cc_flag_unused_command_line_argument=no
5132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5137 CFLAGS="$xorg_testset_save_CFLAGS"
5142 if test $found = "no" ; then
5143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5151 CFLAGS="$CFLAGS -Wstrict-prototypes"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5154 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5155 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5156 if eval \${$cacheid+:} false; then :
5157 $as_echo_n "(cached) " >&6
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5170 if ac_fn_c_try_link "$LINENO"; then :
5175 rm -f core conftest.err conftest.$ac_objext \
5176 conftest$ac_exeext conftest.$ac_ext
5180 CFLAGS="$xorg_testset_save_CFLAGS"
5182 eval supported=\$$cacheid
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5184 $as_echo "$supported" >&6; }
5185 if test "$supported" = "yes" ; then
5186 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5205 xorg_testset_save_CFLAGS="$CFLAGS"
5207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5210 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5211 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5212 $as_echo_n "(cached) " >&6
5214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5218 if ac_fn_c_try_compile "$LINENO"; then :
5219 xorg_cv_cc_flag_unknown_warning_option=yes
5221 xorg_cv_cc_flag_unknown_warning_option=no
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5226 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5227 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5228 CFLAGS="$xorg_testset_save_CFLAGS"
5231 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5237 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5238 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5239 $as_echo_n "(cached) " >&6
5241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5242 /* end confdefs.h. */
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 xorg_cv_cc_flag_unused_command_line_argument=yes
5248 xorg_cv_cc_flag_unused_command_line_argument=no
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5253 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5254 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5255 CFLAGS="$xorg_testset_save_CFLAGS"
5260 if test $found = "no" ; then
5261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5269 CFLAGS="$CFLAGS -Wmissing-prototypes"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5272 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5273 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5274 if eval \${$cacheid+:} false; then :
5275 $as_echo_n "(cached) " >&6
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5288 if ac_fn_c_try_link "$LINENO"; then :
5293 rm -f core conftest.err conftest.$ac_objext \
5294 conftest$ac_exeext conftest.$ac_ext
5298 CFLAGS="$xorg_testset_save_CFLAGS"
5300 eval supported=\$$cacheid
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5302 $as_echo "$supported" >&6; }
5303 if test "$supported" = "yes" ; then
5304 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5323 xorg_testset_save_CFLAGS="$CFLAGS"
5325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5328 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5329 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5330 $as_echo_n "(cached) " >&6
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5336 if ac_fn_c_try_compile "$LINENO"; then :
5337 xorg_cv_cc_flag_unknown_warning_option=yes
5339 xorg_cv_cc_flag_unknown_warning_option=no
5341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5344 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5346 CFLAGS="$xorg_testset_save_CFLAGS"
5349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5355 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5356 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5357 $as_echo_n "(cached) " >&6
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364 xorg_cv_cc_flag_unused_command_line_argument=yes
5366 xorg_cv_cc_flag_unused_command_line_argument=no
5368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5371 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5372 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5373 CFLAGS="$xorg_testset_save_CFLAGS"
5378 if test $found = "no" ; then
5379 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5387 CFLAGS="$CFLAGS -Wnested-externs"
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5390 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5391 cacheid=xorg_cv_cc_flag__Wnested_externs
5392 if eval \${$cacheid+:} false; then :
5393 $as_echo_n "(cached) " >&6
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396 /* end confdefs.h. */
5406 if ac_fn_c_try_link "$LINENO"; then :
5411 rm -f core conftest.err conftest.$ac_objext \
5412 conftest$ac_exeext conftest.$ac_ext
5416 CFLAGS="$xorg_testset_save_CFLAGS"
5418 eval supported=\$$cacheid
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5420 $as_echo "$supported" >&6; }
5421 if test "$supported" = "yes" ; then
5422 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5441 xorg_testset_save_CFLAGS="$CFLAGS"
5443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5446 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5447 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5448 $as_echo_n "(cached) " >&6
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5454 if ac_fn_c_try_compile "$LINENO"; then :
5455 xorg_cv_cc_flag_unknown_warning_option=yes
5457 xorg_cv_cc_flag_unknown_warning_option=no
5459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5462 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5464 CFLAGS="$xorg_testset_save_CFLAGS"
5467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5473 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5474 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5475 $as_echo_n "(cached) " >&6
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 xorg_cv_cc_flag_unused_command_line_argument=yes
5484 xorg_cv_cc_flag_unused_command_line_argument=no
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5489 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5491 CFLAGS="$xorg_testset_save_CFLAGS"
5496 if test $found = "no" ; then
5497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5501 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5505 CFLAGS="$CFLAGS -Wbad-function-cast"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5508 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5509 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5510 if eval \${$cacheid+:} false; then :
5511 $as_echo_n "(cached) " >&6
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5524 if ac_fn_c_try_link "$LINENO"; then :
5529 rm -f core conftest.err conftest.$ac_objext \
5530 conftest$ac_exeext conftest.$ac_ext
5534 CFLAGS="$xorg_testset_save_CFLAGS"
5536 eval supported=\$$cacheid
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5538 $as_echo "$supported" >&6; }
5539 if test "$supported" = "yes" ; then
5540 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5559 xorg_testset_save_CFLAGS="$CFLAGS"
5561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5564 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5565 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5566 $as_echo_n "(cached) " >&6
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5572 if ac_fn_c_try_compile "$LINENO"; then :
5573 xorg_cv_cc_flag_unknown_warning_option=yes
5575 xorg_cv_cc_flag_unknown_warning_option=no
5577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5580 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5582 CFLAGS="$xorg_testset_save_CFLAGS"
5585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5591 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5592 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5593 $as_echo_n "(cached) " >&6
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 xorg_cv_cc_flag_unused_command_line_argument=yes
5602 xorg_cv_cc_flag_unused_command_line_argument=no
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5607 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5609 CFLAGS="$xorg_testset_save_CFLAGS"
5614 if test $found = "no" ; then
5615 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5623 CFLAGS="$CFLAGS -Wold-style-definition"
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5626 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5627 cacheid=xorg_cv_cc_flag__Wold_style_definition
5628 if eval \${$cacheid+:} false; then :
5629 $as_echo_n "(cached) " >&6
5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5632 /* end confdefs.h. */
5642 if ac_fn_c_try_link "$LINENO"; then :
5647 rm -f core conftest.err conftest.$ac_objext \
5648 conftest$ac_exeext conftest.$ac_ext
5652 CFLAGS="$xorg_testset_save_CFLAGS"
5654 eval supported=\$$cacheid
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5656 $as_echo "$supported" >&6; }
5657 if test "$supported" = "yes" ; then
5658 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5677 xorg_testset_save_CFLAGS="$CFLAGS"
5679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5682 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5683 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5690 if ac_fn_c_try_compile "$LINENO"; then :
5691 xorg_cv_cc_flag_unknown_warning_option=yes
5693 xorg_cv_cc_flag_unknown_warning_option=no
5695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5698 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5700 CFLAGS="$xorg_testset_save_CFLAGS"
5703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5709 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5710 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5711 $as_echo_n "(cached) " >&6
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5717 if ac_fn_c_try_compile "$LINENO"; then :
5718 xorg_cv_cc_flag_unused_command_line_argument=yes
5720 xorg_cv_cc_flag_unused_command_line_argument=no
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5725 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5726 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5727 CFLAGS="$xorg_testset_save_CFLAGS"
5732 if test $found = "no" ; then
5733 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5737 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5741 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5744 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5745 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5746 if eval \${$cacheid+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5760 if ac_fn_c_try_link "$LINENO"; then :
5765 rm -f core conftest.err conftest.$ac_objext \
5766 conftest$ac_exeext conftest.$ac_ext
5770 CFLAGS="$xorg_testset_save_CFLAGS"
5772 eval supported=\$$cacheid
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5774 $as_echo "$supported" >&6; }
5775 if test "$supported" = "yes" ; then
5776 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5785 # This chunk adds additional warnings that could catch undesired effects.
5799 xorg_testset_save_CFLAGS="$CFLAGS"
5801 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5804 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5805 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5806 $as_echo_n "(cached) " >&6
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5812 if ac_fn_c_try_compile "$LINENO"; then :
5813 xorg_cv_cc_flag_unknown_warning_option=yes
5815 xorg_cv_cc_flag_unknown_warning_option=no
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5820 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5821 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5822 CFLAGS="$xorg_testset_save_CFLAGS"
5825 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5831 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5832 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5833 $as_echo_n "(cached) " >&6
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5839 if ac_fn_c_try_compile "$LINENO"; then :
5840 xorg_cv_cc_flag_unused_command_line_argument=yes
5842 xorg_cv_cc_flag_unused_command_line_argument=no
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5847 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5849 CFLAGS="$xorg_testset_save_CFLAGS"
5854 if test $found = "no" ; then
5855 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5863 CFLAGS="$CFLAGS -Wunused"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5866 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5867 cacheid=xorg_cv_cc_flag__Wunused
5868 if eval \${$cacheid+:} false; then :
5869 $as_echo_n "(cached) " >&6
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5882 if ac_fn_c_try_link "$LINENO"; then :
5887 rm -f core conftest.err conftest.$ac_objext \
5888 conftest$ac_exeext conftest.$ac_ext
5892 CFLAGS="$xorg_testset_save_CFLAGS"
5894 eval supported=\$$cacheid
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5896 $as_echo "$supported" >&6; }
5897 if test "$supported" = "yes" ; then
5898 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5917 xorg_testset_save_CFLAGS="$CFLAGS"
5919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5922 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5923 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5924 $as_echo_n "(cached) " >&6
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5930 if ac_fn_c_try_compile "$LINENO"; then :
5931 xorg_cv_cc_flag_unknown_warning_option=yes
5933 xorg_cv_cc_flag_unknown_warning_option=no
5935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5938 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5940 CFLAGS="$xorg_testset_save_CFLAGS"
5943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5949 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5950 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5951 $as_echo_n "(cached) " >&6
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5957 if ac_fn_c_try_compile "$LINENO"; then :
5958 xorg_cv_cc_flag_unused_command_line_argument=yes
5960 xorg_cv_cc_flag_unused_command_line_argument=no
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5965 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5966 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5967 CFLAGS="$xorg_testset_save_CFLAGS"
5972 if test $found = "no" ; then
5973 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5974 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5977 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5981 CFLAGS="$CFLAGS -Wuninitialized"
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5984 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5985 cacheid=xorg_cv_cc_flag__Wuninitialized
5986 if eval \${$cacheid+:} false; then :
5987 $as_echo_n "(cached) " >&6
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
6000 if ac_fn_c_try_link "$LINENO"; then :
6005 rm -f core conftest.err conftest.$ac_objext \
6006 conftest$ac_exeext conftest.$ac_ext
6010 CFLAGS="$xorg_testset_save_CFLAGS"
6012 eval supported=\$$cacheid
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6014 $as_echo "$supported" >&6; }
6015 if test "$supported" = "yes" ; then
6016 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6035 xorg_testset_save_CFLAGS="$CFLAGS"
6037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6040 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6041 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6042 $as_echo_n "(cached) " >&6
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6048 if ac_fn_c_try_compile "$LINENO"; then :
6049 xorg_cv_cc_flag_unknown_warning_option=yes
6051 xorg_cv_cc_flag_unknown_warning_option=no
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6056 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6057 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6058 CFLAGS="$xorg_testset_save_CFLAGS"
6061 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6067 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6068 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6069 $as_echo_n "(cached) " >&6
6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6072 /* end confdefs.h. */
6075 if ac_fn_c_try_compile "$LINENO"; then :
6076 xorg_cv_cc_flag_unused_command_line_argument=yes
6078 xorg_cv_cc_flag_unused_command_line_argument=no
6080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6083 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6084 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6085 CFLAGS="$xorg_testset_save_CFLAGS"
6090 if test $found = "no" ; then
6091 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6099 CFLAGS="$CFLAGS -Wshadow"
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6102 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6103 cacheid=xorg_cv_cc_flag__Wshadow
6104 if eval \${$cacheid+:} false; then :
6105 $as_echo_n "(cached) " >&6
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6118 if ac_fn_c_try_link "$LINENO"; then :
6123 rm -f core conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6130 eval supported=\$$cacheid
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6132 $as_echo "$supported" >&6; }
6133 if test "$supported" = "yes" ; then
6134 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6153 xorg_testset_save_CFLAGS="$CFLAGS"
6155 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6158 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6159 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6160 $as_echo_n "(cached) " >&6
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6166 if ac_fn_c_try_compile "$LINENO"; then :
6167 xorg_cv_cc_flag_unknown_warning_option=yes
6169 xorg_cv_cc_flag_unknown_warning_option=no
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6174 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6175 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6176 CFLAGS="$xorg_testset_save_CFLAGS"
6179 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6180 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6185 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6186 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6187 $as_echo_n "(cached) " >&6
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194 xorg_cv_cc_flag_unused_command_line_argument=yes
6196 xorg_cv_cc_flag_unused_command_line_argument=no
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6201 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6202 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6203 CFLAGS="$xorg_testset_save_CFLAGS"
6208 if test $found = "no" ; then
6209 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6210 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6213 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6217 CFLAGS="$CFLAGS -Wcast-qual"
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6220 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6221 cacheid=xorg_cv_cc_flag__Wcast_qual
6222 if eval \${$cacheid+:} false; then :
6223 $as_echo_n "(cached) " >&6
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6236 if ac_fn_c_try_link "$LINENO"; then :
6241 rm -f core conftest.err conftest.$ac_objext \
6242 conftest$ac_exeext conftest.$ac_ext
6246 CFLAGS="$xorg_testset_save_CFLAGS"
6248 eval supported=\$$cacheid
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6250 $as_echo "$supported" >&6; }
6251 if test "$supported" = "yes" ; then
6252 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6271 xorg_testset_save_CFLAGS="$CFLAGS"
6273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6276 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6277 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6278 $as_echo_n "(cached) " >&6
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285 xorg_cv_cc_flag_unknown_warning_option=yes
6287 xorg_cv_cc_flag_unknown_warning_option=no
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6292 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6294 CFLAGS="$xorg_testset_save_CFLAGS"
6297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6303 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6304 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6305 $as_echo_n "(cached) " >&6
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6311 if ac_fn_c_try_compile "$LINENO"; then :
6312 xorg_cv_cc_flag_unused_command_line_argument=yes
6314 xorg_cv_cc_flag_unused_command_line_argument=no
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6319 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6321 CFLAGS="$xorg_testset_save_CFLAGS"
6326 if test $found = "no" ; then
6327 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6331 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6335 CFLAGS="$CFLAGS -Wmissing-noreturn"
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6338 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6339 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6340 if eval \${$cacheid+:} false; then :
6341 $as_echo_n "(cached) " >&6
6343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6354 if ac_fn_c_try_link "$LINENO"; then :
6359 rm -f core conftest.err conftest.$ac_objext \
6360 conftest$ac_exeext conftest.$ac_ext
6364 CFLAGS="$xorg_testset_save_CFLAGS"
6366 eval supported=\$$cacheid
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6368 $as_echo "$supported" >&6; }
6369 if test "$supported" = "yes" ; then
6370 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6389 xorg_testset_save_CFLAGS="$CFLAGS"
6391 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6394 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6395 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6396 $as_echo_n "(cached) " >&6
6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6402 if ac_fn_c_try_compile "$LINENO"; then :
6403 xorg_cv_cc_flag_unknown_warning_option=yes
6405 xorg_cv_cc_flag_unknown_warning_option=no
6407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6410 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6411 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6412 CFLAGS="$xorg_testset_save_CFLAGS"
6415 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6421 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6422 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6423 $as_echo_n "(cached) " >&6
6425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6426 /* end confdefs.h. */
6429 if ac_fn_c_try_compile "$LINENO"; then :
6430 xorg_cv_cc_flag_unused_command_line_argument=yes
6432 xorg_cv_cc_flag_unused_command_line_argument=no
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6437 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6439 CFLAGS="$xorg_testset_save_CFLAGS"
6444 if test $found = "no" ; then
6445 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6449 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6453 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6456 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6457 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6458 if eval \${$cacheid+:} false; then :
6459 $as_echo_n "(cached) " >&6
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6472 if ac_fn_c_try_link "$LINENO"; then :
6477 rm -f core conftest.err conftest.$ac_objext \
6478 conftest$ac_exeext conftest.$ac_ext
6482 CFLAGS="$xorg_testset_save_CFLAGS"
6484 eval supported=\$$cacheid
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6486 $as_echo "$supported" >&6; }
6487 if test "$supported" = "yes" ; then
6488 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6507 xorg_testset_save_CFLAGS="$CFLAGS"
6509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6512 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6513 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6514 $as_echo_n "(cached) " >&6
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6520 if ac_fn_c_try_compile "$LINENO"; then :
6521 xorg_cv_cc_flag_unknown_warning_option=yes
6523 xorg_cv_cc_flag_unknown_warning_option=no
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6528 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6530 CFLAGS="$xorg_testset_save_CFLAGS"
6533 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6539 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6540 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6541 $as_echo_n "(cached) " >&6
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6547 if ac_fn_c_try_compile "$LINENO"; then :
6548 xorg_cv_cc_flag_unused_command_line_argument=yes
6550 xorg_cv_cc_flag_unused_command_line_argument=no
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6555 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6557 CFLAGS="$xorg_testset_save_CFLAGS"
6562 if test $found = "no" ; then
6563 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6567 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6571 CFLAGS="$CFLAGS -Wredundant-decls"
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6574 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6575 cacheid=xorg_cv_cc_flag__Wredundant_decls
6576 if eval \${$cacheid+:} false; then :
6577 $as_echo_n "(cached) " >&6
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6590 if ac_fn_c_try_link "$LINENO"; then :
6595 rm -f core conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext conftest.$ac_ext
6600 CFLAGS="$xorg_testset_save_CFLAGS"
6602 eval supported=\$$cacheid
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6604 $as_echo "$supported" >&6; }
6605 if test "$supported" = "yes" ; then
6606 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6613 # These are currently disabled because they are noisy. They will be enabled
6614 # in the future once the codebase is sufficiently modernized to silence
6615 # them. For now, I don't want them to drown out the other warnings.
6616 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6617 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6618 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6620 # Turn some warnings into errors, so we don't accidently get successful builds
6621 # when there are problems that should be fixed.
6623 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6637 xorg_testset_save_CFLAGS="$CFLAGS"
6639 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6644 $as_echo_n "(cached) " >&6
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6650 if ac_fn_c_try_compile "$LINENO"; then :
6651 xorg_cv_cc_flag_unknown_warning_option=yes
6653 xorg_cv_cc_flag_unknown_warning_option=no
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6659 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6660 CFLAGS="$xorg_testset_save_CFLAGS"
6663 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6671 $as_echo_n "(cached) " >&6
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6677 if ac_fn_c_try_compile "$LINENO"; then :
6678 xorg_cv_cc_flag_unused_command_line_argument=yes
6680 xorg_cv_cc_flag_unused_command_line_argument=no
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6687 CFLAGS="$xorg_testset_save_CFLAGS"
6692 if test $found = "no" ; then
6693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6697 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6701 CFLAGS="$CFLAGS -Werror=implicit"
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6704 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6705 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6706 if eval \${$cacheid+:} false; then :
6707 $as_echo_n "(cached) " >&6
6709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6720 if ac_fn_c_try_link "$LINENO"; then :
6725 rm -f core conftest.err conftest.$ac_objext \
6726 conftest$ac_exeext conftest.$ac_ext
6730 CFLAGS="$xorg_testset_save_CFLAGS"
6732 eval supported=\$$cacheid
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6734 $as_echo "$supported" >&6; }
6735 if test "$supported" = "yes" ; then
6736 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6741 if test $found = "no" ; then
6742 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6746 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6753 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6754 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6755 if eval \${$cacheid+:} false; then :
6756 $as_echo_n "(cached) " >&6
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6769 if ac_fn_c_try_link "$LINENO"; then :
6774 rm -f core conftest.err conftest.$ac_objext \
6775 conftest$ac_exeext conftest.$ac_ext
6779 CFLAGS="$xorg_testset_save_CFLAGS"
6781 eval supported=\$$cacheid
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6783 $as_echo "$supported" >&6; }
6784 if test "$supported" = "yes" ; then
6785 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6804 xorg_testset_save_CFLAGS="$CFLAGS"
6806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6811 $as_echo_n "(cached) " >&6
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6817 if ac_fn_c_try_compile "$LINENO"; then :
6818 xorg_cv_cc_flag_unknown_warning_option=yes
6820 xorg_cv_cc_flag_unknown_warning_option=no
6822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6827 CFLAGS="$xorg_testset_save_CFLAGS"
6830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6838 $as_echo_n "(cached) " >&6
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6844 if ac_fn_c_try_compile "$LINENO"; then :
6845 xorg_cv_cc_flag_unused_command_line_argument=yes
6847 xorg_cv_cc_flag_unused_command_line_argument=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6854 CFLAGS="$xorg_testset_save_CFLAGS"
6859 if test $found = "no" ; then
6860 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6868 CFLAGS="$CFLAGS -Werror=nonnull"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6871 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6872 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6873 if eval \${$cacheid+:} false; then :
6874 $as_echo_n "(cached) " >&6
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6887 if ac_fn_c_try_link "$LINENO"; then :
6892 rm -f core conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6897 CFLAGS="$xorg_testset_save_CFLAGS"
6899 eval supported=\$$cacheid
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6901 $as_echo "$supported" >&6; }
6902 if test "$supported" = "yes" ; then
6903 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6922 xorg_testset_save_CFLAGS="$CFLAGS"
6924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6929 $as_echo_n "(cached) " >&6
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6935 if ac_fn_c_try_compile "$LINENO"; then :
6936 xorg_cv_cc_flag_unknown_warning_option=yes
6938 xorg_cv_cc_flag_unknown_warning_option=no
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6945 CFLAGS="$xorg_testset_save_CFLAGS"
6948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6956 $as_echo_n "(cached) " >&6
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6962 if ac_fn_c_try_compile "$LINENO"; then :
6963 xorg_cv_cc_flag_unused_command_line_argument=yes
6965 xorg_cv_cc_flag_unused_command_line_argument=no
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6972 CFLAGS="$xorg_testset_save_CFLAGS"
6977 if test $found = "no" ; then
6978 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6986 CFLAGS="$CFLAGS -Werror=init-self"
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6989 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6990 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6991 if eval \${$cacheid+:} false; then :
6992 $as_echo_n "(cached) " >&6
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995 /* end confdefs.h. */
7005 if ac_fn_c_try_link "$LINENO"; then :
7010 rm -f core conftest.err conftest.$ac_objext \
7011 conftest$ac_exeext conftest.$ac_ext
7015 CFLAGS="$xorg_testset_save_CFLAGS"
7017 eval supported=\$$cacheid
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7019 $as_echo "$supported" >&6; }
7020 if test "$supported" = "yes" ; then
7021 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7040 xorg_testset_save_CFLAGS="$CFLAGS"
7042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7047 $as_echo_n "(cached) " >&6
7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050 /* end confdefs.h. */
7053 if ac_fn_c_try_compile "$LINENO"; then :
7054 xorg_cv_cc_flag_unknown_warning_option=yes
7056 xorg_cv_cc_flag_unknown_warning_option=no
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7063 CFLAGS="$xorg_testset_save_CFLAGS"
7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7074 $as_echo_n "(cached) " >&6
7076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7080 if ac_fn_c_try_compile "$LINENO"; then :
7081 xorg_cv_cc_flag_unused_command_line_argument=yes
7083 xorg_cv_cc_flag_unused_command_line_argument=no
7085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7090 CFLAGS="$xorg_testset_save_CFLAGS"
7095 if test $found = "no" ; then
7096 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7104 CFLAGS="$CFLAGS -Werror=main"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7107 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7108 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7109 if eval \${$cacheid+:} false; then :
7110 $as_echo_n "(cached) " >&6
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7123 if ac_fn_c_try_link "$LINENO"; then :
7128 rm -f core conftest.err conftest.$ac_objext \
7129 conftest$ac_exeext conftest.$ac_ext
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7135 eval supported=\$$cacheid
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7137 $as_echo "$supported" >&6; }
7138 if test "$supported" = "yes" ; then
7139 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7158 xorg_testset_save_CFLAGS="$CFLAGS"
7160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7165 $as_echo_n "(cached) " >&6
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172 xorg_cv_cc_flag_unknown_warning_option=yes
7174 xorg_cv_cc_flag_unknown_warning_option=no
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7181 CFLAGS="$xorg_testset_save_CFLAGS"
7184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7192 $as_echo_n "(cached) " >&6
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7198 if ac_fn_c_try_compile "$LINENO"; then :
7199 xorg_cv_cc_flag_unused_command_line_argument=yes
7201 xorg_cv_cc_flag_unused_command_line_argument=no
7203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7206 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7208 CFLAGS="$xorg_testset_save_CFLAGS"
7213 if test $found = "no" ; then
7214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7218 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7222 CFLAGS="$CFLAGS -Werror=missing-braces"
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7225 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7226 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7227 if eval \${$cacheid+:} false; then :
7228 $as_echo_n "(cached) " >&6
7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 /* end confdefs.h. */
7241 if ac_fn_c_try_link "$LINENO"; then :
7246 rm -f core conftest.err conftest.$ac_objext \
7247 conftest$ac_exeext conftest.$ac_ext
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7253 eval supported=\$$cacheid
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7255 $as_echo "$supported" >&6; }
7256 if test "$supported" = "yes" ; then
7257 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7276 xorg_testset_save_CFLAGS="$CFLAGS"
7278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7283 $as_echo_n "(cached) " >&6
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290 xorg_cv_cc_flag_unknown_warning_option=yes
7292 xorg_cv_cc_flag_unknown_warning_option=no
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7299 CFLAGS="$xorg_testset_save_CFLAGS"
7302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7310 $as_echo_n "(cached) " >&6
7312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7313 /* end confdefs.h. */
7316 if ac_fn_c_try_compile "$LINENO"; then :
7317 xorg_cv_cc_flag_unused_command_line_argument=yes
7319 xorg_cv_cc_flag_unused_command_line_argument=no
7321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7326 CFLAGS="$xorg_testset_save_CFLAGS"
7331 if test $found = "no" ; then
7332 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7336 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7340 CFLAGS="$CFLAGS -Werror=sequence-point"
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7343 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7344 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7345 if eval \${$cacheid+:} false; then :
7346 $as_echo_n "(cached) " >&6
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7359 if ac_fn_c_try_link "$LINENO"; then :
7364 rm -f core conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7369 CFLAGS="$xorg_testset_save_CFLAGS"
7371 eval supported=\$$cacheid
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7373 $as_echo "$supported" >&6; }
7374 if test "$supported" = "yes" ; then
7375 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7394 xorg_testset_save_CFLAGS="$CFLAGS"
7396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7401 $as_echo_n "(cached) " >&6
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7407 if ac_fn_c_try_compile "$LINENO"; then :
7408 xorg_cv_cc_flag_unknown_warning_option=yes
7410 xorg_cv_cc_flag_unknown_warning_option=no
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7417 CFLAGS="$xorg_testset_save_CFLAGS"
7420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7428 $as_echo_n "(cached) " >&6
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 xorg_cv_cc_flag_unused_command_line_argument=yes
7437 xorg_cv_cc_flag_unused_command_line_argument=no
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7444 CFLAGS="$xorg_testset_save_CFLAGS"
7449 if test $found = "no" ; then
7450 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7458 CFLAGS="$CFLAGS -Werror=return-type"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7461 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7462 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7463 if eval \${$cacheid+:} false; then :
7464 $as_echo_n "(cached) " >&6
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7477 if ac_fn_c_try_link "$LINENO"; then :
7482 rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7489 eval supported=\$$cacheid
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7491 $as_echo "$supported" >&6; }
7492 if test "$supported" = "yes" ; then
7493 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7498 if test $found = "no" ; then
7499 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7503 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7507 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7510 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7511 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7512 if eval \${$cacheid+:} false; then :
7513 $as_echo_n "(cached) " >&6
7515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h. */
7526 if ac_fn_c_try_link "$LINENO"; then :
7531 rm -f core conftest.err conftest.$ac_objext \
7532 conftest$ac_exeext conftest.$ac_ext
7536 CFLAGS="$xorg_testset_save_CFLAGS"
7538 eval supported=\$$cacheid
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7540 $as_echo "$supported" >&6; }
7541 if test "$supported" = "yes" ; then
7542 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7561 xorg_testset_save_CFLAGS="$CFLAGS"
7563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7566 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7567 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7568 $as_echo_n "(cached) " >&6
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7574 if ac_fn_c_try_compile "$LINENO"; then :
7575 xorg_cv_cc_flag_unknown_warning_option=yes
7577 xorg_cv_cc_flag_unknown_warning_option=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7582 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7583 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7584 CFLAGS="$xorg_testset_save_CFLAGS"
7587 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7588 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7593 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7594 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7595 $as_echo_n "(cached) " >&6
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7601 if ac_fn_c_try_compile "$LINENO"; then :
7602 xorg_cv_cc_flag_unused_command_line_argument=yes
7604 xorg_cv_cc_flag_unused_command_line_argument=no
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7609 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7616 if test $found = "no" ; then
7617 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7621 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7625 CFLAGS="$CFLAGS -Werror=trigraphs"
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7628 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7629 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7630 if eval \${$cacheid+:} false; then :
7631 $as_echo_n "(cached) " >&6
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7644 if ac_fn_c_try_link "$LINENO"; then :
7649 rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7654 CFLAGS="$xorg_testset_save_CFLAGS"
7656 eval supported=\$$cacheid
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7658 $as_echo "$supported" >&6; }
7659 if test "$supported" = "yes" ; then
7660 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7679 xorg_testset_save_CFLAGS="$CFLAGS"
7681 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7684 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7685 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7686 $as_echo_n "(cached) " >&6
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7692 if ac_fn_c_try_compile "$LINENO"; then :
7693 xorg_cv_cc_flag_unknown_warning_option=yes
7695 xorg_cv_cc_flag_unknown_warning_option=no
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7700 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7702 CFLAGS="$xorg_testset_save_CFLAGS"
7705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7711 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7712 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7713 $as_echo_n "(cached) " >&6
7715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h. */
7719 if ac_fn_c_try_compile "$LINENO"; then :
7720 xorg_cv_cc_flag_unused_command_line_argument=yes
7722 xorg_cv_cc_flag_unused_command_line_argument=no
7724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7727 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7729 CFLAGS="$xorg_testset_save_CFLAGS"
7734 if test $found = "no" ; then
7735 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7739 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7743 CFLAGS="$CFLAGS -Werror=array-bounds"
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7746 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7747 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7748 if eval \${$cacheid+:} false; then :
7749 $as_echo_n "(cached) " >&6
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7762 if ac_fn_c_try_link "$LINENO"; then :
7767 rm -f core conftest.err conftest.$ac_objext \
7768 conftest$ac_exeext conftest.$ac_ext
7772 CFLAGS="$xorg_testset_save_CFLAGS"
7774 eval supported=\$$cacheid
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7776 $as_echo "$supported" >&6; }
7777 if test "$supported" = "yes" ; then
7778 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7797 xorg_testset_save_CFLAGS="$CFLAGS"
7799 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7802 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7803 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7804 $as_echo_n "(cached) " >&6
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7810 if ac_fn_c_try_compile "$LINENO"; then :
7811 xorg_cv_cc_flag_unknown_warning_option=yes
7813 xorg_cv_cc_flag_unknown_warning_option=no
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7818 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7820 CFLAGS="$xorg_testset_save_CFLAGS"
7823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7829 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7830 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7831 $as_echo_n "(cached) " >&6
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7837 if ac_fn_c_try_compile "$LINENO"; then :
7838 xorg_cv_cc_flag_unused_command_line_argument=yes
7840 xorg_cv_cc_flag_unused_command_line_argument=no
7842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7845 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7847 CFLAGS="$xorg_testset_save_CFLAGS"
7852 if test $found = "no" ; then
7853 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7857 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7861 CFLAGS="$CFLAGS -Werror=write-strings"
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7864 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7865 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7866 if eval \${$cacheid+:} false; then :
7867 $as_echo_n "(cached) " >&6
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7880 if ac_fn_c_try_link "$LINENO"; then :
7885 rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7892 eval supported=\$$cacheid
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7894 $as_echo "$supported" >&6; }
7895 if test "$supported" = "yes" ; then
7896 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7915 xorg_testset_save_CFLAGS="$CFLAGS"
7917 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7920 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7921 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7922 $as_echo_n "(cached) " >&6
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7928 if ac_fn_c_try_compile "$LINENO"; then :
7929 xorg_cv_cc_flag_unknown_warning_option=yes
7931 xorg_cv_cc_flag_unknown_warning_option=no
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7936 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7937 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7938 CFLAGS="$xorg_testset_save_CFLAGS"
7941 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7947 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7948 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7949 $as_echo_n "(cached) " >&6
7951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7955 if ac_fn_c_try_compile "$LINENO"; then :
7956 xorg_cv_cc_flag_unused_command_line_argument=yes
7958 xorg_cv_cc_flag_unused_command_line_argument=no
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7963 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7964 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7965 CFLAGS="$xorg_testset_save_CFLAGS"
7970 if test $found = "no" ; then
7971 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7975 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7979 CFLAGS="$CFLAGS -Werror=address"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7982 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7983 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7984 if eval \${$cacheid+:} false; then :
7985 $as_echo_n "(cached) " >&6
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7998 if ac_fn_c_try_link "$LINENO"; then :
8003 rm -f core conftest.err conftest.$ac_objext \
8004 conftest$ac_exeext conftest.$ac_ext
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8010 eval supported=\$$cacheid
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8012 $as_echo "$supported" >&6; }
8013 if test "$supported" = "yes" ; then
8014 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8033 xorg_testset_save_CFLAGS="$CFLAGS"
8035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8038 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8039 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8040 $as_echo_n "(cached) " >&6
8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8043 /* end confdefs.h. */
8046 if ac_fn_c_try_compile "$LINENO"; then :
8047 xorg_cv_cc_flag_unknown_warning_option=yes
8049 xorg_cv_cc_flag_unknown_warning_option=no
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8054 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8056 CFLAGS="$xorg_testset_save_CFLAGS"
8059 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8065 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8066 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8067 $as_echo_n "(cached) " >&6
8069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8070 /* end confdefs.h. */
8073 if ac_fn_c_try_compile "$LINENO"; then :
8074 xorg_cv_cc_flag_unused_command_line_argument=yes
8076 xorg_cv_cc_flag_unused_command_line_argument=no
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8081 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8083 CFLAGS="$xorg_testset_save_CFLAGS"
8088 if test $found = "no" ; then
8089 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8093 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8097 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8100 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8101 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8102 if eval \${$cacheid+:} false; then :
8103 $as_echo_n "(cached) " >&6
8105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8106 /* end confdefs.h. */
8116 if ac_fn_c_try_link "$LINENO"; then :
8121 rm -f core conftest.err conftest.$ac_objext \
8122 conftest$ac_exeext conftest.$ac_ext
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8128 eval supported=\$$cacheid
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8130 $as_echo "$supported" >&6; }
8131 if test "$supported" = "yes" ; then
8132 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8137 if test $found = "no" ; then
8138 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8142 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8146 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8149 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8150 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8151 if eval \${$cacheid+:} false; then :
8152 $as_echo_n "(cached) " >&6
8154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8155 /* end confdefs.h. */
8165 if ac_fn_c_try_link "$LINENO"; then :
8170 rm -f core conftest.err conftest.$ac_objext \
8171 conftest$ac_exeext conftest.$ac_ext
8175 CFLAGS="$xorg_testset_save_CFLAGS"
8177 eval supported=\$$cacheid
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8179 $as_echo "$supported" >&6; }
8180 if test "$supported" = "yes" ; then
8181 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8200 xorg_testset_save_CFLAGS="$CFLAGS"
8202 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8205 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8206 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8207 $as_echo_n "(cached) " >&6
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8213 if ac_fn_c_try_compile "$LINENO"; then :
8214 xorg_cv_cc_flag_unknown_warning_option=yes
8216 xorg_cv_cc_flag_unknown_warning_option=no
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8221 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8223 CFLAGS="$xorg_testset_save_CFLAGS"
8226 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8232 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8233 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8234 $as_echo_n "(cached) " >&6
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8240 if ac_fn_c_try_compile "$LINENO"; then :
8241 xorg_cv_cc_flag_unused_command_line_argument=yes
8243 xorg_cv_cc_flag_unused_command_line_argument=no
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8248 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8250 CFLAGS="$xorg_testset_save_CFLAGS"
8255 if test $found = "no" ; then
8256 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8264 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8267 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8268 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8269 if eval \${$cacheid+:} false; then :
8270 $as_echo_n "(cached) " >&6
8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8283 if ac_fn_c_try_link "$LINENO"; then :
8288 rm -f core conftest.err conftest.$ac_objext \
8289 conftest$ac_exeext conftest.$ac_ext
8293 CFLAGS="$xorg_testset_save_CFLAGS"
8295 eval supported=\$$cacheid
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8297 $as_echo "$supported" >&6; }
8298 if test "$supported" = "yes" ; then
8299 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8304 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8306 { $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
8307 $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;}
8321 xorg_testset_save_CFLAGS="$CFLAGS"
8323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8328 $as_echo_n "(cached) " >&6
8330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331 /* end confdefs.h. */
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335 xorg_cv_cc_flag_unknown_warning_option=yes
8337 xorg_cv_cc_flag_unknown_warning_option=no
8339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8344 CFLAGS="$xorg_testset_save_CFLAGS"
8347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8355 $as_echo_n "(cached) " >&6
8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358 /* end confdefs.h. */
8361 if ac_fn_c_try_compile "$LINENO"; then :
8362 xorg_cv_cc_flag_unused_command_line_argument=yes
8364 xorg_cv_cc_flag_unused_command_line_argument=no
8366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8371 CFLAGS="$xorg_testset_save_CFLAGS"
8376 if test $found = "no" ; then
8377 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8381 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8385 CFLAGS="$CFLAGS -Wimplicit"
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8388 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8389 cacheid=xorg_cv_cc_flag__Wimplicit
8390 if eval \${$cacheid+:} false; then :
8391 $as_echo_n "(cached) " >&6
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8404 if ac_fn_c_try_link "$LINENO"; then :
8409 rm -f core conftest.err conftest.$ac_objext \
8410 conftest$ac_exeext conftest.$ac_ext
8414 CFLAGS="$xorg_testset_save_CFLAGS"
8416 eval supported=\$$cacheid
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8418 $as_echo "$supported" >&6; }
8419 if test "$supported" = "yes" ; then
8420 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8439 xorg_testset_save_CFLAGS="$CFLAGS"
8441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8446 $as_echo_n "(cached) " >&6
8448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8449 /* end confdefs.h. */
8452 if ac_fn_c_try_compile "$LINENO"; then :
8453 xorg_cv_cc_flag_unknown_warning_option=yes
8455 xorg_cv_cc_flag_unknown_warning_option=no
8457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8462 CFLAGS="$xorg_testset_save_CFLAGS"
8465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8473 $as_echo_n "(cached) " >&6
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476 /* end confdefs.h. */
8479 if ac_fn_c_try_compile "$LINENO"; then :
8480 xorg_cv_cc_flag_unused_command_line_argument=yes
8482 xorg_cv_cc_flag_unused_command_line_argument=no
8484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8489 CFLAGS="$xorg_testset_save_CFLAGS"
8494 if test $found = "no" ; then
8495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8503 CFLAGS="$CFLAGS -Wnonnull"
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8506 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8507 cacheid=xorg_cv_cc_flag__Wnonnull
8508 if eval \${$cacheid+:} false; then :
8509 $as_echo_n "(cached) " >&6
8511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8512 /* end confdefs.h. */
8522 if ac_fn_c_try_link "$LINENO"; then :
8527 rm -f core conftest.err conftest.$ac_objext \
8528 conftest$ac_exeext conftest.$ac_ext
8532 CFLAGS="$xorg_testset_save_CFLAGS"
8534 eval supported=\$$cacheid
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8536 $as_echo "$supported" >&6; }
8537 if test "$supported" = "yes" ; then
8538 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8557 xorg_testset_save_CFLAGS="$CFLAGS"
8559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8564 $as_echo_n "(cached) " >&6
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8570 if ac_fn_c_try_compile "$LINENO"; then :
8571 xorg_cv_cc_flag_unknown_warning_option=yes
8573 xorg_cv_cc_flag_unknown_warning_option=no
8575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8580 CFLAGS="$xorg_testset_save_CFLAGS"
8583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8591 $as_echo_n "(cached) " >&6
8593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8594 /* end confdefs.h. */
8597 if ac_fn_c_try_compile "$LINENO"; then :
8598 xorg_cv_cc_flag_unused_command_line_argument=yes
8600 xorg_cv_cc_flag_unused_command_line_argument=no
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8607 CFLAGS="$xorg_testset_save_CFLAGS"
8612 if test $found = "no" ; then
8613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8621 CFLAGS="$CFLAGS -Winit-self"
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8624 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8625 cacheid=xorg_cv_cc_flag__Winit_self
8626 if eval \${$cacheid+:} false; then :
8627 $as_echo_n "(cached) " >&6
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8640 if ac_fn_c_try_link "$LINENO"; then :
8645 rm -f core conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8650 CFLAGS="$xorg_testset_save_CFLAGS"
8652 eval supported=\$$cacheid
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8654 $as_echo "$supported" >&6; }
8655 if test "$supported" = "yes" ; then
8656 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8675 xorg_testset_save_CFLAGS="$CFLAGS"
8677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8682 $as_echo_n "(cached) " >&6
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8688 if ac_fn_c_try_compile "$LINENO"; then :
8689 xorg_cv_cc_flag_unknown_warning_option=yes
8691 xorg_cv_cc_flag_unknown_warning_option=no
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8698 CFLAGS="$xorg_testset_save_CFLAGS"
8701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8709 $as_echo_n "(cached) " >&6
8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8712 /* end confdefs.h. */
8715 if ac_fn_c_try_compile "$LINENO"; then :
8716 xorg_cv_cc_flag_unused_command_line_argument=yes
8718 xorg_cv_cc_flag_unused_command_line_argument=no
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8725 CFLAGS="$xorg_testset_save_CFLAGS"
8730 if test $found = "no" ; then
8731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8739 CFLAGS="$CFLAGS -Wmain"
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8742 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8743 cacheid=xorg_cv_cc_flag__Wmain
8744 if eval \${$cacheid+:} false; then :
8745 $as_echo_n "(cached) " >&6
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8758 if ac_fn_c_try_link "$LINENO"; then :
8763 rm -f core conftest.err conftest.$ac_objext \
8764 conftest$ac_exeext conftest.$ac_ext
8768 CFLAGS="$xorg_testset_save_CFLAGS"
8770 eval supported=\$$cacheid
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8772 $as_echo "$supported" >&6; }
8773 if test "$supported" = "yes" ; then
8774 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8793 xorg_testset_save_CFLAGS="$CFLAGS"
8795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8798 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8799 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8800 $as_echo_n "(cached) " >&6
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8806 if ac_fn_c_try_compile "$LINENO"; then :
8807 xorg_cv_cc_flag_unknown_warning_option=yes
8809 xorg_cv_cc_flag_unknown_warning_option=no
8811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8814 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8816 CFLAGS="$xorg_testset_save_CFLAGS"
8819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8825 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8826 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8827 $as_echo_n "(cached) " >&6
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8833 if ac_fn_c_try_compile "$LINENO"; then :
8834 xorg_cv_cc_flag_unused_command_line_argument=yes
8836 xorg_cv_cc_flag_unused_command_line_argument=no
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8841 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8842 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8843 CFLAGS="$xorg_testset_save_CFLAGS"
8848 if test $found = "no" ; then
8849 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8853 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8857 CFLAGS="$CFLAGS -Wmissing-braces"
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8860 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8861 cacheid=xorg_cv_cc_flag__Wmissing_braces
8862 if eval \${$cacheid+:} false; then :
8863 $as_echo_n "(cached) " >&6
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8876 if ac_fn_c_try_link "$LINENO"; then :
8881 rm -f core conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8886 CFLAGS="$xorg_testset_save_CFLAGS"
8888 eval supported=\$$cacheid
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8890 $as_echo "$supported" >&6; }
8891 if test "$supported" = "yes" ; then
8892 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8911 xorg_testset_save_CFLAGS="$CFLAGS"
8913 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8916 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8917 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8918 $as_echo_n "(cached) " >&6
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8924 if ac_fn_c_try_compile "$LINENO"; then :
8925 xorg_cv_cc_flag_unknown_warning_option=yes
8927 xorg_cv_cc_flag_unknown_warning_option=no
8929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8932 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8934 CFLAGS="$xorg_testset_save_CFLAGS"
8937 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8943 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8944 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8945 $as_echo_n "(cached) " >&6
8947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8951 if ac_fn_c_try_compile "$LINENO"; then :
8952 xorg_cv_cc_flag_unused_command_line_argument=yes
8954 xorg_cv_cc_flag_unused_command_line_argument=no
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8959 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8961 CFLAGS="$xorg_testset_save_CFLAGS"
8966 if test $found = "no" ; then
8967 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8971 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8975 CFLAGS="$CFLAGS -Wsequence-point"
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8978 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8979 cacheid=xorg_cv_cc_flag__Wsequence_point
8980 if eval \${$cacheid+:} false; then :
8981 $as_echo_n "(cached) " >&6
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8994 if ac_fn_c_try_link "$LINENO"; then :
8999 rm -f core conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
9004 CFLAGS="$xorg_testset_save_CFLAGS"
9006 eval supported=\$$cacheid
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9008 $as_echo "$supported" >&6; }
9009 if test "$supported" = "yes" ; then
9010 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9029 xorg_testset_save_CFLAGS="$CFLAGS"
9031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9034 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9035 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9036 $as_echo_n "(cached) " >&6
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9042 if ac_fn_c_try_compile "$LINENO"; then :
9043 xorg_cv_cc_flag_unknown_warning_option=yes
9045 xorg_cv_cc_flag_unknown_warning_option=no
9047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9050 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9052 CFLAGS="$xorg_testset_save_CFLAGS"
9055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9061 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9062 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9063 $as_echo_n "(cached) " >&6
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h. */
9069 if ac_fn_c_try_compile "$LINENO"; then :
9070 xorg_cv_cc_flag_unused_command_line_argument=yes
9072 xorg_cv_cc_flag_unused_command_line_argument=no
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9077 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9079 CFLAGS="$xorg_testset_save_CFLAGS"
9084 if test $found = "no" ; then
9085 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9089 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9093 CFLAGS="$CFLAGS -Wreturn-type"
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9096 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9097 cacheid=xorg_cv_cc_flag__Wreturn_type
9098 if eval \${$cacheid+:} false; then :
9099 $as_echo_n "(cached) " >&6
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9112 if ac_fn_c_try_link "$LINENO"; then :
9117 rm -f core conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9122 CFLAGS="$xorg_testset_save_CFLAGS"
9124 eval supported=\$$cacheid
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9126 $as_echo "$supported" >&6; }
9127 if test "$supported" = "yes" ; then
9128 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9147 xorg_testset_save_CFLAGS="$CFLAGS"
9149 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9152 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9153 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9154 $as_echo_n "(cached) " >&6
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9160 if ac_fn_c_try_compile "$LINENO"; then :
9161 xorg_cv_cc_flag_unknown_warning_option=yes
9163 xorg_cv_cc_flag_unknown_warning_option=no
9165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9168 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9173 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9179 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9180 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9181 $as_echo_n "(cached) " >&6
9183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9184 /* end confdefs.h. */
9187 if ac_fn_c_try_compile "$LINENO"; then :
9188 xorg_cv_cc_flag_unused_command_line_argument=yes
9190 xorg_cv_cc_flag_unused_command_line_argument=no
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9195 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9197 CFLAGS="$xorg_testset_save_CFLAGS"
9202 if test $found = "no" ; then
9203 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9207 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9211 CFLAGS="$CFLAGS -Wtrigraphs"
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9214 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9215 cacheid=xorg_cv_cc_flag__Wtrigraphs
9216 if eval \${$cacheid+:} false; then :
9217 $as_echo_n "(cached) " >&6
9219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9230 if ac_fn_c_try_link "$LINENO"; then :
9235 rm -f core conftest.err conftest.$ac_objext \
9236 conftest$ac_exeext conftest.$ac_ext
9240 CFLAGS="$xorg_testset_save_CFLAGS"
9242 eval supported=\$$cacheid
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9244 $as_echo "$supported" >&6; }
9245 if test "$supported" = "yes" ; then
9246 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9265 xorg_testset_save_CFLAGS="$CFLAGS"
9267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9272 $as_echo_n "(cached) " >&6
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9278 if ac_fn_c_try_compile "$LINENO"; then :
9279 xorg_cv_cc_flag_unknown_warning_option=yes
9281 xorg_cv_cc_flag_unknown_warning_option=no
9283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9288 CFLAGS="$xorg_testset_save_CFLAGS"
9291 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9299 $as_echo_n "(cached) " >&6
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9305 if ac_fn_c_try_compile "$LINENO"; then :
9306 xorg_cv_cc_flag_unused_command_line_argument=yes
9308 xorg_cv_cc_flag_unused_command_line_argument=no
9310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9315 CFLAGS="$xorg_testset_save_CFLAGS"
9320 if test $found = "no" ; then
9321 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9325 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9329 CFLAGS="$CFLAGS -Warray-bounds"
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9332 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9333 cacheid=xorg_cv_cc_flag__Warray_bounds
9334 if eval \${$cacheid+:} false; then :
9335 $as_echo_n "(cached) " >&6
9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9348 if ac_fn_c_try_link "$LINENO"; then :
9353 rm -f core conftest.err conftest.$ac_objext \
9354 conftest$ac_exeext conftest.$ac_ext
9358 CFLAGS="$xorg_testset_save_CFLAGS"
9360 eval supported=\$$cacheid
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9362 $as_echo "$supported" >&6; }
9363 if test "$supported" = "yes" ; then
9364 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9383 xorg_testset_save_CFLAGS="$CFLAGS"
9385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9388 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9389 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9390 $as_echo_n "(cached) " >&6
9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9393 /* end confdefs.h. */
9396 if ac_fn_c_try_compile "$LINENO"; then :
9397 xorg_cv_cc_flag_unknown_warning_option=yes
9399 xorg_cv_cc_flag_unknown_warning_option=no
9401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9404 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9406 CFLAGS="$xorg_testset_save_CFLAGS"
9409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9415 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9416 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9417 $as_echo_n "(cached) " >&6
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9423 if ac_fn_c_try_compile "$LINENO"; then :
9424 xorg_cv_cc_flag_unused_command_line_argument=yes
9426 xorg_cv_cc_flag_unused_command_line_argument=no
9428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9431 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9432 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9433 CFLAGS="$xorg_testset_save_CFLAGS"
9438 if test $found = "no" ; then
9439 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9443 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9444 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9447 CFLAGS="$CFLAGS -Wwrite-strings"
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9450 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9451 cacheid=xorg_cv_cc_flag__Wwrite_strings
9452 if eval \${$cacheid+:} false; then :
9453 $as_echo_n "(cached) " >&6
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9466 if ac_fn_c_try_link "$LINENO"; then :
9471 rm -f core conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext conftest.$ac_ext
9476 CFLAGS="$xorg_testset_save_CFLAGS"
9478 eval supported=\$$cacheid
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9480 $as_echo "$supported" >&6; }
9481 if test "$supported" = "yes" ; then
9482 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9501 xorg_testset_save_CFLAGS="$CFLAGS"
9503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9506 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9507 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9508 $as_echo_n "(cached) " >&6
9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9511 /* end confdefs.h. */
9514 if ac_fn_c_try_compile "$LINENO"; then :
9515 xorg_cv_cc_flag_unknown_warning_option=yes
9517 xorg_cv_cc_flag_unknown_warning_option=no
9519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9522 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9523 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9524 CFLAGS="$xorg_testset_save_CFLAGS"
9527 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9533 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9534 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9535 $as_echo_n "(cached) " >&6
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9541 if ac_fn_c_try_compile "$LINENO"; then :
9542 xorg_cv_cc_flag_unused_command_line_argument=yes
9544 xorg_cv_cc_flag_unused_command_line_argument=no
9546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9549 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9550 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9551 CFLAGS="$xorg_testset_save_CFLAGS"
9556 if test $found = "no" ; then
9557 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9561 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9565 CFLAGS="$CFLAGS -Waddress"
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9568 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9569 cacheid=xorg_cv_cc_flag__Waddress
9570 if eval \${$cacheid+:} false; then :
9571 $as_echo_n "(cached) " >&6
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9584 if ac_fn_c_try_link "$LINENO"; then :
9589 rm -f core conftest.err conftest.$ac_objext \
9590 conftest$ac_exeext conftest.$ac_ext
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9596 eval supported=\$$cacheid
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9598 $as_echo "$supported" >&6; }
9599 if test "$supported" = "yes" ; then
9600 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9619 xorg_testset_save_CFLAGS="$CFLAGS"
9621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9624 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9625 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9626 $as_echo_n "(cached) " >&6
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9632 if ac_fn_c_try_compile "$LINENO"; then :
9633 xorg_cv_cc_flag_unknown_warning_option=yes
9635 xorg_cv_cc_flag_unknown_warning_option=no
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9640 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9642 CFLAGS="$xorg_testset_save_CFLAGS"
9645 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9651 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9652 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9653 $as_echo_n "(cached) " >&6
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9659 if ac_fn_c_try_compile "$LINENO"; then :
9660 xorg_cv_cc_flag_unused_command_line_argument=yes
9662 xorg_cv_cc_flag_unused_command_line_argument=no
9664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9667 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9669 CFLAGS="$xorg_testset_save_CFLAGS"
9674 if test $found = "no" ; then
9675 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9679 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9683 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9686 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9687 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9688 if eval \${$cacheid+:} false; then :
9689 $as_echo_n "(cached) " >&6
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9702 if ac_fn_c_try_link "$LINENO"; then :
9707 rm -f core conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext conftest.$ac_ext
9712 CFLAGS="$xorg_testset_save_CFLAGS"
9714 eval supported=\$$cacheid
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9716 $as_echo "$supported" >&6; }
9717 if test "$supported" = "yes" ; then
9718 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9737 xorg_testset_save_CFLAGS="$CFLAGS"
9739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9744 $as_echo_n "(cached) " >&6
9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9747 /* end confdefs.h. */
9750 if ac_fn_c_try_compile "$LINENO"; then :
9751 xorg_cv_cc_flag_unknown_warning_option=yes
9753 xorg_cv_cc_flag_unknown_warning_option=no
9755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9760 CFLAGS="$xorg_testset_save_CFLAGS"
9763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9771 $as_echo_n "(cached) " >&6
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9777 if ac_fn_c_try_compile "$LINENO"; then :
9778 xorg_cv_cc_flag_unused_command_line_argument=yes
9780 xorg_cv_cc_flag_unused_command_line_argument=no
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9787 CFLAGS="$xorg_testset_save_CFLAGS"
9792 if test $found = "no" ; then
9793 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9797 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9801 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9804 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9805 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9806 if eval \${$cacheid+:} false; then :
9807 $as_echo_n "(cached) " >&6
9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9810 /* end confdefs.h. */
9820 if ac_fn_c_try_link "$LINENO"; then :
9825 rm -f core conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9830 CFLAGS="$xorg_testset_save_CFLAGS"
9832 eval supported=\$$cacheid
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9834 $as_echo "$supported" >&6; }
9835 if test "$supported" = "yes" ; then
9836 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9850 CWARNFLAGS="$BASE_CFLAGS"
9851 if test "x$GCC" = xyes ; then
9852 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9862 # Check whether --enable-strict-compilation was given.
9863 if test "${enable_strict_compilation+set}" = set; then :
9864 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9888 xorg_testset_save_CFLAGS="$CFLAGS"
9890 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9893 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9894 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9895 $as_echo_n "(cached) " >&6
9897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9898 /* end confdefs.h. */
9901 if ac_fn_c_try_compile "$LINENO"; then :
9902 xorg_cv_cc_flag_unknown_warning_option=yes
9904 xorg_cv_cc_flag_unknown_warning_option=no
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9909 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9911 CFLAGS="$xorg_testset_save_CFLAGS"
9914 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9920 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9921 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9922 $as_echo_n "(cached) " >&6
9924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925 /* end confdefs.h. */
9928 if ac_fn_c_try_compile "$LINENO"; then :
9929 xorg_cv_cc_flag_unused_command_line_argument=yes
9931 xorg_cv_cc_flag_unused_command_line_argument=no
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9936 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9938 CFLAGS="$xorg_testset_save_CFLAGS"
9943 if test $found = "no" ; then
9944 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9952 CFLAGS="$CFLAGS -pedantic"
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9955 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9956 cacheid=xorg_cv_cc_flag__pedantic
9957 if eval \${$cacheid+:} false; then :
9958 $as_echo_n "(cached) " >&6
9960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9971 if ac_fn_c_try_link "$LINENO"; then :
9976 rm -f core conftest.err conftest.$ac_objext \
9977 conftest$ac_exeext conftest.$ac_ext
9981 CFLAGS="$xorg_testset_save_CFLAGS"
9983 eval supported=\$$cacheid
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9985 $as_echo "$supported" >&6; }
9986 if test "$supported" = "yes" ; then
9987 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10006 xorg_testset_save_CFLAGS="$CFLAGS"
10008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10011 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10012 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10013 $as_echo_n "(cached) " >&6
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10019 if ac_fn_c_try_compile "$LINENO"; then :
10020 xorg_cv_cc_flag_unknown_warning_option=yes
10022 xorg_cv_cc_flag_unknown_warning_option=no
10024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10027 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10029 CFLAGS="$xorg_testset_save_CFLAGS"
10032 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10038 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10039 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10040 $as_echo_n "(cached) " >&6
10042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043 /* end confdefs.h. */
10046 if ac_fn_c_try_compile "$LINENO"; then :
10047 xorg_cv_cc_flag_unused_command_line_argument=yes
10049 xorg_cv_cc_flag_unused_command_line_argument=no
10051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10054 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10056 CFLAGS="$xorg_testset_save_CFLAGS"
10061 if test $found = "no" ; then
10062 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10066 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10070 CFLAGS="$CFLAGS -Werror"
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
10073 $as_echo_n "checking if $CC supports-Werror... " >&6; }
10074 cacheid=xorg_cv_cc_flag__Werror
10075 if eval \${$cacheid+:} false; then :
10076 $as_echo_n "(cached) " >&6
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10089 if ac_fn_c_try_link "$LINENO"; then :
10094 rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10099 CFLAGS="$xorg_testset_save_CFLAGS"
10101 eval supported=\$$cacheid
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10103 $as_echo "$supported" >&6; }
10104 if test "$supported" = "yes" ; then
10105 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10110 if test $found = "no" ; then
10111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10119 CFLAGS="$CFLAGS -errwarn"
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10122 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10123 cacheid=xorg_cv_cc_flag__errwarn
10124 if eval \${$cacheid+:} false; then :
10125 $as_echo_n "(cached) " >&6
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10138 if ac_fn_c_try_link "$LINENO"; then :
10143 rm -f core conftest.err conftest.$ac_objext \
10144 conftest$ac_exeext conftest.$ac_ext
10148 CFLAGS="$xorg_testset_save_CFLAGS"
10150 eval supported=\$$cacheid
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10152 $as_echo "$supported" >&6; }
10153 if test "$supported" = "yes" ; then
10154 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10161 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10162 # activate it with -Werror, so we add it here explicitly.
10176 xorg_testset_save_CFLAGS="$CFLAGS"
10178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10181 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10182 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10183 $as_echo_n "(cached) " >&6
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10189 if ac_fn_c_try_compile "$LINENO"; then :
10190 xorg_cv_cc_flag_unknown_warning_option=yes
10192 xorg_cv_cc_flag_unknown_warning_option=no
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10197 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10198 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10199 CFLAGS="$xorg_testset_save_CFLAGS"
10202 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10208 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10209 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10210 $as_echo_n "(cached) " >&6
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10216 if ac_fn_c_try_compile "$LINENO"; then :
10217 xorg_cv_cc_flag_unused_command_line_argument=yes
10219 xorg_cv_cc_flag_unused_command_line_argument=no
10221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10224 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10226 CFLAGS="$xorg_testset_save_CFLAGS"
10231 if test $found = "no" ; then
10232 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10236 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10240 CFLAGS="$CFLAGS -Werror=attributes"
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10243 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10244 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10245 if eval \${$cacheid+:} false; then :
10246 $as_echo_n "(cached) " >&6
10248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10259 if ac_fn_c_try_link "$LINENO"; then :
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10269 CFLAGS="$xorg_testset_save_CFLAGS"
10271 eval supported=\$$cacheid
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10273 $as_echo "$supported" >&6; }
10274 if test "$supported" = "yes" ; then
10275 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10282 if test "x$STRICT_COMPILE" = "xyes"; then
10283 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10284 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10292 cat >>confdefs.h <<_ACEOF
10293 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10296 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10297 if test "x$PVM" = "x"; then
10301 cat >>confdefs.h <<_ACEOF
10302 #define PACKAGE_VERSION_MINOR $PVM
10305 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10306 if test "x$PVP" = "x"; then
10310 cat >>confdefs.h <<_ACEOF
10311 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10316 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10317 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10318 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10319 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10324 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10325 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10326 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10327 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10328 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10335 if test x$APP_MAN_SUFFIX = x ; then
10338 if test x$APP_MAN_DIR = x ; then
10339 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10342 if test x$LIB_MAN_SUFFIX = x ; then
10345 if test x$LIB_MAN_DIR = x ; then
10346 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10349 if test x$FILE_MAN_SUFFIX = x ; then
10351 solaris*) FILE_MAN_SUFFIX=4 ;;
10352 *) FILE_MAN_SUFFIX=5 ;;
10355 if test x$FILE_MAN_DIR = x ; then
10356 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10359 if test x$MISC_MAN_SUFFIX = x ; then
10361 solaris*) MISC_MAN_SUFFIX=5 ;;
10362 *) MISC_MAN_SUFFIX=7 ;;
10365 if test x$MISC_MAN_DIR = x ; then
10366 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10369 if test x$DRIVER_MAN_SUFFIX = x ; then
10371 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10372 *) DRIVER_MAN_SUFFIX=4 ;;
10375 if test x$DRIVER_MAN_DIR = x ; then
10376 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10379 if test x$ADMIN_MAN_SUFFIX = x ; then
10381 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10382 *) ADMIN_MAN_SUFFIX=8 ;;
10385 if test x$ADMIN_MAN_DIR = x ; then
10386 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10403 XORG_MAN_PAGE="X Version 11"
10406 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10407 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10408 -e 's|__xservername__|Xorg|g' \
10409 -e 's|__xconfigfile__|xorg.conf|g' \
10410 -e 's|__projectroot__|\$(prefix)|g' \
10411 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10412 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10413 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10414 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10415 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10416 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10417 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10421 # Check whether --enable-silent-rules was given.
10422 if test "${enable_silent_rules+set}" = set; then :
10423 enableval=$enable_silent_rules;
10426 case $enable_silent_rules in
10427 yes) AM_DEFAULT_VERBOSITY=0;;
10428 no) AM_DEFAULT_VERBOSITY=1;;
10429 *) AM_DEFAULT_VERBOSITY=0;;
10435 for ac_prog in 'bison -y' byacc
10437 # Extract the first word of "$ac_prog", so it can be a program name with args.
10438 set dummy $ac_prog; ac_word=$2
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10440 $as_echo_n "checking for $ac_word... " >&6; }
10441 if ${ac_cv_prog_YACC+:} false; then :
10442 $as_echo_n "(cached) " >&6
10444 if test -n "$YACC"; then
10445 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10454 ac_cv_prog_YACC="$ac_prog"
10455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10464 YACC=$ac_cv_prog_YACC
10465 if test -n "$YACC"; then
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10467 $as_echo "$YACC" >&6; }
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 $as_echo "no" >&6; }
10474 test -n "$YACC" && break
10476 test -n "$YACC" || YACC="yacc"
10478 # Extract the first word of "$YACC", so it can be a program name with args.
10479 set dummy $YACC; ac_word=$2
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481 $as_echo_n "checking for $ac_word... " >&6; }
10482 if ${ac_cv_path_YACC_INST+:} false; then :
10483 $as_echo_n "(cached) " >&6
10487 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10508 YACC_INST=$ac_cv_path_YACC_INST
10509 if test -n "$YACC_INST"; then
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
10511 $as_echo "$YACC_INST" >&6; }
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10514 $as_echo "no" >&6; }
10518 if test ! -f "cfgparse.c"; then
10519 if test -z "$YACC_INST"; then
10520 as_fn_error $? "yacc not found - unable to compile cfgparse.y" "$LINENO" 5
10524 for ac_func in strcasecmp
10526 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
10527 if test "x$ac_cv_func_strcasecmp" = xyes; then :
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_STRCASECMP 1
10536 # Checks for pkg-config packages
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XKBEVD" >&5
10540 $as_echo_n "checking for XKBEVD... " >&6; }
10542 if test -n "$XKBEVD_CFLAGS"; then
10543 pkg_cv_XKBEVD_CFLAGS="$XKBEVD_CFLAGS"
10544 elif test -n "$PKG_CONFIG"; then
10545 if test -n "$PKG_CONFIG" && \
10546 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
10547 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
10549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10550 test $ac_status = 0; }; then
10551 pkg_cv_XKBEVD_CFLAGS=`$PKG_CONFIG --cflags "xkbfile x11" 2>/dev/null`
10558 if test -n "$XKBEVD_LIBS"; then
10559 pkg_cv_XKBEVD_LIBS="$XKBEVD_LIBS"
10560 elif test -n "$PKG_CONFIG"; then
10561 if test -n "$PKG_CONFIG" && \
10562 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xkbfile x11\""; } >&5
10563 ($PKG_CONFIG --exists --print-errors "xkbfile x11") 2>&5
10565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566 test $ac_status = 0; }; then
10567 pkg_cv_XKBEVD_LIBS=`$PKG_CONFIG --libs "xkbfile x11" 2>/dev/null`
10577 if test $pkg_failed = yes; then
10579 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10580 _pkg_short_errors_supported=yes
10582 _pkg_short_errors_supported=no
10584 if test $_pkg_short_errors_supported = yes; then
10585 XKBEVD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xkbfile x11" 2>&1`
10587 XKBEVD_PKG_ERRORS=`$PKG_CONFIG --print-errors "xkbfile x11" 2>&1`
10589 # Put the nasty error message in config.log where it belongs
10590 echo "$XKBEVD_PKG_ERRORS" >&5
10592 as_fn_error $? "Package requirements (xkbfile x11) were not met:
10596 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10597 installed software in a non-standard prefix.
10599 Alternatively, you may set the environment variables XKBEVD_CFLAGS
10600 and XKBEVD_LIBS to avoid the need to call pkg-config.
10601 See the pkg-config man page for more details.
10603 elif test $pkg_failed = untried; then
10604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10606 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10607 is in your PATH or set the PKG_CONFIG environment variable to the full
10608 path to pkg-config.
10610 Alternatively, you may set the environment variables XKBEVD_CFLAGS
10611 and XKBEVD_LIBS to avoid the need to call pkg-config.
10612 See the pkg-config man page for more details.
10614 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10615 See \`config.log' for more details" "$LINENO" 5; }
10617 XKBEVD_CFLAGS=$pkg_cv_XKBEVD_CFLAGS
10618 XKBEVD_LIBS=$pkg_cv_XKBEVD_LIBS
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10620 $as_echo "yes" >&6; }
10624 ac_config_files="$ac_config_files Makefile man/Makefile"
10626 cat >confcache <<\_ACEOF
10627 # This file is a shell script that caches the results of configure
10628 # tests run on this system so they can be shared between configure
10629 # scripts and configure runs, see configure's option --config-cache.
10630 # It is not useful on other systems. If it contains results you don't
10631 # want to keep, you may remove or edit it.
10633 # config.status only pays attention to the cache file if you give it
10634 # the --recheck option to rerun configure.
10636 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10637 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10638 # following values.
10642 # The following way of writing the cache mishandles newlines in values,
10643 # but we know of no workaround that is simple, portable, and efficient.
10644 # So, we kill variables containing newlines.
10645 # Ultrix sh set writes to stderr and can't be redirected directly,
10646 # and sets the high bit in the cache file unless we assign to the vars.
10648 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10649 eval ac_val=\$$ac_var
10653 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10654 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10657 _ | IFS | as_nl) ;; #(
10658 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10659 *) { eval $ac_var=; unset $ac_var;} ;;
10665 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10666 *${as_nl}ac_space=\ *)
10667 # `set' does not quote correctly, so add quotes: double-quote
10668 # substitution turns \\\\ into \\, and sed turns \\ into \.
10671 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10674 # `set' quotes correctly as required by POSIX, so do not add quotes.
10675 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10684 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10686 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10689 if test -w "$cache_file"; then
10690 if test "x$cache_file" != "x/dev/null"; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10692 $as_echo "$as_me: updating cache $cache_file" >&6;}
10693 if test ! -f "$cache_file" || test -h "$cache_file"; then
10694 cat confcache >"$cache_file"
10696 case $cache_file in #(
10698 mv -f confcache "$cache_file"$$ &&
10699 mv -f "$cache_file"$$ "$cache_file" ;; #(
10701 mv -f confcache "$cache_file" ;;
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10707 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10712 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10713 # Let make expand exec_prefix.
10714 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10716 DEFS=-DHAVE_CONFIG_H
10721 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10722 # 1. Remove the extension, and $U if already installed.
10723 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10724 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10725 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10726 # will be set to the directory where LIBOBJS objects are built.
10727 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10728 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10730 LIBOBJS=$ac_libobjs
10732 LTLIBOBJS=$ac_ltlibobjs
10735 if test -n "$EXEEXT"; then
10737 am__EXEEXT_FALSE='#'
10739 am__EXEEXT_TRUE='#'
10743 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10744 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10747 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10748 as_fn_error $? "conditional \"AMDEP\" was never defined.
10749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10751 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10752 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10756 : "${CONFIG_STATUS=./config.status}"
10758 ac_clean_files_save=$ac_clean_files
10759 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10761 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10763 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10765 # Generated by $as_me.
10766 # Run this file to recreate the current configuration.
10767 # Compiler output produced by configure, useful for debugging
10768 # configure, is in config.log if it exists.
10771 ac_cs_recheck=false
10774 SHELL=\${CONFIG_SHELL-$SHELL}
10777 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10778 ## -------------------- ##
10779 ## M4sh Initialization. ##
10780 ## -------------------- ##
10782 # Be more Bourne compatible
10783 DUALCASE=1; export DUALCASE # for MKS sh
10784 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10787 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10788 # is contrary to our usage. Disable this feature.
10789 alias -g '${1+"$@"}'='"$@"'
10790 setopt NO_GLOB_SUBST
10792 case `(set -o) 2>/dev/null` in #(
10804 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10805 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10806 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10807 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10808 # Prefer a ksh shell builtin over an external printf program on Solaris,
10809 # but without wasting forks for bash or zsh.
10810 if test -z "$BASH_VERSION$ZSH_VERSION" \
10811 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10812 as_echo='print -r --'
10813 as_echo_n='print -rn --'
10814 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10815 as_echo='printf %s\n'
10816 as_echo_n='printf %s'
10818 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10819 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10820 as_echo_n='/usr/ucb/echo -n'
10822 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10823 as_echo_n_body='eval
10827 expr "X$arg" : "X\\(.*\\)$as_nl";
10828 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10830 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10832 export as_echo_n_body
10833 as_echo_n='sh -c $as_echo_n_body as_echo'
10835 export as_echo_body
10836 as_echo='sh -c $as_echo_body as_echo'
10839 # The user is always right.
10840 if test "${PATH_SEPARATOR+set}" != set; then
10842 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10843 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10850 # We need space, tab and new line, in precisely that order. Quoting is
10851 # there to prevent editors from complaining about space-tab.
10852 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10853 # splitting by setting IFS to empty value.)
10856 # Find who we are. Look in the path if we contain no directory separator.
10859 *[\\/]* ) as_myself=$0 ;;
10860 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10861 for as_dir in $PATH
10864 test -z "$as_dir" && as_dir=.
10865 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10871 # We did not find ourselves, most probably we were run as `sh COMMAND'
10872 # in which case we are not to be found in the path.
10873 if test "x$as_myself" = x; then
10876 if test ! -f "$as_myself"; then
10877 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10881 # Unset variables that we do not need and which cause bugs (e.g. in
10882 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10883 # suppresses any "Segmentation fault" message there. '((' could
10884 # trigger a bug in pdksh 5.2.14.
10885 for as_var in BASH_ENV ENV MAIL MAILPATH
10886 do eval test x\${$as_var+set} = xset \
10887 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10900 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10903 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10904 # ----------------------------------------
10905 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10906 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10907 # script with STATUS, using 1 if that was 0.
10910 as_status=$1; test $as_status -eq 0 && as_status=1
10912 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10913 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10915 $as_echo "$as_me: error: $2" >&2
10916 as_fn_exit $as_status
10920 # as_fn_set_status STATUS
10921 # -----------------------
10922 # Set $? to STATUS, without forking.
10923 as_fn_set_status ()
10926 } # as_fn_set_status
10928 # as_fn_exit STATUS
10929 # -----------------
10930 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10934 as_fn_set_status $1
10940 # Portably unset VAR.
10943 { eval $1=; unset $1;}
10945 as_unset=as_fn_unset
10946 # as_fn_append VAR VALUE
10947 # ----------------------
10948 # Append the text in VALUE to the end of the definition contained in VAR. Take
10949 # advantage of any shell optimizations that allow amortized linear growth over
10950 # repeated appends, instead of the typical quadratic growth present in naive
10952 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10953 eval 'as_fn_append ()
10964 # as_fn_arith ARG...
10965 # ------------------
10966 # Perform arithmetic evaluation on the ARGs, and store the result in the
10967 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10968 # must be portable across $(()) and expr.
10969 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10970 eval 'as_fn_arith ()
10977 as_val=`expr "$@" || test $? -eq 1`
10982 if expr a : '\(a\)' >/dev/null 2>&1 &&
10983 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10989 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10990 as_basename=basename
10995 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11001 as_me=`$as_basename -- "$0" ||
11002 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11003 X"$0" : 'X\(//\)$' \| \
11004 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11006 sed '/^.*\/\([^/][^/]*\)\/*$/{
11020 # Avoid depending upon Character Ranges.
11021 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11022 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11023 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11024 as_cr_digits='0123456789'
11025 as_cr_alnum=$as_cr_Letters$as_cr_digits
11027 ECHO_C= ECHO_N= ECHO_T=
11028 case `echo -n x` in #(((((
11030 case `echo 'xy\c'` in
11031 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11033 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11040 rm -f conf$$ conf$$.exe conf$$.file
11041 if test -d conf$$.dir; then
11042 rm -f conf$$.dir/conf$$.file
11045 mkdir conf$$.dir 2>/dev/null
11047 if (echo >conf$$.file) 2>/dev/null; then
11048 if ln -s conf$$.file conf$$ 2>/dev/null; then
11050 # ... but there are two gotchas:
11051 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11052 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11053 # In both cases, we have to default to `cp -p'.
11054 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11056 elif ln conf$$.file conf$$ 2>/dev/null; then
11064 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11065 rmdir conf$$.dir 2>/dev/null
11070 # Create "$as_dir" as a directory, including parents if necessary.
11075 -*) as_dir=./$as_dir;;
11077 test -d "$as_dir" || eval $as_mkdir_p || {
11081 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11082 *) as_qdir=$as_dir;;
11084 as_dirs="'$as_qdir' $as_dirs"
11085 as_dir=`$as_dirname -- "$as_dir" ||
11086 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11087 X"$as_dir" : 'X\(//\)[^/]' \| \
11088 X"$as_dir" : 'X\(//\)$' \| \
11089 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11090 $as_echo X"$as_dir" |
11091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11095 /^X\(\/\/\)[^/].*/{
11108 test -d "$as_dir" && break
11110 test -z "$as_dirs" || eval "mkdir $as_dirs"
11111 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11115 if mkdir -p . 2>/dev/null; then
11116 as_mkdir_p='mkdir -p "$as_dir"'
11118 test -d ./-p && rmdir ./-p
11122 if test -x / >/dev/null 2>&1; then
11123 as_test_x='test -x'
11125 if ls -dL / >/dev/null 2>&1; then
11132 if test -d "$1"; then
11138 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11139 ???[sx]*):;;*)false;;esac;fi
11143 as_executable_p=$as_test_x
11145 # Sed expression to map a string onto a valid CPP name.
11146 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11148 # Sed expression to map a string onto a valid variable name.
11149 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11153 ## ----------------------------------- ##
11154 ## Main body of $CONFIG_STATUS script. ##
11155 ## ----------------------------------- ##
11157 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11160 # Save the log message, to keep $0 and so on meaningful, and to
11161 # report actual input values of CONFIG_FILES etc. instead of their
11162 # values after options handling.
11164 This file was extended by xkbevd $as_me 1.1.3, which was
11165 generated by GNU Autoconf 2.68. Invocation command line was
11167 CONFIG_FILES = $CONFIG_FILES
11168 CONFIG_HEADERS = $CONFIG_HEADERS
11169 CONFIG_LINKS = $CONFIG_LINKS
11170 CONFIG_COMMANDS = $CONFIG_COMMANDS
11173 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11178 case $ac_config_files in *"
11179 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11182 case $ac_config_headers in *"
11183 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11187 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11188 # Files that config.status was made for.
11189 config_files="$ac_config_files"
11190 config_headers="$ac_config_headers"
11191 config_commands="$ac_config_commands"
11195 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11197 \`$as_me' instantiates files and other configuration actions
11198 from templates according to the current configuration. Unless the files
11199 and actions are specified as TAGs, all are instantiated by default.
11201 Usage: $0 [OPTION]... [TAG]...
11203 -h, --help print this help, then exit
11204 -V, --version print version number and configuration settings, then exit
11205 --config print configuration, then exit
11206 -q, --quiet, --silent
11207 do not print progress messages
11208 -d, --debug don't remove temporary files
11209 --recheck update $as_me by reconfiguring in the same conditions
11210 --file=FILE[:TEMPLATE]
11211 instantiate the configuration file FILE
11212 --header=FILE[:TEMPLATE]
11213 instantiate the configuration header FILE
11215 Configuration files:
11218 Configuration headers:
11221 Configuration commands:
11224 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11228 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11230 xkbevd config.status 1.1.3
11231 configured by $0, generated by GNU Autoconf 2.68,
11232 with options \\"\$ac_cs_config\\"
11234 Copyright (C) 2010 Free Software Foundation, Inc.
11235 This config.status script is free software; the Free Software Foundation
11236 gives unlimited permission to copy, distribute and modify it."
11243 test -n "\$AWK" || AWK=awk
11246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11247 # The default lists apply if the user does not specify any file.
11253 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11254 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11270 # Handling of the options.
11271 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11273 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11274 $as_echo "$ac_cs_version"; exit ;;
11275 --config | --confi | --conf | --con | --co | --c )
11276 $as_echo "$ac_cs_config"; exit ;;
11277 --debug | --debu | --deb | --de | --d | -d )
11279 --file | --fil | --fi | --f )
11282 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11283 '') as_fn_error $? "missing file argument" ;;
11285 as_fn_append CONFIG_FILES " '$ac_optarg'"
11286 ac_need_defaults=false;;
11287 --header | --heade | --head | --hea )
11290 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11292 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11293 ac_need_defaults=false;;
11295 # Conflict between --help and --header
11296 as_fn_error $? "ambiguous option: \`$1'
11297 Try \`$0 --help' for more information.";;
11298 --help | --hel | -h )
11299 $as_echo "$ac_cs_usage"; exit ;;
11300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11304 # This is an error.
11305 -*) as_fn_error $? "unrecognized option: \`$1'
11306 Try \`$0 --help' for more information." ;;
11308 *) as_fn_append ac_config_targets " $1"
11309 ac_need_defaults=false ;;
11315 ac_configure_extra_args=
11317 if $ac_cs_silent; then
11319 ac_configure_extra_args="$ac_configure_extra_args --silent"
11323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11324 if \$ac_cs_recheck; then
11325 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11327 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11328 CONFIG_SHELL='$SHELL'
11329 export CONFIG_SHELL
11334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11338 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11339 ## Running $as_me. ##
11345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11349 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11355 # Handling of arguments.
11356 for ac_config_target in $ac_config_targets
11358 case $ac_config_target in
11359 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11360 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11361 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11362 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11364 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11369 # If the user did not use the arguments to specify the items to instantiate,
11370 # then the envvar interface is used. Set only those that are not.
11371 # We use the long form for the default assignment because of an extremely
11372 # bizarre bug on SunOS 4.1.3.
11373 if $ac_need_defaults; then
11374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11375 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11376 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11379 # Have a temporary directory for convenience. Make it in the build tree
11380 # simply because there is no reason against having it here, and in addition,
11381 # creating and moving files from /tmp can sometimes cause problems.
11382 # Hook for its removal unless debugging.
11383 # Note that there is a small window in which the directory will not be cleaned:
11384 # after its creation but before its name has been assigned to `$tmp'.
11388 trap 'exit_status=$?
11389 : "${ac_tmp:=$tmp}"
11390 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11392 trap 'as_fn_exit 1' 1 2 13 15
11394 # Create a (secure) tmp directory for tmp files.
11397 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11401 tmp=./conf$$-$RANDOM
11402 (umask 077 && mkdir "$tmp")
11403 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11406 # Set up the scripts for CONFIG_FILES section.
11407 # No need to generate them if there are no CONFIG_FILES.
11408 # This happens for instance with `./config.status config.h'.
11409 if test -n "$CONFIG_FILES"; then
11412 ac_cr=`echo X | tr X '\015'`
11413 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11414 # But we know of no other shell where ac_cr would be empty at this
11415 # point, so we can use a bashism as a fallback.
11416 if test "x$ac_cr" = x; then
11417 eval ac_cr=\$\'\\r\'
11419 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11420 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11423 ac_cs_awk_cr=$ac_cr
11426 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11431 echo "cat >conf$$subs.awk <<_ACEOF" &&
11432 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11434 } >conf$$subs.sh ||
11435 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11436 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11438 for ac_last_try in false false false false false :; do
11439 . ./conf$$subs.sh ||
11440 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11442 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11443 if test $ac_delim_n = $ac_delim_num; then
11445 elif $ac_last_try; then
11446 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11448 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11451 rm -f conf$$subs.sh
11453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11454 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11458 s/^/S["/; s/!.*/"]=/
11468 s/\(.\{148\}\)..*/\1/
11470 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11475 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11482 s/\(.\{148\}\)..*/\1/
11484 s/["\\]/\\&/g; s/^/"/; s/$/"/
11488 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11493 ' <conf$$subs.awk | sed '
11498 ' >>$CONFIG_STATUS || ac_write_fail=1
11499 rm -f conf$$subs.awk
11500 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11502 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11503 for (key in S) S_is_set[key] = 1
11509 nfields = split(line, field, "@")
11511 len = length(field[1])
11512 for (i = 2; i < nfields; i++) {
11514 keylen = length(key)
11515 if (S_is_set[key]) {
11517 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11518 len += length(value) + length(field[++i])
11529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11530 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11531 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11534 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11535 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11538 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11539 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11540 # trailing colons and then remove the whole line if VPATH becomes empty
11541 # (actually we leave an empty line to preserve line numbers).
11542 if test "x$srcdir" = x.; then
11543 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11562 fi # test -n "$CONFIG_FILES"
11564 # Set up the scripts for CONFIG_HEADERS section.
11565 # No need to generate them if there are no CONFIG_HEADERS.
11566 # This happens for instance with `./config.status Makefile'.
11567 if test -n "$CONFIG_HEADERS"; then
11568 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11572 # Transform confdefs.h into an awk script `defines.awk', embedded as
11573 # here-document in config.status, that substitutes the proper values into
11574 # config.h.in to produce config.h.
11576 # Create a delimiter string that does not exist in confdefs.h, to ease
11577 # handling of long lines.
11579 for ac_last_try in false false :; do
11580 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11581 if test -z "$ac_tt"; then
11583 elif $ac_last_try; then
11584 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11586 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11590 # For the awk script, D is an array of macro values keyed by name,
11591 # likewise P contains macro parameters if any. Preserve backslash
11592 # newline sequences.
11594 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11596 s/.\{148\}/&'"$ac_delim"'/g
11599 s/^[ ]*#[ ]*define[ ][ ]*/ /
11606 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11608 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11612 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11613 D["\1"]=" \3\\\\\\n"\\/p
11615 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11620 s/.\{148\}/&'"$ac_delim"'/g
11625 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11628 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11630 ' <confdefs.h | sed '
11631 s/'"$ac_delim"'/"\\\
11632 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11635 for (key in D) D_is_set[key] = 1
11638 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11640 split(line, arg, " ")
11641 if (arg[1] == "#") {
11645 defundef = substr(arg[1], 2)
11648 split(mac1, mac2, "(") #)
11650 prefix = substr(line, 1, index(line, defundef) - 1)
11651 if (D_is_set[macro]) {
11652 # Preserve the white space surrounding the "#".
11653 print prefix "define", macro P[macro] D[macro]
11656 # Replace #undef with comments. This is necessary, for example,
11657 # in the case of _POSIX_SOURCE, which is predefined and required
11658 # on some systems where configure will not decide to define it.
11659 if (defundef == "undef") {
11660 print "/*", prefix defundef, macro, "*/"
11668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11669 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11670 fi # test -n "$CONFIG_HEADERS"
11673 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11678 :[FHLC]) ac_mode=$ac_tag; continue;;
11680 case $ac_mode$ac_tag in
11682 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11683 :[FH]-) ac_tag=-:-;;
11684 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11701 -) ac_f="$ac_tmp/stdin";;
11702 *) # Look for the file first in the build tree, then in the source tree
11703 # (if the path is not absolute). The absolute path cannot be DOS-style,
11704 # because $ac_f cannot contain `:'.
11708 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11710 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11712 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11713 as_fn_append ac_file_inputs " '$ac_f'"
11716 # Let's still pretend it is `configure' which instantiates (i.e., don't
11717 # use $as_me), people would be surprised to read:
11718 # /* config.h. Generated by config.status. */
11719 configure_input='Generated from '`
11720 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11722 if test x"$ac_file" != x-; then
11723 configure_input="$ac_file. $configure_input"
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11725 $as_echo "$as_me: creating $ac_file" >&6;}
11727 # Neutralize special characters interpreted by sed in replacement strings.
11728 case $configure_input in #(
11729 *\&* | *\|* | *\\* )
11730 ac_sed_conf_input=`$as_echo "$configure_input" |
11731 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11732 *) ac_sed_conf_input=$configure_input;;
11736 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11737 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11742 ac_dir=`$as_dirname -- "$ac_file" ||
11743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11744 X"$ac_file" : 'X\(//\)[^/]' \| \
11745 X"$ac_file" : 'X\(//\)$' \| \
11746 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11747 $as_echo X"$ac_file" |
11748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11752 /^X\(\/\/\)[^/].*/{
11765 as_dir="$ac_dir"; as_fn_mkdir_p
11769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11772 # A ".." for each directory in $ac_dir_suffix.
11773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11774 case $ac_top_builddir_sub in
11775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11779 ac_abs_top_builddir=$ac_pwd
11780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11781 # for backward compatibility:
11782 ac_top_builddir=$ac_top_build_prefix
11785 .) # We are building in place.
11787 ac_top_srcdir=$ac_top_builddir_sub
11788 ac_abs_top_srcdir=$ac_pwd ;;
11789 [\\/]* | ?:[\\/]* ) # Absolute name.
11790 ac_srcdir=$srcdir$ac_dir_suffix;
11791 ac_top_srcdir=$srcdir
11792 ac_abs_top_srcdir=$srcdir ;;
11793 *) # Relative name.
11794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11795 ac_top_srcdir=$ac_top_build_prefix$srcdir
11796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11808 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11809 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11811 ac_MKDIR_P=$MKDIR_P
11813 [\\/$]* | ?:[\\/]* ) ;;
11814 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11819 # If the template does not know about datarootdir, expand it.
11820 # FIXME: This hack should be removed a few years after 2.60.
11821 ac_datarootdir_hack=; ac_datarootdir_seen=
11832 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11833 *datarootdir*) ac_datarootdir_seen=yes;;
11834 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11836 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11839 ac_datarootdir_hack='
11840 s&@datadir@&$datadir&g
11841 s&@docdir@&$docdir&g
11842 s&@infodir@&$infodir&g
11843 s&@localedir@&$localedir&g
11844 s&@mandir@&$mandir&g
11845 s&\\\${datarootdir}&$datarootdir&g' ;;
11849 # Neutralize VPATH when `$srcdir' = `.'.
11850 # Shell code in configure.ac might set extrasub.
11851 # FIXME: do we really want to maintain this feature?
11852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11853 ac_sed_extra="$ac_vpsub
11856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11858 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11859 s|@configure_input@|$ac_sed_conf_input|;t t
11860 s&@top_builddir@&$ac_top_builddir_sub&;t t
11861 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11862 s&@srcdir@&$ac_srcdir&;t t
11863 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11864 s&@top_srcdir@&$ac_top_srcdir&;t t
11865 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11866 s&@builddir@&$ac_builddir&;t t
11867 s&@abs_builddir@&$ac_abs_builddir&;t t
11868 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11869 s&@INSTALL@&$ac_INSTALL&;t t
11870 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11871 $ac_datarootdir_hack
11873 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11874 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11876 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11877 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11878 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11879 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11881 which seems to be undefined. Please make sure it is defined" >&5
11882 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11883 which seems to be undefined. Please make sure it is defined" >&2;}
11885 rm -f "$ac_tmp/stdin"
11887 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11888 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11890 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11896 if test x"$ac_file" != x-; then
11898 $as_echo "/* $configure_input */" \
11899 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11900 } >"$ac_tmp/config.h" \
11901 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11902 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11904 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11907 mv "$ac_tmp/config.h" "$ac_file" \
11908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11911 $as_echo "/* $configure_input */" \
11912 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11913 || as_fn_error $? "could not create -" "$LINENO" 5
11915 # Compute "$ac_file"'s index in $config_headers.
11918 for _am_header in $config_headers :; do
11919 case $_am_header in
11920 $_am_arg | $_am_arg:* )
11923 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
11926 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
11927 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11928 X"$_am_arg" : 'X\(//\)[^/]' \| \
11929 X"$_am_arg" : 'X\(//\)$' \| \
11930 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
11931 $as_echo X"$_am_arg" |
11932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11936 /^X\(\/\/\)[^/].*/{
11948 s/.*/./; q'`/stamp-h$_am_stamp_count
11951 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11952 $as_echo "$as_me: executing $ac_file commands" >&6;}
11957 case $ac_file$ac_mode in
11958 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11959 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11960 # are listed without --file. Let's play safe and only enable the eval
11961 # if we detect the quoting.
11962 case $CONFIG_FILES in
11963 *\'*) eval set x "$CONFIG_FILES" ;;
11964 *) set x $CONFIG_FILES ;;
11969 # Strip MF so we end up with the name of the file.
11970 mf=`echo "$mf" | sed -e 's/:.*$//'`
11971 # Check whether this is an Automake generated Makefile or not.
11972 # We used to match only the files named `Makefile.in', but
11973 # some people rename them; so instead we look at the file content.
11974 # Grep'ing the first line is not enough: some people post-process
11975 # each Makefile.in and add a new line on top of each file to say so.
11976 # Grep'ing the whole file is not good either: AIX grep has a line
11977 # limit of 2048, but all sed's we know have understand at least 4000.
11978 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11979 dirpart=`$as_dirname -- "$mf" ||
11980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11981 X"$mf" : 'X\(//\)[^/]' \| \
11982 X"$mf" : 'X\(//\)$' \| \
11983 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11985 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11989 /^X\(\/\/\)[^/].*/{
12005 # Extract the definition of DEPDIR, am__include, and am__quote
12006 # from the Makefile without running `make'.
12007 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12008 test -z "$DEPDIR" && continue
12009 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12010 test -z "am__include" && continue
12011 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12012 # When using ansi2knr, U may be empty or an underscore; expand it
12013 U=`sed -n 's/^U = //p' < "$mf"`
12014 # Find all dependency output files, they are included files with
12015 # $(DEPDIR) in their names. We invoke sed twice because it is the
12016 # simplest approach to changing $(DEPDIR) to its actual value in the
12018 for file in `sed -n "
12019 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12020 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12021 # Make sure the directory exists.
12022 test -f "$dirpart/$file" && continue
12023 fdir=`$as_dirname -- "$file" ||
12024 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12025 X"$file" : 'X\(//\)[^/]' \| \
12026 X"$file" : 'X\(//\)$' \| \
12027 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12028 $as_echo X"$file" |
12029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12033 /^X\(\/\/\)[^/].*/{
12046 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12047 # echo "creating $dirpart/$file"
12048 echo '# dummy' > "$dirpart/$file"
12060 ac_clean_files=$ac_clean_files_save
12062 test $ac_write_fail = 0 ||
12063 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12066 # configure is writing to config.log, and then calls config.status.
12067 # config.status does its own redirection, appending to config.log.
12068 # Unfortunately, on DOS this fails, as config.log is still kept open
12069 # by configure, so config.status won't be able to write to it; its
12070 # output is simply discarded. So we exec the FD to /dev/null,
12071 # effectively closing config.log, so it can be properly (re)opened and
12072 # appended to by config.status. When coming back to configure, we
12073 # need to make the FD available again.
12074 if test "$no_create" != yes; then
12076 ac_config_status_args=
12077 test "$silent" = yes &&
12078 ac_config_status_args="$ac_config_status_args --quiet"
12080 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12082 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12083 # would make configure fail if this is the last instruction.
12084 $ac_cs_success || as_fn_exit 1
12086 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12088 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}