2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for DRI2Proto 2.8.
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='DRI2Proto'
563 PACKAGE_TARNAME='dri2proto'
564 PACKAGE_VERSION='2.8'
565 PACKAGE_STRING='DRI2Proto 2.8'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars='am__EXEEXT_FALSE
665 MAINTAINER_MODE_FALSE
675 INSTALL_STRIP_PROGRAM
717 program_transform_name
730 enable_option_checking
731 enable_maintainer_mode
732 enable_dependency_tracking
733 enable_selective_werror
734 enable_strict_compilation
737 ac_precious_vars='build_alias
751 # Initialize some variables set by options.
753 ac_init_version=false
754 ac_unrecognized_opts=
756 # The variables have the same names as the options, with
757 # dashes changed to underlines.
765 program_transform_name=s,x,x,
773 # Installation directory options.
774 # These are left unexpanded so users can "make install exec_prefix=/foo"
775 # and all the variables that are supposed to be based on exec_prefix
776 # by default will actually change.
777 # Use braces instead of parens because sh, perl, etc. also accept them.
778 # (The list follows the same order as the GNU Coding Standards.)
779 bindir='${exec_prefix}/bin'
780 sbindir='${exec_prefix}/sbin'
781 libexecdir='${exec_prefix}/libexec'
782 datarootdir='${prefix}/share'
783 datadir='${datarootdir}'
784 sysconfdir='${prefix}/etc'
785 sharedstatedir='${prefix}/com'
786 localstatedir='${prefix}/var'
787 includedir='${prefix}/include'
788 oldincludedir='/usr/include'
789 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
790 infodir='${datarootdir}/info'
795 libdir='${exec_prefix}/lib'
796 localedir='${datarootdir}/locale'
797 mandir='${datarootdir}/man'
803 # If the previous option needs an argument, assign it.
804 if test -n "$ac_prev"; then
805 eval $ac_prev=\$ac_option
811 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816 # Accept the important Cygnus configure options, so we can diagnose typos.
818 case $ac_dashdash$ac_option in
822 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
827 -build | --build | --buil | --bui | --bu)
828 ac_prev=build_alias ;;
829 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
830 build_alias=$ac_optarg ;;
832 -cache-file | --cache-file | --cache-fil | --cache-fi \
833 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
834 ac_prev=cache_file ;;
835 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
836 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
837 cache_file=$ac_optarg ;;
840 cache_file=config.cache ;;
842 -datadir | --datadir | --datadi | --datad)
844 -datadir=* | --datadir=* | --datadi=* | --datad=*)
845 datadir=$ac_optarg ;;
847 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
848 | --dataroo | --dataro | --datar)
849 ac_prev=datarootdir ;;
850 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
851 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
852 datarootdir=$ac_optarg ;;
854 -disable-* | --disable-*)
855 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
858 as_fn_error $? "invalid feature name: $ac_useropt"
859 ac_useropt_orig=$ac_useropt
860 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
861 case $ac_user_opts in
865 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
866 ac_unrecognized_sep=', ';;
868 eval enable_$ac_useropt=no ;;
870 -docdir | --docdir | --docdi | --doc | --do)
872 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
875 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
877 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
880 -enable-* | --enable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: $ac_useropt"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
894 eval enable_$ac_useropt=\$ac_optarg ;;
896 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
897 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
898 | --exec | --exe | --ex)
899 ac_prev=exec_prefix ;;
900 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
901 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
902 | --exec=* | --exe=* | --ex=*)
903 exec_prefix=$ac_optarg ;;
905 -gas | --gas | --ga | --g)
906 # Obsolete; use --with-gas.
909 -help | --help | --hel | --he | -h)
911 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
912 ac_init_help=recursive ;;
913 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
914 ac_init_help=short ;;
916 -host | --host | --hos | --ho)
917 ac_prev=host_alias ;;
918 -host=* | --host=* | --hos=* | --ho=*)
919 host_alias=$ac_optarg ;;
921 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
923 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
925 htmldir=$ac_optarg ;;
927 -includedir | --includedir | --includedi | --included | --include \
928 | --includ | --inclu | --incl | --inc)
929 ac_prev=includedir ;;
930 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
931 | --includ=* | --inclu=* | --incl=* | --inc=*)
932 includedir=$ac_optarg ;;
934 -infodir | --infodir | --infodi | --infod | --info | --inf)
936 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
937 infodir=$ac_optarg ;;
939 -libdir | --libdir | --libdi | --libd)
941 -libdir=* | --libdir=* | --libdi=* | --libd=*)
944 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
945 | --libexe | --libex | --libe)
946 ac_prev=libexecdir ;;
947 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
948 | --libexe=* | --libex=* | --libe=*)
949 libexecdir=$ac_optarg ;;
951 -localedir | --localedir | --localedi | --localed | --locale)
953 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
954 localedir=$ac_optarg ;;
956 -localstatedir | --localstatedir | --localstatedi | --localstated \
957 | --localstate | --localstat | --localsta | --localst | --locals)
958 ac_prev=localstatedir ;;
959 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
960 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
961 localstatedir=$ac_optarg ;;
963 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
965 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969 # Obsolete; use --without-fp.
972 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
973 | --no-cr | --no-c | -n)
976 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
977 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
980 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
981 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
982 | --oldin | --oldi | --old | --ol | --o)
983 ac_prev=oldincludedir ;;
984 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
985 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
986 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
987 oldincludedir=$ac_optarg ;;
989 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
991 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
994 -program-prefix | --program-prefix | --program-prefi | --program-pref \
995 | --program-pre | --program-pr | --program-p)
996 ac_prev=program_prefix ;;
997 -program-prefix=* | --program-prefix=* | --program-prefi=* \
998 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
999 program_prefix=$ac_optarg ;;
1001 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1002 | --program-suf | --program-su | --program-s)
1003 ac_prev=program_suffix ;;
1004 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1005 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1006 program_suffix=$ac_optarg ;;
1008 -program-transform-name | --program-transform-name \
1009 | --program-transform-nam | --program-transform-na \
1010 | --program-transform-n | --program-transform- \
1011 | --program-transform | --program-transfor \
1012 | --program-transfo | --program-transf \
1013 | --program-trans | --program-tran \
1014 | --progr-tra | --program-tr | --program-t)
1015 ac_prev=program_transform_name ;;
1016 -program-transform-name=* | --program-transform-name=* \
1017 | --program-transform-nam=* | --program-transform-na=* \
1018 | --program-transform-n=* | --program-transform-=* \
1019 | --program-transform=* | --program-transfor=* \
1020 | --program-transfo=* | --program-transf=* \
1021 | --program-trans=* | --program-tran=* \
1022 | --progr-tra=* | --program-tr=* | --program-t=*)
1023 program_transform_name=$ac_optarg ;;
1025 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1027 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1028 pdfdir=$ac_optarg ;;
1030 -psdir | --psdir | --psdi | --psd | --ps)
1032 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1035 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1036 | -silent | --silent | --silen | --sile | --sil)
1039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1043 sbindir=$ac_optarg ;;
1045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1047 | --sharedst | --shareds | --shared | --share | --shar \
1049 ac_prev=sharedstatedir ;;
1050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1054 sharedstatedir=$ac_optarg ;;
1056 -site | --site | --sit)
1058 -site=* | --site=* | --sit=*)
1061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1064 srcdir=$ac_optarg ;;
1066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1067 | --syscon | --sysco | --sysc | --sys | --sy)
1068 ac_prev=sysconfdir ;;
1069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1071 sysconfdir=$ac_optarg ;;
1073 -target | --target | --targe | --targ | --tar | --ta | --t)
1074 ac_prev=target_alias ;;
1075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1076 target_alias=$ac_optarg ;;
1078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1081 -version | --version | --versio | --versi | --vers | -V)
1082 ac_init_version=: ;;
1085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error $? "invalid package name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1098 eval with_$ac_useropt=\$ac_optarg ;;
1100 -without-* | --without-*)
1101 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1104 as_fn_error $? "invalid package name: $ac_useropt"
1105 ac_useropt_orig=$ac_useropt
1106 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1107 case $ac_user_opts in
1111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1112 ac_unrecognized_sep=', ';;
1114 eval with_$ac_useropt=no ;;
1117 # Obsolete; use --with-x.
1120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1121 | --x-incl | --x-inc | --x-in | --x-i)
1122 ac_prev=x_includes ;;
1123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1125 x_includes=$ac_optarg ;;
1127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1129 ac_prev=x_libraries ;;
1130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1132 x_libraries=$ac_optarg ;;
1134 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1135 Try \`$0 --help' for more information"
1139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1140 # Reject names that are not valid shell variable names.
1141 case $ac_envvar in #(
1142 '' | [0-9]* | *[!_$as_cr_alnum]* )
1143 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1145 eval $ac_envvar=\$ac_optarg
1146 export $ac_envvar ;;
1149 # FIXME: should be removed in autoconf 3.0.
1150 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1153 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1159 if test -n "$ac_prev"; then
1160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1161 as_fn_error $? "missing argument to $ac_option"
1164 if test -n "$ac_unrecognized_opts"; then
1165 case $enable_option_checking in
1167 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1168 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172 # Check all directory arguments for consistency.
1173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1174 datadir sysconfdir sharedstatedir localstatedir includedir \
1175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1176 libdir localedir mandir
1178 eval ac_val=\$$ac_var
1179 # Remove trailing slashes.
1182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1183 eval $ac_var=\$ac_val;;
1185 # Be sure to have absolute directory names.
1187 [\\/$]* | ?:[\\/]* ) continue;;
1188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1190 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used" >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1214 test "$silent" = yes && exec 6>/dev/null
1217 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di=`ls -di .` &&
1219 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 as_fn_error $? "working directory cannot be determined"
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 as_fn_error $? "pwd does not report name of working directory"
1225 # Find the source files, if location was not specified.
1226 if test -z "$srcdir"; then
1227 ac_srcdir_defaulted=yes
1228 # Try the directory containing this script, then the parent directory.
1229 ac_confdir=`$as_dirname -- "$as_myself" ||
1230 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1231 X"$as_myself" : 'X\(//\)[^/]' \| \
1232 X"$as_myself" : 'X\(//\)$' \| \
1233 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1234 $as_echo X"$as_myself" |
1235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1257 ac_srcdir_defaulted=no
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1261 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1291 \`configure' configures DRI2Proto 2.8 to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking ...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/dri2proto]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1349 --program-prefix=PREFIX prepend PREFIX to installed program names
1350 --program-suffix=SUFFIX append SUFFIX to installed program names
1351 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1354 --build=BUILD configure for building on BUILD [guessed]
1355 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1359 if test -n "$ac_init_help"; then
1360 case $ac_init_help in
1361 short | recursive ) echo "Configuration of DRI2Proto 2.8:";;
1366 --disable-option-checking ignore unrecognized --enable/--with options
1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1369 --enable-maintainer-mode enable make rules and dependencies not useful
1370 (and sometimes confusing) to the casual installer
1371 --disable-dependency-tracking speeds up one-time build
1372 --enable-dependency-tracking do not reject slow dependency extractors
1373 --disable-selective-werror
1374 Turn off selective compiler errors. (default:
1376 --enable-strict-compilation
1377 Enable all warnings from compiler and make them
1378 errors (default: disabled)
1379 --enable-silent-rules less verbose build output (undo: `make V=1')
1380 --disable-silent-rules verbose build output (undo: `make V=0')
1382 Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
1388 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1389 you have headers in a nonstandard directory <include dir>
1391 PKG_CONFIG path to pkg-config utility
1393 directories to add to pkg-config's search path
1395 path overriding pkg-config's built-in search path
1397 Use these variables to override the choices made by `configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1400 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1405 if test "$ac_init_help" = "recursive"; then
1406 # If there are subdirs, report their specific --help.
1407 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1408 test -d "$ac_dir" ||
1409 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1417 # A ".." for each directory in $ac_dir_suffix.
1418 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1419 case $ac_top_builddir_sub in
1420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1424 ac_abs_top_builddir=$ac_pwd
1425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1426 # for backward compatibility:
1427 ac_top_builddir=$ac_top_build_prefix
1430 .) # We are building in place.
1432 ac_top_srcdir=$ac_top_builddir_sub
1433 ac_abs_top_srcdir=$ac_pwd ;;
1434 [\\/]* | ?:[\\/]* ) # Absolute name.
1435 ac_srcdir=$srcdir$ac_dir_suffix;
1436 ac_top_srcdir=$srcdir
1437 ac_abs_top_srcdir=$srcdir ;;
1439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1440 ac_top_srcdir=$ac_top_build_prefix$srcdir
1441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1445 cd "$ac_dir" || { ac_status=$?; continue; }
1446 # Check for guested configure.
1447 if test -f "$ac_srcdir/configure.gnu"; then
1449 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1450 elif test -f "$ac_srcdir/configure"; then
1452 $SHELL "$ac_srcdir/configure" --help=recursive
1454 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1456 cd "$ac_pwd" || { ac_status=$?; break; }
1460 test -n "$ac_init_help" && exit $ac_status
1461 if $ac_init_version; then
1463 DRI2Proto configure 2.8
1464 generated by GNU Autoconf 2.68
1466 Copyright (C) 2010 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1473 ## ------------------------ ##
1474 ## Autoconf initialization. ##
1475 ## ------------------------ ##
1477 # ac_fn_c_try_compile LINENO
1478 # --------------------------
1479 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1480 ac_fn_c_try_compile ()
1482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1483 rm -f conftest.$ac_objext
1484 if { { ac_try="$ac_compile"
1486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1487 *) ac_try_echo=$ac_try;;
1489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1490 $as_echo "$ac_try_echo"; } >&5
1491 (eval "$ac_compile") 2>conftest.err
1493 if test -s conftest.err; then
1494 grep -v '^ *+' conftest.err >conftest.er1
1495 cat conftest.er1 >&5
1496 mv -f conftest.er1 conftest.err
1498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1499 test $ac_status = 0; } && {
1500 test -z "$ac_c_werror_flag" ||
1501 test ! -s conftest.err
1502 } && test -s conftest.$ac_objext; then :
1505 $as_echo "$as_me: failed program was:" >&5
1506 sed 's/^/| /' conftest.$ac_ext >&5
1510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1511 as_fn_set_status $ac_retval
1513 } # ac_fn_c_try_compile
1515 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1516 # ---------------------------------------------
1517 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1519 ac_fn_c_check_decl ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 as_decl_name=`echo $2|sed 's/ *(.*//'`
1523 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1525 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1526 if eval \${$3+:} false; then :
1527 $as_echo_n "(cached) " >&6
1529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1530 /* end confdefs.h. */
1535 #ifndef $as_decl_name
1537 (void) $as_decl_use;
1539 (void) $as_decl_name;
1547 if ac_fn_c_try_compile "$LINENO"; then :
1552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1556 $as_echo "$ac_res" >&6; }
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1559 } # ac_fn_c_check_decl
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
1569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } > conftest.i && {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1598 # ac_fn_c_try_run LINENO
1599 # ----------------------
1600 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1601 # that executables *can* be run.
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_link"
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_link") 2>&5
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1616 { { case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_try") 2>&5
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; }; }; then :
1628 $as_echo "$as_me: program exited with status $ac_status" >&5
1629 $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1632 ac_retval=$ac_status
1634 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1635 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1636 as_fn_set_status $ac_retval
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 $as_echo_n "checking for $2... " >&6; }
1649 if eval \${$3+:} false; then :
1650 $as_echo_n "(cached) " >&6
1652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1653 /* end confdefs.h. */
1657 if ac_fn_c_try_compile "$LINENO"; then :
1662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1666 $as_echo "$ac_res" >&6; }
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669 } # ac_fn_c_check_header_compile
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 $as_test_x conftest$ac_exeext
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1715 } # ac_fn_c_try_link
1716 cat >config.log <<_ACEOF
1717 This file contains any messages produced by compilers while
1718 running configure, to aid debugging if configure makes a mistake.
1720 It was created by DRI2Proto $as_me 2.8, which was
1721 generated by GNU Autoconf 2.68. Invocation command line was
1733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1734 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1735 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1736 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1737 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1740 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1742 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1743 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1745 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1746 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1747 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1748 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 $as_echo "PATH: $as_dir"
1773 # Keep a trace of the command line.
1774 # Strip out --no-create and --no-recursion so they do not pile up.
1775 # Strip out --silent because we don't want to record it for future runs.
1776 # Also quote any args containing shell meta-characters.
1777 # Make two passes to allow for proper duplicate-argument suppression.
1781 ac_must_keep_next=false
1787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1792 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1795 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1797 as_fn_append ac_configure_args1 " '$ac_arg'"
1798 if test $ac_must_keep_next = true; then
1799 ac_must_keep_next=false # Got value, back to normal.
1802 *=* | --config-cache | -C | -disable-* | --disable-* \
1803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1805 | -with-* | --with-* | -without-* | --without-* | --x)
1806 case "$ac_configure_args0 " in
1807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1810 -* ) ac_must_keep_next=true ;;
1813 as_fn_append ac_configure_args " '$ac_arg'"
1818 { ac_configure_args0=; unset ac_configure_args0;}
1819 { ac_configure_args1=; unset ac_configure_args1;}
1821 # When interrupted or exit'd, cleanup temporary files, and complete
1822 # config.log. We remove comments because anyway the quotes in there
1823 # would cause problems or look ugly.
1824 # WARNING: Use '\'' to represent an apostrophe within the trap.
1825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1826 trap 'exit_status=$?
1827 # Save into config.log some information that might help in debugging.
1831 $as_echo "## ---------------- ##
1832 ## Cache variables. ##
1833 ## ---------------- ##"
1835 # The following way of writing the cache mishandles newlines in values,
1837 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1838 eval ac_val=\$$ac_var
1842 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1843 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1846 _ | IFS | as_nl) ;; #(
1847 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1848 *) { eval $ac_var=; unset $ac_var;} ;;
1853 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1854 *${as_nl}ac_space=\ *)
1856 "s/'\''/'\''\\\\'\'''\''/g;
1857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1867 $as_echo "## ----------------- ##
1868 ## Output variables. ##
1869 ## ----------------- ##"
1871 for ac_var in $ac_subst_vars
1873 eval ac_val=\$$ac_var
1875 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1877 $as_echo "$ac_var='\''$ac_val'\''"
1881 if test -n "$ac_subst_files"; then
1882 $as_echo "## ------------------- ##
1883 ## File substitutions. ##
1884 ## ------------------- ##"
1886 for ac_var in $ac_subst_files
1888 eval ac_val=\$$ac_var
1890 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1892 $as_echo "$ac_var='\''$ac_val'\''"
1897 if test -s confdefs.h; then
1898 $as_echo "## ----------- ##
1905 test "$ac_signal" != 0 &&
1906 $as_echo "$as_me: caught signal $ac_signal"
1907 $as_echo "$as_me: exit $exit_status"
1909 rm -f core *.core core.conftest.* &&
1910 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1913 for ac_signal in 1 2 13 15; do
1914 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1918 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1919 rm -f -r conftest* confdefs.h
1921 $as_echo "/* confdefs.h */" > confdefs.h
1923 # Predefined preprocessor variables.
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE_NAME "$PACKAGE_NAME"
1929 cat >>confdefs.h <<_ACEOF
1930 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1933 cat >>confdefs.h <<_ACEOF
1934 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_STRING "$PACKAGE_STRING"
1941 cat >>confdefs.h <<_ACEOF
1942 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1945 cat >>confdefs.h <<_ACEOF
1946 #define PACKAGE_URL "$PACKAGE_URL"
1950 # Let the site file select an alternate cache file if it wants to.
1951 # Prefer an explicitly selected file to automatically selected ones.
1954 if test -n "$CONFIG_SITE"; then
1955 # We do not want a PATH search for config.site.
1956 case $CONFIG_SITE in #((
1957 -*) ac_site_file1=./$CONFIG_SITE;;
1958 */*) ac_site_file1=$CONFIG_SITE;;
1959 *) ac_site_file1=./$CONFIG_SITE;;
1961 elif test "x$prefix" != xNONE; then
1962 ac_site_file1=$prefix/share/config.site
1963 ac_site_file2=$prefix/etc/config.site
1965 ac_site_file1=$ac_default_prefix/share/config.site
1966 ac_site_file2=$ac_default_prefix/etc/config.site
1968 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1970 test "x$ac_site_file" = xNONE && continue
1971 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1973 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1974 sed 's/^/| /' "$ac_site_file" >&5
1976 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1978 as_fn_error $? "failed to load site script $ac_site_file
1979 See \`config.log' for more details" "$LINENO" 5; }
1983 if test -r "$cache_file"; then
1984 # Some versions of bash will fail to source /dev/null (special files
1985 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1986 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1988 $as_echo "$as_me: loading cache $cache_file" >&6;}
1990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1991 *) . "./$cache_file";;
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1996 $as_echo "$as_me: creating cache $cache_file" >&6;}
2000 # Check that the precious variables saved in the cache have kept the same
2002 ac_cache_corrupted=false
2003 for ac_var in $ac_precious_vars; do
2004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2005 eval ac_new_set=\$ac_env_${ac_var}_set
2006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2007 eval ac_new_val=\$ac_env_${ac_var}_value
2008 case $ac_old_set,$ac_new_set in
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2012 ac_cache_corrupted=: ;;
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2016 ac_cache_corrupted=: ;;
2019 if test "x$ac_old_val" != "x$ac_new_val"; then
2020 # differences in whitespace do not lead to failure.
2021 ac_old_val_w=`echo x $ac_old_val`
2022 ac_new_val_w=`echo x $ac_new_val`
2023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2026 ac_cache_corrupted=:
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2030 eval $ac_var=\$ac_old_val
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2038 # Pass precious variables to config.status.
2039 if test "$ac_new_set" = set; then
2041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2042 *) ac_arg=$ac_var=$ac_new_val ;;
2044 case " $ac_configure_args " in
2045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2046 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2050 if $ac_cache_corrupted; then
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_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2055 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2057 ## -------------------- ##
2058 ## Main body of script. ##
2059 ## -------------------- ##
2062 ac_cpp='$CPP $CPPFLAGS'
2063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2068 am__api_version='1.11'
2071 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2072 if test -f "$ac_dir/install-sh"; then
2074 ac_install_sh="$ac_aux_dir/install-sh -c"
2076 elif test -f "$ac_dir/install.sh"; then
2078 ac_install_sh="$ac_aux_dir/install.sh -c"
2080 elif test -f "$ac_dir/shtool"; then
2082 ac_install_sh="$ac_aux_dir/shtool install -c"
2086 if test -z "$ac_aux_dir"; then
2087 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2090 # These three variables are undocumented and unsupported,
2091 # and are intended to be withdrawn in a future Autoconf release.
2092 # They can cause serious problems if a builder's source tree is in a directory
2093 # whose full name contains unusual characters.
2094 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2095 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2096 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2099 # Find a good install program. We prefer a C program (faster),
2100 # so one script is as good as another. But avoid the broken or
2101 # incompatible versions:
2102 # SysV /etc/install, /usr/sbin/install
2103 # SunOS /usr/etc/install
2104 # IRIX /sbin/install
2106 # AmigaOS /C/install, which installs bootblocks on floppy discs
2107 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2108 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2109 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2110 # OS/2's system install, which has a completely different semantic
2111 # ./install, which can be erroneously created by make from ./install.sh.
2112 # Reject install programs that cannot install multiple files.
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2114 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2115 if test -z "$INSTALL"; then
2116 if ${ac_cv_path_install+:} false; then :
2117 $as_echo_n "(cached) " >&6
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2123 test -z "$as_dir" && as_dir=.
2124 # Account for people who put trailing slashes in PATH elements.
2125 case $as_dir/ in #((
2126 ./ | .// | /[cC]/* | \
2127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2128 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2131 # OSF1 and SCO ODT 3.0 have their own names for install.
2132 # Don't use installbsd from OSF since it installs stuff as root
2134 for ac_prog in ginstall scoinst install; do
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2137 if test $ac_prog = install &&
2138 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2139 # AIX install. It has an incompatible calling convention.
2141 elif test $ac_prog = install &&
2142 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2143 # program-specific install script used by HP pwplus--don't use.
2146 rm -rf conftest.one conftest.two conftest.dir
2147 echo one > conftest.one
2148 echo two > conftest.two
2150 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2151 test -s conftest.one && test -s conftest.two &&
2152 test -s conftest.dir/conftest.one &&
2153 test -s conftest.dir/conftest.two
2155 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2168 rm -rf conftest.one conftest.two conftest.dir
2171 if test "${ac_cv_path_install+set}" = set; then
2172 INSTALL=$ac_cv_path_install
2174 # As a last resort, use the slow shell script. Don't cache a
2175 # value for INSTALL within a source directory, because that will
2176 # break other packages using the cache if that directory is
2177 # removed, or if the value is a relative name.
2178 INSTALL=$ac_install_sh
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2182 $as_echo "$INSTALL" >&6; }
2184 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2185 # It thinks the first close brace ends the variable substitution.
2186 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2188 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2190 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2193 $as_echo_n "checking whether build environment is sane... " >&6; }
2196 echo timestamp > conftest.file
2197 # Reject unsafe characters in $srcdir or the absolute working directory
2198 # name. Accept space and tab only in the latter.
2202 *[\\\"\#\$\&\'\`$am_lf]*)
2203 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2206 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2207 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2210 # Do `set' in a subshell so we don't clobber the current shell's
2211 # arguments. Must try -L first in case configure is actually a
2212 # symlink; some systems play weird games with the mod time of symlinks
2213 # (eg FreeBSD returns the mod time of the symlink's containing
2216 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2217 if test "$*" = "X"; then
2219 set X `ls -t "$srcdir/configure" conftest.file`
2222 if test "$*" != "X $srcdir/configure conftest.file" \
2223 && test "$*" != "X conftest.file $srcdir/configure"; then
2225 # If neither matched, then we have a broken ls. This can happen
2226 # if, for instance, CONFIG_SHELL is bash and it inherits a
2227 # broken ls alias from the environment. This has actually
2228 # happened. Such a system could not be considered "sane".
2229 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2230 alias in your environment" "$LINENO" 5
2233 test "$2" = conftest.file
2239 as_fn_error $? "newly created file is older than distributed files!
2240 Check your system clock" "$LINENO" 5
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2243 $as_echo "yes" >&6; }
2244 test "$program_prefix" != NONE &&
2245 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2246 # Use a double $ so make ignores it.
2247 test "$program_suffix" != NONE &&
2248 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2249 # Double any \ or $.
2250 # By default was `s,x,x', remove it if useless.
2251 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2252 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2254 # expand $ac_aux_dir to an absolute path
2255 am_aux_dir=`cd $ac_aux_dir && pwd`
2257 if test x"${MISSING+set}" != xset; then
2260 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2262 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2265 # Use eval to expand $SHELL
2266 if eval "$MISSING --run true"; then
2267 am_missing_run="$MISSING --run "
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2271 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2274 if test x"${install_sh}" != xset; then
2277 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2279 install_sh="\${SHELL} $am_aux_dir/install-sh"
2283 # Installed binaries are usually stripped using `strip' when the user
2284 # run `make install-strip'. However `strip' might not be the right
2285 # tool to use in cross-compilation environments, therefore Automake
2286 # will honor the `STRIP' environment variable to overrule this program.
2287 if test "$cross_compiling" != no; then
2288 if test -n "$ac_tool_prefix"; then
2289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2290 set dummy ${ac_tool_prefix}strip; ac_word=$2
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2292 $as_echo_n "checking for $ac_word... " >&6; }
2293 if ${ac_cv_prog_STRIP+:} false; then :
2294 $as_echo_n "(cached) " >&6
2296 if test -n "$STRIP"; then
2297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303 test -z "$as_dir" && as_dir=.
2304 for ac_exec_ext in '' $ac_executable_extensions; do
2305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 STRIP=$ac_cv_prog_STRIP
2317 if test -n "$STRIP"; then
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2319 $as_echo "$STRIP" >&6; }
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2322 $as_echo "no" >&6; }
2327 if test -z "$ac_cv_prog_STRIP"; then
2329 # Extract the first word of "strip", so it can be a program name with args.
2330 set dummy strip; ac_word=$2
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2332 $as_echo_n "checking for $ac_word... " >&6; }
2333 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2334 $as_echo_n "(cached) " >&6
2336 if test -n "$ac_ct_STRIP"; then
2337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_ac_ct_STRIP="strip"
2347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2357 if test -n "$ac_ct_STRIP"; then
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2359 $as_echo "$ac_ct_STRIP" >&6; }
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2362 $as_echo "no" >&6; }
2365 if test "x$ac_ct_STRIP" = x; then
2368 case $cross_compiling:$ac_tool_warned in
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2372 ac_tool_warned=yes ;;
2377 STRIP="$ac_cv_prog_STRIP"
2381 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2384 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2385 if test -z "$MKDIR_P"; then
2386 if ${ac_cv_path_mkdir+:} false; then :
2387 $as_echo_n "(cached) " >&6
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2393 test -z "$as_dir" && as_dir=.
2394 for ac_prog in mkdir gmkdir; do
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2397 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2398 'mkdir (GNU coreutils) '* | \
2399 'mkdir (coreutils) '* | \
2400 'mkdir (fileutils) '4.1*)
2401 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2411 test -d ./--version && rmdir ./--version
2412 if test "${ac_cv_path_mkdir+set}" = set; then
2413 MKDIR_P="$ac_cv_path_mkdir -p"
2415 # As a last resort, use the slow shell script. Don't cache a
2416 # value for MKDIR_P within a source directory, because that will
2417 # break other packages using the cache if that directory is
2418 # removed, or if the value is a relative name.
2419 MKDIR_P="$ac_install_sh -d"
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2423 $as_echo "$MKDIR_P" >&6; }
2427 [\\/$]* | ?:[\\/]*) ;;
2428 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2431 for ac_prog in gawk mawk nawk awk
2433 # Extract the first word of "$ac_prog", so it can be a program name with args.
2434 set dummy $ac_prog; ac_word=$2
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2436 $as_echo_n "checking for $ac_word... " >&6; }
2437 if ${ac_cv_prog_AWK+:} false; then :
2438 $as_echo_n "(cached) " >&6
2440 if test -n "$AWK"; then
2441 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir=.
2448 for ac_exec_ext in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_AWK="$ac_prog"
2451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2461 if test -n "$AWK"; then
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2463 $as_echo "$AWK" >&6; }
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2466 $as_echo "no" >&6; }
2470 test -n "$AWK" && break
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2474 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2476 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2477 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2478 $as_echo_n "(cached) " >&6
2480 cat >conftest.make <<\_ACEOF
2483 @echo '@@@%%%=$(MAKE)=@@@%%%'
2485 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2486 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2488 eval ac_cv_prog_make_${ac_make}_set=yes;;
2490 eval ac_cv_prog_make_${ac_make}_set=no;;
2494 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2496 $as_echo "yes" >&6; }
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2500 $as_echo "no" >&6; }
2501 SET_MAKE="MAKE=${MAKE-make}"
2504 rm -rf .tst 2>/dev/null
2505 mkdir .tst 2>/dev/null
2506 if test -d .tst; then
2511 rmdir .tst 2>/dev/null
2513 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2514 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2515 # is not polluted with repeated "-I."
2516 am__isrc=' -I$(srcdir)'
2517 # test to see if srcdir already configured
2518 if test -f $srcdir/config.status; then
2519 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2523 # test whether we have cygpath
2524 if test -z "$CYGPATH_W"; then
2525 if (cygpath --version) >/dev/null 2>/dev/null; then
2526 CYGPATH_W='cygpath -w'
2533 # Define the identity of the package.
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE "$PACKAGE"
2543 cat >>confdefs.h <<_ACEOF
2544 #define VERSION "$VERSION"
2547 # Some tools Automake needs.
2549 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2552 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2555 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2558 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2561 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2563 # We need awk for the "check" target. The system "awk" is bad on
2565 # Always define AMTAR for backward compatibility. Yes, it's still used
2566 # in the wild :-( We should find a proper way to deprecate it ...
2569 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2577 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2578 # Check whether --enable-maintainer-mode was given.
2579 if test "${enable_maintainer_mode+set}" = set; then :
2580 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2582 USE_MAINTAINER_MODE=no
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2586 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2587 if test $USE_MAINTAINER_MODE = yes; then
2588 MAINTAINER_MODE_TRUE=
2589 MAINTAINER_MODE_FALSE='#'
2591 MAINTAINER_MODE_TRUE='#'
2592 MAINTAINER_MODE_FALSE=
2595 MAINT=$MAINTAINER_MODE_TRUE
2599 # Require xorg-macros: XORG_DEFAULT_OPTIONS
2611 DEPDIR="${am__leading_dot}deps"
2613 ac_config_commands="$ac_config_commands depfiles"
2616 am_make=${MAKE-make}
2617 cat > confinc << 'END'
2619 @echo this is the am__doit target
2622 # If we don't find an include directive, just comment out the code.
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2624 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2628 # First try GNU make style include.
2629 echo "include confinc" > confmf
2630 # Ignore all kinds of additional output from `make'.
2631 case `$am_make -s -f confmf 2> /dev/null` in #(
2632 *the\ am__doit\ target*)
2638 # Now try BSD make style include.
2639 if test "$am__include" = "#"; then
2640 echo '.include "confinc"' > confmf
2641 case `$am_make -s -f confmf 2> /dev/null` in #(
2642 *the\ am__doit\ target*)
2643 am__include=.include
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2652 $as_echo "$_am_result" >&6; }
2653 rm -f confinc confmf
2655 # Check whether --enable-dependency-tracking was given.
2656 if test "${enable_dependency_tracking+set}" = set; then :
2657 enableval=$enable_dependency_tracking;
2660 if test "x$enable_dependency_tracking" != xno; then
2661 am_depcomp="$ac_aux_dir/depcomp"
2665 if test "x$enable_dependency_tracking" != xno; then
2675 ac_cpp='$CPP $CPPFLAGS'
2676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_CC+:} false; then :
2685 $as_echo_n "(cached) " >&6
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$CC"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2710 $as_echo "$CC" >&6; }
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2718 if test -z "$ac_cv_prog_CC"; then
2720 # Extract the first word of "gcc", so it can be a program name with args.
2721 set dummy gcc; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2725 $as_echo_n "(cached) " >&6
2727 if test -n "$ac_ct_CC"; then
2728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_ac_ct_CC="gcc"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2748 if test -n "$ac_ct_CC"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2750 $as_echo "$ac_ct_CC" >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2756 if test "x$ac_ct_CC" = x; then
2759 case $cross_compiling:$ac_tool_warned in
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2763 ac_tool_warned=yes ;;
2771 if test -z "$CC"; then
2772 if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2774 set dummy ${ac_tool_prefix}cc; ac_word=$2
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if ${ac_cv_prog_CC+:} false; then :
2778 $as_echo_n "(cached) " >&6
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790 ac_cv_prog_CC="${ac_tool_prefix}cc"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2801 if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803 $as_echo "$CC" >&6; }
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806 $as_echo "no" >&6; }
2812 if test -z "$CC"; then
2813 # Extract the first word of "cc", so it can be a program name with args.
2814 set dummy cc; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_CC+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$CC"; then
2821 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2828 test -z "$as_dir" && as_dir=.
2829 for ac_exec_ext in '' $ac_executable_extensions; do
2830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2831 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2832 ac_prog_rejected=yes
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 if test $ac_prog_rejected = yes; then
2844 # We found a bogon in the path, so make sure we never use it.
2845 set dummy $ac_cv_prog_CC
2847 if test $# != 0; then
2848 # We chose a different compiler from the bogus one.
2849 # However, it has the same basename, so the bogon will be chosen
2850 # first if we set CC to just the basename; use the full file name.
2852 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2868 if test -z "$CC"; then
2869 if test -n "$ac_tool_prefix"; then
2870 for ac_prog in cl.exe
2872 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2873 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 $as_echo_n "checking for $ac_word... " >&6; }
2876 if ${ac_cv_prog_CC+:} false; then :
2877 $as_echo_n "(cached) " >&6
2879 if test -n "$CC"; then
2880 ac_cv_prog_CC="$CC" # Let the user override the test.
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 test -z "$as_dir" && as_dir=.
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2889 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900 if test -n "$CC"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2902 $as_echo "$CC" >&6; }
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2905 $as_echo "no" >&6; }
2909 test -n "$CC" && break
2912 if test -z "$CC"; then
2914 for ac_prog in cl.exe
2916 # Extract the first word of "$ac_prog", so it can be a program name with args.
2917 set dummy $ac_prog; ac_word=$2
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2919 $as_echo_n "checking for $ac_word... " >&6; }
2920 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2921 $as_echo_n "(cached) " >&6
2923 if test -n "$ac_ct_CC"; then
2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir=.
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_ac_ct_CC="$ac_prog"
2934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2943 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944 if test -n "$ac_ct_CC"; then
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2946 $as_echo "$ac_ct_CC" >&6; }
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2949 $as_echo "no" >&6; }
2953 test -n "$ac_ct_CC" && break
2956 if test "x$ac_ct_CC" = x; then
2959 case $cross_compiling:$ac_tool_warned in
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2962 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2963 ac_tool_warned=yes ;;
2972 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974 as_fn_error $? "no acceptable C compiler found in \$PATH
2975 See \`config.log' for more details" "$LINENO" 5; }
2977 # Provide some information about the compiler.
2978 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2981 for ac_option in --version -v -V -qversion; do
2982 { { ac_try="$ac_compiler $ac_option >&5"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988 $as_echo "$ac_try_echo"; } >&5
2989 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2991 if test -s conftest.err; then
2993 ... rest of stderr output deleted ...
2994 10q' conftest.err >conftest.er1
2995 cat conftest.er1 >&5
2997 rm -f conftest.er1 conftest.err
2998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2999 test $ac_status = 0; }
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3013 ac_clean_files_save=$ac_clean_files
3014 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3015 # Try to create an executable without -o first, disregard a.out.
3016 # It will help us diagnose broken compilers, and finding out an intuition
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3019 $as_echo_n "checking whether the C compiler works... " >&6; }
3020 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3022 # The possible output files:
3023 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3026 for ac_file in $ac_files
3029 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3030 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3035 if { { ac_try="$ac_link_default"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3041 $as_echo "$ac_try_echo"; } >&5
3042 (eval "$ac_link_default") 2>&5
3044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3045 test $ac_status = 0; }; then :
3046 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3047 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3048 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3049 # so that the user can short-circuit this test for compilers unknown to
3051 for ac_file in $ac_files ''
3053 test -f "$ac_file" || continue
3055 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3058 # We found the default executable, but exeext='' is most
3062 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3064 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 # We set ac_cv_exeext here because the later test for it is not
3067 # safe: cross compilers may not add the suffix if given an `-o'
3068 # argument, so we may need to know it at that point already.
3069 # Even if this section looks crufty: it has the advantage of
3076 test "$ac_cv_exeext" = no && ac_cv_exeext=
3081 if test -z "$ac_file"; then :
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 $as_echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3089 as_fn_error 77 "C compiler cannot create executables
3090 See \`config.log' for more details" "$LINENO" 5; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3093 $as_echo "yes" >&6; }
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3096 $as_echo_n "checking for C compiler default output file name... " >&6; }
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3098 $as_echo "$ac_file" >&6; }
3099 ac_exeext=$ac_cv_exeext
3101 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3102 ac_clean_files=$ac_clean_files_save
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3104 $as_echo_n "checking for suffix of executables... " >&6; }
3105 if { { ac_try="$ac_link"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link") 2>&5
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3117 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3118 # work properly (i.e., refer to `conftest.exe'), while it won't with
3120 for ac_file in conftest.exe conftest conftest.*; do
3121 test -f "$ac_file" || continue
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3124 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3132 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3133 See \`config.log' for more details" "$LINENO" 5; }
3135 rm -f conftest conftest$ac_cv_exeext
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3137 $as_echo "$ac_cv_exeext" >&6; }
3139 rm -f conftest.$ac_ext
3140 EXEEXT=$ac_cv_exeext
3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143 /* end confdefs.h. */
3148 FILE *f = fopen ("conftest.out", "w");
3149 return ferror (f) || fclose (f) != 0;
3155 ac_clean_files="$ac_clean_files conftest.out"
3156 # Check that the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3159 $as_echo_n "checking whether we are cross compiling... " >&6; }
3160 if test "$cross_compiling" != yes; then
3161 { { ac_try="$ac_link"
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_link") 2>&5
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }
3172 if { ac_try='./conftest$ac_cv_exeext'
3173 { { case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_try") 2>&5
3181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3182 test $ac_status = 0; }; }; then
3185 if test "$cross_compiling" = maybe; then
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "cannot run C compiled programs.
3191 If you meant to cross compile, use \`--host'.
3192 See \`config.log' for more details" "$LINENO" 5; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3197 $as_echo "$cross_compiling" >&6; }
3199 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3200 ac_clean_files=$ac_clean_files_save
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3202 $as_echo_n "checking for suffix of object files... " >&6; }
3203 if ${ac_cv_objext+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3217 rm -f conftest.o conftest.obj
3218 if { { ac_try="$ac_compile"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3224 $as_echo "$ac_try_echo"; } >&5
3225 (eval "$ac_compile") 2>&5
3227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }; then :
3229 for ac_file in conftest.o conftest.obj conftest.*; do
3230 test -f "$ac_file" || continue;
3232 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3233 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3238 $as_echo "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3241 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "cannot compute suffix of object files: cannot compile
3244 See \`config.log' for more details" "$LINENO" 5; }
3246 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3249 $as_echo "$ac_cv_objext" >&6; }
3250 OBJEXT=$ac_cv_objext
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3253 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3254 if ${ac_cv_c_compiler_gnu+:} false; then :
3255 $as_echo_n "(cached) " >&6
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3271 if ac_fn_c_try_compile "$LINENO"; then :
3276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3277 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3281 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3282 if test $ac_compiler_gnu = yes; then
3287 ac_test_CFLAGS=${CFLAGS+set}
3288 ac_save_CFLAGS=$CFLAGS
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3290 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3291 if ${ac_cv_prog_cc_g+:} false; then :
3292 $as_echo_n "(cached) " >&6
3294 ac_save_c_werror_flag=$ac_c_werror_flag
3295 ac_c_werror_flag=yes
3298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3299 /* end confdefs.h. */
3309 if ac_fn_c_try_compile "$LINENO"; then :
3313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3314 /* end confdefs.h. */
3324 if ac_fn_c_try_compile "$LINENO"; then :
3327 ac_c_werror_flag=$ac_save_c_werror_flag
3329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3330 /* end confdefs.h. */
3340 if ac_fn_c_try_compile "$LINENO"; then :
3343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3348 ac_c_werror_flag=$ac_save_c_werror_flag
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3351 $as_echo "$ac_cv_prog_cc_g" >&6; }
3352 if test "$ac_test_CFLAGS" = set; then
3353 CFLAGS=$ac_save_CFLAGS
3354 elif test $ac_cv_prog_cc_g = yes; then
3355 if test "$GCC" = yes; then
3361 if test "$GCC" = yes; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3368 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3369 if ${ac_cv_prog_cc_c89+:} false; then :
3370 $as_echo_n "(cached) " >&6
3372 ac_cv_prog_cc_c89=no
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3378 #include <sys/types.h>
3379 #include <sys/stat.h>
3380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3381 struct buf { int x; };
3382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3383 static char *e (p, i)
3389 static char *f (char * (*g) (char **, int), char **p, ...)
3394 s = g (p, va_arg (v,int));
3399 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3400 function prototypes and stuff, but not '\xHH' hex character constants.
3401 These don't provoke an error unfortunately, instead are silently treated
3402 as 'x'. The following induces an error, until -std is added to get
3403 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3404 array size at least. It's necessary to write '\x00'==0 to get something
3405 that's true only with -std. */
3406 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3408 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3409 inside strings and character constants. */
3411 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3413 int test (int i, double x);
3414 struct s1 {int (*f) (int a);};
3415 struct s2 {int (*f) (double a);};
3416 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3422 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3427 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3428 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3430 CC="$ac_save_CC $ac_arg"
3431 if ac_fn_c_try_compile "$LINENO"; then :
3432 ac_cv_prog_cc_c89=$ac_arg
3434 rm -f core conftest.err conftest.$ac_objext
3435 test "x$ac_cv_prog_cc_c89" != "xno" && break
3437 rm -f conftest.$ac_ext
3442 case "x$ac_cv_prog_cc_c89" in
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3445 $as_echo "none needed" >&6; } ;;
3447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3448 $as_echo "unsupported" >&6; } ;;
3450 CC="$CC $ac_cv_prog_cc_c89"
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3452 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3454 if test "x$ac_cv_prog_cc_c89" != xno; then :
3459 ac_cpp='$CPP $CPPFLAGS'
3460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 depcc="$CC" am_compiler_list=
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3467 $as_echo_n "checking dependency style of $depcc... " >&6; }
3468 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3469 $as_echo_n "(cached) " >&6
3471 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3472 # We make a subdir and do the tests there. Otherwise we can end up
3473 # making bogus files that we don't know about and never remove. For
3474 # instance it was reported that on HP-UX the gcc test will end up
3475 # making a dummy file named `D' -- because `-MD' means `put the output
3479 # Copy depcomp to subdir because otherwise we won't find it if we're
3480 # using a relative directory.
3481 cp "$am_depcomp" conftest.dir
3483 # We will build objects and dependencies in a subdirectory because
3484 # it helps to detect inapplicable dependency modes. For instance
3485 # both Tru64's cc and ICC support -MD to output dependencies as a
3486 # side effect of compilation, but ICC will put the dependencies in
3487 # the current directory while Tru64 will put them in the object
3491 am_cv_CC_dependencies_compiler_type=none
3492 if test "$am_compiler_list" = ""; then
3493 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3496 case " $depcc " in #(
3497 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3500 for depmode in $am_compiler_list; do
3501 # Setup a source with many dependencies, because some compilers
3502 # like to wrap large dependency lists on column 80 (with \), and
3503 # we should not choose a depcomp mode which is confused by this.
3505 # We need to recreate these files for each test, as the compiler may
3506 # overwrite some of them when testing with obscure command lines.
3507 # This happens at least with the AIX C compiler.
3509 for i in 1 2 3 4 5 6; do
3510 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3511 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3512 # Solaris 8's {/usr,}/bin/sh.
3513 touch sub/conftst$i.h
3515 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3517 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3518 # mode. It turns out that the SunPro C++ compiler does not properly
3519 # handle `-M -o', and we need to detect this. Also, some Intel
3520 # versions had trouble with output in subdirs
3521 am__obj=sub/conftest.${OBJEXT-o}
3522 am__minus_obj="-o $am__obj"
3525 # This depmode causes a compiler race in universal mode.
3526 test "$am__universal" = false || continue
3529 # after this tag, mechanisms are not by side-effect, so they'll
3530 # only be used when explicitly requested
3531 if test "x$enable_dependency_tracking" = xyes; then
3537 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3538 # This compiler won't grok `-c -o', but also, the minuso test has
3539 # not run yet. These depmodes are late enough in the game, and
3540 # so weak that their functioning should not be impacted.
3541 am__obj=conftest.${OBJEXT-o}
3546 if depmode=$depmode \
3547 source=sub/conftest.c object=$am__obj \
3548 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3549 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3550 >/dev/null 2>conftest.err &&
3551 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3552 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3553 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3554 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3555 # icc doesn't choke on unknown options, it will just issue warnings
3556 # or remarks (even with -Werror). So we grep stderr for any message
3557 # that says an option was ignored or not supported.
3558 # When given -MP, icc 7.0 and 7.1 complain thusly:
3559 # icc: Command line warning: ignoring option '-M'; no argument required
3560 # The diagnosis changed in icc 8.0:
3561 # icc: Command line remark: option '-MP' not supported
3562 if (grep 'ignoring option' conftest.err ||
3563 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3564 am_cv_CC_dependencies_compiler_type=$depmode
3573 am_cv_CC_dependencies_compiler_type=none
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3578 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3579 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3582 test "x$enable_dependency_tracking" != xno \
3583 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3585 am__fastdepCC_FALSE='#'
3587 am__fastdepCC_TRUE='#'
3588 am__fastdepCC_FALSE=
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3593 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3594 if ${ac_cv_prog_cc_c99+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 ac_cv_prog_cc_c99=no
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3602 #include <stdbool.h>
3607 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3608 #define debug(...) fprintf (stderr, __VA_ARGS__)
3609 #define showlist(...) puts (#__VA_ARGS__)
3610 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3612 test_varargs_macros (void)
3617 debug ("X = %d\n", x);
3618 showlist (The first, second, and third items.);
3619 report (x>y, "x is %d but y is %d", x, y);
3622 // Check long long types.
3623 #define BIG64 18446744073709551615ull
3624 #define BIG32 4294967295ul
3625 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3627 your preprocessor is broken;
3631 your preprocessor is broken;
3633 static long long int bignum = -9223372036854775807LL;
3634 static unsigned long long int ubignum = BIG64;
3636 struct incomplete_array
3644 const wchar_t *name;
3648 typedef const char *ccp;
3651 test_restrict (ccp restrict text)
3653 // See if C++-style comments work.
3654 // Iterate through items via the restricted pointer.
3655 // Also check for declarations in for loops.
3656 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3661 // Check varargs and va_copy.
3663 test_varargs (const char *format, ...)
3666 va_start (args, format);
3668 va_copy (args_copy, args);
3679 str = va_arg (args_copy, const char *);
3682 number = va_arg (args_copy, int);
3685 fnumber = va_arg (args_copy, double);
3700 _Bool success = false;
3703 if (test_restrict ("String literal") == 0)
3705 char *restrict newvar = "Another string";
3708 test_varargs ("s, d' f .", "string", 65, 34.234);
3709 test_varargs_macros ();
3711 // Check flexible array members.
3712 struct incomplete_array *ia =
3713 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3715 for (int i = 0; i < ia->datasize; ++i)
3716 ia->data[i] = i * 1.234;
3718 // Check named initializers.
3719 struct named_init ni = {
3721 .name = L"Test wide string",
3722 .average = 543.34343,
3727 int dynamic_array[ni.number];
3728 dynamic_array[ni.number - 1] = 543;
3730 // work around unused variable warnings
3731 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3732 || dynamic_array[ni.number - 1] != 543);
3738 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3740 CC="$ac_save_CC $ac_arg"
3741 if ac_fn_c_try_compile "$LINENO"; then :
3742 ac_cv_prog_cc_c99=$ac_arg
3744 rm -f core conftest.err conftest.$ac_objext
3745 test "x$ac_cv_prog_cc_c99" != "xno" && break
3747 rm -f conftest.$ac_ext
3752 case "x$ac_cv_prog_cc_c99" in
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3755 $as_echo "none needed" >&6; } ;;
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3758 $as_echo "unsupported" >&6; } ;;
3760 CC="$CC $ac_cv_prog_cc_c99"
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3762 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3764 if test "x$ac_cv_prog_cc_c99" != xno; then :
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3776 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3777 # On Suns, sometimes $CPP names a directory.
3778 if test -n "$CPP" && test -d "$CPP"; then
3781 if test -z "$CPP"; then
3782 if ${ac_cv_prog_CPP+:} false; then :
3783 $as_echo_n "(cached) " >&6
3785 # Double quotes because CPP needs to be expanded
3786 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3789 for ac_c_preproc_warn_flag in '' yes
3791 # Use a header file that comes with gcc, so configuring glibc
3792 # with a fresh cross-compiler works.
3793 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3794 # <limits.h> exists even on freestanding compilers.
3795 # On the NeXT, cc -E runs the code through the compiler's parser,
3796 # not just through cpp. "Syntax error" is here to catch this case.
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3800 # include <limits.h>
3802 # include <assert.h>
3806 if ac_fn_c_try_cpp "$LINENO"; then :
3809 # Broken: fails on valid input.
3812 rm -f conftest.err conftest.i conftest.$ac_ext
3814 # OK, works on sane cases. Now check whether nonexistent headers
3815 # can be detected and how.
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818 #include <ac_nonexistent.h>
3820 if ac_fn_c_try_cpp "$LINENO"; then :
3821 # Broken: success on invalid input.
3824 # Passes both tests.
3828 rm -f conftest.err conftest.i conftest.$ac_ext
3831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3832 rm -f conftest.i conftest.err conftest.$ac_ext
3833 if $ac_preproc_ok; then :
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3846 $as_echo "$CPP" >&6; }
3848 for ac_c_preproc_warn_flag in '' yes
3850 # Use a header file that comes with gcc, so configuring glibc
3851 # with a fresh cross-compiler works.
3852 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3853 # <limits.h> exists even on freestanding compilers.
3854 # On the NeXT, cc -E runs the code through the compiler's parser,
3855 # not just through cpp. "Syntax error" is here to catch this case.
3856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3857 /* end confdefs.h. */
3859 # include <limits.h>
3861 # include <assert.h>
3865 if ac_fn_c_try_cpp "$LINENO"; then :
3868 # Broken: fails on valid input.
3871 rm -f conftest.err conftest.i conftest.$ac_ext
3873 # OK, works on sane cases. Now check whether nonexistent headers
3874 # can be detected and how.
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877 #include <ac_nonexistent.h>
3879 if ac_fn_c_try_cpp "$LINENO"; then :
3880 # Broken: success on invalid input.
3883 # Passes both tests.
3887 rm -f conftest.err conftest.i conftest.$ac_ext
3890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3891 rm -f conftest.i conftest.err conftest.$ac_ext
3892 if $ac_preproc_ok; then :
3895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3897 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3898 See \`config.log' for more details" "$LINENO" 5; }
3902 ac_cpp='$CPP $CPPFLAGS'
3903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3909 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3910 if ${ac_cv_path_GREP+:} false; then :
3911 $as_echo_n "(cached) " >&6
3913 if test -z "$GREP"; then
3914 ac_path_GREP_found=false
3915 # Loop through the user's path and test for each of PROGNAME-LIST
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3920 test -z "$as_dir" && as_dir=.
3921 for ac_prog in grep ggrep; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3924 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3925 # Check for GNU ac_path_GREP and select it if it is found.
3926 # Check for GNU $ac_path_GREP
3927 case `"$ac_path_GREP" --version 2>&1` in
3929 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3932 $as_echo_n 0123456789 >"conftest.in"
3935 cat "conftest.in" "conftest.in" >"conftest.tmp"
3936 mv "conftest.tmp" "conftest.in"
3937 cp "conftest.in" "conftest.nl"
3938 $as_echo 'GREP' >> "conftest.nl"
3939 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3940 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3941 as_fn_arith $ac_count + 1 && ac_count=$as_val
3942 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3943 # Best one so far, save it but keep looking for a better one
3944 ac_cv_path_GREP="$ac_path_GREP"
3945 ac_path_GREP_max=$ac_count
3947 # 10*(2^10) chars as input seems more than enough
3948 test $ac_count -gt 10 && break
3950 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3953 $ac_path_GREP_found && break 3
3958 if test -z "$ac_cv_path_GREP"; then
3959 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3962 ac_cv_path_GREP=$GREP
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3967 $as_echo "$ac_cv_path_GREP" >&6; }
3968 GREP="$ac_cv_path_GREP"
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3972 $as_echo_n "checking for egrep... " >&6; }
3973 if ${ac_cv_path_EGREP+:} false; then :
3974 $as_echo_n "(cached) " >&6
3976 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3977 then ac_cv_path_EGREP="$GREP -E"
3979 if test -z "$EGREP"; then
3980 ac_path_EGREP_found=false
3981 # Loop through the user's path and test for each of PROGNAME-LIST
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986 test -z "$as_dir" && as_dir=.
3987 for ac_prog in egrep; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3991 # Check for GNU ac_path_EGREP and select it if it is found.
3992 # Check for GNU $ac_path_EGREP
3993 case `"$ac_path_EGREP" --version 2>&1` in
3995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3998 $as_echo_n 0123456789 >"conftest.in"
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 $as_echo 'EGREP' >> "conftest.nl"
4005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4007 as_fn_arith $ac_count + 1 && ac_count=$as_val
4008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_EGREP="$ac_path_EGREP"
4011 ac_path_EGREP_max=$ac_count
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019 $ac_path_EGREP_found && break 3
4024 if test -z "$ac_cv_path_EGREP"; then
4025 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4028 ac_cv_path_EGREP=$EGREP
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4034 $as_echo "$ac_cv_path_EGREP" >&6; }
4035 EGREP="$ac_cv_path_EGREP"
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4039 $as_echo_n "checking for ANSI C header files... " >&6; }
4040 if ${ac_cv_header_stdc+:} false; then :
4041 $as_echo_n "(cached) " >&6
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4058 if ac_fn_c_try_compile "$LINENO"; then :
4059 ac_cv_header_stdc=yes
4061 ac_cv_header_stdc=no
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 if test $ac_cv_header_stdc = yes; then
4066 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073 $EGREP "memchr" >/dev/null 2>&1; then :
4076 ac_cv_header_stdc=no
4082 if test $ac_cv_header_stdc = yes; then
4083 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4090 $EGREP "free" >/dev/null 2>&1; then :
4093 ac_cv_header_stdc=no
4099 if test $ac_cv_header_stdc = yes; then
4100 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4101 if test "$cross_compiling" = yes; then :
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4108 #if ((' ' & 0x0FF) == 0x020)
4109 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4110 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4112 # define ISLOWER(c) \
4113 (('a' <= (c) && (c) <= 'i') \
4114 || ('j' <= (c) && (c) <= 'r') \
4115 || ('s' <= (c) && (c) <= 'z'))
4116 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4119 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4124 for (i = 0; i < 256; i++)
4125 if (XOR (islower (i), ISLOWER (i))
4126 || toupper (i) != TOUPPER (i))
4131 if ac_fn_c_try_run "$LINENO"; then :
4134 ac_cv_header_stdc=no
4136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4137 conftest.$ac_objext conftest.beam conftest.$ac_ext
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4143 $as_echo "$ac_cv_header_stdc" >&6; }
4144 if test $ac_cv_header_stdc = yes; then
4146 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4150 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4151 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4152 inttypes.h stdint.h unistd.h
4154 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4155 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4157 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4158 cat >>confdefs.h <<_ACEOF
4159 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4171 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4172 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4178 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4179 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4185 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4186 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4199 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4202 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4206 $as_echo_n "(cached) " >&6
4210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4232 if test -n "$PKG_CONFIG"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4234 $as_echo "$PKG_CONFIG" >&6; }
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4242 if test -z "$ac_cv_path_PKG_CONFIG"; then
4243 ac_pt_PKG_CONFIG=$PKG_CONFIG
4244 # Extract the first word of "pkg-config", so it can be a program name with args.
4245 set dummy pkg-config; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4249 $as_echo_n "(cached) " >&6
4251 case $ac_pt_PKG_CONFIG in
4253 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4260 test -z "$as_dir" && as_dir=.
4261 for ac_exec_ext in '' $ac_executable_extensions; do
4262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4275 if test -n "$ac_pt_PKG_CONFIG"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4277 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4283 if test "x$ac_pt_PKG_CONFIG" = x; then
4286 case $cross_compiling:$ac_tool_warned in
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4290 ac_tool_warned=yes ;;
4292 PKG_CONFIG=$ac_pt_PKG_CONFIG
4295 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4299 if test -n "$PKG_CONFIG"; then
4300 _pkg_min_version=0.9.0
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4302 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4303 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4305 $as_echo "yes" >&6; }
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308 $as_echo "no" >&6; }
4312 # Make sure we can run config.sub.
4313 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4314 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4317 $as_echo_n "checking build system type... " >&6; }
4318 if ${ac_cv_build+:} false; then :
4319 $as_echo_n "(cached) " >&6
4321 ac_build_alias=$build_alias
4322 test "x$ac_build_alias" = x &&
4323 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4324 test "x$ac_build_alias" = x &&
4325 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4326 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4327 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4331 $as_echo "$ac_cv_build" >&6; }
4332 case $ac_cv_build in
4334 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4337 ac_save_IFS=$IFS; IFS='-'
4343 # Remember, the first character of IFS is used to create $*,
4344 # except with old shells:
4347 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4351 $as_echo_n "checking host system type... " >&6; }
4352 if ${ac_cv_host+:} false; then :
4353 $as_echo_n "(cached) " >&6
4355 if test "x$host_alias" = x; then
4356 ac_cv_host=$ac_cv_build
4358 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4359 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4364 $as_echo "$ac_cv_host" >&6; }
4367 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4370 ac_save_IFS=$IFS; IFS='-'
4376 # Remember, the first character of IFS is used to create $*,
4377 # except with old shells:
4380 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4384 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4385 if ${ac_cv_path_SED+:} false; then :
4386 $as_echo_n "(cached) " >&6
4388 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4389 for ac_i in 1 2 3 4 5 6 7; do
4390 ac_script="$ac_script$as_nl$ac_script"
4392 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4393 { ac_script=; unset ac_script;}
4394 if test -z "$SED"; then
4395 ac_path_SED_found=false
4396 # Loop through the user's path and test for each of PROGNAME-LIST
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_prog in sed gsed; do
4403 for ac_exec_ext in '' $ac_executable_extensions; do
4404 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4405 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4406 # Check for GNU ac_path_SED and select it if it is found.
4407 # Check for GNU $ac_path_SED
4408 case `"$ac_path_SED" --version 2>&1` in
4410 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4413 $as_echo_n 0123456789 >"conftest.in"
4416 cat "conftest.in" "conftest.in" >"conftest.tmp"
4417 mv "conftest.tmp" "conftest.in"
4418 cp "conftest.in" "conftest.nl"
4419 $as_echo '' >> "conftest.nl"
4420 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4422 as_fn_arith $ac_count + 1 && ac_count=$as_val
4423 if test $ac_count -gt ${ac_path_SED_max-0}; then
4424 # Best one so far, save it but keep looking for a better one
4425 ac_cv_path_SED="$ac_path_SED"
4426 ac_path_SED_max=$ac_count
4428 # 10*(2^10) chars as input seems more than enough
4429 test $ac_count -gt 10 && break
4431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4434 $ac_path_SED_found && break 3
4439 if test -z "$ac_cv_path_SED"; then
4440 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4448 $as_echo "$ac_cv_path_SED" >&6; }
4449 SED="$ac_cv_path_SED"
4457 # Check whether --enable-selective-werror was given.
4458 if test "${enable_selective_werror+set}" = set; then :
4459 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4461 SELECTIVE_WERROR=yes
4468 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4469 if test "x$SUNCC" = "xyes"; then
4475 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4489 xorg_testset_save_CFLAGS="$CFLAGS"
4491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4494 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4495 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4496 $as_echo_n "(cached) " >&6
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4502 if ac_fn_c_try_compile "$LINENO"; then :
4503 xorg_cv_cc_flag_unknown_warning_option=yes
4505 xorg_cv_cc_flag_unknown_warning_option=no
4507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4510 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4512 CFLAGS="$xorg_testset_save_CFLAGS"
4515 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4521 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4522 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4523 $as_echo_n "(cached) " >&6
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4529 if ac_fn_c_try_compile "$LINENO"; then :
4530 xorg_cv_cc_flag_unused_command_line_argument=yes
4532 xorg_cv_cc_flag_unused_command_line_argument=no
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4537 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4539 CFLAGS="$xorg_testset_save_CFLAGS"
4544 if test $found = "no" ; then
4545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4549 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4553 CFLAGS="$CFLAGS -Wall"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wall" >&5
4556 $as_echo_n "checking if $CC supports-Wall... " >&6; }
4557 cacheid=xorg_cv_cc_flag__Wall
4558 if eval \${$cacheid+:} false; then :
4559 $as_echo_n "(cached) " >&6
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4572 if ac_fn_c_try_link "$LINENO"; then :
4577 rm -f core conftest.err conftest.$ac_objext \
4578 conftest$ac_exeext conftest.$ac_ext
4582 CFLAGS="$xorg_testset_save_CFLAGS"
4584 eval supported=\$$cacheid
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4586 $as_echo "$supported" >&6; }
4587 if test "$supported" = "yes" ; then
4588 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4607 xorg_testset_save_CFLAGS="$CFLAGS"
4609 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4612 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4613 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4614 $as_echo_n "(cached) " >&6
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h. */
4620 if ac_fn_c_try_compile "$LINENO"; then :
4621 xorg_cv_cc_flag_unknown_warning_option=yes
4623 xorg_cv_cc_flag_unknown_warning_option=no
4625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4628 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4630 CFLAGS="$xorg_testset_save_CFLAGS"
4633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4639 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4640 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4647 if ac_fn_c_try_compile "$LINENO"; then :
4648 xorg_cv_cc_flag_unused_command_line_argument=yes
4650 xorg_cv_cc_flag_unused_command_line_argument=no
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4655 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4657 CFLAGS="$xorg_testset_save_CFLAGS"
4662 if test $found = "no" ; then
4663 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4667 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4671 CFLAGS="$CFLAGS -Wpointer-arith"
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-arith" >&5
4674 $as_echo_n "checking if $CC supports-Wpointer-arith... " >&6; }
4675 cacheid=xorg_cv_cc_flag__Wpointer_arith
4676 if eval \${$cacheid+:} false; then :
4677 $as_echo_n "(cached) " >&6
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4690 if ac_fn_c_try_link "$LINENO"; then :
4695 rm -f core conftest.err conftest.$ac_objext \
4696 conftest$ac_exeext conftest.$ac_ext
4700 CFLAGS="$xorg_testset_save_CFLAGS"
4702 eval supported=\$$cacheid
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4704 $as_echo "$supported" >&6; }
4705 if test "$supported" = "yes" ; then
4706 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4725 xorg_testset_save_CFLAGS="$CFLAGS"
4727 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4732 $as_echo_n "(cached) " >&6
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4739 xorg_cv_cc_flag_unknown_warning_option=yes
4741 xorg_cv_cc_flag_unknown_warning_option=no
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4747 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4748 CFLAGS="$xorg_testset_save_CFLAGS"
4751 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4752 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 xorg_cv_cc_flag_unused_command_line_argument=yes
4768 xorg_cv_cc_flag_unused_command_line_argument=no
4770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4775 CFLAGS="$xorg_testset_save_CFLAGS"
4780 if test $found = "no" ; then
4781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4789 CFLAGS="$CFLAGS -Wmissing-declarations"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-declarations" >&5
4792 $as_echo_n "checking if $CC supports-Wmissing-declarations... " >&6; }
4793 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4794 if eval \${$cacheid+:} false; then :
4795 $as_echo_n "(cached) " >&6
4797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798 /* end confdefs.h. */
4808 if ac_fn_c_try_link "$LINENO"; then :
4813 rm -f core conftest.err conftest.$ac_objext \
4814 conftest$ac_exeext conftest.$ac_ext
4818 CFLAGS="$xorg_testset_save_CFLAGS"
4820 eval supported=\$$cacheid
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4822 $as_echo "$supported" >&6; }
4823 if test "$supported" = "yes" ; then
4824 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4843 xorg_testset_save_CFLAGS="$CFLAGS"
4845 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4846 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4848 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4849 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4850 $as_echo_n "(cached) " >&6
4852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853 /* end confdefs.h. */
4856 if ac_fn_c_try_compile "$LINENO"; then :
4857 xorg_cv_cc_flag_unknown_warning_option=yes
4859 xorg_cv_cc_flag_unknown_warning_option=no
4861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4864 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4866 CFLAGS="$xorg_testset_save_CFLAGS"
4869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4875 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4876 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4877 $as_echo_n "(cached) " >&6
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4883 if ac_fn_c_try_compile "$LINENO"; then :
4884 xorg_cv_cc_flag_unused_command_line_argument=yes
4886 xorg_cv_cc_flag_unused_command_line_argument=no
4888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4891 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4892 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4893 CFLAGS="$xorg_testset_save_CFLAGS"
4898 if test $found = "no" ; then
4899 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4903 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4907 CFLAGS="$CFLAGS -Wformat=2"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat=2" >&5
4910 $as_echo_n "checking if $CC supports-Wformat=2... " >&6; }
4911 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
4912 if eval \${$cacheid+:} false; then :
4913 $as_echo_n "(cached) " >&6
4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4916 /* end confdefs.h. */
4926 if ac_fn_c_try_link "$LINENO"; then :
4931 rm -f core conftest.err conftest.$ac_objext \
4932 conftest$ac_exeext conftest.$ac_ext
4936 CFLAGS="$xorg_testset_save_CFLAGS"
4938 eval supported=\$$cacheid
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4940 $as_echo "$supported" >&6; }
4941 if test "$supported" = "yes" ; then
4942 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
4947 if test $found = "no" ; then
4948 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4952 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4956 CFLAGS="$CFLAGS -Wformat"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wformat" >&5
4959 $as_echo_n "checking if $CC supports-Wformat... " >&6; }
4960 cacheid=xorg_cv_cc_flag__Wformat
4961 if eval \${$cacheid+:} false; then :
4962 $as_echo_n "(cached) " >&6
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4975 if ac_fn_c_try_link "$LINENO"; then :
4980 rm -f core conftest.err conftest.$ac_objext \
4981 conftest$ac_exeext conftest.$ac_ext
4985 CFLAGS="$xorg_testset_save_CFLAGS"
4987 eval supported=\$$cacheid
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4989 $as_echo "$supported" >&6; }
4990 if test "$supported" = "yes" ; then
4991 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5012 xorg_testset_save_CFLAGS="$CFLAGS"
5014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5017 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5018 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5019 $as_echo_n "(cached) " >&6
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026 xorg_cv_cc_flag_unknown_warning_option=yes
5028 xorg_cv_cc_flag_unknown_warning_option=no
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5033 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5035 CFLAGS="$xorg_testset_save_CFLAGS"
5038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5044 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5045 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5046 $as_echo_n "(cached) " >&6
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5049 /* end confdefs.h. */
5052 if ac_fn_c_try_compile "$LINENO"; then :
5053 xorg_cv_cc_flag_unused_command_line_argument=yes
5055 xorg_cv_cc_flag_unused_command_line_argument=no
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5060 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5061 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5062 CFLAGS="$xorg_testset_save_CFLAGS"
5067 if test $found = "no" ; then
5068 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5072 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5076 CFLAGS="$CFLAGS -Wstrict-prototypes"
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wstrict-prototypes" >&5
5079 $as_echo_n "checking if $CC supports-Wstrict-prototypes... " >&6; }
5080 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5081 if eval \${$cacheid+:} false; then :
5082 $as_echo_n "(cached) " >&6
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5095 if ac_fn_c_try_link "$LINENO"; then :
5100 rm -f core conftest.err conftest.$ac_objext \
5101 conftest$ac_exeext conftest.$ac_ext
5105 CFLAGS="$xorg_testset_save_CFLAGS"
5107 eval supported=\$$cacheid
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5109 $as_echo "$supported" >&6; }
5110 if test "$supported" = "yes" ; then
5111 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5130 xorg_testset_save_CFLAGS="$CFLAGS"
5132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5135 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5136 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5137 $as_echo_n "(cached) " >&6
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5143 if ac_fn_c_try_compile "$LINENO"; then :
5144 xorg_cv_cc_flag_unknown_warning_option=yes
5146 xorg_cv_cc_flag_unknown_warning_option=no
5148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5151 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5153 CFLAGS="$xorg_testset_save_CFLAGS"
5156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5162 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5163 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5164 $as_echo_n "(cached) " >&6
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5170 if ac_fn_c_try_compile "$LINENO"; then :
5171 xorg_cv_cc_flag_unused_command_line_argument=yes
5173 xorg_cv_cc_flag_unused_command_line_argument=no
5175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5178 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5179 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5180 CFLAGS="$xorg_testset_save_CFLAGS"
5185 if test $found = "no" ; then
5186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5190 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5194 CFLAGS="$CFLAGS -Wmissing-prototypes"
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-prototypes" >&5
5197 $as_echo_n "checking if $CC supports-Wmissing-prototypes... " >&6; }
5198 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5199 if eval \${$cacheid+:} false; then :
5200 $as_echo_n "(cached) " >&6
5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5203 /* end confdefs.h. */
5213 if ac_fn_c_try_link "$LINENO"; then :
5218 rm -f core conftest.err conftest.$ac_objext \
5219 conftest$ac_exeext conftest.$ac_ext
5223 CFLAGS="$xorg_testset_save_CFLAGS"
5225 eval supported=\$$cacheid
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5227 $as_echo "$supported" >&6; }
5228 if test "$supported" = "yes" ; then
5229 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5248 xorg_testset_save_CFLAGS="$CFLAGS"
5250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5253 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5254 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5255 $as_echo_n "(cached) " >&6
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262 xorg_cv_cc_flag_unknown_warning_option=yes
5264 xorg_cv_cc_flag_unknown_warning_option=no
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5269 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5271 CFLAGS="$xorg_testset_save_CFLAGS"
5274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5280 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5281 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5282 $as_echo_n "(cached) " >&6
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5288 if ac_fn_c_try_compile "$LINENO"; then :
5289 xorg_cv_cc_flag_unused_command_line_argument=yes
5291 xorg_cv_cc_flag_unused_command_line_argument=no
5293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5296 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5297 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5298 CFLAGS="$xorg_testset_save_CFLAGS"
5303 if test $found = "no" ; then
5304 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5305 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5308 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5309 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5312 CFLAGS="$CFLAGS -Wnested-externs"
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnested-externs" >&5
5315 $as_echo_n "checking if $CC supports-Wnested-externs... " >&6; }
5316 cacheid=xorg_cv_cc_flag__Wnested_externs
5317 if eval \${$cacheid+:} false; then :
5318 $as_echo_n "(cached) " >&6
5320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5321 /* end confdefs.h. */
5331 if ac_fn_c_try_link "$LINENO"; then :
5336 rm -f core conftest.err conftest.$ac_objext \
5337 conftest$ac_exeext conftest.$ac_ext
5341 CFLAGS="$xorg_testset_save_CFLAGS"
5343 eval supported=\$$cacheid
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5345 $as_echo "$supported" >&6; }
5346 if test "$supported" = "yes" ; then
5347 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5366 xorg_testset_save_CFLAGS="$CFLAGS"
5368 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5371 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5372 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5373 $as_echo_n "(cached) " >&6
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5379 if ac_fn_c_try_compile "$LINENO"; then :
5380 xorg_cv_cc_flag_unknown_warning_option=yes
5382 xorg_cv_cc_flag_unknown_warning_option=no
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5387 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5389 CFLAGS="$xorg_testset_save_CFLAGS"
5392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5398 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5399 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 xorg_cv_cc_flag_unused_command_line_argument=yes
5409 xorg_cv_cc_flag_unused_command_line_argument=no
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5414 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5416 CFLAGS="$xorg_testset_save_CFLAGS"
5421 if test $found = "no" ; then
5422 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5426 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5430 CFLAGS="$CFLAGS -Wbad-function-cast"
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wbad-function-cast" >&5
5433 $as_echo_n "checking if $CC supports-Wbad-function-cast... " >&6; }
5434 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5435 if eval \${$cacheid+:} false; then :
5436 $as_echo_n "(cached) " >&6
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5449 if ac_fn_c_try_link "$LINENO"; then :
5454 rm -f core conftest.err conftest.$ac_objext \
5455 conftest$ac_exeext conftest.$ac_ext
5459 CFLAGS="$xorg_testset_save_CFLAGS"
5461 eval supported=\$$cacheid
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463 $as_echo "$supported" >&6; }
5464 if test "$supported" = "yes" ; then
5465 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5484 xorg_testset_save_CFLAGS="$CFLAGS"
5486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5490 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5491 $as_echo_n "(cached) " >&6
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5497 if ac_fn_c_try_compile "$LINENO"; then :
5498 xorg_cv_cc_flag_unknown_warning_option=yes
5500 xorg_cv_cc_flag_unknown_warning_option=no
5502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5507 CFLAGS="$xorg_testset_save_CFLAGS"
5510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5518 $as_echo_n "(cached) " >&6
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5524 if ac_fn_c_try_compile "$LINENO"; then :
5525 xorg_cv_cc_flag_unused_command_line_argument=yes
5527 xorg_cv_cc_flag_unused_command_line_argument=no
5529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5534 CFLAGS="$xorg_testset_save_CFLAGS"
5539 if test $found = "no" ; then
5540 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5544 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5548 CFLAGS="$CFLAGS -Wold-style-definition"
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wold-style-definition" >&5
5551 $as_echo_n "checking if $CC supports-Wold-style-definition... " >&6; }
5552 cacheid=xorg_cv_cc_flag__Wold_style_definition
5553 if eval \${$cacheid+:} false; then :
5554 $as_echo_n "(cached) " >&6
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5567 if ac_fn_c_try_link "$LINENO"; then :
5572 rm -f core conftest.err conftest.$ac_objext \
5573 conftest$ac_exeext conftest.$ac_ext
5577 CFLAGS="$xorg_testset_save_CFLAGS"
5579 eval supported=\$$cacheid
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5581 $as_echo "$supported" >&6; }
5582 if test "$supported" = "yes" ; then
5583 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5602 xorg_testset_save_CFLAGS="$CFLAGS"
5604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5609 $as_echo_n "(cached) " >&6
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5615 if ac_fn_c_try_compile "$LINENO"; then :
5616 xorg_cv_cc_flag_unknown_warning_option=yes
5618 xorg_cv_cc_flag_unknown_warning_option=no
5620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5625 CFLAGS="$xorg_testset_save_CFLAGS"
5628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5636 $as_echo_n "(cached) " >&6
5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639 /* end confdefs.h. */
5642 if ac_fn_c_try_compile "$LINENO"; then :
5643 xorg_cv_cc_flag_unused_command_line_argument=yes
5645 xorg_cv_cc_flag_unused_command_line_argument=no
5647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5652 CFLAGS="$xorg_testset_save_CFLAGS"
5657 if test $found = "no" ; then
5658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5666 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wdeclaration-after-statement" >&5
5669 $as_echo_n "checking if $CC supports-Wdeclaration-after-statement... " >&6; }
5670 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5671 if eval \${$cacheid+:} false; then :
5672 $as_echo_n "(cached) " >&6
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5685 if ac_fn_c_try_link "$LINENO"; then :
5690 rm -f core conftest.err conftest.$ac_objext \
5691 conftest$ac_exeext conftest.$ac_ext
5695 CFLAGS="$xorg_testset_save_CFLAGS"
5697 eval supported=\$$cacheid
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5699 $as_echo "$supported" >&6; }
5700 if test "$supported" = "yes" ; then
5701 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5710 # This chunk adds additional warnings that could catch undesired effects.
5724 xorg_testset_save_CFLAGS="$CFLAGS"
5726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5731 $as_echo_n "(cached) " >&6
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5737 if ac_fn_c_try_compile "$LINENO"; then :
5738 xorg_cv_cc_flag_unknown_warning_option=yes
5740 xorg_cv_cc_flag_unknown_warning_option=no
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5747 CFLAGS="$xorg_testset_save_CFLAGS"
5750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5758 $as_echo_n "(cached) " >&6
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5764 if ac_fn_c_try_compile "$LINENO"; then :
5765 xorg_cv_cc_flag_unused_command_line_argument=yes
5767 xorg_cv_cc_flag_unused_command_line_argument=no
5769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5774 CFLAGS="$xorg_testset_save_CFLAGS"
5779 if test $found = "no" ; then
5780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5788 CFLAGS="$CFLAGS -Wunused"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wunused" >&5
5791 $as_echo_n "checking if $CC supports-Wunused... " >&6; }
5792 cacheid=xorg_cv_cc_flag__Wunused
5793 if eval \${$cacheid+:} false; then :
5794 $as_echo_n "(cached) " >&6
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5807 if ac_fn_c_try_link "$LINENO"; then :
5812 rm -f core conftest.err conftest.$ac_objext \
5813 conftest$ac_exeext conftest.$ac_ext
5817 CFLAGS="$xorg_testset_save_CFLAGS"
5819 eval supported=\$$cacheid
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5821 $as_echo "$supported" >&6; }
5822 if test "$supported" = "yes" ; then
5823 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5842 xorg_testset_save_CFLAGS="$CFLAGS"
5844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5849 $as_echo_n "(cached) " >&6
5851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5852 /* end confdefs.h. */
5855 if ac_fn_c_try_compile "$LINENO"; then :
5856 xorg_cv_cc_flag_unknown_warning_option=yes
5858 xorg_cv_cc_flag_unknown_warning_option=no
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5865 CFLAGS="$xorg_testset_save_CFLAGS"
5868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5876 $as_echo_n "(cached) " >&6
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5882 if ac_fn_c_try_compile "$LINENO"; then :
5883 xorg_cv_cc_flag_unused_command_line_argument=yes
5885 xorg_cv_cc_flag_unused_command_line_argument=no
5887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5892 CFLAGS="$xorg_testset_save_CFLAGS"
5897 if test $found = "no" ; then
5898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5906 CFLAGS="$CFLAGS -Wuninitialized"
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wuninitialized" >&5
5909 $as_echo_n "checking if $CC supports-Wuninitialized... " >&6; }
5910 cacheid=xorg_cv_cc_flag__Wuninitialized
5911 if eval \${$cacheid+:} false; then :
5912 $as_echo_n "(cached) " >&6
5914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915 /* end confdefs.h. */
5925 if ac_fn_c_try_link "$LINENO"; then :
5930 rm -f core conftest.err conftest.$ac_objext \
5931 conftest$ac_exeext conftest.$ac_ext
5935 CFLAGS="$xorg_testset_save_CFLAGS"
5937 eval supported=\$$cacheid
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5939 $as_echo "$supported" >&6; }
5940 if test "$supported" = "yes" ; then
5941 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5960 xorg_testset_save_CFLAGS="$CFLAGS"
5962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5967 $as_echo_n "(cached) " >&6
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 xorg_cv_cc_flag_unknown_warning_option=yes
5976 xorg_cv_cc_flag_unknown_warning_option=no
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5983 CFLAGS="$xorg_testset_save_CFLAGS"
5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5994 $as_echo_n "(cached) " >&6
5996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5997 /* end confdefs.h. */
6000 if ac_fn_c_try_compile "$LINENO"; then :
6001 xorg_cv_cc_flag_unused_command_line_argument=yes
6003 xorg_cv_cc_flag_unused_command_line_argument=no
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6010 CFLAGS="$xorg_testset_save_CFLAGS"
6015 if test $found = "no" ; then
6016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024 CFLAGS="$CFLAGS -Wshadow"
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wshadow" >&5
6027 $as_echo_n "checking if $CC supports-Wshadow... " >&6; }
6028 cacheid=xorg_cv_cc_flag__Wshadow
6029 if eval \${$cacheid+:} false; then :
6030 $as_echo_n "(cached) " >&6
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6043 if ac_fn_c_try_link "$LINENO"; then :
6048 rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6053 CFLAGS="$xorg_testset_save_CFLAGS"
6055 eval supported=\$$cacheid
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6057 $as_echo "$supported" >&6; }
6058 if test "$supported" = "yes" ; then
6059 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6078 xorg_testset_save_CFLAGS="$CFLAGS"
6080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6085 $as_echo_n "(cached) " >&6
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6091 if ac_fn_c_try_compile "$LINENO"; then :
6092 xorg_cv_cc_flag_unknown_warning_option=yes
6094 xorg_cv_cc_flag_unknown_warning_option=no
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6101 CFLAGS="$xorg_testset_save_CFLAGS"
6104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6112 $as_echo_n "(cached) " >&6
6114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6118 if ac_fn_c_try_compile "$LINENO"; then :
6119 xorg_cv_cc_flag_unused_command_line_argument=yes
6121 xorg_cv_cc_flag_unused_command_line_argument=no
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6133 if test $found = "no" ; then
6134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6142 CFLAGS="$CFLAGS -Wcast-qual"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wcast-qual" >&5
6145 $as_echo_n "checking if $CC supports-Wcast-qual... " >&6; }
6146 cacheid=xorg_cv_cc_flag__Wcast_qual
6147 if eval \${$cacheid+:} false; then :
6148 $as_echo_n "(cached) " >&6
6150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6151 /* end confdefs.h. */
6161 if ac_fn_c_try_link "$LINENO"; then :
6166 rm -f core conftest.err conftest.$ac_objext \
6167 conftest$ac_exeext conftest.$ac_ext
6171 CFLAGS="$xorg_testset_save_CFLAGS"
6173 eval supported=\$$cacheid
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6175 $as_echo "$supported" >&6; }
6176 if test "$supported" = "yes" ; then
6177 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6196 xorg_testset_save_CFLAGS="$CFLAGS"
6198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6203 $as_echo_n "(cached) " >&6
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6209 if ac_fn_c_try_compile "$LINENO"; then :
6210 xorg_cv_cc_flag_unknown_warning_option=yes
6212 xorg_cv_cc_flag_unknown_warning_option=no
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6219 CFLAGS="$xorg_testset_save_CFLAGS"
6222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6230 $as_echo_n "(cached) " >&6
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6236 if ac_fn_c_try_compile "$LINENO"; then :
6237 xorg_cv_cc_flag_unused_command_line_argument=yes
6239 xorg_cv_cc_flag_unused_command_line_argument=no
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6246 CFLAGS="$xorg_testset_save_CFLAGS"
6251 if test $found = "no" ; then
6252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6260 CFLAGS="$CFLAGS -Wmissing-noreturn"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-noreturn" >&5
6263 $as_echo_n "checking if $CC supports-Wmissing-noreturn... " >&6; }
6264 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6265 if eval \${$cacheid+:} false; then :
6266 $as_echo_n "(cached) " >&6
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6279 if ac_fn_c_try_link "$LINENO"; then :
6284 rm -f core conftest.err conftest.$ac_objext \
6285 conftest$ac_exeext conftest.$ac_ext
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6291 eval supported=\$$cacheid
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6293 $as_echo "$supported" >&6; }
6294 if test "$supported" = "yes" ; then
6295 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6314 xorg_testset_save_CFLAGS="$CFLAGS"
6316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6321 $as_echo_n "(cached) " >&6
6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6324 /* end confdefs.h. */
6327 if ac_fn_c_try_compile "$LINENO"; then :
6328 xorg_cv_cc_flag_unknown_warning_option=yes
6330 xorg_cv_cc_flag_unknown_warning_option=no
6332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6337 CFLAGS="$xorg_testset_save_CFLAGS"
6340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6348 $as_echo_n "(cached) " >&6
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6354 if ac_fn_c_try_compile "$LINENO"; then :
6355 xorg_cv_cc_flag_unused_command_line_argument=yes
6357 xorg_cv_cc_flag_unused_command_line_argument=no
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6364 CFLAGS="$xorg_testset_save_CFLAGS"
6369 if test $found = "no" ; then
6370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6378 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-format-attribute" >&5
6381 $as_echo_n "checking if $CC supports-Wmissing-format-attribute... " >&6; }
6382 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6383 if eval \${$cacheid+:} false; then :
6384 $as_echo_n "(cached) " >&6
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6397 if ac_fn_c_try_link "$LINENO"; then :
6402 rm -f core conftest.err conftest.$ac_objext \
6403 conftest$ac_exeext conftest.$ac_ext
6407 CFLAGS="$xorg_testset_save_CFLAGS"
6409 eval supported=\$$cacheid
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6411 $as_echo "$supported" >&6; }
6412 if test "$supported" = "yes" ; then
6413 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6432 xorg_testset_save_CFLAGS="$CFLAGS"
6434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6439 $as_echo_n "(cached) " >&6
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6445 if ac_fn_c_try_compile "$LINENO"; then :
6446 xorg_cv_cc_flag_unknown_warning_option=yes
6448 xorg_cv_cc_flag_unknown_warning_option=no
6450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6455 CFLAGS="$xorg_testset_save_CFLAGS"
6458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6466 $as_echo_n "(cached) " >&6
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6472 if ac_fn_c_try_compile "$LINENO"; then :
6473 xorg_cv_cc_flag_unused_command_line_argument=yes
6475 xorg_cv_cc_flag_unused_command_line_argument=no
6477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6482 CFLAGS="$xorg_testset_save_CFLAGS"
6487 if test $found = "no" ; then
6488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6492 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6496 CFLAGS="$CFLAGS -Wredundant-decls"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wredundant-decls" >&5
6499 $as_echo_n "checking if $CC supports-Wredundant-decls... " >&6; }
6500 cacheid=xorg_cv_cc_flag__Wredundant_decls
6501 if eval \${$cacheid+:} false; then :
6502 $as_echo_n "(cached) " >&6
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6515 if ac_fn_c_try_link "$LINENO"; then :
6520 rm -f core conftest.err conftest.$ac_objext \
6521 conftest$ac_exeext conftest.$ac_ext
6525 CFLAGS="$xorg_testset_save_CFLAGS"
6527 eval supported=\$$cacheid
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6529 $as_echo "$supported" >&6; }
6530 if test "$supported" = "yes" ; then
6531 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6538 # These are currently disabled because they are noisy. They will be enabled
6539 # in the future once the codebase is sufficiently modernized to silence
6540 # them. For now, I don't want them to drown out the other warnings.
6541 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6542 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6543 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6545 # Turn some warnings into errors, so we don't accidently get successful builds
6546 # when there are problems that should be fixed.
6548 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6562 xorg_testset_save_CFLAGS="$CFLAGS"
6564 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6567 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6568 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6569 $as_echo_n "(cached) " >&6
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6575 if ac_fn_c_try_compile "$LINENO"; then :
6576 xorg_cv_cc_flag_unknown_warning_option=yes
6578 xorg_cv_cc_flag_unknown_warning_option=no
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6583 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6585 CFLAGS="$xorg_testset_save_CFLAGS"
6588 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6594 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6595 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6596 $as_echo_n "(cached) " >&6
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599 /* end confdefs.h. */
6602 if ac_fn_c_try_compile "$LINENO"; then :
6603 xorg_cv_cc_flag_unused_command_line_argument=yes
6605 xorg_cv_cc_flag_unused_command_line_argument=no
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6610 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6612 CFLAGS="$xorg_testset_save_CFLAGS"
6617 if test $found = "no" ; then
6618 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6622 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6626 CFLAGS="$CFLAGS -Werror=implicit"
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=implicit" >&5
6629 $as_echo_n "checking if $CC supports-Werror=implicit... " >&6; }
6630 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6631 if eval \${$cacheid+:} false; then :
6632 $as_echo_n "(cached) " >&6
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6645 if ac_fn_c_try_link "$LINENO"; then :
6650 rm -f core conftest.err conftest.$ac_objext \
6651 conftest$ac_exeext conftest.$ac_ext
6655 CFLAGS="$xorg_testset_save_CFLAGS"
6657 eval supported=\$$cacheid
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6659 $as_echo "$supported" >&6; }
6660 if test "$supported" = "yes" ; then
6661 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6666 if test $found = "no" ; then
6667 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6671 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6675 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6678 $as_echo_n "checking if $CC supports-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6679 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6680 if eval \${$cacheid+:} false; then :
6681 $as_echo_n "(cached) " >&6
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6694 if ac_fn_c_try_link "$LINENO"; then :
6699 rm -f core conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6704 CFLAGS="$xorg_testset_save_CFLAGS"
6706 eval supported=\$$cacheid
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6708 $as_echo "$supported" >&6; }
6709 if test "$supported" = "yes" ; then
6710 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6729 xorg_testset_save_CFLAGS="$CFLAGS"
6731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6736 $as_echo_n "(cached) " >&6
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743 xorg_cv_cc_flag_unknown_warning_option=yes
6745 xorg_cv_cc_flag_unknown_warning_option=no
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6752 CFLAGS="$xorg_testset_save_CFLAGS"
6755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6763 $as_echo_n "(cached) " >&6
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770 xorg_cv_cc_flag_unused_command_line_argument=yes
6772 xorg_cv_cc_flag_unused_command_line_argument=no
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6779 CFLAGS="$xorg_testset_save_CFLAGS"
6784 if test $found = "no" ; then
6785 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6789 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6793 CFLAGS="$CFLAGS -Werror=nonnull"
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=nonnull" >&5
6796 $as_echo_n "checking if $CC supports-Werror=nonnull... " >&6; }
6797 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6798 if eval \${$cacheid+:} false; then :
6799 $as_echo_n "(cached) " >&6
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6812 if ac_fn_c_try_link "$LINENO"; then :
6817 rm -f core conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6822 CFLAGS="$xorg_testset_save_CFLAGS"
6824 eval supported=\$$cacheid
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6826 $as_echo "$supported" >&6; }
6827 if test "$supported" = "yes" ; then
6828 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6847 xorg_testset_save_CFLAGS="$CFLAGS"
6849 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6852 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6853 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6854 $as_echo_n "(cached) " >&6
6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857 /* end confdefs.h. */
6860 if ac_fn_c_try_compile "$LINENO"; then :
6861 xorg_cv_cc_flag_unknown_warning_option=yes
6863 xorg_cv_cc_flag_unknown_warning_option=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6868 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6870 CFLAGS="$xorg_testset_save_CFLAGS"
6873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6879 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6880 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6881 $as_echo_n "(cached) " >&6
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6887 if ac_fn_c_try_compile "$LINENO"; then :
6888 xorg_cv_cc_flag_unused_command_line_argument=yes
6890 xorg_cv_cc_flag_unused_command_line_argument=no
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6895 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6896 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6897 CFLAGS="$xorg_testset_save_CFLAGS"
6902 if test $found = "no" ; then
6903 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6907 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911 CFLAGS="$CFLAGS -Werror=init-self"
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=init-self" >&5
6914 $as_echo_n "checking if $CC supports-Werror=init-self... " >&6; }
6915 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
6916 if eval \${$cacheid+:} false; then :
6917 $as_echo_n "(cached) " >&6
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6930 if ac_fn_c_try_link "$LINENO"; then :
6935 rm -f core conftest.err conftest.$ac_objext \
6936 conftest$ac_exeext conftest.$ac_ext
6940 CFLAGS="$xorg_testset_save_CFLAGS"
6942 eval supported=\$$cacheid
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6944 $as_echo "$supported" >&6; }
6945 if test "$supported" = "yes" ; then
6946 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6965 xorg_testset_save_CFLAGS="$CFLAGS"
6967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6970 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6971 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6972 $as_echo_n "(cached) " >&6
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979 xorg_cv_cc_flag_unknown_warning_option=yes
6981 xorg_cv_cc_flag_unknown_warning_option=no
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6986 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6988 CFLAGS="$xorg_testset_save_CFLAGS"
6991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6997 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6998 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6999 $as_echo_n "(cached) " >&6
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7005 if ac_fn_c_try_compile "$LINENO"; then :
7006 xorg_cv_cc_flag_unused_command_line_argument=yes
7008 xorg_cv_cc_flag_unused_command_line_argument=no
7010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7013 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7015 CFLAGS="$xorg_testset_save_CFLAGS"
7020 if test $found = "no" ; then
7021 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7025 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7029 CFLAGS="$CFLAGS -Werror=main"
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=main" >&5
7032 $as_echo_n "checking if $CC supports-Werror=main... " >&6; }
7033 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7034 if eval \${$cacheid+:} false; then :
7035 $as_echo_n "(cached) " >&6
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7048 if ac_fn_c_try_link "$LINENO"; then :
7053 rm -f core conftest.err conftest.$ac_objext \
7054 conftest$ac_exeext conftest.$ac_ext
7058 CFLAGS="$xorg_testset_save_CFLAGS"
7060 eval supported=\$$cacheid
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7062 $as_echo "$supported" >&6; }
7063 if test "$supported" = "yes" ; then
7064 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7083 xorg_testset_save_CFLAGS="$CFLAGS"
7085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7088 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7089 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7090 $as_echo_n "(cached) " >&6
7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7096 if ac_fn_c_try_compile "$LINENO"; then :
7097 xorg_cv_cc_flag_unknown_warning_option=yes
7099 xorg_cv_cc_flag_unknown_warning_option=no
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7104 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7106 CFLAGS="$xorg_testset_save_CFLAGS"
7109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7115 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7116 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7117 $as_echo_n "(cached) " >&6
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7123 if ac_fn_c_try_compile "$LINENO"; then :
7124 xorg_cv_cc_flag_unused_command_line_argument=yes
7126 xorg_cv_cc_flag_unused_command_line_argument=no
7128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7131 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7132 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7133 CFLAGS="$xorg_testset_save_CFLAGS"
7138 if test $found = "no" ; then
7139 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7143 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7144 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7147 CFLAGS="$CFLAGS -Werror=missing-braces"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=missing-braces" >&5
7150 $as_echo_n "checking if $CC supports-Werror=missing-braces... " >&6; }
7151 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7152 if eval \${$cacheid+:} false; then :
7153 $as_echo_n "(cached) " >&6
7155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7156 /* end confdefs.h. */
7166 if ac_fn_c_try_link "$LINENO"; then :
7171 rm -f core conftest.err conftest.$ac_objext \
7172 conftest$ac_exeext conftest.$ac_ext
7176 CFLAGS="$xorg_testset_save_CFLAGS"
7178 eval supported=\$$cacheid
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7180 $as_echo "$supported" >&6; }
7181 if test "$supported" = "yes" ; then
7182 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7201 xorg_testset_save_CFLAGS="$CFLAGS"
7203 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7206 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7207 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7208 $as_echo_n "(cached) " >&6
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215 xorg_cv_cc_flag_unknown_warning_option=yes
7217 xorg_cv_cc_flag_unknown_warning_option=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7222 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7223 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7224 CFLAGS="$xorg_testset_save_CFLAGS"
7227 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7233 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7234 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7235 $as_echo_n "(cached) " >&6
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7241 if ac_fn_c_try_compile "$LINENO"; then :
7242 xorg_cv_cc_flag_unused_command_line_argument=yes
7244 xorg_cv_cc_flag_unused_command_line_argument=no
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7249 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7251 CFLAGS="$xorg_testset_save_CFLAGS"
7256 if test $found = "no" ; then
7257 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7261 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7265 CFLAGS="$CFLAGS -Werror=sequence-point"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=sequence-point" >&5
7268 $as_echo_n "checking if $CC supports-Werror=sequence-point... " >&6; }
7269 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7270 if eval \${$cacheid+:} false; then :
7271 $as_echo_n "(cached) " >&6
7273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7274 /* end confdefs.h. */
7284 if ac_fn_c_try_link "$LINENO"; then :
7289 rm -f core conftest.err conftest.$ac_objext \
7290 conftest$ac_exeext conftest.$ac_ext
7294 CFLAGS="$xorg_testset_save_CFLAGS"
7296 eval supported=\$$cacheid
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7298 $as_echo "$supported" >&6; }
7299 if test "$supported" = "yes" ; then
7300 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7319 xorg_testset_save_CFLAGS="$CFLAGS"
7321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7326 $as_echo_n "(cached) " >&6
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7332 if ac_fn_c_try_compile "$LINENO"; then :
7333 xorg_cv_cc_flag_unknown_warning_option=yes
7335 xorg_cv_cc_flag_unknown_warning_option=no
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7342 CFLAGS="$xorg_testset_save_CFLAGS"
7345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7356 /* end confdefs.h. */
7359 if ac_fn_c_try_compile "$LINENO"; then :
7360 xorg_cv_cc_flag_unused_command_line_argument=yes
7362 xorg_cv_cc_flag_unused_command_line_argument=no
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7369 CFLAGS="$xorg_testset_save_CFLAGS"
7374 if test $found = "no" ; then
7375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7383 CFLAGS="$CFLAGS -Werror=return-type"
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=return-type" >&5
7386 $as_echo_n "checking if $CC supports-Werror=return-type... " >&6; }
7387 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7388 if eval \${$cacheid+:} false; then :
7389 $as_echo_n "(cached) " >&6
7391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7392 /* end confdefs.h. */
7402 if ac_fn_c_try_link "$LINENO"; then :
7407 rm -f core conftest.err conftest.$ac_objext \
7408 conftest$ac_exeext conftest.$ac_ext
7412 CFLAGS="$xorg_testset_save_CFLAGS"
7414 eval supported=\$$cacheid
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416 $as_echo "$supported" >&6; }
7417 if test "$supported" = "yes" ; then
7418 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7423 if test $found = "no" ; then
7424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7432 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7435 $as_echo_n "checking if $CC supports-errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7436 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7437 if eval \${$cacheid+:} false; then :
7438 $as_echo_n "(cached) " >&6
7440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7451 if ac_fn_c_try_link "$LINENO"; then :
7456 rm -f core conftest.err conftest.$ac_objext \
7457 conftest$ac_exeext conftest.$ac_ext
7461 CFLAGS="$xorg_testset_save_CFLAGS"
7463 eval supported=\$$cacheid
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7465 $as_echo "$supported" >&6; }
7466 if test "$supported" = "yes" ; then
7467 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7486 xorg_testset_save_CFLAGS="$CFLAGS"
7488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7493 $as_echo_n "(cached) " >&6
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7499 if ac_fn_c_try_compile "$LINENO"; then :
7500 xorg_cv_cc_flag_unknown_warning_option=yes
7502 xorg_cv_cc_flag_unknown_warning_option=no
7504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7509 CFLAGS="$xorg_testset_save_CFLAGS"
7512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7520 $as_echo_n "(cached) " >&6
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7526 if ac_fn_c_try_compile "$LINENO"; then :
7527 xorg_cv_cc_flag_unused_command_line_argument=yes
7529 xorg_cv_cc_flag_unused_command_line_argument=no
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7536 CFLAGS="$xorg_testset_save_CFLAGS"
7541 if test $found = "no" ; then
7542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7550 CFLAGS="$CFLAGS -Werror=trigraphs"
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=trigraphs" >&5
7553 $as_echo_n "checking if $CC supports-Werror=trigraphs... " >&6; }
7554 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7555 if eval \${$cacheid+:} false; then :
7556 $as_echo_n "(cached) " >&6
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7569 if ac_fn_c_try_link "$LINENO"; then :
7574 rm -f core conftest.err conftest.$ac_objext \
7575 conftest$ac_exeext conftest.$ac_ext
7579 CFLAGS="$xorg_testset_save_CFLAGS"
7581 eval supported=\$$cacheid
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7583 $as_echo "$supported" >&6; }
7584 if test "$supported" = "yes" ; then
7585 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7604 xorg_testset_save_CFLAGS="$CFLAGS"
7606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7611 $as_echo_n "(cached) " >&6
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7617 if ac_fn_c_try_compile "$LINENO"; then :
7618 xorg_cv_cc_flag_unknown_warning_option=yes
7620 xorg_cv_cc_flag_unknown_warning_option=no
7622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7627 CFLAGS="$xorg_testset_save_CFLAGS"
7630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7638 $as_echo_n "(cached) " >&6
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7644 if ac_fn_c_try_compile "$LINENO"; then :
7645 xorg_cv_cc_flag_unused_command_line_argument=yes
7647 xorg_cv_cc_flag_unused_command_line_argument=no
7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7654 CFLAGS="$xorg_testset_save_CFLAGS"
7659 if test $found = "no" ; then
7660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7668 CFLAGS="$CFLAGS -Werror=array-bounds"
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=array-bounds" >&5
7671 $as_echo_n "checking if $CC supports-Werror=array-bounds... " >&6; }
7672 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7673 if eval \${$cacheid+:} false; then :
7674 $as_echo_n "(cached) " >&6
7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h. */
7687 if ac_fn_c_try_link "$LINENO"; then :
7692 rm -f core conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7697 CFLAGS="$xorg_testset_save_CFLAGS"
7699 eval supported=\$$cacheid
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7701 $as_echo "$supported" >&6; }
7702 if test "$supported" = "yes" ; then
7703 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7722 xorg_testset_save_CFLAGS="$CFLAGS"
7724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7729 $as_echo_n "(cached) " >&6
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7735 if ac_fn_c_try_compile "$LINENO"; then :
7736 xorg_cv_cc_flag_unknown_warning_option=yes
7738 xorg_cv_cc_flag_unknown_warning_option=no
7740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7745 CFLAGS="$xorg_testset_save_CFLAGS"
7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7756 $as_echo_n "(cached) " >&6
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7762 if ac_fn_c_try_compile "$LINENO"; then :
7763 xorg_cv_cc_flag_unused_command_line_argument=yes
7765 xorg_cv_cc_flag_unused_command_line_argument=no
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7772 CFLAGS="$xorg_testset_save_CFLAGS"
7777 if test $found = "no" ; then
7778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7786 CFLAGS="$CFLAGS -Werror=write-strings"
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=write-strings" >&5
7789 $as_echo_n "checking if $CC supports-Werror=write-strings... " >&6; }
7790 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7791 if eval \${$cacheid+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7795 /* end confdefs.h. */
7805 if ac_fn_c_try_link "$LINENO"; then :
7810 rm -f core conftest.err conftest.$ac_objext \
7811 conftest$ac_exeext conftest.$ac_ext
7815 CFLAGS="$xorg_testset_save_CFLAGS"
7817 eval supported=\$$cacheid
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7819 $as_echo "$supported" >&6; }
7820 if test "$supported" = "yes" ; then
7821 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7840 xorg_testset_save_CFLAGS="$CFLAGS"
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7847 $as_echo_n "(cached) " >&6
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7853 if ac_fn_c_try_compile "$LINENO"; then :
7854 xorg_cv_cc_flag_unknown_warning_option=yes
7856 xorg_cv_cc_flag_unknown_warning_option=no
7858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7863 CFLAGS="$xorg_testset_save_CFLAGS"
7866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7874 $as_echo_n "(cached) " >&6
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7880 if ac_fn_c_try_compile "$LINENO"; then :
7881 xorg_cv_cc_flag_unused_command_line_argument=yes
7883 xorg_cv_cc_flag_unused_command_line_argument=no
7885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7895 if test $found = "no" ; then
7896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7904 CFLAGS="$CFLAGS -Werror=address"
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=address" >&5
7907 $as_echo_n "checking if $CC supports-Werror=address... " >&6; }
7908 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
7909 if eval \${$cacheid+:} false; then :
7910 $as_echo_n "(cached) " >&6
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7923 if ac_fn_c_try_link "$LINENO"; then :
7928 rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7933 CFLAGS="$xorg_testset_save_CFLAGS"
7935 eval supported=\$$cacheid
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7937 $as_echo "$supported" >&6; }
7938 if test "$supported" = "yes" ; then
7939 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7958 xorg_testset_save_CFLAGS="$CFLAGS"
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7965 $as_echo_n "(cached) " >&6
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7971 if ac_fn_c_try_compile "$LINENO"; then :
7972 xorg_cv_cc_flag_unknown_warning_option=yes
7974 xorg_cv_cc_flag_unknown_warning_option=no
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7981 CFLAGS="$xorg_testset_save_CFLAGS"
7984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7992 $as_echo_n "(cached) " >&6
7994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7998 if ac_fn_c_try_compile "$LINENO"; then :
7999 xorg_cv_cc_flag_unused_command_line_argument=yes
8001 xorg_cv_cc_flag_unused_command_line_argument=no
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8013 if test $found = "no" ; then
8014 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8018 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8022 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=int-to-pointer-cast" >&5
8025 $as_echo_n "checking if $CC supports-Werror=int-to-pointer-cast... " >&6; }
8026 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8027 if eval \${$cacheid+:} false; then :
8028 $as_echo_n "(cached) " >&6
8030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h. */
8041 if ac_fn_c_try_link "$LINENO"; then :
8046 rm -f core conftest.err conftest.$ac_objext \
8047 conftest$ac_exeext conftest.$ac_ext
8051 CFLAGS="$xorg_testset_save_CFLAGS"
8053 eval supported=\$$cacheid
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8055 $as_echo "$supported" >&6; }
8056 if test "$supported" = "yes" ; then
8057 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8062 if test $found = "no" ; then
8063 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8067 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8071 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8074 $as_echo_n "checking if $CC supports-errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8075 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8076 if eval \${$cacheid+:} false; then :
8077 $as_echo_n "(cached) " >&6
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8090 if ac_fn_c_try_link "$LINENO"; then :
8095 rm -f core conftest.err conftest.$ac_objext \
8096 conftest$ac_exeext conftest.$ac_ext
8100 CFLAGS="$xorg_testset_save_CFLAGS"
8102 eval supported=\$$cacheid
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8104 $as_echo "$supported" >&6; }
8105 if test "$supported" = "yes" ; then
8106 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8125 xorg_testset_save_CFLAGS="$CFLAGS"
8127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8132 $as_echo_n "(cached) " >&6
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8138 if ac_fn_c_try_compile "$LINENO"; then :
8139 xorg_cv_cc_flag_unknown_warning_option=yes
8141 xorg_cv_cc_flag_unknown_warning_option=no
8143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8148 CFLAGS="$xorg_testset_save_CFLAGS"
8151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8159 $as_echo_n "(cached) " >&6
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8165 if ac_fn_c_try_compile "$LINENO"; then :
8166 xorg_cv_cc_flag_unused_command_line_argument=yes
8168 xorg_cv_cc_flag_unused_command_line_argument=no
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8175 CFLAGS="$xorg_testset_save_CFLAGS"
8180 if test $found = "no" ; then
8181 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8185 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8189 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=pointer-to-int-cast" >&5
8192 $as_echo_n "checking if $CC supports-Werror=pointer-to-int-cast... " >&6; }
8193 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8194 if eval \${$cacheid+:} false; then :
8195 $as_echo_n "(cached) " >&6
8197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8208 if ac_fn_c_try_link "$LINENO"; then :
8213 rm -f core conftest.err conftest.$ac_objext \
8214 conftest$ac_exeext conftest.$ac_ext
8218 CFLAGS="$xorg_testset_save_CFLAGS"
8220 eval supported=\$$cacheid
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8222 $as_echo "$supported" >&6; }
8223 if test "$supported" = "yes" ; then
8224 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8229 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8231 { $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
8232 $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;}
8246 xorg_testset_save_CFLAGS="$CFLAGS"
8248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8251 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8252 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8253 $as_echo_n "(cached) " >&6
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8259 if ac_fn_c_try_compile "$LINENO"; then :
8260 xorg_cv_cc_flag_unknown_warning_option=yes
8262 xorg_cv_cc_flag_unknown_warning_option=no
8264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8267 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8269 CFLAGS="$xorg_testset_save_CFLAGS"
8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8278 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8279 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8280 $as_echo_n "(cached) " >&6
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8286 if ac_fn_c_try_compile "$LINENO"; then :
8287 xorg_cv_cc_flag_unused_command_line_argument=yes
8289 xorg_cv_cc_flag_unused_command_line_argument=no
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8294 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8296 CFLAGS="$xorg_testset_save_CFLAGS"
8301 if test $found = "no" ; then
8302 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8306 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8310 CFLAGS="$CFLAGS -Wimplicit"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wimplicit" >&5
8313 $as_echo_n "checking if $CC supports-Wimplicit... " >&6; }
8314 cacheid=xorg_cv_cc_flag__Wimplicit
8315 if eval \${$cacheid+:} false; then :
8316 $as_echo_n "(cached) " >&6
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8329 if ac_fn_c_try_link "$LINENO"; then :
8334 rm -f core conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8339 CFLAGS="$xorg_testset_save_CFLAGS"
8341 eval supported=\$$cacheid
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8343 $as_echo "$supported" >&6; }
8344 if test "$supported" = "yes" ; then
8345 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8364 xorg_testset_save_CFLAGS="$CFLAGS"
8366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8369 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8370 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8371 $as_echo_n "(cached) " >&6
8373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8374 /* end confdefs.h. */
8377 if ac_fn_c_try_compile "$LINENO"; then :
8378 xorg_cv_cc_flag_unknown_warning_option=yes
8380 xorg_cv_cc_flag_unknown_warning_option=no
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8385 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8387 CFLAGS="$xorg_testset_save_CFLAGS"
8390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8396 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8397 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8398 $as_echo_n "(cached) " >&6
8400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8401 /* end confdefs.h. */
8404 if ac_fn_c_try_compile "$LINENO"; then :
8405 xorg_cv_cc_flag_unused_command_line_argument=yes
8407 xorg_cv_cc_flag_unused_command_line_argument=no
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8412 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8414 CFLAGS="$xorg_testset_save_CFLAGS"
8419 if test $found = "no" ; then
8420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8428 CFLAGS="$CFLAGS -Wnonnull"
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wnonnull" >&5
8431 $as_echo_n "checking if $CC supports-Wnonnull... " >&6; }
8432 cacheid=xorg_cv_cc_flag__Wnonnull
8433 if eval \${$cacheid+:} false; then :
8434 $as_echo_n "(cached) " >&6
8436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8437 /* end confdefs.h. */
8447 if ac_fn_c_try_link "$LINENO"; then :
8452 rm -f core conftest.err conftest.$ac_objext \
8453 conftest$ac_exeext conftest.$ac_ext
8457 CFLAGS="$xorg_testset_save_CFLAGS"
8459 eval supported=\$$cacheid
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8461 $as_echo "$supported" >&6; }
8462 if test "$supported" = "yes" ; then
8463 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8482 xorg_testset_save_CFLAGS="$CFLAGS"
8484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8487 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8488 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8489 $as_echo_n "(cached) " >&6
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8495 if ac_fn_c_try_compile "$LINENO"; then :
8496 xorg_cv_cc_flag_unknown_warning_option=yes
8498 xorg_cv_cc_flag_unknown_warning_option=no
8500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8503 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8505 CFLAGS="$xorg_testset_save_CFLAGS"
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8514 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8515 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8516 $as_echo_n "(cached) " >&6
8518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8519 /* end confdefs.h. */
8522 if ac_fn_c_try_compile "$LINENO"; then :
8523 xorg_cv_cc_flag_unused_command_line_argument=yes
8525 xorg_cv_cc_flag_unused_command_line_argument=no
8527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8530 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8532 CFLAGS="$xorg_testset_save_CFLAGS"
8537 if test $found = "no" ; then
8538 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546 CFLAGS="$CFLAGS -Winit-self"
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Winit-self" >&5
8549 $as_echo_n "checking if $CC supports-Winit-self... " >&6; }
8550 cacheid=xorg_cv_cc_flag__Winit_self
8551 if eval \${$cacheid+:} false; then :
8552 $as_echo_n "(cached) " >&6
8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8565 if ac_fn_c_try_link "$LINENO"; then :
8570 rm -f core conftest.err conftest.$ac_objext \
8571 conftest$ac_exeext conftest.$ac_ext
8575 CFLAGS="$xorg_testset_save_CFLAGS"
8577 eval supported=\$$cacheid
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8579 $as_echo "$supported" >&6; }
8580 if test "$supported" = "yes" ; then
8581 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8600 xorg_testset_save_CFLAGS="$CFLAGS"
8602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8605 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8606 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8607 $as_echo_n "(cached) " >&6
8609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8613 if ac_fn_c_try_compile "$LINENO"; then :
8614 xorg_cv_cc_flag_unknown_warning_option=yes
8616 xorg_cv_cc_flag_unknown_warning_option=no
8618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8621 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8623 CFLAGS="$xorg_testset_save_CFLAGS"
8626 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8632 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8633 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8634 $as_echo_n "(cached) " >&6
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8640 if ac_fn_c_try_compile "$LINENO"; then :
8641 xorg_cv_cc_flag_unused_command_line_argument=yes
8643 xorg_cv_cc_flag_unused_command_line_argument=no
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8648 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8650 CFLAGS="$xorg_testset_save_CFLAGS"
8655 if test $found = "no" ; then
8656 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664 CFLAGS="$CFLAGS -Wmain"
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmain" >&5
8667 $as_echo_n "checking if $CC supports-Wmain... " >&6; }
8668 cacheid=xorg_cv_cc_flag__Wmain
8669 if eval \${$cacheid+:} false; then :
8670 $as_echo_n "(cached) " >&6
8672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8673 /* end confdefs.h. */
8683 if ac_fn_c_try_link "$LINENO"; then :
8688 rm -f core conftest.err conftest.$ac_objext \
8689 conftest$ac_exeext conftest.$ac_ext
8693 CFLAGS="$xorg_testset_save_CFLAGS"
8695 eval supported=\$$cacheid
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8697 $as_echo "$supported" >&6; }
8698 if test "$supported" = "yes" ; then
8699 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8718 xorg_testset_save_CFLAGS="$CFLAGS"
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8723 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8724 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8725 $as_echo_n "(cached) " >&6
8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8728 /* end confdefs.h. */
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732 xorg_cv_cc_flag_unknown_warning_option=yes
8734 xorg_cv_cc_flag_unknown_warning_option=no
8736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8739 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8741 CFLAGS="$xorg_testset_save_CFLAGS"
8744 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8750 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8751 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8752 $as_echo_n "(cached) " >&6
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759 xorg_cv_cc_flag_unused_command_line_argument=yes
8761 xorg_cv_cc_flag_unused_command_line_argument=no
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8766 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8768 CFLAGS="$xorg_testset_save_CFLAGS"
8773 if test $found = "no" ; then
8774 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8782 CFLAGS="$CFLAGS -Wmissing-braces"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wmissing-braces" >&5
8785 $as_echo_n "checking if $CC supports-Wmissing-braces... " >&6; }
8786 cacheid=xorg_cv_cc_flag__Wmissing_braces
8787 if eval \${$cacheid+:} false; then :
8788 $as_echo_n "(cached) " >&6
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8801 if ac_fn_c_try_link "$LINENO"; then :
8806 rm -f core conftest.err conftest.$ac_objext \
8807 conftest$ac_exeext conftest.$ac_ext
8811 CFLAGS="$xorg_testset_save_CFLAGS"
8813 eval supported=\$$cacheid
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8815 $as_echo "$supported" >&6; }
8816 if test "$supported" = "yes" ; then
8817 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8836 xorg_testset_save_CFLAGS="$CFLAGS"
8838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8841 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8842 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8843 $as_echo_n "(cached) " >&6
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8849 if ac_fn_c_try_compile "$LINENO"; then :
8850 xorg_cv_cc_flag_unknown_warning_option=yes
8852 xorg_cv_cc_flag_unknown_warning_option=no
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8857 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8859 CFLAGS="$xorg_testset_save_CFLAGS"
8862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8868 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8869 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8870 $as_echo_n "(cached) " >&6
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8876 if ac_fn_c_try_compile "$LINENO"; then :
8877 xorg_cv_cc_flag_unused_command_line_argument=yes
8879 xorg_cv_cc_flag_unused_command_line_argument=no
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8884 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8886 CFLAGS="$xorg_testset_save_CFLAGS"
8891 if test $found = "no" ; then
8892 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8896 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8900 CFLAGS="$CFLAGS -Wsequence-point"
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wsequence-point" >&5
8903 $as_echo_n "checking if $CC supports-Wsequence-point... " >&6; }
8904 cacheid=xorg_cv_cc_flag__Wsequence_point
8905 if eval \${$cacheid+:} false; then :
8906 $as_echo_n "(cached) " >&6
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8919 if ac_fn_c_try_link "$LINENO"; then :
8924 rm -f core conftest.err conftest.$ac_objext \
8925 conftest$ac_exeext conftest.$ac_ext
8929 CFLAGS="$xorg_testset_save_CFLAGS"
8931 eval supported=\$$cacheid
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8933 $as_echo "$supported" >&6; }
8934 if test "$supported" = "yes" ; then
8935 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8954 xorg_testset_save_CFLAGS="$CFLAGS"
8956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8959 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8960 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8961 $as_echo_n "(cached) " >&6
8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8964 /* end confdefs.h. */
8967 if ac_fn_c_try_compile "$LINENO"; then :
8968 xorg_cv_cc_flag_unknown_warning_option=yes
8970 xorg_cv_cc_flag_unknown_warning_option=no
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8975 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8977 CFLAGS="$xorg_testset_save_CFLAGS"
8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8986 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8987 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8988 $as_echo_n "(cached) " >&6
8990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h. */
8994 if ac_fn_c_try_compile "$LINENO"; then :
8995 xorg_cv_cc_flag_unused_command_line_argument=yes
8997 xorg_cv_cc_flag_unused_command_line_argument=no
8999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9002 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9003 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9004 CFLAGS="$xorg_testset_save_CFLAGS"
9009 if test $found = "no" ; then
9010 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9014 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9015 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9018 CFLAGS="$CFLAGS -Wreturn-type"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wreturn-type" >&5
9021 $as_echo_n "checking if $CC supports-Wreturn-type... " >&6; }
9022 cacheid=xorg_cv_cc_flag__Wreturn_type
9023 if eval \${$cacheid+:} false; then :
9024 $as_echo_n "(cached) " >&6
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9037 if ac_fn_c_try_link "$LINENO"; then :
9042 rm -f core conftest.err conftest.$ac_objext \
9043 conftest$ac_exeext conftest.$ac_ext
9047 CFLAGS="$xorg_testset_save_CFLAGS"
9049 eval supported=\$$cacheid
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9051 $as_echo "$supported" >&6; }
9052 if test "$supported" = "yes" ; then
9053 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9072 xorg_testset_save_CFLAGS="$CFLAGS"
9074 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9077 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9078 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9079 $as_echo_n "(cached) " >&6
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9085 if ac_fn_c_try_compile "$LINENO"; then :
9086 xorg_cv_cc_flag_unknown_warning_option=yes
9088 xorg_cv_cc_flag_unknown_warning_option=no
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9093 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9095 CFLAGS="$xorg_testset_save_CFLAGS"
9098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9104 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9105 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9106 $as_echo_n "(cached) " >&6
9108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9109 /* end confdefs.h. */
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113 xorg_cv_cc_flag_unused_command_line_argument=yes
9115 xorg_cv_cc_flag_unused_command_line_argument=no
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9120 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9121 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9122 CFLAGS="$xorg_testset_save_CFLAGS"
9127 if test $found = "no" ; then
9128 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9136 CFLAGS="$CFLAGS -Wtrigraphs"
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wtrigraphs" >&5
9139 $as_echo_n "checking if $CC supports-Wtrigraphs... " >&6; }
9140 cacheid=xorg_cv_cc_flag__Wtrigraphs
9141 if eval \${$cacheid+:} false; then :
9142 $as_echo_n "(cached) " >&6
9144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h. */
9155 if ac_fn_c_try_link "$LINENO"; then :
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9165 CFLAGS="$xorg_testset_save_CFLAGS"
9167 eval supported=\$$cacheid
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9169 $as_echo "$supported" >&6; }
9170 if test "$supported" = "yes" ; then
9171 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9190 xorg_testset_save_CFLAGS="$CFLAGS"
9192 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9195 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9196 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9197 $as_echo_n "(cached) " >&6
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200 /* end confdefs.h. */
9203 if ac_fn_c_try_compile "$LINENO"; then :
9204 xorg_cv_cc_flag_unknown_warning_option=yes
9206 xorg_cv_cc_flag_unknown_warning_option=no
9208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9211 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9222 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9223 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9224 $as_echo_n "(cached) " >&6
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9230 if ac_fn_c_try_compile "$LINENO"; then :
9231 xorg_cv_cc_flag_unused_command_line_argument=yes
9233 xorg_cv_cc_flag_unused_command_line_argument=no
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9238 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9240 CFLAGS="$xorg_testset_save_CFLAGS"
9245 if test $found = "no" ; then
9246 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9250 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9254 CFLAGS="$CFLAGS -Warray-bounds"
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Warray-bounds" >&5
9257 $as_echo_n "checking if $CC supports-Warray-bounds... " >&6; }
9258 cacheid=xorg_cv_cc_flag__Warray_bounds
9259 if eval \${$cacheid+:} false; then :
9260 $as_echo_n "(cached) " >&6
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9273 if ac_fn_c_try_link "$LINENO"; then :
9278 rm -f core conftest.err conftest.$ac_objext \
9279 conftest$ac_exeext conftest.$ac_ext
9283 CFLAGS="$xorg_testset_save_CFLAGS"
9285 eval supported=\$$cacheid
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9287 $as_echo "$supported" >&6; }
9288 if test "$supported" = "yes" ; then
9289 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9308 xorg_testset_save_CFLAGS="$CFLAGS"
9310 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9311 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9313 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9314 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9315 $as_echo_n "(cached) " >&6
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 xorg_cv_cc_flag_unknown_warning_option=yes
9324 xorg_cv_cc_flag_unknown_warning_option=no
9326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9329 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9330 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9331 CFLAGS="$xorg_testset_save_CFLAGS"
9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9340 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9341 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9342 $as_echo_n "(cached) " >&6
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9348 if ac_fn_c_try_compile "$LINENO"; then :
9349 xorg_cv_cc_flag_unused_command_line_argument=yes
9351 xorg_cv_cc_flag_unused_command_line_argument=no
9353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9356 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9358 CFLAGS="$xorg_testset_save_CFLAGS"
9363 if test $found = "no" ; then
9364 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9368 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9372 CFLAGS="$CFLAGS -Wwrite-strings"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wwrite-strings" >&5
9375 $as_echo_n "checking if $CC supports-Wwrite-strings... " >&6; }
9376 cacheid=xorg_cv_cc_flag__Wwrite_strings
9377 if eval \${$cacheid+:} false; then :
9378 $as_echo_n "(cached) " >&6
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381 /* end confdefs.h. */
9391 if ac_fn_c_try_link "$LINENO"; then :
9396 rm -f core conftest.err conftest.$ac_objext \
9397 conftest$ac_exeext conftest.$ac_ext
9401 CFLAGS="$xorg_testset_save_CFLAGS"
9403 eval supported=\$$cacheid
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9405 $as_echo "$supported" >&6; }
9406 if test "$supported" = "yes" ; then
9407 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9426 xorg_testset_save_CFLAGS="$CFLAGS"
9428 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9429 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9431 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9432 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9433 $as_echo_n "(cached) " >&6
9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9436 /* end confdefs.h. */
9439 if ac_fn_c_try_compile "$LINENO"; then :
9440 xorg_cv_cc_flag_unknown_warning_option=yes
9442 xorg_cv_cc_flag_unknown_warning_option=no
9444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9447 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9448 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9449 CFLAGS="$xorg_testset_save_CFLAGS"
9452 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9453 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9456 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9458 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9459 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9460 $as_echo_n "(cached) " >&6
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9466 if ac_fn_c_try_compile "$LINENO"; then :
9467 xorg_cv_cc_flag_unused_command_line_argument=yes
9469 xorg_cv_cc_flag_unused_command_line_argument=no
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9474 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9476 CFLAGS="$xorg_testset_save_CFLAGS"
9481 if test $found = "no" ; then
9482 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9486 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9490 CFLAGS="$CFLAGS -Waddress"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Waddress" >&5
9493 $as_echo_n "checking if $CC supports-Waddress... " >&6; }
9494 cacheid=xorg_cv_cc_flag__Waddress
9495 if eval \${$cacheid+:} false; then :
9496 $as_echo_n "(cached) " >&6
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9509 if ac_fn_c_try_link "$LINENO"; then :
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9519 CFLAGS="$xorg_testset_save_CFLAGS"
9521 eval supported=\$$cacheid
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9523 $as_echo "$supported" >&6; }
9524 if test "$supported" = "yes" ; then
9525 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9544 xorg_testset_save_CFLAGS="$CFLAGS"
9546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9549 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9550 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9551 $as_echo_n "(cached) " >&6
9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h. */
9557 if ac_fn_c_try_compile "$LINENO"; then :
9558 xorg_cv_cc_flag_unknown_warning_option=yes
9560 xorg_cv_cc_flag_unknown_warning_option=no
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9565 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9567 CFLAGS="$xorg_testset_save_CFLAGS"
9570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9576 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9577 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9578 $as_echo_n "(cached) " >&6
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9584 if ac_fn_c_try_compile "$LINENO"; then :
9585 xorg_cv_cc_flag_unused_command_line_argument=yes
9587 xorg_cv_cc_flag_unused_command_line_argument=no
9589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9599 if test $found = "no" ; then
9600 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9604 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9608 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wint-to-pointer-cast" >&5
9611 $as_echo_n "checking if $CC supports-Wint-to-pointer-cast... " >&6; }
9612 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9613 if eval \${$cacheid+:} false; then :
9614 $as_echo_n "(cached) " >&6
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9627 if ac_fn_c_try_link "$LINENO"; then :
9632 rm -f core conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9639 eval supported=\$$cacheid
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9641 $as_echo "$supported" >&6; }
9642 if test "$supported" = "yes" ; then
9643 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9662 xorg_testset_save_CFLAGS="$CFLAGS"
9664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9669 $as_echo_n "(cached) " >&6
9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h. */
9675 if ac_fn_c_try_compile "$LINENO"; then :
9676 xorg_cv_cc_flag_unknown_warning_option=yes
9678 xorg_cv_cc_flag_unknown_warning_option=no
9680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9696 $as_echo_n "(cached) " >&6
9698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h. */
9702 if ac_fn_c_try_compile "$LINENO"; then :
9703 xorg_cv_cc_flag_unused_command_line_argument=yes
9705 xorg_cv_cc_flag_unused_command_line_argument=no
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9712 CFLAGS="$xorg_testset_save_CFLAGS"
9717 if test $found = "no" ; then
9718 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9722 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9726 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Wpointer-to-int-cast" >&5
9729 $as_echo_n "checking if $CC supports-Wpointer-to-int-cast... " >&6; }
9730 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9731 if eval \${$cacheid+:} false; then :
9732 $as_echo_n "(cached) " >&6
9734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9735 /* end confdefs.h. */
9745 if ac_fn_c_try_link "$LINENO"; then :
9750 rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9755 CFLAGS="$xorg_testset_save_CFLAGS"
9757 eval supported=\$$cacheid
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9759 $as_echo "$supported" >&6; }
9760 if test "$supported" = "yes" ; then
9761 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9775 CWARNFLAGS="$BASE_CFLAGS"
9776 if test "x$GCC" = xyes ; then
9777 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9787 # Check whether --enable-strict-compilation was given.
9788 if test "${enable_strict_compilation+set}" = set; then :
9789 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9813 xorg_testset_save_CFLAGS="$CFLAGS"
9815 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9818 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9819 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9820 $as_echo_n "(cached) " >&6
9822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h. */
9826 if ac_fn_c_try_compile "$LINENO"; then :
9827 xorg_cv_cc_flag_unknown_warning_option=yes
9829 xorg_cv_cc_flag_unknown_warning_option=no
9831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9834 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9835 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9836 CFLAGS="$xorg_testset_save_CFLAGS"
9839 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9845 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9846 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9847 $as_echo_n "(cached) " >&6
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9853 if ac_fn_c_try_compile "$LINENO"; then :
9854 xorg_cv_cc_flag_unused_command_line_argument=yes
9856 xorg_cv_cc_flag_unused_command_line_argument=no
9858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9861 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9863 CFLAGS="$xorg_testset_save_CFLAGS"
9868 if test $found = "no" ; then
9869 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9873 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9877 CFLAGS="$CFLAGS -pedantic"
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-pedantic" >&5
9880 $as_echo_n "checking if $CC supports-pedantic... " >&6; }
9881 cacheid=xorg_cv_cc_flag__pedantic
9882 if eval \${$cacheid+:} false; then :
9883 $as_echo_n "(cached) " >&6
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9896 if ac_fn_c_try_link "$LINENO"; then :
9901 rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9906 CFLAGS="$xorg_testset_save_CFLAGS"
9908 eval supported=\$$cacheid
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9910 $as_echo "$supported" >&6; }
9911 if test "$supported" = "yes" ; then
9912 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9931 xorg_testset_save_CFLAGS="$CFLAGS"
9933 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9936 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9937 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9938 $as_echo_n "(cached) " >&6
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9944 if ac_fn_c_try_compile "$LINENO"; then :
9945 xorg_cv_cc_flag_unknown_warning_option=yes
9947 xorg_cv_cc_flag_unknown_warning_option=no
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9952 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9954 CFLAGS="$xorg_testset_save_CFLAGS"
9957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9963 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9964 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9965 $as_echo_n "(cached) " >&6
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9971 if ac_fn_c_try_compile "$LINENO"; then :
9972 xorg_cv_cc_flag_unused_command_line_argument=yes
9974 xorg_cv_cc_flag_unused_command_line_argument=no
9976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9979 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9981 CFLAGS="$xorg_testset_save_CFLAGS"
9986 if test $found = "no" ; then
9987 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9991 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9995 CFLAGS="$CFLAGS -Werror"
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror" >&5
9998 $as_echo_n "checking if $CC supports-Werror... " >&6; }
9999 cacheid=xorg_cv_cc_flag__Werror
10000 if eval \${$cacheid+:} false; then :
10001 $as_echo_n "(cached) " >&6
10003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10014 if ac_fn_c_try_link "$LINENO"; then :
10019 rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10024 CFLAGS="$xorg_testset_save_CFLAGS"
10026 eval supported=\$$cacheid
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10028 $as_echo "$supported" >&6; }
10029 if test "$supported" = "yes" ; then
10030 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10035 if test $found = "no" ; then
10036 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10044 CFLAGS="$CFLAGS -errwarn"
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-errwarn" >&5
10047 $as_echo_n "checking if $CC supports-errwarn... " >&6; }
10048 cacheid=xorg_cv_cc_flag__errwarn
10049 if eval \${$cacheid+:} false; then :
10050 $as_echo_n "(cached) " >&6
10052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053 /* end confdefs.h. */
10063 if ac_fn_c_try_link "$LINENO"; then :
10068 rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10073 CFLAGS="$xorg_testset_save_CFLAGS"
10075 eval supported=\$$cacheid
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10077 $as_echo "$supported" >&6; }
10078 if test "$supported" = "yes" ; then
10079 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10086 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10087 # activate it with -Werror, so we add it here explicitly.
10101 xorg_testset_save_CFLAGS="$CFLAGS"
10103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10106 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10107 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10108 $as_echo_n "(cached) " >&6
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10114 if ac_fn_c_try_compile "$LINENO"; then :
10115 xorg_cv_cc_flag_unknown_warning_option=yes
10117 xorg_cv_cc_flag_unknown_warning_option=no
10119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10122 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10124 CFLAGS="$xorg_testset_save_CFLAGS"
10127 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10133 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10134 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10135 $as_echo_n "(cached) " >&6
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10141 if ac_fn_c_try_compile "$LINENO"; then :
10142 xorg_cv_cc_flag_unused_command_line_argument=yes
10144 xorg_cv_cc_flag_unused_command_line_argument=no
10146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10149 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10151 CFLAGS="$xorg_testset_save_CFLAGS"
10156 if test $found = "no" ; then
10157 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10161 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10165 CFLAGS="$CFLAGS -Werror=attributes"
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports-Werror=attributes" >&5
10168 $as_echo_n "checking if $CC supports-Werror=attributes... " >&6; }
10169 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10170 if eval \${$cacheid+:} false; then :
10171 $as_echo_n "(cached) " >&6
10173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10184 if ac_fn_c_try_link "$LINENO"; then :
10189 rm -f core conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10194 CFLAGS="$xorg_testset_save_CFLAGS"
10196 eval supported=\$$cacheid
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10198 $as_echo "$supported" >&6; }
10199 if test "$supported" = "yes" ; then
10200 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10207 if test "x$STRICT_COMPILE" = "xyes"; then
10208 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10209 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10217 cat >>confdefs.h <<_ACEOF
10218 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10221 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10222 if test "x$PVM" = "x"; then
10226 cat >>confdefs.h <<_ACEOF
10227 #define PACKAGE_VERSION_MINOR $PVM
10230 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10231 if test "x$PVP" = "x"; then
10235 cat >>confdefs.h <<_ACEOF
10236 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10241 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10242 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10243 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10244 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10249 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10250 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10251 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10252 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10253 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10260 if test x$APP_MAN_SUFFIX = x ; then
10263 if test x$APP_MAN_DIR = x ; then
10264 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10267 if test x$LIB_MAN_SUFFIX = x ; then
10270 if test x$LIB_MAN_DIR = x ; then
10271 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10274 if test x$FILE_MAN_SUFFIX = x ; then
10276 solaris*) FILE_MAN_SUFFIX=4 ;;
10277 *) FILE_MAN_SUFFIX=5 ;;
10280 if test x$FILE_MAN_DIR = x ; then
10281 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10284 if test x$MISC_MAN_SUFFIX = x ; then
10286 solaris*) MISC_MAN_SUFFIX=5 ;;
10287 *) MISC_MAN_SUFFIX=7 ;;
10290 if test x$MISC_MAN_DIR = x ; then
10291 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10294 if test x$DRIVER_MAN_SUFFIX = x ; then
10296 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10297 *) DRIVER_MAN_SUFFIX=4 ;;
10300 if test x$DRIVER_MAN_DIR = x ; then
10301 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10304 if test x$ADMIN_MAN_SUFFIX = x ; then
10306 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10307 *) ADMIN_MAN_SUFFIX=8 ;;
10310 if test x$ADMIN_MAN_DIR = x ; then
10311 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10328 XORG_MAN_PAGE="X Version 11"
10331 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10332 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10333 -e 's|__xservername__|Xorg|g' \
10334 -e 's|__xconfigfile__|xorg.conf|g' \
10335 -e 's|__projectroot__|\$(prefix)|g' \
10336 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10337 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10338 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10339 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10340 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10341 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10342 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10346 # Check whether --enable-silent-rules was given.
10347 if test "${enable_silent_rules+set}" = set; then :
10348 enableval=$enable_silent_rules;
10351 case $enable_silent_rules in
10352 yes) AM_DEFAULT_VERBOSITY=0;;
10353 no) AM_DEFAULT_VERBOSITY=1;;
10354 *) AM_DEFAULT_VERBOSITY=0;;
10356 am_make=${MAKE-make}
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10358 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10359 if ${am_cv_make_support_nested_variables+:} false; then :
10360 $as_echo_n "(cached) " >&6
10362 if $as_echo 'TRUE=$(BAR$(V))
10368 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10369 am_cv_make_support_nested_variables=yes
10371 am_cv_make_support_nested_variables=no
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10375 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10376 if test $am_cv_make_support_nested_variables = yes; then
10378 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10380 AM_V=$AM_DEFAULT_VERBOSITY
10381 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10387 ac_config_files="$ac_config_files Makefile dri2proto.pc"
10389 cat >confcache <<\_ACEOF
10390 # This file is a shell script that caches the results of configure
10391 # tests run on this system so they can be shared between configure
10392 # scripts and configure runs, see configure's option --config-cache.
10393 # It is not useful on other systems. If it contains results you don't
10394 # want to keep, you may remove or edit it.
10396 # config.status only pays attention to the cache file if you give it
10397 # the --recheck option to rerun configure.
10399 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10400 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10401 # following values.
10405 # The following way of writing the cache mishandles newlines in values,
10406 # but we know of no workaround that is simple, portable, and efficient.
10407 # So, we kill variables containing newlines.
10408 # Ultrix sh set writes to stderr and can't be redirected directly,
10409 # and sets the high bit in the cache file unless we assign to the vars.
10411 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10412 eval ac_val=\$$ac_var
10416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10420 _ | IFS | as_nl) ;; #(
10421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10422 *) { eval $ac_var=; unset $ac_var;} ;;
10428 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10429 *${as_nl}ac_space=\ *)
10430 # `set' does not quote correctly, so add quotes: double-quote
10431 # substitution turns \\\\ into \\, and sed turns \\ into \.
10434 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10437 # `set' quotes correctly as required by POSIX, so do not add quotes.
10438 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10447 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10449 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10451 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10452 if test -w "$cache_file"; then
10453 if test "x$cache_file" != "x/dev/null"; then
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10455 $as_echo "$as_me: updating cache $cache_file" >&6;}
10456 if test ! -f "$cache_file" || test -h "$cache_file"; then
10457 cat confcache >"$cache_file"
10459 case $cache_file in #(
10461 mv -f confcache "$cache_file"$$ &&
10462 mv -f "$cache_file"$$ "$cache_file" ;; #(
10464 mv -f confcache "$cache_file" ;;
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10470 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10475 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10476 # Let make expand exec_prefix.
10477 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10479 # Transform confdefs.h into DEFS.
10480 # Protect against shell expansion while executing Makefile rules.
10481 # Protect against Makefile macro expansion.
10483 # If the first sed substitution is executed (which looks for macros that
10484 # take arguments), then branch to the quote section. Otherwise,
10485 # look for a macro that doesn't take arguments.
10495 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10497 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10501 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10514 DEFS=`sed -n "$ac_script" confdefs.h`
10520 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10521 # 1. Remove the extension, and $U if already installed.
10522 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10523 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10524 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10525 # will be set to the directory where LIBOBJS objects are built.
10526 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10527 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10529 LIBOBJS=$ac_libobjs
10531 LTLIBOBJS=$ac_ltlibobjs
10534 if test -n "$EXEEXT"; then
10536 am__EXEEXT_FALSE='#'
10538 am__EXEEXT_TRUE='#'
10542 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10543 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10546 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10547 as_fn_error $? "conditional \"AMDEP\" was never defined.
10548 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10550 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10551 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10552 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10555 : "${CONFIG_STATUS=./config.status}"
10557 ac_clean_files_save=$ac_clean_files
10558 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10560 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10562 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10564 # Generated by $as_me.
10565 # Run this file to recreate the current configuration.
10566 # Compiler output produced by configure, useful for debugging
10567 # configure, is in config.log if it exists.
10570 ac_cs_recheck=false
10573 SHELL=\${CONFIG_SHELL-$SHELL}
10576 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10577 ## -------------------- ##
10578 ## M4sh Initialization. ##
10579 ## -------------------- ##
10581 # Be more Bourne compatible
10582 DUALCASE=1; export DUALCASE # for MKS sh
10583 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10587 # is contrary to our usage. Disable this feature.
10588 alias -g '${1+"$@"}'='"$@"'
10589 setopt NO_GLOB_SUBST
10591 case `(set -o) 2>/dev/null` in #(
10603 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10604 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10605 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10606 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10607 # Prefer a ksh shell builtin over an external printf program on Solaris,
10608 # but without wasting forks for bash or zsh.
10609 if test -z "$BASH_VERSION$ZSH_VERSION" \
10610 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10611 as_echo='print -r --'
10612 as_echo_n='print -rn --'
10613 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10614 as_echo='printf %s\n'
10615 as_echo_n='printf %s'
10617 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10618 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10619 as_echo_n='/usr/ucb/echo -n'
10621 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10622 as_echo_n_body='eval
10626 expr "X$arg" : "X\\(.*\\)$as_nl";
10627 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10629 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10631 export as_echo_n_body
10632 as_echo_n='sh -c $as_echo_n_body as_echo'
10634 export as_echo_body
10635 as_echo='sh -c $as_echo_body as_echo'
10638 # The user is always right.
10639 if test "${PATH_SEPARATOR+set}" != set; then
10641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10649 # We need space, tab and new line, in precisely that order. Quoting is
10650 # there to prevent editors from complaining about space-tab.
10651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10652 # splitting by setting IFS to empty value.)
10655 # Find who we are. Look in the path if we contain no directory separator.
10658 *[\\/]* ) as_myself=$0 ;;
10659 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10663 test -z "$as_dir" && as_dir=.
10664 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10670 # We did not find ourselves, most probably we were run as `sh COMMAND'
10671 # in which case we are not to be found in the path.
10672 if test "x$as_myself" = x; then
10675 if test ! -f "$as_myself"; then
10676 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10680 # Unset variables that we do not need and which cause bugs (e.g. in
10681 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10682 # suppresses any "Segmentation fault" message there. '((' could
10683 # trigger a bug in pdksh 5.2.14.
10684 for as_var in BASH_ENV ENV MAIL MAILPATH
10685 do eval test x\${$as_var+set} = xset \
10686 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10699 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10702 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10703 # ----------------------------------------
10704 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10705 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10706 # script with STATUS, using 1 if that was 0.
10709 as_status=$1; test $as_status -eq 0 && as_status=1
10711 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10712 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10714 $as_echo "$as_me: error: $2" >&2
10715 as_fn_exit $as_status
10719 # as_fn_set_status STATUS
10720 # -----------------------
10721 # Set $? to STATUS, without forking.
10722 as_fn_set_status ()
10725 } # as_fn_set_status
10727 # as_fn_exit STATUS
10728 # -----------------
10729 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10733 as_fn_set_status $1
10739 # Portably unset VAR.
10742 { eval $1=; unset $1;}
10744 as_unset=as_fn_unset
10745 # as_fn_append VAR VALUE
10746 # ----------------------
10747 # Append the text in VALUE to the end of the definition contained in VAR. Take
10748 # advantage of any shell optimizations that allow amortized linear growth over
10749 # repeated appends, instead of the typical quadratic growth present in naive
10751 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10752 eval 'as_fn_append ()
10763 # as_fn_arith ARG...
10764 # ------------------
10765 # Perform arithmetic evaluation on the ARGs, and store the result in the
10766 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10767 # must be portable across $(()) and expr.
10768 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10769 eval 'as_fn_arith ()
10776 as_val=`expr "$@" || test $? -eq 1`
10781 if expr a : '\(a\)' >/dev/null 2>&1 &&
10782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10788 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10789 as_basename=basename
10794 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10800 as_me=`$as_basename -- "$0" ||
10801 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10802 X"$0" : 'X\(//\)$' \| \
10803 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10805 sed '/^.*\/\([^/][^/]*\)\/*$/{
10819 # Avoid depending upon Character Ranges.
10820 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10821 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10822 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10823 as_cr_digits='0123456789'
10824 as_cr_alnum=$as_cr_Letters$as_cr_digits
10826 ECHO_C= ECHO_N= ECHO_T=
10827 case `echo -n x` in #(((((
10829 case `echo 'xy\c'` in
10830 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10832 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10839 rm -f conf$$ conf$$.exe conf$$.file
10840 if test -d conf$$.dir; then
10841 rm -f conf$$.dir/conf$$.file
10844 mkdir conf$$.dir 2>/dev/null
10846 if (echo >conf$$.file) 2>/dev/null; then
10847 if ln -s conf$$.file conf$$ 2>/dev/null; then
10849 # ... but there are two gotchas:
10850 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10851 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10852 # In both cases, we have to default to `cp -p'.
10853 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10855 elif ln conf$$.file conf$$ 2>/dev/null; then
10863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10864 rmdir conf$$.dir 2>/dev/null
10869 # Create "$as_dir" as a directory, including parents if necessary.
10874 -*) as_dir=./$as_dir;;
10876 test -d "$as_dir" || eval $as_mkdir_p || {
10880 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10881 *) as_qdir=$as_dir;;
10883 as_dirs="'$as_qdir' $as_dirs"
10884 as_dir=`$as_dirname -- "$as_dir" ||
10885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10886 X"$as_dir" : 'X\(//\)[^/]' \| \
10887 X"$as_dir" : 'X\(//\)$' \| \
10888 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10889 $as_echo X"$as_dir" |
10890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10894 /^X\(\/\/\)[^/].*/{
10907 test -d "$as_dir" && break
10909 test -z "$as_dirs" || eval "mkdir $as_dirs"
10910 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10914 if mkdir -p . 2>/dev/null; then
10915 as_mkdir_p='mkdir -p "$as_dir"'
10917 test -d ./-p && rmdir ./-p
10921 if test -x / >/dev/null 2>&1; then
10922 as_test_x='test -x'
10924 if ls -dL / >/dev/null 2>&1; then
10931 if test -d "$1"; then
10937 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10938 ???[sx]*):;;*)false;;esac;fi
10942 as_executable_p=$as_test_x
10944 # Sed expression to map a string onto a valid CPP name.
10945 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10947 # Sed expression to map a string onto a valid variable name.
10948 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10952 ## ----------------------------------- ##
10953 ## Main body of $CONFIG_STATUS script. ##
10954 ## ----------------------------------- ##
10956 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10959 # Save the log message, to keep $0 and so on meaningful, and to
10960 # report actual input values of CONFIG_FILES etc. instead of their
10961 # values after options handling.
10963 This file was extended by DRI2Proto $as_me 2.8, which was
10964 generated by GNU Autoconf 2.68. Invocation command line was
10966 CONFIG_FILES = $CONFIG_FILES
10967 CONFIG_HEADERS = $CONFIG_HEADERS
10968 CONFIG_LINKS = $CONFIG_LINKS
10969 CONFIG_COMMANDS = $CONFIG_COMMANDS
10972 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10977 case $ac_config_files in *"
10978 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10984 # Files that config.status was made for.
10985 config_files="$ac_config_files"
10986 config_commands="$ac_config_commands"
10990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10992 \`$as_me' instantiates files and other configuration actions
10993 from templates according to the current configuration. Unless the files
10994 and actions are specified as TAGs, all are instantiated by default.
10996 Usage: $0 [OPTION]... [TAG]...
10998 -h, --help print this help, then exit
10999 -V, --version print version number and configuration settings, then exit
11000 --config print configuration, then exit
11001 -q, --quiet, --silent
11002 do not print progress messages
11003 -d, --debug don't remove temporary files
11004 --recheck update $as_me by reconfiguring in the same conditions
11005 --file=FILE[:TEMPLATE]
11006 instantiate the configuration file FILE
11008 Configuration files:
11011 Configuration commands:
11014 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11018 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11020 DRI2Proto config.status 2.8
11021 configured by $0, generated by GNU Autoconf 2.68,
11022 with options \\"\$ac_cs_config\\"
11024 Copyright (C) 2010 Free Software Foundation, Inc.
11025 This config.status script is free software; the Free Software Foundation
11026 gives unlimited permission to copy, distribute and modify it."
11033 test -n "\$AWK" || AWK=awk
11036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11037 # The default lists apply if the user does not specify any file.
11043 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11044 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11048 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11060 # Handling of the options.
11061 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11063 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11064 $as_echo "$ac_cs_version"; exit ;;
11065 --config | --confi | --conf | --con | --co | --c )
11066 $as_echo "$ac_cs_config"; exit ;;
11067 --debug | --debu | --deb | --de | --d | -d )
11069 --file | --fil | --fi | --f )
11072 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11073 '') as_fn_error $? "missing file argument" ;;
11075 as_fn_append CONFIG_FILES " '$ac_optarg'"
11076 ac_need_defaults=false;;
11077 --he | --h | --help | --hel | -h )
11078 $as_echo "$ac_cs_usage"; exit ;;
11079 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11080 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11083 # This is an error.
11084 -*) as_fn_error $? "unrecognized option: \`$1'
11085 Try \`$0 --help' for more information." ;;
11087 *) as_fn_append ac_config_targets " $1"
11088 ac_need_defaults=false ;;
11094 ac_configure_extra_args=
11096 if $ac_cs_silent; then
11098 ac_configure_extra_args="$ac_configure_extra_args --silent"
11102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11103 if \$ac_cs_recheck; then
11104 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11106 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11107 CONFIG_SHELL='$SHELL'
11108 export CONFIG_SHELL
11113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11117 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11118 ## Running $as_me. ##
11124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11128 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11134 # Handling of arguments.
11135 for ac_config_target in $ac_config_targets
11137 case $ac_config_target in
11138 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11139 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11140 "dri2proto.pc") CONFIG_FILES="$CONFIG_FILES dri2proto.pc" ;;
11142 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11147 # If the user did not use the arguments to specify the items to instantiate,
11148 # then the envvar interface is used. Set only those that are not.
11149 # We use the long form for the default assignment because of an extremely
11150 # bizarre bug on SunOS 4.1.3.
11151 if $ac_need_defaults; then
11152 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11153 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11156 # Have a temporary directory for convenience. Make it in the build tree
11157 # simply because there is no reason against having it here, and in addition,
11158 # creating and moving files from /tmp can sometimes cause problems.
11159 # Hook for its removal unless debugging.
11160 # Note that there is a small window in which the directory will not be cleaned:
11161 # after its creation but before its name has been assigned to `$tmp'.
11165 trap 'exit_status=$?
11166 : "${ac_tmp:=$tmp}"
11167 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11169 trap 'as_fn_exit 1' 1 2 13 15
11171 # Create a (secure) tmp directory for tmp files.
11174 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11178 tmp=./conf$$-$RANDOM
11179 (umask 077 && mkdir "$tmp")
11180 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11183 # Set up the scripts for CONFIG_FILES section.
11184 # No need to generate them if there are no CONFIG_FILES.
11185 # This happens for instance with `./config.status config.h'.
11186 if test -n "$CONFIG_FILES"; then
11189 ac_cr=`echo X | tr X '\015'`
11190 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11191 # But we know of no other shell where ac_cr would be empty at this
11192 # point, so we can use a bashism as a fallback.
11193 if test "x$ac_cr" = x; then
11194 eval ac_cr=\$\'\\r\'
11196 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11197 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11200 ac_cs_awk_cr=$ac_cr
11203 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11208 echo "cat >conf$$subs.awk <<_ACEOF" &&
11209 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11211 } >conf$$subs.sh ||
11212 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11213 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11215 for ac_last_try in false false false false false :; do
11216 . ./conf$$subs.sh ||
11217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11219 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11220 if test $ac_delim_n = $ac_delim_num; then
11222 elif $ac_last_try; then
11223 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11225 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11228 rm -f conf$$subs.sh
11230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11231 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11235 s/^/S["/; s/!.*/"]=/
11245 s/\(.\{148\}\)..*/\1/
11247 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11252 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11259 s/\(.\{148\}\)..*/\1/
11261 s/["\\]/\\&/g; s/^/"/; s/$/"/
11265 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11270 ' <conf$$subs.awk | sed '
11275 ' >>$CONFIG_STATUS || ac_write_fail=1
11276 rm -f conf$$subs.awk
11277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11279 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11280 for (key in S) S_is_set[key] = 1
11286 nfields = split(line, field, "@")
11288 len = length(field[1])
11289 for (i = 2; i < nfields; i++) {
11291 keylen = length(key)
11292 if (S_is_set[key]) {
11294 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11295 len += length(value) + length(field[++i])
11306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11307 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11308 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11311 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11312 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11315 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11316 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11317 # trailing colons and then remove the whole line if VPATH becomes empty
11318 # (actually we leave an empty line to preserve line numbers).
11319 if test "x$srcdir" = x.; then
11320 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11339 fi # test -n "$CONFIG_FILES"
11342 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
11347 :[FHLC]) ac_mode=$ac_tag; continue;;
11349 case $ac_mode$ac_tag in
11351 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11352 :[FH]-) ac_tag=-:-;;
11353 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11370 -) ac_f="$ac_tmp/stdin";;
11371 *) # Look for the file first in the build tree, then in the source tree
11372 # (if the path is not absolute). The absolute path cannot be DOS-style,
11373 # because $ac_f cannot contain `:'.
11377 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11379 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11381 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11382 as_fn_append ac_file_inputs " '$ac_f'"
11385 # Let's still pretend it is `configure' which instantiates (i.e., don't
11386 # use $as_me), people would be surprised to read:
11387 # /* config.h. Generated by config.status. */
11388 configure_input='Generated from '`
11389 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11391 if test x"$ac_file" != x-; then
11392 configure_input="$ac_file. $configure_input"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11394 $as_echo "$as_me: creating $ac_file" >&6;}
11396 # Neutralize special characters interpreted by sed in replacement strings.
11397 case $configure_input in #(
11398 *\&* | *\|* | *\\* )
11399 ac_sed_conf_input=`$as_echo "$configure_input" |
11400 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11401 *) ac_sed_conf_input=$configure_input;;
11405 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11411 ac_dir=`$as_dirname -- "$ac_file" ||
11412 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11413 X"$ac_file" : 'X\(//\)[^/]' \| \
11414 X"$ac_file" : 'X\(//\)$' \| \
11415 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11416 $as_echo X"$ac_file" |
11417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11421 /^X\(\/\/\)[^/].*/{
11434 as_dir="$ac_dir"; as_fn_mkdir_p
11438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11440 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11441 # A ".." for each directory in $ac_dir_suffix.
11442 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11443 case $ac_top_builddir_sub in
11444 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11445 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11448 ac_abs_top_builddir=$ac_pwd
11449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11450 # for backward compatibility:
11451 ac_top_builddir=$ac_top_build_prefix
11454 .) # We are building in place.
11456 ac_top_srcdir=$ac_top_builddir_sub
11457 ac_abs_top_srcdir=$ac_pwd ;;
11458 [\\/]* | ?:[\\/]* ) # Absolute name.
11459 ac_srcdir=$srcdir$ac_dir_suffix;
11460 ac_top_srcdir=$srcdir
11461 ac_abs_top_srcdir=$srcdir ;;
11462 *) # Relative name.
11463 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11464 ac_top_srcdir=$ac_top_build_prefix$srcdir
11465 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11478 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11480 ac_MKDIR_P=$MKDIR_P
11482 [\\/$]* | ?:[\\/]* ) ;;
11483 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11488 # If the template does not know about datarootdir, expand it.
11489 # FIXME: This hack should be removed a few years after 2.60.
11490 ac_datarootdir_hack=; ac_datarootdir_seen=
11501 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11502 *datarootdir*) ac_datarootdir_seen=yes;;
11503 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11505 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11508 ac_datarootdir_hack='
11509 s&@datadir@&$datadir&g
11510 s&@docdir@&$docdir&g
11511 s&@infodir@&$infodir&g
11512 s&@localedir@&$localedir&g
11513 s&@mandir@&$mandir&g
11514 s&\\\${datarootdir}&$datarootdir&g' ;;
11518 # Neutralize VPATH when `$srcdir' = `.'.
11519 # Shell code in configure.ac might set extrasub.
11520 # FIXME: do we really want to maintain this feature?
11521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11522 ac_sed_extra="$ac_vpsub
11525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11527 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11528 s|@configure_input@|$ac_sed_conf_input|;t t
11529 s&@top_builddir@&$ac_top_builddir_sub&;t t
11530 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11531 s&@srcdir@&$ac_srcdir&;t t
11532 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11533 s&@top_srcdir@&$ac_top_srcdir&;t t
11534 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11535 s&@builddir@&$ac_builddir&;t t
11536 s&@abs_builddir@&$ac_abs_builddir&;t t
11537 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11538 s&@INSTALL@&$ac_INSTALL&;t t
11539 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11540 $ac_datarootdir_hack
11542 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11543 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11545 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11546 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11547 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11548 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11550 which seems to be undefined. Please make sure it is defined" >&5
11551 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11552 which seems to be undefined. Please make sure it is defined" >&2;}
11554 rm -f "$ac_tmp/stdin"
11556 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11557 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11563 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11564 $as_echo "$as_me: executing $ac_file commands" >&6;}
11569 case $ac_file$ac_mode in
11570 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11571 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11572 # are listed without --file. Let's play safe and only enable the eval
11573 # if we detect the quoting.
11574 case $CONFIG_FILES in
11575 *\'*) eval set x "$CONFIG_FILES" ;;
11576 *) set x $CONFIG_FILES ;;
11581 # Strip MF so we end up with the name of the file.
11582 mf=`echo "$mf" | sed -e 's/:.*$//'`
11583 # Check whether this is an Automake generated Makefile or not.
11584 # We used to match only the files named `Makefile.in', but
11585 # some people rename them; so instead we look at the file content.
11586 # Grep'ing the first line is not enough: some people post-process
11587 # each Makefile.in and add a new line on top of each file to say so.
11588 # Grep'ing the whole file is not good either: AIX grep has a line
11589 # limit of 2048, but all sed's we know have understand at least 4000.
11590 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11591 dirpart=`$as_dirname -- "$mf" ||
11592 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11593 X"$mf" : 'X\(//\)[^/]' \| \
11594 X"$mf" : 'X\(//\)$' \| \
11595 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11601 /^X\(\/\/\)[^/].*/{
11617 # Extract the definition of DEPDIR, am__include, and am__quote
11618 # from the Makefile without running `make'.
11619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11620 test -z "$DEPDIR" && continue
11621 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11622 test -z "am__include" && continue
11623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11624 # When using ansi2knr, U may be empty or an underscore; expand it
11625 U=`sed -n 's/^U = //p' < "$mf"`
11626 # Find all dependency output files, they are included files with
11627 # $(DEPDIR) in their names. We invoke sed twice because it is the
11628 # simplest approach to changing $(DEPDIR) to its actual value in the
11630 for file in `sed -n "
11631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11633 # Make sure the directory exists.
11634 test -f "$dirpart/$file" && continue
11635 fdir=`$as_dirname -- "$file" ||
11636 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11637 X"$file" : 'X\(//\)[^/]' \| \
11638 X"$file" : 'X\(//\)$' \| \
11639 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11640 $as_echo X"$file" |
11641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11645 /^X\(\/\/\)[^/].*/{
11658 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11659 # echo "creating $dirpart/$file"
11660 echo '# dummy' > "$dirpart/$file"
11672 ac_clean_files=$ac_clean_files_save
11674 test $ac_write_fail = 0 ||
11675 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11678 # configure is writing to config.log, and then calls config.status.
11679 # config.status does its own redirection, appending to config.log.
11680 # Unfortunately, on DOS this fails, as config.log is still kept open
11681 # by configure, so config.status won't be able to write to it; its
11682 # output is simply discarded. So we exec the FD to /dev/null,
11683 # effectively closing config.log, so it can be properly (re)opened and
11684 # appended to by config.status. When coming back to configure, we
11685 # need to make the FD available again.
11686 if test "$no_create" != yes; then
11688 ac_config_status_args=
11689 test "$silent" = yes &&
11690 ac_config_status_args="$ac_config_status_args --quiet"
11692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11695 # would make configure fail if this is the last instruction.
11696 $ac_cs_success || as_fn_exit 1
11698 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11700 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}