2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for imake 1.0.5.
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.
563 PACKAGE_TARNAME='imake'
564 PACKAGE_VERSION='1.0.5'
565 PACKAGE_STRING='imake 1.0.5'
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
611 BUILD_MKHTMLINDEX_FALSE
612 BUILD_MKHTMLINDEX_TRUE
613 BUILD_CLEANLINKS_FALSE
614 BUILD_CLEANLINKS_TRUE
615 BUILD_MKDIRHIER_FALSE
619 BUILD_CCMAKEDEP_FALSE
629 PREPROCESSCMD_MKDEPEND
688 MAINTAINER_MODE_FALSE
698 INSTALL_STRIP_PROGRAM
740 program_transform_name
753 enable_option_checking
754 enable_maintainer_mode
755 enable_dependency_tracking
756 enable_selective_werror
757 enable_strict_compilation
760 with_script_preproc_cmd
772 ac_precious_vars='build_alias
786 # Initialize some variables set by options.
788 ac_init_version=false
789 ac_unrecognized_opts=
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
800 program_transform_name=s,x,x,
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
825 infodir='${datarootdir}/info'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
846 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851 # Accept the important Cygnus configure options, so we can diagnose typos.
853 case $ac_dashdash$ac_option in
857 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 -build | --build | --buil | --bui | --bu)
863 ac_prev=build_alias ;;
864 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
865 build_alias=$ac_optarg ;;
867 -cache-file | --cache-file | --cache-fil | --cache-fi \
868 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
869 ac_prev=cache_file ;;
870 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
871 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
872 cache_file=$ac_optarg ;;
875 cache_file=config.cache ;;
877 -datadir | --datadir | --datadi | --datad)
879 -datadir=* | --datadir=* | --datadi=* | --datad=*)
880 datadir=$ac_optarg ;;
882 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
883 | --dataroo | --dataro | --datar)
884 ac_prev=datarootdir ;;
885 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
886 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
887 datarootdir=$ac_optarg ;;
889 -disable-* | --disable-*)
890 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
891 # Reject names that are not valid shell variable names.
892 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893 as_fn_error $? "invalid feature name: $ac_useropt"
894 ac_useropt_orig=$ac_useropt
895 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896 case $ac_user_opts in
900 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
901 ac_unrecognized_sep=', ';;
903 eval enable_$ac_useropt=no ;;
905 -docdir | --docdir | --docdi | --doc | --do)
907 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 -enable-* | --enable-*)
916 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
917 # Reject names that are not valid shell variable names.
918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
919 as_fn_error $? "invalid feature name: $ac_useropt"
920 ac_useropt_orig=$ac_useropt
921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
922 case $ac_user_opts in
926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
927 ac_unrecognized_sep=', ';;
929 eval enable_$ac_useropt=\$ac_optarg ;;
931 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
932 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
933 | --exec | --exe | --ex)
934 ac_prev=exec_prefix ;;
935 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
936 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
937 | --exec=* | --exe=* | --ex=*)
938 exec_prefix=$ac_optarg ;;
940 -gas | --gas | --ga | --g)
941 # Obsolete; use --with-gas.
944 -help | --help | --hel | --he | -h)
946 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
947 ac_init_help=recursive ;;
948 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
949 ac_init_help=short ;;
951 -host | --host | --hos | --ho)
952 ac_prev=host_alias ;;
953 -host=* | --host=* | --hos=* | --ho=*)
954 host_alias=$ac_optarg ;;
956 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 htmldir=$ac_optarg ;;
962 -includedir | --includedir | --includedi | --included | --include \
963 | --includ | --inclu | --incl | --inc)
964 ac_prev=includedir ;;
965 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
966 | --includ=* | --inclu=* | --incl=* | --inc=*)
967 includedir=$ac_optarg ;;
969 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
972 infodir=$ac_optarg ;;
974 -libdir | --libdir | --libdi | --libd)
976 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
980 | --libexe | --libex | --libe)
981 ac_prev=libexecdir ;;
982 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
983 | --libexe=* | --libex=* | --libe=*)
984 libexecdir=$ac_optarg ;;
986 -localedir | --localedir | --localedi | --localed | --locale)
988 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
989 localedir=$ac_optarg ;;
991 -localstatedir | --localstatedir | --localstatedi | --localstated \
992 | --localstate | --localstat | --localsta | --localst | --locals)
993 ac_prev=localstatedir ;;
994 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
995 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
996 localstatedir=$ac_optarg ;;
998 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1001 mandir=$ac_optarg ;;
1003 -nfp | --nfp | --nf)
1004 # Obsolete; use --without-fp.
1007 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1008 | --no-cr | --no-c | -n)
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1016 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1017 | --oldin | --oldi | --old | --ol | --o)
1018 ac_prev=oldincludedir ;;
1019 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1020 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1021 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1022 oldincludedir=$ac_optarg ;;
1024 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1027 prefix=$ac_optarg ;;
1029 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1030 | --program-pre | --program-pr | --program-p)
1031 ac_prev=program_prefix ;;
1032 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1033 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1034 program_prefix=$ac_optarg ;;
1036 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1037 | --program-suf | --program-su | --program-s)
1038 ac_prev=program_suffix ;;
1039 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1040 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1041 program_suffix=$ac_optarg ;;
1043 -program-transform-name | --program-transform-name \
1044 | --program-transform-nam | --program-transform-na \
1045 | --program-transform-n | --program-transform- \
1046 | --program-transform | --program-transfor \
1047 | --program-transfo | --program-transf \
1048 | --program-trans | --program-tran \
1049 | --progr-tra | --program-tr | --program-t)
1050 ac_prev=program_transform_name ;;
1051 -program-transform-name=* | --program-transform-name=* \
1052 | --program-transform-nam=* | --program-transform-na=* \
1053 | --program-transform-n=* | --program-transform-=* \
1054 | --program-transform=* | --program-transfor=* \
1055 | --program-transfo=* | --program-transf=* \
1056 | --program-trans=* | --program-tran=* \
1057 | --progr-tra=* | --program-tr=* | --program-t=*)
1058 program_transform_name=$ac_optarg ;;
1060 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1063 pdfdir=$ac_optarg ;;
1065 -psdir | --psdir | --psdi | --psd | --ps)
1067 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 sbindir=$ac_optarg ;;
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 sharedstatedir=$ac_optarg ;;
1091 -site | --site | --sit)
1093 -site=* | --site=* | --sit=*)
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: $ac_useropt"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1133 eval with_$ac_useropt=\$ac_optarg ;;
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1149 eval with_$ac_useropt=no ;;
1152 # Obsolete; use --with-x.
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1169 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1170 Try \`$0 --help' for more information"
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1184 # FIXME: should be removed in autoconf 3.0.
1185 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1220 # Be sure to have absolute directory names.
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 # There might be people who depend on the old broken behavior: `$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1233 target=$target_alias
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1240 If a cross compiler is detected then cross compile mode will be used" >&2
1241 elif test "x$build_alias" != "x$host_alias"; then
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1249 test "$silent" = yes && exec 6>/dev/null
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1292 ac_srcdir_defaulted=no
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures imake 1.0.5 to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/imake]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of imake 1.0.5:";;
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-maintainer-mode enable make rules and dependencies not useful
1405 (and sometimes confusing) to the casual installer
1406 --disable-dependency-tracking speeds up one-time build
1407 --enable-dependency-tracking do not reject slow dependency extractors
1408 --disable-selective-werror
1409 Turn off selective compiler errors. (default:
1411 --enable-strict-compilation
1412 Enable all warnings from compiler and make them
1413 errors (default: disabled)
1414 --enable-silent-rules less verbose build output (undo: `make V=1')
1415 --disable-silent-rules verbose build output (undo: `make V=0')
1416 --disable-revpath Build revpath (default: enabled)
1417 --disable-makeg Build makeg (default: enabled)
1418 --disable-xmkmf Build xmkmf (default: enabled)
1419 --disable-ccmakedep Build ccmakedep (default: enabled)
1420 --disable-mergelib Build mergelib (default: enabled)
1421 --disable-mkdirhier Build mkdirhier (default: enabled)
1422 --disable-cleanlinks Build cleanlinks (default: enabled)
1423 --disable-mkhtmlindex Build mkhtmlindex (default: enabled)
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-config-dir=<path>
1429 Path to config dir (default: ${libdir}/X11/config)
1430 --with-script-preproc-cmd=CMD
1431 Preprocessor command to run on scripts (default:
1433 --with-create-lib-cmd=CMD
1434 Command to create libraries (default: "ar clq")
1435 --with-clean-lib-cmd=CMD
1436 Command to clean up libraries (default: "ranlib")
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1447 PKG_CONFIG path to pkg-config utility
1449 C compiler flags for XPROTO, overriding pkg-config
1450 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config
1452 Use these variables to override the choices made by `configure' or to help
1453 it to find libraries and programs with nonstandard names/locations.
1455 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1485 .) # We are building in place.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1518 imake configure 1.0.5
1519 generated by GNU Autoconf 2.68
1521 Copyright (C) 2010 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1571 # ---------------------------------------------
1572 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1574 ac_fn_c_check_decl ()
1576 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1577 as_decl_name=`echo $2|sed 's/ *(.*//'`
1578 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1580 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1581 if eval \${$3+:} false; then :
1582 $as_echo_n "(cached) " >&6
1584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1585 /* end confdefs.h. */
1590 #ifndef $as_decl_name
1592 (void) $as_decl_use;
1594 (void) $as_decl_name;
1602 if ac_fn_c_try_compile "$LINENO"; then :
1607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1611 $as_echo "$ac_res" >&6; }
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 } # ac_fn_c_check_decl
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } > conftest.i && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649 as_fn_set_status $ac_retval
1653 # ac_fn_c_try_run LINENO
1654 # ----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1656 # that executables *can* be run.
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_link"
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>&5
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1671 { { case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_try") 2>&5
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; }; }; then :
1683 $as_echo "$as_me: program exited with status $ac_status" >&5
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1687 ac_retval=$ac_status
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h. */
1712 if ac_fn_c_try_compile "$LINENO"; then :
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 } # ac_fn_c_check_header_compile
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 $as_test_x conftest$ac_exeext
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1770 } # ac_fn_c_try_link
1772 # ac_fn_c_check_func LINENO FUNC VAR
1773 # ----------------------------------
1774 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1775 ac_fn_c_check_func ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1785 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1787 #define $2 innocuous_$2
1789 /* System header to define __stub macros and hopefully few prototypes,
1790 which can conflict with char $2 (); below.
1791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792 <limits.h> exists even on freestanding compilers. */
1795 # include <limits.h>
1797 # include <assert.h>
1802 /* Override any GCC internal prototype to avoid an error.
1803 Use char because int might match the return type of a GCC
1804 builtin and then its argument prototype would still apply. */
1809 /* The GNU C library defines this for functions which it implements
1810 to always fail with ENOSYS. Some functions are actually named
1811 something starting with __ and the normal name is an alias. */
1812 #if defined __stub_$2 || defined __stub___$2
1824 if ac_fn_c_try_link "$LINENO"; then :
1829 rm -f core conftest.err conftest.$ac_objext \
1830 conftest$ac_exeext conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 } # ac_fn_c_check_func
1838 cat >config.log <<_ACEOF
1839 This file contains any messages produced by compilers while
1840 running configure, to aid debugging if configure makes a mistake.
1842 It was created by imake $as_me 1.0.5, which was
1843 generated by GNU Autoconf 2.68. Invocation command line was
1855 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1856 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1857 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1858 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1859 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1862 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1864 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1865 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1866 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1867 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1868 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1869 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1870 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 $as_echo "PATH: $as_dir"
1895 # Keep a trace of the command line.
1896 # Strip out --no-create and --no-recursion so they do not pile up.
1897 # Strip out --silent because we don't want to record it for future runs.
1898 # Also quote any args containing shell meta-characters.
1899 # Make two passes to allow for proper duplicate-argument suppression.
1903 ac_must_keep_next=false
1909 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1910 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1911 | -silent | --silent | --silen | --sile | --sil)
1914 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1917 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1919 as_fn_append ac_configure_args1 " '$ac_arg'"
1920 if test $ac_must_keep_next = true; then
1921 ac_must_keep_next=false # Got value, back to normal.
1924 *=* | --config-cache | -C | -disable-* | --disable-* \
1925 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1926 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1927 | -with-* | --with-* | -without-* | --without-* | --x)
1928 case "$ac_configure_args0 " in
1929 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1932 -* ) ac_must_keep_next=true ;;
1935 as_fn_append ac_configure_args " '$ac_arg'"
1940 { ac_configure_args0=; unset ac_configure_args0;}
1941 { ac_configure_args1=; unset ac_configure_args1;}
1943 # When interrupted or exit'd, cleanup temporary files, and complete
1944 # config.log. We remove comments because anyway the quotes in there
1945 # would cause problems or look ugly.
1946 # WARNING: Use '\'' to represent an apostrophe within the trap.
1947 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1948 trap 'exit_status=$?
1949 # Save into config.log some information that might help in debugging.
1953 $as_echo "## ---------------- ##
1954 ## Cache variables. ##
1955 ## ---------------- ##"
1957 # The following way of writing the cache mishandles newlines in values,
1959 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1960 eval ac_val=\$$ac_var
1964 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1965 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1968 _ | IFS | as_nl) ;; #(
1969 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1970 *) { eval $ac_var=; unset $ac_var;} ;;
1975 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1976 *${as_nl}ac_space=\ *)
1978 "s/'\''/'\''\\\\'\'''\''/g;
1979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1982 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1989 $as_echo "## ----------------- ##
1990 ## Output variables. ##
1991 ## ----------------- ##"
1993 for ac_var in $ac_subst_vars
1995 eval ac_val=\$$ac_var
1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1999 $as_echo "$ac_var='\''$ac_val'\''"
2003 if test -n "$ac_subst_files"; then
2004 $as_echo "## ------------------- ##
2005 ## File substitutions. ##
2006 ## ------------------- ##"
2008 for ac_var in $ac_subst_files
2010 eval ac_val=\$$ac_var
2012 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 $as_echo "$ac_var='\''$ac_val'\''"
2019 if test -s confdefs.h; then
2020 $as_echo "## ----------- ##
2027 test "$ac_signal" != 0 &&
2028 $as_echo "$as_me: caught signal $ac_signal"
2029 $as_echo "$as_me: exit $exit_status"
2031 rm -f core *.core core.conftest.* &&
2032 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2035 for ac_signal in 1 2 13 15; do
2036 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2040 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2041 rm -f -r conftest* confdefs.h
2043 $as_echo "/* confdefs.h */" > confdefs.h
2045 # Predefined preprocessor variables.
2047 cat >>confdefs.h <<_ACEOF
2048 #define PACKAGE_NAME "$PACKAGE_NAME"
2051 cat >>confdefs.h <<_ACEOF
2052 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2059 cat >>confdefs.h <<_ACEOF
2060 #define PACKAGE_STRING "$PACKAGE_STRING"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2067 cat >>confdefs.h <<_ACEOF
2068 #define PACKAGE_URL "$PACKAGE_URL"
2072 # Let the site file select an alternate cache file if it wants to.
2073 # Prefer an explicitly selected file to automatically selected ones.
2076 if test -n "$CONFIG_SITE"; then
2077 # We do not want a PATH search for config.site.
2078 case $CONFIG_SITE in #((
2079 -*) ac_site_file1=./$CONFIG_SITE;;
2080 */*) ac_site_file1=$CONFIG_SITE;;
2081 *) ac_site_file1=./$CONFIG_SITE;;
2083 elif test "x$prefix" != xNONE; then
2084 ac_site_file1=$prefix/share/config.site
2085 ac_site_file2=$prefix/etc/config.site
2087 ac_site_file1=$ac_default_prefix/share/config.site
2088 ac_site_file2=$ac_default_prefix/etc/config.site
2090 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2092 test "x$ac_site_file" = xNONE && continue
2093 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2095 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2096 sed 's/^/| /' "$ac_site_file" >&5
2098 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100 as_fn_error $? "failed to load site script $ac_site_file
2101 See \`config.log' for more details" "$LINENO" 5; }
2105 if test -r "$cache_file"; then
2106 # Some versions of bash will fail to source /dev/null (special files
2107 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2108 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2110 $as_echo "$as_me: loading cache $cache_file" >&6;}
2112 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2113 *) . "./$cache_file";;
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2118 $as_echo "$as_me: creating cache $cache_file" >&6;}
2122 # Check that the precious variables saved in the cache have kept the same
2124 ac_cache_corrupted=false
2125 for ac_var in $ac_precious_vars; do
2126 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2127 eval ac_new_set=\$ac_env_${ac_var}_set
2128 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2129 eval ac_new_val=\$ac_env_${ac_var}_value
2130 case $ac_old_set,$ac_new_set in
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2133 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2134 ac_cache_corrupted=: ;;
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2137 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2138 ac_cache_corrupted=: ;;
2141 if test "x$ac_old_val" != "x$ac_new_val"; then
2142 # differences in whitespace do not lead to failure.
2143 ac_old_val_w=`echo x $ac_old_val`
2144 ac_new_val_w=`echo x $ac_new_val`
2145 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2147 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2148 ac_cache_corrupted=:
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2151 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2152 eval $ac_var=\$ac_old_val
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2155 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2157 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2160 # Pass precious variables to config.status.
2161 if test "$ac_new_set" = set; then
2163 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2164 *) ac_arg=$ac_var=$ac_new_val ;;
2166 case " $ac_configure_args " in
2167 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2168 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2172 if $ac_cache_corrupted; then
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2176 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2177 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2179 ## -------------------- ##
2180 ## Main body of script. ##
2181 ## -------------------- ##
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2190 am__api_version='1.11'
2193 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2194 if test -f "$ac_dir/install-sh"; then
2196 ac_install_sh="$ac_aux_dir/install-sh -c"
2198 elif test -f "$ac_dir/install.sh"; then
2200 ac_install_sh="$ac_aux_dir/install.sh -c"
2202 elif test -f "$ac_dir/shtool"; then
2204 ac_install_sh="$ac_aux_dir/shtool install -c"
2208 if test -z "$ac_aux_dir"; then
2209 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2212 # These three variables are undocumented and unsupported,
2213 # and are intended to be withdrawn in a future Autoconf release.
2214 # They can cause serious problems if a builder's source tree is in a directory
2215 # whose full name contains unusual characters.
2216 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2217 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2218 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2221 # Find a good install program. We prefer a C program (faster),
2222 # so one script is as good as another. But avoid the broken or
2223 # incompatible versions:
2224 # SysV /etc/install, /usr/sbin/install
2225 # SunOS /usr/etc/install
2226 # IRIX /sbin/install
2228 # AmigaOS /C/install, which installs bootblocks on floppy discs
2229 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2230 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2231 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2232 # OS/2's system install, which has a completely different semantic
2233 # ./install, which can be erroneously created by make from ./install.sh.
2234 # Reject install programs that cannot install multiple files.
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2236 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2237 if test -z "$INSTALL"; then
2238 if ${ac_cv_path_install+:} false; then :
2239 $as_echo_n "(cached) " >&6
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245 test -z "$as_dir" && as_dir=.
2246 # Account for people who put trailing slashes in PATH elements.
2247 case $as_dir/ in #((
2248 ./ | .// | /[cC]/* | \
2249 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2250 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2253 # OSF1 and SCO ODT 3.0 have their own names for install.
2254 # Don't use installbsd from OSF since it installs stuff as root
2256 for ac_prog in ginstall scoinst install; do
2257 for ac_exec_ext in '' $ac_executable_extensions; do
2258 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2259 if test $ac_prog = install &&
2260 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2261 # AIX install. It has an incompatible calling convention.
2263 elif test $ac_prog = install &&
2264 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265 # program-specific install script used by HP pwplus--don't use.
2268 rm -rf conftest.one conftest.two conftest.dir
2269 echo one > conftest.one
2270 echo two > conftest.two
2272 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2273 test -s conftest.one && test -s conftest.two &&
2274 test -s conftest.dir/conftest.one &&
2275 test -s conftest.dir/conftest.two
2277 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2290 rm -rf conftest.one conftest.two conftest.dir
2293 if test "${ac_cv_path_install+set}" = set; then
2294 INSTALL=$ac_cv_path_install
2296 # As a last resort, use the slow shell script. Don't cache a
2297 # value for INSTALL within a source directory, because that will
2298 # break other packages using the cache if that directory is
2299 # removed, or if the value is a relative name.
2300 INSTALL=$ac_install_sh
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2304 $as_echo "$INSTALL" >&6; }
2306 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2307 # It thinks the first close brace ends the variable substitution.
2308 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2310 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2312 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2315 $as_echo_n "checking whether build environment is sane... " >&6; }
2318 echo timestamp > conftest.file
2319 # Reject unsafe characters in $srcdir or the absolute working directory
2320 # name. Accept space and tab only in the latter.
2324 *[\\\"\#\$\&\'\`$am_lf]*)
2325 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2328 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2329 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2332 # Do `set' in a subshell so we don't clobber the current shell's
2333 # arguments. Must try -L first in case configure is actually a
2334 # symlink; some systems play weird games with the mod time of symlinks
2335 # (eg FreeBSD returns the mod time of the symlink's containing
2338 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2339 if test "$*" = "X"; then
2341 set X `ls -t "$srcdir/configure" conftest.file`
2344 if test "$*" != "X $srcdir/configure conftest.file" \
2345 && test "$*" != "X conftest.file $srcdir/configure"; then
2347 # If neither matched, then we have a broken ls. This can happen
2348 # if, for instance, CONFIG_SHELL is bash and it inherits a
2349 # broken ls alias from the environment. This has actually
2350 # happened. Such a system could not be considered "sane".
2351 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2352 alias in your environment" "$LINENO" 5
2355 test "$2" = conftest.file
2361 as_fn_error $? "newly created file is older than distributed files!
2362 Check your system clock" "$LINENO" 5
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2365 $as_echo "yes" >&6; }
2366 test "$program_prefix" != NONE &&
2367 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2368 # Use a double $ so make ignores it.
2369 test "$program_suffix" != NONE &&
2370 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2371 # Double any \ or $.
2372 # By default was `s,x,x', remove it if useless.
2373 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2374 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376 # expand $ac_aux_dir to an absolute path
2377 am_aux_dir=`cd $ac_aux_dir && pwd`
2379 if test x"${MISSING+set}" != xset; then
2382 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2384 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2387 # Use eval to expand $SHELL
2388 if eval "$MISSING --run true"; then
2389 am_missing_run="$MISSING --run "
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2393 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2396 if test x"${install_sh}" != xset; then
2399 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2401 install_sh="\${SHELL} $am_aux_dir/install-sh"
2405 # Installed binaries are usually stripped using `strip' when the user
2406 # run `make install-strip'. However `strip' might not be the right
2407 # tool to use in cross-compilation environments, therefore Automake
2408 # will honor the `STRIP' environment variable to overrule this program.
2409 if test "$cross_compiling" != no; then
2410 if test -n "$ac_tool_prefix"; then
2411 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2412 set dummy ${ac_tool_prefix}strip; ac_word=$2
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2414 $as_echo_n "checking for $ac_word... " >&6; }
2415 if ${ac_cv_prog_STRIP+:} false; then :
2416 $as_echo_n "(cached) " >&6
2418 if test -n "$STRIP"; then
2419 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2428 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 STRIP=$ac_cv_prog_STRIP
2439 if test -n "$STRIP"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2441 $as_echo "$STRIP" >&6; }
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2444 $as_echo "no" >&6; }
2449 if test -z "$ac_cv_prog_STRIP"; then
2451 # Extract the first word of "strip", so it can be a program name with args.
2452 set dummy strip; ac_word=$2
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2454 $as_echo_n "checking for $ac_word... " >&6; }
2455 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2456 $as_echo_n "(cached) " >&6
2458 if test -n "$ac_ct_STRIP"; then
2459 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2468 ac_cv_prog_ac_ct_STRIP="strip"
2469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2478 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2479 if test -n "$ac_ct_STRIP"; then
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2481 $as_echo "$ac_ct_STRIP" >&6; }
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2484 $as_echo "no" >&6; }
2487 if test "x$ac_ct_STRIP" = x; then
2490 case $cross_compiling:$ac_tool_warned in
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2494 ac_tool_warned=yes ;;
2499 STRIP="$ac_cv_prog_STRIP"
2503 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2506 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2507 if test -z "$MKDIR_P"; then
2508 if ${ac_cv_path_mkdir+:} false; then :
2509 $as_echo_n "(cached) " >&6
2511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2515 test -z "$as_dir" && as_dir=.
2516 for ac_prog in mkdir gmkdir; do
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2519 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2520 'mkdir (GNU coreutils) '* | \
2521 'mkdir (coreutils) '* | \
2522 'mkdir (fileutils) '4.1*)
2523 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2533 test -d ./--version && rmdir ./--version
2534 if test "${ac_cv_path_mkdir+set}" = set; then
2535 MKDIR_P="$ac_cv_path_mkdir -p"
2537 # As a last resort, use the slow shell script. Don't cache a
2538 # value for MKDIR_P within a source directory, because that will
2539 # break other packages using the cache if that directory is
2540 # removed, or if the value is a relative name.
2541 MKDIR_P="$ac_install_sh -d"
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2545 $as_echo "$MKDIR_P" >&6; }
2549 [\\/$]* | ?:[\\/]*) ;;
2550 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2553 for ac_prog in gawk mawk nawk awk
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558 $as_echo_n "checking for $ac_word... " >&6; }
2559 if ${ac_cv_prog_AWK+:} false; then :
2560 $as_echo_n "(cached) " >&6
2562 if test -n "$AWK"; then
2563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_AWK="$ac_prog"
2573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2583 if test -n "$AWK"; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2585 $as_echo "$AWK" >&6; }
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2588 $as_echo "no" >&6; }
2592 test -n "$AWK" && break
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2596 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2598 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2599 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2600 $as_echo_n "(cached) " >&6
2602 cat >conftest.make <<\_ACEOF
2605 @echo '@@@%%%=$(MAKE)=@@@%%%'
2607 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2608 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2610 eval ac_cv_prog_make_${ac_make}_set=yes;;
2612 eval ac_cv_prog_make_${ac_make}_set=no;;
2616 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2618 $as_echo "yes" >&6; }
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2623 SET_MAKE="MAKE=${MAKE-make}"
2626 rm -rf .tst 2>/dev/null
2627 mkdir .tst 2>/dev/null
2628 if test -d .tst; then
2633 rmdir .tst 2>/dev/null
2635 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2636 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2637 # is not polluted with repeated "-I."
2638 am__isrc=' -I$(srcdir)'
2639 # test to see if srcdir already configured
2640 if test -f $srcdir/config.status; then
2641 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2645 # test whether we have cygpath
2646 if test -z "$CYGPATH_W"; then
2647 if (cygpath --version) >/dev/null 2>/dev/null; then
2648 CYGPATH_W='cygpath -w'
2655 # Define the identity of the package.
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE "$PACKAGE"
2665 cat >>confdefs.h <<_ACEOF
2666 #define VERSION "$VERSION"
2669 # Some tools Automake needs.
2671 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2674 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2677 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2680 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2683 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685 # We need awk for the "check" target. The system "awk" is bad on
2687 # Always define AMTAR for backward compatibility.
2689 AMTAR=${AMTAR-"${am_missing_run}tar"}
2691 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2699 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2700 # Check whether --enable-maintainer-mode was given.
2701 if test "${enable_maintainer_mode+set}" = set; then :
2702 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2704 USE_MAINTAINER_MODE=no
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2708 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2709 if test $USE_MAINTAINER_MODE = yes; then
2710 MAINTAINER_MODE_TRUE=
2711 MAINTAINER_MODE_FALSE='#'
2713 MAINTAINER_MODE_TRUE='#'
2714 MAINTAINER_MODE_FALSE=
2717 MAINT=$MAINTAINER_MODE_TRUE
2721 ac_config_headers="$ac_config_headers config.h"
2724 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2736 DEPDIR="${am__leading_dot}deps"
2738 ac_config_commands="$ac_config_commands depfiles"
2741 am_make=${MAKE-make}
2742 cat > confinc << 'END'
2744 @echo this is the am__doit target
2747 # If we don't find an include directive, just comment out the code.
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2749 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2753 # First try GNU make style include.
2754 echo "include confinc" > confmf
2755 # Ignore all kinds of additional output from `make'.
2756 case `$am_make -s -f confmf 2> /dev/null` in #(
2757 *the\ am__doit\ target*)
2763 # Now try BSD make style include.
2764 if test "$am__include" = "#"; then
2765 echo '.include "confinc"' > confmf
2766 case `$am_make -s -f confmf 2> /dev/null` in #(
2767 *the\ am__doit\ target*)
2768 am__include=.include
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2777 $as_echo "$_am_result" >&6; }
2778 rm -f confinc confmf
2780 # Check whether --enable-dependency-tracking was given.
2781 if test "${enable_dependency_tracking+set}" = set; then :
2782 enableval=$enable_dependency_tracking;
2785 if test "x$enable_dependency_tracking" != xno; then
2786 am_depcomp="$ac_aux_dir/depcomp"
2789 if test "x$enable_dependency_tracking" != xno; then
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 if test -n "$ac_tool_prefix"; then
2804 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2805 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2807 $as_echo_n "checking for $ac_word... " >&6; }
2808 if ${ac_cv_prog_CC+:} false; then :
2809 $as_echo_n "(cached) " >&6
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test -n "$CC"; then
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2834 $as_echo "$CC" >&6; }
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2837 $as_echo "no" >&6; }
2842 if test -z "$ac_cv_prog_CC"; then
2844 # Extract the first word of "gcc", so it can be a program name with args.
2845 set dummy gcc; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2849 $as_echo_n "(cached) " >&6
2851 if test -n "$ac_ct_CC"; then
2852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_ac_ct_CC="gcc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2872 if test -n "$ac_ct_CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2874 $as_echo "$ac_ct_CC" >&6; }
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2880 if test "x$ac_ct_CC" = x; then
2883 case $cross_compiling:$ac_tool_warned in
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2887 ac_tool_warned=yes ;;
2895 if test -z "$CC"; then
2896 if test -n "$ac_tool_prefix"; then
2897 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2898 set dummy ${ac_tool_prefix}cc; ac_word=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if ${ac_cv_prog_CC+:} false; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir=.
2912 for ac_exec_ext in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CC="${ac_tool_prefix}cc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CC"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2927 $as_echo "$CC" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2936 if test -z "$CC"; then
2937 # Extract the first word of "cc", so it can be a program name with args.
2938 set dummy cc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 test -z "$as_dir" && as_dir=.
2953 for ac_exec_ext in '' $ac_executable_extensions; do
2954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2956 ac_prog_rejected=yes
2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test $ac_prog_rejected = yes; then
2968 # We found a bogon in the path, so make sure we never use it.
2969 set dummy $ac_cv_prog_CC
2971 if test $# != 0; then
2972 # We chose a different compiler from the bogus one.
2973 # However, it has the same basename, so the bogon will be chosen
2974 # first if we set CC to just the basename; use the full file name.
2976 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2982 if test -n "$CC"; then
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2984 $as_echo "$CC" >&6; }
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2992 if test -z "$CC"; then
2993 if test -n "$ac_tool_prefix"; then
2994 for ac_prog in cl.exe
2996 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2997 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_CC+:} false; then :
3001 $as_echo_n "(cached) " >&6
3003 if test -n "$CC"; then
3004 ac_cv_prog_CC="$CC" # Let the user override the test.
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3010 test -z "$as_dir" && as_dir=.
3011 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 if test -n "$CC"; then
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3026 $as_echo "$CC" >&6; }
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3033 test -n "$CC" && break
3036 if test -z "$CC"; then
3038 for ac_prog in cl.exe
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$ac_ct_CC"; then
3048 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3057 ac_cv_prog_ac_ct_CC="$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3068 if test -n "$ac_ct_CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3070 $as_echo "$ac_ct_CC" >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3077 test -n "$ac_ct_CC" && break
3080 if test "x$ac_ct_CC" = x; then
3083 case $cross_compiling:$ac_tool_warned in
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned=yes ;;
3096 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098 as_fn_error $? "no acceptable C compiler found in \$PATH
3099 See \`config.log' for more details" "$LINENO" 5; }
3101 # Provide some information about the compiler.
3102 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3105 for ac_option in --version -v -V -qversion; do
3106 { { ac_try="$ac_compiler $ac_option >&5"
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3111 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112 $as_echo "$ac_try_echo"; } >&5
3113 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3115 if test -s conftest.err; then
3117 ... rest of stderr output deleted ...
3118 10q' conftest.err >conftest.er1
3119 cat conftest.er1 >&5
3121 rm -f conftest.er1 conftest.err
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }
3126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3127 /* end confdefs.h. */
3137 ac_clean_files_save=$ac_clean_files
3138 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3139 # Try to create an executable without -o first, disregard a.out.
3140 # It will help us diagnose broken compilers, and finding out an intuition
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3143 $as_echo_n "checking whether the C compiler works... " >&6; }
3144 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3146 # The possible output files:
3147 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3150 for ac_file in $ac_files
3153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3154 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3159 if { { ac_try="$ac_link_default"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3165 $as_echo "$ac_try_echo"; } >&5
3166 (eval "$ac_link_default") 2>&5
3168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3169 test $ac_status = 0; }; then :
3170 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3171 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3172 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3173 # so that the user can short-circuit this test for compilers unknown to
3175 for ac_file in $ac_files ''
3177 test -f "$ac_file" || continue
3179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3182 # We found the default executable, but exeext='' is most
3186 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3188 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3190 # We set ac_cv_exeext here because the later test for it is not
3191 # safe: cross compilers may not add the suffix if given an `-o'
3192 # argument, so we may need to know it at that point already.
3193 # Even if this section looks crufty: it has the advantage of
3200 test "$ac_cv_exeext" = no && ac_cv_exeext=
3205 if test -z "$ac_file"; then :
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 $as_echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3213 as_fn_error 77 "C compiler cannot create executables
3214 See \`config.log' for more details" "$LINENO" 5; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3217 $as_echo "yes" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3220 $as_echo_n "checking for C compiler default output file name... " >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3222 $as_echo "$ac_file" >&6; }
3223 ac_exeext=$ac_cv_exeext
3225 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3226 ac_clean_files=$ac_clean_files_save
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3228 $as_echo_n "checking for suffix of executables... " >&6; }
3229 if { { ac_try="$ac_link"
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link") 2>&5
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; then :
3240 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3241 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3242 # work properly (i.e., refer to `conftest.exe'), while it won't with
3244 for ac_file in conftest.exe conftest conftest.*; do
3245 test -f "$ac_file" || continue
3247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3248 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3257 See \`config.log' for more details" "$LINENO" 5; }
3259 rm -f conftest conftest$ac_cv_exeext
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3261 $as_echo "$ac_cv_exeext" >&6; }
3263 rm -f conftest.$ac_ext
3264 EXEEXT=$ac_cv_exeext
3266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3267 /* end confdefs.h. */
3272 FILE *f = fopen ("conftest.out", "w");
3273 return ferror (f) || fclose (f) != 0;
3279 ac_clean_files="$ac_clean_files conftest.out"
3280 # Check that the compiler produces executables we can run. If not, either
3281 # the compiler is broken, or we cross compile.
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3283 $as_echo_n "checking whether we are cross compiling... " >&6; }
3284 if test "$cross_compiling" != yes; then
3285 { { ac_try="$ac_link"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3291 $as_echo "$ac_try_echo"; } >&5
3292 (eval "$ac_link") 2>&5
3294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3295 test $ac_status = 0; }
3296 if { ac_try='./conftest$ac_cv_exeext'
3297 { { case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_try") 2>&5
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; }; then
3309 if test "$cross_compiling" = maybe; then
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error $? "cannot run C compiled programs.
3315 If you meant to cross compile, use \`--host'.
3316 See \`config.log' for more details" "$LINENO" 5; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3321 $as_echo "$cross_compiling" >&6; }
3323 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3324 ac_clean_files=$ac_clean_files_save
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3326 $as_echo_n "checking for suffix of object files... " >&6; }
3327 if ${ac_cv_objext+:} false; then :
3328 $as_echo_n "(cached) " >&6
3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3331 /* end confdefs.h. */
3341 rm -f conftest.o conftest.obj
3342 if { { ac_try="$ac_compile"
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_compile") 2>&5
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }; then :
3353 for ac_file in conftest.o conftest.obj conftest.*; do
3354 test -f "$ac_file" || continue;
3356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3362 $as_echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3367 as_fn_error $? "cannot compute suffix of object files: cannot compile
3368 See \`config.log' for more details" "$LINENO" 5; }
3370 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3373 $as_echo "$ac_cv_objext" >&6; }
3374 OBJEXT=$ac_cv_objext
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3377 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3378 if ${ac_cv_c_compiler_gnu+:} false; then :
3379 $as_echo_n "(cached) " >&6
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3395 if ac_fn_c_try_compile "$LINENO"; then :
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3405 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3406 if test $ac_compiler_gnu = yes; then
3411 ac_test_CFLAGS=${CFLAGS+set}
3412 ac_save_CFLAGS=$CFLAGS
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3414 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3415 if ${ac_cv_prog_cc_g+:} false; then :
3416 $as_echo_n "(cached) " >&6
3418 ac_save_c_werror_flag=$ac_c_werror_flag
3419 ac_c_werror_flag=yes
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3433 if ac_fn_c_try_compile "$LINENO"; then :
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3448 if ac_fn_c_try_compile "$LINENO"; then :
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3464 if ac_fn_c_try_compile "$LINENO"; then :
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3472 ac_c_werror_flag=$ac_save_c_werror_flag
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3475 $as_echo "$ac_cv_prog_cc_g" >&6; }
3476 if test "$ac_test_CFLAGS" = set; then
3477 CFLAGS=$ac_save_CFLAGS
3478 elif test $ac_cv_prog_cc_g = yes; then
3479 if test "$GCC" = yes; then
3485 if test "$GCC" = yes; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3492 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3493 if ${ac_cv_prog_cc_c89+:} false; then :
3494 $as_echo_n "(cached) " >&6
3496 ac_cv_prog_cc_c89=no
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3502 #include <sys/types.h>
3503 #include <sys/stat.h>
3504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3505 struct buf { int x; };
3506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3507 static char *e (p, i)
3513 static char *f (char * (*g) (char **, int), char **p, ...)
3518 s = g (p, va_arg (v,int));
3523 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3524 function prototypes and stuff, but not '\xHH' hex character constants.
3525 These don't provoke an error unfortunately, instead are silently treated
3526 as 'x'. The following induces an error, until -std is added to get
3527 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3528 array size at least. It's necessary to write '\x00'==0 to get something
3529 that's true only with -std. */
3530 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3532 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3533 inside strings and character constants. */
3535 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3537 int test (int i, double x);
3538 struct s1 {int (*f) (int a);};
3539 struct s2 {int (*f) (double a);};
3540 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3546 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3551 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3552 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3554 CC="$ac_save_CC $ac_arg"
3555 if ac_fn_c_try_compile "$LINENO"; then :
3556 ac_cv_prog_cc_c89=$ac_arg
3558 rm -f core conftest.err conftest.$ac_objext
3559 test "x$ac_cv_prog_cc_c89" != "xno" && break
3561 rm -f conftest.$ac_ext
3566 case "x$ac_cv_prog_cc_c89" in
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3569 $as_echo "none needed" >&6; } ;;
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3572 $as_echo "unsupported" >&6; } ;;
3574 CC="$CC $ac_cv_prog_cc_c89"
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3576 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3578 if test "x$ac_cv_prog_cc_c89" != xno; then :
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3588 depcc="$CC" am_compiler_list=
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3591 $as_echo_n "checking dependency style of $depcc... " >&6; }
3592 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3596 # We make a subdir and do the tests there. Otherwise we can end up
3597 # making bogus files that we don't know about and never remove. For
3598 # instance it was reported that on HP-UX the gcc test will end up
3599 # making a dummy file named `D' -- because `-MD' means `put the output
3602 # Copy depcomp to subdir because otherwise we won't find it if we're
3603 # using a relative directory.
3604 cp "$am_depcomp" conftest.dir
3606 # We will build objects and dependencies in a subdirectory because
3607 # it helps to detect inapplicable dependency modes. For instance
3608 # both Tru64's cc and ICC support -MD to output dependencies as a
3609 # side effect of compilation, but ICC will put the dependencies in
3610 # the current directory while Tru64 will put them in the object
3614 am_cv_CC_dependencies_compiler_type=none
3615 if test "$am_compiler_list" = ""; then
3616 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3619 case " $depcc " in #(
3620 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3623 for depmode in $am_compiler_list; do
3624 # Setup a source with many dependencies, because some compilers
3625 # like to wrap large dependency lists on column 80 (with \), and
3626 # we should not choose a depcomp mode which is confused by this.
3628 # We need to recreate these files for each test, as the compiler may
3629 # overwrite some of them when testing with obscure command lines.
3630 # This happens at least with the AIX C compiler.
3632 for i in 1 2 3 4 5 6; do
3633 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3634 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3635 # Solaris 8's {/usr,}/bin/sh.
3636 touch sub/conftst$i.h
3638 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3640 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3641 # mode. It turns out that the SunPro C++ compiler does not properly
3642 # handle `-M -o', and we need to detect this. Also, some Intel
3643 # versions had trouble with output in subdirs
3644 am__obj=sub/conftest.${OBJEXT-o}
3645 am__minus_obj="-o $am__obj"
3648 # This depmode causes a compiler race in universal mode.
3649 test "$am__universal" = false || continue
3652 # after this tag, mechanisms are not by side-effect, so they'll
3653 # only be used when explicitly requested
3654 if test "x$enable_dependency_tracking" = xyes; then
3660 msvisualcpp | msvcmsys)
3661 # This compiler won't grok `-c -o', but also, the minuso test has
3662 # not run yet. These depmodes are late enough in the game, and
3663 # so weak that their functioning should not be impacted.
3664 am__obj=conftest.${OBJEXT-o}
3669 if depmode=$depmode \
3670 source=sub/conftest.c object=$am__obj \
3671 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3672 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3673 >/dev/null 2>conftest.err &&
3674 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3675 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3676 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3677 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3678 # icc doesn't choke on unknown options, it will just issue warnings
3679 # or remarks (even with -Werror). So we grep stderr for any message
3680 # that says an option was ignored or not supported.
3681 # When given -MP, icc 7.0 and 7.1 complain thusly:
3682 # icc: Command line warning: ignoring option '-M'; no argument required
3683 # The diagnosis changed in icc 8.0:
3684 # icc: Command line remark: option '-MP' not supported
3685 if (grep 'ignoring option' conftest.err ||
3686 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3687 am_cv_CC_dependencies_compiler_type=$depmode
3696 am_cv_CC_dependencies_compiler_type=none
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3701 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3702 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3705 test "x$enable_dependency_tracking" != xno \
3706 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3708 am__fastdepCC_FALSE='#'
3710 am__fastdepCC_TRUE='#'
3711 am__fastdepCC_FALSE=
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3716 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3717 if ${ac_cv_prog_cc_c99+:} false; then :
3718 $as_echo_n "(cached) " >&6
3720 ac_cv_prog_cc_c99=no
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3725 #include <stdbool.h>
3730 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3731 #define debug(...) fprintf (stderr, __VA_ARGS__)
3732 #define showlist(...) puts (#__VA_ARGS__)
3733 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3735 test_varargs_macros (void)
3740 debug ("X = %d\n", x);
3741 showlist (The first, second, and third items.);
3742 report (x>y, "x is %d but y is %d", x, y);
3745 // Check long long types.
3746 #define BIG64 18446744073709551615ull
3747 #define BIG32 4294967295ul
3748 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3750 your preprocessor is broken;
3754 your preprocessor is broken;
3756 static long long int bignum = -9223372036854775807LL;
3757 static unsigned long long int ubignum = BIG64;
3759 struct incomplete_array
3767 const wchar_t *name;
3771 typedef const char *ccp;
3774 test_restrict (ccp restrict text)
3776 // See if C++-style comments work.
3777 // Iterate through items via the restricted pointer.
3778 // Also check for declarations in for loops.
3779 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3784 // Check varargs and va_copy.
3786 test_varargs (const char *format, ...)
3789 va_start (args, format);
3791 va_copy (args_copy, args);
3802 str = va_arg (args_copy, const char *);
3805 number = va_arg (args_copy, int);
3808 fnumber = va_arg (args_copy, double);
3823 _Bool success = false;
3826 if (test_restrict ("String literal") == 0)
3828 char *restrict newvar = "Another string";
3831 test_varargs ("s, d' f .", "string", 65, 34.234);
3832 test_varargs_macros ();
3834 // Check flexible array members.
3835 struct incomplete_array *ia =
3836 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3838 for (int i = 0; i < ia->datasize; ++i)
3839 ia->data[i] = i * 1.234;
3841 // Check named initializers.
3842 struct named_init ni = {
3844 .name = L"Test wide string",
3845 .average = 543.34343,
3850 int dynamic_array[ni.number];
3851 dynamic_array[ni.number - 1] = 543;
3853 // work around unused variable warnings
3854 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3855 || dynamic_array[ni.number - 1] != 543);
3861 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3863 CC="$ac_save_CC $ac_arg"
3864 if ac_fn_c_try_compile "$LINENO"; then :
3865 ac_cv_prog_cc_c99=$ac_arg
3867 rm -f core conftest.err conftest.$ac_objext
3868 test "x$ac_cv_prog_cc_c99" != "xno" && break
3870 rm -f conftest.$ac_ext
3875 case "x$ac_cv_prog_cc_c99" in
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3878 $as_echo "none needed" >&6; } ;;
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3881 $as_echo "unsupported" >&6; } ;;
3883 CC="$CC $ac_cv_prog_cc_c99"
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3885 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3887 if test "x$ac_cv_prog_cc_c99" != xno; then :
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3899 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3900 # On Suns, sometimes $CPP names a directory.
3901 if test -n "$CPP" && test -d "$CPP"; then
3904 if test -z "$CPP"; then
3905 if ${ac_cv_prog_CPP+:} false; then :
3906 $as_echo_n "(cached) " >&6
3908 # Double quotes because CPP needs to be expanded
3909 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3912 for ac_c_preproc_warn_flag in '' yes
3914 # Use a header file that comes with gcc, so configuring glibc
3915 # with a fresh cross-compiler works.
3916 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3917 # <limits.h> exists even on freestanding compilers.
3918 # On the NeXT, cc -E runs the code through the compiler's parser,
3919 # not just through cpp. "Syntax error" is here to catch this case.
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3923 # include <limits.h>
3925 # include <assert.h>
3929 if ac_fn_c_try_cpp "$LINENO"; then :
3932 # Broken: fails on valid input.
3935 rm -f conftest.err conftest.i conftest.$ac_ext
3937 # OK, works on sane cases. Now check whether nonexistent headers
3938 # can be detected and how.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #include <ac_nonexistent.h>
3943 if ac_fn_c_try_cpp "$LINENO"; then :
3944 # Broken: success on invalid input.
3947 # Passes both tests.
3951 rm -f conftest.err conftest.i conftest.$ac_ext
3954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3955 rm -f conftest.i conftest.err conftest.$ac_ext
3956 if $ac_preproc_ok; then :
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3969 $as_echo "$CPP" >&6; }
3971 for ac_c_preproc_warn_flag in '' yes
3973 # Use a header file that comes with gcc, so configuring glibc
3974 # with a fresh cross-compiler works.
3975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3976 # <limits.h> exists even on freestanding compilers.
3977 # On the NeXT, cc -E runs the code through the compiler's parser,
3978 # not just through cpp. "Syntax error" is here to catch this case.
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3982 # include <limits.h>
3984 # include <assert.h>
3988 if ac_fn_c_try_cpp "$LINENO"; then :
3991 # Broken: fails on valid input.
3994 rm -f conftest.err conftest.i conftest.$ac_ext
3996 # OK, works on sane cases. Now check whether nonexistent headers
3997 # can be detected and how.
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000 #include <ac_nonexistent.h>
4002 if ac_fn_c_try_cpp "$LINENO"; then :
4003 # Broken: success on invalid input.
4006 # Passes both tests.
4010 rm -f conftest.err conftest.i conftest.$ac_ext
4013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4014 rm -f conftest.i conftest.err conftest.$ac_ext
4015 if $ac_preproc_ok; then :
4018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4020 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4021 See \`config.log' for more details" "$LINENO" 5; }
4025 ac_cpp='$CPP $CPPFLAGS'
4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4032 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4033 if ${ac_cv_path_GREP+:} false; then :
4034 $as_echo_n "(cached) " >&6
4036 if test -z "$GREP"; then
4037 ac_path_GREP_found=false
4038 # Loop through the user's path and test for each of PROGNAME-LIST
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4043 test -z "$as_dir" && as_dir=.
4044 for ac_prog in grep ggrep; do
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4047 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4048 # Check for GNU ac_path_GREP and select it if it is found.
4049 # Check for GNU $ac_path_GREP
4050 case `"$ac_path_GREP" --version 2>&1` in
4052 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4055 $as_echo_n 0123456789 >"conftest.in"
4058 cat "conftest.in" "conftest.in" >"conftest.tmp"
4059 mv "conftest.tmp" "conftest.in"
4060 cp "conftest.in" "conftest.nl"
4061 $as_echo 'GREP' >> "conftest.nl"
4062 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064 as_fn_arith $ac_count + 1 && ac_count=$as_val
4065 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4066 # Best one so far, save it but keep looking for a better one
4067 ac_cv_path_GREP="$ac_path_GREP"
4068 ac_path_GREP_max=$ac_count
4070 # 10*(2^10) chars as input seems more than enough
4071 test $ac_count -gt 10 && break
4073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4076 $ac_path_GREP_found && break 3
4081 if test -z "$ac_cv_path_GREP"; then
4082 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4085 ac_cv_path_GREP=$GREP
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4090 $as_echo "$ac_cv_path_GREP" >&6; }
4091 GREP="$ac_cv_path_GREP"
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4095 $as_echo_n "checking for egrep... " >&6; }
4096 if ${ac_cv_path_EGREP+:} false; then :
4097 $as_echo_n "(cached) " >&6
4099 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4100 then ac_cv_path_EGREP="$GREP -E"
4102 if test -z "$EGREP"; then
4103 ac_path_EGREP_found=false
4104 # Loop through the user's path and test for each of PROGNAME-LIST
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4109 test -z "$as_dir" && as_dir=.
4110 for ac_prog in egrep; do
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4113 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4114 # Check for GNU ac_path_EGREP and select it if it is found.
4115 # Check for GNU $ac_path_EGREP
4116 case `"$ac_path_EGREP" --version 2>&1` in
4118 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4121 $as_echo_n 0123456789 >"conftest.in"
4124 cat "conftest.in" "conftest.in" >"conftest.tmp"
4125 mv "conftest.tmp" "conftest.in"
4126 cp "conftest.in" "conftest.nl"
4127 $as_echo 'EGREP' >> "conftest.nl"
4128 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4129 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4130 as_fn_arith $ac_count + 1 && ac_count=$as_val
4131 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4132 # Best one so far, save it but keep looking for a better one
4133 ac_cv_path_EGREP="$ac_path_EGREP"
4134 ac_path_EGREP_max=$ac_count
4136 # 10*(2^10) chars as input seems more than enough
4137 test $ac_count -gt 10 && break
4139 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4142 $ac_path_EGREP_found && break 3
4147 if test -z "$ac_cv_path_EGREP"; then
4148 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4151 ac_cv_path_EGREP=$EGREP
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4157 $as_echo "$ac_cv_path_EGREP" >&6; }
4158 EGREP="$ac_cv_path_EGREP"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4162 $as_echo_n "checking for ANSI C header files... " >&6; }
4163 if ${ac_cv_header_stdc+:} false; then :
4164 $as_echo_n "(cached) " >&6
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4181 if ac_fn_c_try_compile "$LINENO"; then :
4182 ac_cv_header_stdc=yes
4184 ac_cv_header_stdc=no
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4188 if test $ac_cv_header_stdc = yes; then
4189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196 $EGREP "memchr" >/dev/null 2>&1; then :
4199 ac_cv_header_stdc=no
4205 if test $ac_cv_header_stdc = yes; then
4206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4213 $EGREP "free" >/dev/null 2>&1; then :
4216 ac_cv_header_stdc=no
4222 if test $ac_cv_header_stdc = yes; then
4223 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4224 if test "$cross_compiling" = yes; then :
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4231 #if ((' ' & 0x0FF) == 0x020)
4232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4235 # define ISLOWER(c) \
4236 (('a' <= (c) && (c) <= 'i') \
4237 || ('j' <= (c) && (c) <= 'r') \
4238 || ('s' <= (c) && (c) <= 'z'))
4239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4247 for (i = 0; i < 256; i++)
4248 if (XOR (islower (i), ISLOWER (i))
4249 || toupper (i) != TOUPPER (i))
4254 if ac_fn_c_try_run "$LINENO"; then :
4257 ac_cv_header_stdc=no
4259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4260 conftest.$ac_objext conftest.beam conftest.$ac_ext
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4266 $as_echo "$ac_cv_header_stdc" >&6; }
4267 if test $ac_cv_header_stdc = yes; then
4269 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4274 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4275 inttypes.h stdint.h unistd.h
4277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4278 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4280 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4281 cat >>confdefs.h <<_ACEOF
4282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4294 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4295 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4301 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4302 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4308 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4309 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4318 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4319 if test -n "$ac_tool_prefix"; then
4320 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4321 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4325 $as_echo_n "(cached) " >&6
4329 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4351 if test -n "$PKG_CONFIG"; then
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4353 $as_echo "$PKG_CONFIG" >&6; }
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356 $as_echo "no" >&6; }
4361 if test -z "$ac_cv_path_PKG_CONFIG"; then
4362 ac_pt_PKG_CONFIG=$PKG_CONFIG
4363 # Extract the first word of "pkg-config", so it can be a program name with args.
4364 set dummy pkg-config; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4368 $as_echo_n "(cached) " >&6
4370 case $ac_pt_PKG_CONFIG in
4372 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4394 if test -n "$ac_pt_PKG_CONFIG"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4396 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4402 if test "x$ac_pt_PKG_CONFIG" = x; then
4405 case $cross_compiling:$ac_tool_warned in
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4411 PKG_CONFIG=$ac_pt_PKG_CONFIG
4414 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4418 if test -n "$PKG_CONFIG"; then
4419 _pkg_min_version=0.9.0
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4421 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4422 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4424 $as_echo "yes" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4432 # Make sure we can run config.sub.
4433 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4434 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4437 $as_echo_n "checking build system type... " >&6; }
4438 if ${ac_cv_build+:} false; then :
4439 $as_echo_n "(cached) " >&6
4441 ac_build_alias=$build_alias
4442 test "x$ac_build_alias" = x &&
4443 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4444 test "x$ac_build_alias" = x &&
4445 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4446 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4451 $as_echo "$ac_cv_build" >&6; }
4452 case $ac_cv_build in
4454 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4457 ac_save_IFS=$IFS; IFS='-'
4463 # Remember, the first character of IFS is used to create $*,
4464 # except with old shells:
4467 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4471 $as_echo_n "checking host system type... " >&6; }
4472 if ${ac_cv_host+:} false; then :
4473 $as_echo_n "(cached) " >&6
4475 if test "x$host_alias" = x; then
4476 ac_cv_host=$ac_cv_build
4478 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4484 $as_echo "$ac_cv_host" >&6; }
4487 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4490 ac_save_IFS=$IFS; IFS='-'
4496 # Remember, the first character of IFS is used to create $*,
4497 # except with old shells:
4500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4504 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4505 if ${ac_cv_path_SED+:} false; then :
4506 $as_echo_n "(cached) " >&6
4508 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4509 for ac_i in 1 2 3 4 5 6 7; do
4510 ac_script="$ac_script$as_nl$ac_script"
4512 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4513 { ac_script=; unset ac_script;}
4514 if test -z "$SED"; then
4515 ac_path_SED_found=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 test -z "$as_dir" && as_dir=.
4522 for ac_prog in sed gsed; do
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4525 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4526 # Check for GNU ac_path_SED and select it if it is found.
4527 # Check for GNU $ac_path_SED
4528 case `"$ac_path_SED" --version 2>&1` in
4530 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4533 $as_echo_n 0123456789 >"conftest.in"
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 $as_echo '' >> "conftest.nl"
4540 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4542 as_fn_arith $ac_count + 1 && ac_count=$as_val
4543 if test $ac_count -gt ${ac_path_SED_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_SED="$ac_path_SED"
4546 ac_path_SED_max=$ac_count
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4554 $ac_path_SED_found && break 3
4559 if test -z "$ac_cv_path_SED"; then
4560 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4568 $as_echo "$ac_cv_path_SED" >&6; }
4569 SED="$ac_cv_path_SED"
4577 # Check whether --enable-selective-werror was given.
4578 if test "${enable_selective_werror+set}" = set; then :
4579 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4581 SELECTIVE_WERROR=yes
4588 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4589 if test "x$SUNCC" = "xyes"; then
4595 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4607 xorg_testset_save_CFLAGS="$CFLAGS"
4609 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4610 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
4612 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
4613 if ${xorg_cv_compiler_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_compiler_flag_unknown_warning_option=yes
4623 xorg_cv_compiler_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_compiler_flag_unknown_warning_option" >&5
4628 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
4629 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
4630 CFLAGS="$xorg_testset_save_CFLAGS"
4633 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4634 if test "x$xorg_testset_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 compiler supports -Werror=unused-command-line-argument" >&5
4639 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
4640 if ${xorg_cv_compiler_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_compiler_flag_unused_command_line_argument=yes
4650 xorg_cv_compiler_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_compiler_flag_unused_command_line_argument" >&5
4655 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
4656 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_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 -Wall"
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4674 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4675 cacheid=`$as_echo xorg_cv_cc_flag_-Wall`
4676 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} 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 :
4691 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4693 eval `$as_echo "$cacheid" | $as_tr_sh`=no
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=$`$as_echo "$cacheid" | $as_tr_sh`
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 -Wall"
4723 xorg_testset_save_CFLAGS="$CFLAGS"
4725 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
4728 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
4729 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
4730 $as_echo_n "(cached) " >&6
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 xorg_cv_compiler_flag_unknown_warning_option=yes
4739 xorg_cv_compiler_flag_unknown_warning_option=no
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
4744 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
4745 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
4746 CFLAGS="$xorg_testset_save_CFLAGS"
4749 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4750 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
4755 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
4756 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
4757 $as_echo_n "(cached) " >&6
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4763 if ac_fn_c_try_compile "$LINENO"; then :
4764 xorg_cv_compiler_flag_unused_command_line_argument=yes
4766 xorg_cv_compiler_flag_unused_command_line_argument=no
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
4771 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
4772 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
4773 CFLAGS="$xorg_testset_save_CFLAGS"
4778 if test $found = "no" ; then
4779 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4783 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4787 CFLAGS="$CFLAGS -Wpointer-arith"
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4790 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4791 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-arith`
4792 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4793 $as_echo_n "(cached) " >&6
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4806 if ac_fn_c_try_link "$LINENO"; then :
4807 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4809 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4811 rm -f core conftest.err conftest.$ac_objext \
4812 conftest$ac_exeext conftest.$ac_ext
4816 CFLAGS="$xorg_testset_save_CFLAGS"
4818 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4820 $as_echo "$supported" >&6; }
4821 if test "$supported" = "yes" ; then
4822 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4839 xorg_testset_save_CFLAGS="$CFLAGS"
4841 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
4844 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
4845 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
4846 $as_echo_n "(cached) " >&6
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4852 if ac_fn_c_try_compile "$LINENO"; then :
4853 xorg_cv_compiler_flag_unknown_warning_option=yes
4855 xorg_cv_compiler_flag_unknown_warning_option=no
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
4860 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
4861 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
4862 CFLAGS="$xorg_testset_save_CFLAGS"
4865 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4866 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
4871 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
4872 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
4873 $as_echo_n "(cached) " >&6
4875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880 xorg_cv_compiler_flag_unused_command_line_argument=yes
4882 xorg_cv_compiler_flag_unused_command_line_argument=no
4884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
4887 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
4888 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
4889 CFLAGS="$xorg_testset_save_CFLAGS"
4894 if test $found = "no" ; then
4895 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4899 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4903 CFLAGS="$CFLAGS -Wmissing-declarations"
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4906 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4907 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-declarations`
4908 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4909 $as_echo_n "(cached) " >&6
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4922 if ac_fn_c_try_link "$LINENO"; then :
4923 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4925 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4927 rm -f core conftest.err conftest.$ac_objext \
4928 conftest$ac_exeext conftest.$ac_ext
4932 CFLAGS="$xorg_testset_save_CFLAGS"
4934 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4936 $as_echo "$supported" >&6; }
4937 if test "$supported" = "yes" ; then
4938 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4955 xorg_testset_save_CFLAGS="$CFLAGS"
4957 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
4960 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
4961 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
4962 $as_echo_n "(cached) " >&6
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4968 if ac_fn_c_try_compile "$LINENO"; then :
4969 xorg_cv_compiler_flag_unknown_warning_option=yes
4971 xorg_cv_compiler_flag_unknown_warning_option=no
4973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
4976 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
4977 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
4978 CFLAGS="$xorg_testset_save_CFLAGS"
4981 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
4987 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
4988 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4995 if ac_fn_c_try_compile "$LINENO"; then :
4996 xorg_cv_compiler_flag_unused_command_line_argument=yes
4998 xorg_cv_compiler_flag_unused_command_line_argument=no
5000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5003 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5004 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5005 CFLAGS="$xorg_testset_save_CFLAGS"
5010 if test $found = "no" ; then
5011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5019 CFLAGS="$CFLAGS -Wformat=2"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5022 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5023 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat=2`
5024 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5025 $as_echo_n "(cached) " >&6
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5038 if ac_fn_c_try_link "$LINENO"; then :
5039 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5041 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5043 rm -f core conftest.err conftest.$ac_objext \
5044 conftest$ac_exeext conftest.$ac_ext
5048 CFLAGS="$xorg_testset_save_CFLAGS"
5050 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5052 $as_echo "$supported" >&6; }
5053 if test "$supported" = "yes" ; then
5054 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5059 if test $found = "no" ; then
5060 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5064 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5068 CFLAGS="$CFLAGS -Wformat"
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5071 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5072 cacheid=`$as_echo xorg_cv_cc_flag_-Wformat`
5073 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5074 $as_echo_n "(cached) " >&6
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5087 if ac_fn_c_try_link "$LINENO"; then :
5088 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5090 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5092 rm -f core conftest.err conftest.$ac_objext \
5093 conftest$ac_exeext conftest.$ac_ext
5097 CFLAGS="$xorg_testset_save_CFLAGS"
5099 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5101 $as_echo "$supported" >&6; }
5102 if test "$supported" = "yes" ; then
5103 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5122 xorg_testset_save_CFLAGS="$CFLAGS"
5124 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5127 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5128 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5129 $as_echo_n "(cached) " >&6
5131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5132 /* end confdefs.h. */
5135 if ac_fn_c_try_compile "$LINENO"; then :
5136 xorg_cv_compiler_flag_unknown_warning_option=yes
5138 xorg_cv_compiler_flag_unknown_warning_option=no
5140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5143 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5144 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5145 CFLAGS="$xorg_testset_save_CFLAGS"
5148 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5149 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5154 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5155 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5156 $as_echo_n "(cached) " >&6
5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* end confdefs.h. */
5162 if ac_fn_c_try_compile "$LINENO"; then :
5163 xorg_cv_compiler_flag_unused_command_line_argument=yes
5165 xorg_cv_compiler_flag_unused_command_line_argument=no
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5170 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5171 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5177 if test $found = "no" ; then
5178 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5182 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5186 CFLAGS="$CFLAGS -Wstrict-prototypes"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5189 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5190 cacheid=`$as_echo xorg_cv_cc_flag_-Wstrict-prototypes`
5191 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5192 $as_echo_n "(cached) " >&6
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5205 if ac_fn_c_try_link "$LINENO"; then :
5206 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5208 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5210 rm -f core conftest.err conftest.$ac_objext \
5211 conftest$ac_exeext conftest.$ac_ext
5215 CFLAGS="$xorg_testset_save_CFLAGS"
5217 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5219 $as_echo "$supported" >&6; }
5220 if test "$supported" = "yes" ; then
5221 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5238 xorg_testset_save_CFLAGS="$CFLAGS"
5240 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5243 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5244 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5245 $as_echo_n "(cached) " >&6
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5251 if ac_fn_c_try_compile "$LINENO"; then :
5252 xorg_cv_compiler_flag_unknown_warning_option=yes
5254 xorg_cv_compiler_flag_unknown_warning_option=no
5256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5259 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5260 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5261 CFLAGS="$xorg_testset_save_CFLAGS"
5264 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5265 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5270 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5271 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5272 $as_echo_n "(cached) " >&6
5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5275 /* end confdefs.h. */
5278 if ac_fn_c_try_compile "$LINENO"; then :
5279 xorg_cv_compiler_flag_unused_command_line_argument=yes
5281 xorg_cv_compiler_flag_unused_command_line_argument=no
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5286 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5287 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5288 CFLAGS="$xorg_testset_save_CFLAGS"
5293 if test $found = "no" ; then
5294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5302 CFLAGS="$CFLAGS -Wmissing-prototypes"
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5305 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5306 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-prototypes`
5307 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5308 $as_echo_n "(cached) " >&6
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5321 if ac_fn_c_try_link "$LINENO"; then :
5322 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5324 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5326 rm -f core conftest.err conftest.$ac_objext \
5327 conftest$ac_exeext conftest.$ac_ext
5331 CFLAGS="$xorg_testset_save_CFLAGS"
5333 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5335 $as_echo "$supported" >&6; }
5336 if test "$supported" = "yes" ; then
5337 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5354 xorg_testset_save_CFLAGS="$CFLAGS"
5356 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5359 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5360 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5361 $as_echo_n "(cached) " >&6
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364 /* end confdefs.h. */
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 xorg_cv_compiler_flag_unknown_warning_option=yes
5370 xorg_cv_compiler_flag_unknown_warning_option=no
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5375 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5376 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5377 CFLAGS="$xorg_testset_save_CFLAGS"
5380 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5381 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5386 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5387 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5388 $as_echo_n "(cached) " >&6
5390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5391 /* end confdefs.h. */
5394 if ac_fn_c_try_compile "$LINENO"; then :
5395 xorg_cv_compiler_flag_unused_command_line_argument=yes
5397 xorg_cv_compiler_flag_unused_command_line_argument=no
5399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5402 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5403 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5404 CFLAGS="$xorg_testset_save_CFLAGS"
5409 if test $found = "no" ; then
5410 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5414 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5418 CFLAGS="$CFLAGS -Wnested-externs"
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5421 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5422 cacheid=`$as_echo xorg_cv_cc_flag_-Wnested-externs`
5423 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5424 $as_echo_n "(cached) " >&6
5426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5427 /* end confdefs.h. */
5437 if ac_fn_c_try_link "$LINENO"; then :
5438 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5440 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5442 rm -f core conftest.err conftest.$ac_objext \
5443 conftest$ac_exeext conftest.$ac_ext
5447 CFLAGS="$xorg_testset_save_CFLAGS"
5449 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5451 $as_echo "$supported" >&6; }
5452 if test "$supported" = "yes" ; then
5453 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5470 xorg_testset_save_CFLAGS="$CFLAGS"
5472 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5475 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5476 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5477 $as_echo_n "(cached) " >&6
5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5483 if ac_fn_c_try_compile "$LINENO"; then :
5484 xorg_cv_compiler_flag_unknown_warning_option=yes
5486 xorg_cv_compiler_flag_unknown_warning_option=no
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5491 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5492 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5493 CFLAGS="$xorg_testset_save_CFLAGS"
5496 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5497 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5502 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5503 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5504 $as_echo_n "(cached) " >&6
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5510 if ac_fn_c_try_compile "$LINENO"; then :
5511 xorg_cv_compiler_flag_unused_command_line_argument=yes
5513 xorg_cv_compiler_flag_unused_command_line_argument=no
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5518 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5519 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5520 CFLAGS="$xorg_testset_save_CFLAGS"
5525 if test $found = "no" ; then
5526 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5531 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534 CFLAGS="$CFLAGS -Wbad-function-cast"
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5537 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5538 cacheid=`$as_echo xorg_cv_cc_flag_-Wbad-function-cast`
5539 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5540 $as_echo_n "(cached) " >&6
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5553 if ac_fn_c_try_link "$LINENO"; then :
5554 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5556 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5558 rm -f core conftest.err conftest.$ac_objext \
5559 conftest$ac_exeext conftest.$ac_ext
5563 CFLAGS="$xorg_testset_save_CFLAGS"
5565 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5567 $as_echo "$supported" >&6; }
5568 if test "$supported" = "yes" ; then
5569 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5586 xorg_testset_save_CFLAGS="$CFLAGS"
5588 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5589 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5591 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5592 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5593 $as_echo_n "(cached) " >&6
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5599 if ac_fn_c_try_compile "$LINENO"; then :
5600 xorg_cv_compiler_flag_unknown_warning_option=yes
5602 xorg_cv_compiler_flag_unknown_warning_option=no
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5607 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5608 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5609 CFLAGS="$xorg_testset_save_CFLAGS"
5612 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5616 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5618 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5619 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5620 $as_echo_n "(cached) " >&6
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5626 if ac_fn_c_try_compile "$LINENO"; then :
5627 xorg_cv_compiler_flag_unused_command_line_argument=yes
5629 xorg_cv_compiler_flag_unused_command_line_argument=no
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5634 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5635 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5636 CFLAGS="$xorg_testset_save_CFLAGS"
5641 if test $found = "no" ; then
5642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5646 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5650 CFLAGS="$CFLAGS -Wold-style-definition"
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5653 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5654 cacheid=`$as_echo xorg_cv_cc_flag_-Wold-style-definition`
5655 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5656 $as_echo_n "(cached) " >&6
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5669 if ac_fn_c_try_link "$LINENO"; then :
5670 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5672 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5674 rm -f core conftest.err conftest.$ac_objext \
5675 conftest$ac_exeext conftest.$ac_ext
5679 CFLAGS="$xorg_testset_save_CFLAGS"
5681 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5683 $as_echo "$supported" >&6; }
5684 if test "$supported" = "yes" ; then
5685 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5702 xorg_testset_save_CFLAGS="$CFLAGS"
5704 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5707 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5708 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5709 $as_echo_n "(cached) " >&6
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5715 if ac_fn_c_try_compile "$LINENO"; then :
5716 xorg_cv_compiler_flag_unknown_warning_option=yes
5718 xorg_cv_compiler_flag_unknown_warning_option=no
5720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5723 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5724 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5725 CFLAGS="$xorg_testset_save_CFLAGS"
5728 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5729 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5734 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5735 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5736 $as_echo_n "(cached) " >&6
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5742 if ac_fn_c_try_compile "$LINENO"; then :
5743 xorg_cv_compiler_flag_unused_command_line_argument=yes
5745 xorg_cv_compiler_flag_unused_command_line_argument=no
5747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5750 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5751 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5752 CFLAGS="$xorg_testset_save_CFLAGS"
5757 if test $found = "no" ; then
5758 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5769 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5770 cacheid=`$as_echo xorg_cv_cc_flag_-Wdeclaration-after-statement`
5771 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5772 $as_echo_n "(cached) " >&6
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5785 if ac_fn_c_try_link "$LINENO"; then :
5786 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5788 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5790 rm -f core conftest.err conftest.$ac_objext \
5791 conftest$ac_exeext conftest.$ac_ext
5795 CFLAGS="$xorg_testset_save_CFLAGS"
5797 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5799 $as_echo "$supported" >&6; }
5800 if test "$supported" = "yes" ; then
5801 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5810 # This chunk adds additional warnings that could catch undesired effects.
5822 xorg_testset_save_CFLAGS="$CFLAGS"
5824 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5827 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5828 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5829 $as_echo_n "(cached) " >&6
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5835 if ac_fn_c_try_compile "$LINENO"; then :
5836 xorg_cv_compiler_flag_unknown_warning_option=yes
5838 xorg_cv_compiler_flag_unknown_warning_option=no
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5843 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5844 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5845 CFLAGS="$xorg_testset_save_CFLAGS"
5848 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5849 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5850 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5854 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5855 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5856 $as_echo_n "(cached) " >&6
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5862 if ac_fn_c_try_compile "$LINENO"; then :
5863 xorg_cv_compiler_flag_unused_command_line_argument=yes
5865 xorg_cv_compiler_flag_unused_command_line_argument=no
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5870 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5871 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5872 CFLAGS="$xorg_testset_save_CFLAGS"
5877 if test $found = "no" ; then
5878 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5886 CFLAGS="$CFLAGS -Wunused"
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5889 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5890 cacheid=`$as_echo xorg_cv_cc_flag_-Wunused`
5891 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5892 $as_echo_n "(cached) " >&6
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5905 if ac_fn_c_try_link "$LINENO"; then :
5906 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5908 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5910 rm -f core conftest.err conftest.$ac_objext \
5911 conftest$ac_exeext conftest.$ac_ext
5915 CFLAGS="$xorg_testset_save_CFLAGS"
5917 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5919 $as_echo "$supported" >&6; }
5920 if test "$supported" = "yes" ; then
5921 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5938 xorg_testset_save_CFLAGS="$CFLAGS"
5940 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
5943 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
5944 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
5945 $as_echo_n "(cached) " >&6
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5951 if ac_fn_c_try_compile "$LINENO"; then :
5952 xorg_cv_compiler_flag_unknown_warning_option=yes
5954 xorg_cv_compiler_flag_unknown_warning_option=no
5956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
5959 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
5960 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
5961 CFLAGS="$xorg_testset_save_CFLAGS"
5964 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5965 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5968 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
5970 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
5971 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
5972 $as_echo_n "(cached) " >&6
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5978 if ac_fn_c_try_compile "$LINENO"; then :
5979 xorg_cv_compiler_flag_unused_command_line_argument=yes
5981 xorg_cv_compiler_flag_unused_command_line_argument=no
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
5986 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
5987 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
5988 CFLAGS="$xorg_testset_save_CFLAGS"
5993 if test $found = "no" ; then
5994 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5998 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5999 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6002 CFLAGS="$CFLAGS -Wuninitialized"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6005 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6006 cacheid=`$as_echo xorg_cv_cc_flag_-Wuninitialized`
6007 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6008 $as_echo_n "(cached) " >&6
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6021 if ac_fn_c_try_link "$LINENO"; then :
6022 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6024 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6026 rm -f core conftest.err conftest.$ac_objext \
6027 conftest$ac_exeext conftest.$ac_ext
6031 CFLAGS="$xorg_testset_save_CFLAGS"
6033 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6035 $as_echo "$supported" >&6; }
6036 if test "$supported" = "yes" ; then
6037 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6054 xorg_testset_save_CFLAGS="$CFLAGS"
6056 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6059 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6060 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6061 $as_echo_n "(cached) " >&6
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6067 if ac_fn_c_try_compile "$LINENO"; then :
6068 xorg_cv_compiler_flag_unknown_warning_option=yes
6070 xorg_cv_compiler_flag_unknown_warning_option=no
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6075 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6076 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6077 CFLAGS="$xorg_testset_save_CFLAGS"
6080 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6081 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6086 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6087 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6088 $as_echo_n "(cached) " >&6
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6094 if ac_fn_c_try_compile "$LINENO"; then :
6095 xorg_cv_compiler_flag_unused_command_line_argument=yes
6097 xorg_cv_compiler_flag_unused_command_line_argument=no
6099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6102 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6103 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6104 CFLAGS="$xorg_testset_save_CFLAGS"
6109 if test $found = "no" ; then
6110 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6114 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6118 CFLAGS="$CFLAGS -Wshadow"
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6121 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6122 cacheid=`$as_echo xorg_cv_cc_flag_-Wshadow`
6123 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6124 $as_echo_n "(cached) " >&6
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6137 if ac_fn_c_try_link "$LINENO"; then :
6138 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6140 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6142 rm -f core conftest.err conftest.$ac_objext \
6143 conftest$ac_exeext conftest.$ac_ext
6147 CFLAGS="$xorg_testset_save_CFLAGS"
6149 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6151 $as_echo "$supported" >&6; }
6152 if test "$supported" = "yes" ; then
6153 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6170 xorg_testset_save_CFLAGS="$CFLAGS"
6172 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6175 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6176 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6177 $as_echo_n "(cached) " >&6
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6183 if ac_fn_c_try_compile "$LINENO"; then :
6184 xorg_cv_compiler_flag_unknown_warning_option=yes
6186 xorg_cv_compiler_flag_unknown_warning_option=no
6188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6191 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6192 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6193 CFLAGS="$xorg_testset_save_CFLAGS"
6196 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6197 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6202 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6203 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6204 $as_echo_n "(cached) " >&6
6206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6207 /* end confdefs.h. */
6210 if ac_fn_c_try_compile "$LINENO"; then :
6211 xorg_cv_compiler_flag_unused_command_line_argument=yes
6213 xorg_cv_compiler_flag_unused_command_line_argument=no
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6218 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6219 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6220 CFLAGS="$xorg_testset_save_CFLAGS"
6225 if test $found = "no" ; then
6226 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6230 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6234 CFLAGS="$CFLAGS -Wcast-qual"
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6237 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6238 cacheid=`$as_echo xorg_cv_cc_flag_-Wcast-qual`
6239 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6240 $as_echo_n "(cached) " >&6
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6253 if ac_fn_c_try_link "$LINENO"; then :
6254 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6256 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6258 rm -f core conftest.err conftest.$ac_objext \
6259 conftest$ac_exeext conftest.$ac_ext
6263 CFLAGS="$xorg_testset_save_CFLAGS"
6265 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6267 $as_echo "$supported" >&6; }
6268 if test "$supported" = "yes" ; then
6269 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6286 xorg_testset_save_CFLAGS="$CFLAGS"
6288 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6291 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6292 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6293 $as_echo_n "(cached) " >&6
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6299 if ac_fn_c_try_compile "$LINENO"; then :
6300 xorg_cv_compiler_flag_unknown_warning_option=yes
6302 xorg_cv_compiler_flag_unknown_warning_option=no
6304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6307 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6308 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6309 CFLAGS="$xorg_testset_save_CFLAGS"
6312 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6313 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6318 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6319 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6320 $as_echo_n "(cached) " >&6
6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6326 if ac_fn_c_try_compile "$LINENO"; then :
6327 xorg_cv_compiler_flag_unused_command_line_argument=yes
6329 xorg_cv_compiler_flag_unused_command_line_argument=no
6331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6334 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6335 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6336 CFLAGS="$xorg_testset_save_CFLAGS"
6341 if test $found = "no" ; then
6342 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6346 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6350 CFLAGS="$CFLAGS -Wmissing-noreturn"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6353 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6354 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-noreturn`
6355 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6356 $as_echo_n "(cached) " >&6
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6369 if ac_fn_c_try_link "$LINENO"; then :
6370 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6372 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6374 rm -f core conftest.err conftest.$ac_objext \
6375 conftest$ac_exeext conftest.$ac_ext
6379 CFLAGS="$xorg_testset_save_CFLAGS"
6381 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6383 $as_echo "$supported" >&6; }
6384 if test "$supported" = "yes" ; then
6385 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6402 xorg_testset_save_CFLAGS="$CFLAGS"
6404 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6407 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6408 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6409 $as_echo_n "(cached) " >&6
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6415 if ac_fn_c_try_compile "$LINENO"; then :
6416 xorg_cv_compiler_flag_unknown_warning_option=yes
6418 xorg_cv_compiler_flag_unknown_warning_option=no
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6423 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6424 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6425 CFLAGS="$xorg_testset_save_CFLAGS"
6428 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6429 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6434 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6435 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6436 $as_echo_n "(cached) " >&6
6438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6439 /* end confdefs.h. */
6442 if ac_fn_c_try_compile "$LINENO"; then :
6443 xorg_cv_compiler_flag_unused_command_line_argument=yes
6445 xorg_cv_compiler_flag_unused_command_line_argument=no
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6450 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6451 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6452 CFLAGS="$xorg_testset_save_CFLAGS"
6457 if test $found = "no" ; then
6458 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6466 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6469 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6470 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-format-attribute`
6471 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6472 $as_echo_n "(cached) " >&6
6474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6475 /* end confdefs.h. */
6485 if ac_fn_c_try_link "$LINENO"; then :
6486 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6488 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6490 rm -f core conftest.err conftest.$ac_objext \
6491 conftest$ac_exeext conftest.$ac_ext
6495 CFLAGS="$xorg_testset_save_CFLAGS"
6497 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6499 $as_echo "$supported" >&6; }
6500 if test "$supported" = "yes" ; then
6501 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6518 xorg_testset_save_CFLAGS="$CFLAGS"
6520 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6523 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6524 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6525 $as_echo_n "(cached) " >&6
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6531 if ac_fn_c_try_compile "$LINENO"; then :
6532 xorg_cv_compiler_flag_unknown_warning_option=yes
6534 xorg_cv_compiler_flag_unknown_warning_option=no
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6539 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6540 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6541 CFLAGS="$xorg_testset_save_CFLAGS"
6544 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6545 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6550 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6551 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6552 $as_echo_n "(cached) " >&6
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 xorg_cv_compiler_flag_unused_command_line_argument=yes
6561 xorg_cv_compiler_flag_unused_command_line_argument=no
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6566 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6567 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6568 CFLAGS="$xorg_testset_save_CFLAGS"
6573 if test $found = "no" ; then
6574 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6578 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6582 CFLAGS="$CFLAGS -Wredundant-decls"
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6585 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6586 cacheid=`$as_echo xorg_cv_cc_flag_-Wredundant-decls`
6587 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6588 $as_echo_n "(cached) " >&6
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6601 if ac_fn_c_try_link "$LINENO"; then :
6602 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6604 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6606 rm -f core conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6611 CFLAGS="$xorg_testset_save_CFLAGS"
6613 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6615 $as_echo "$supported" >&6; }
6616 if test "$supported" = "yes" ; then
6617 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6624 # These are currently disabled because they are noisy. They will be enabled
6625 # in the future once the codebase is sufficiently modernized to silence
6626 # them. For now, I don't want them to drown out the other warnings.
6627 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6628 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6629 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6631 # Turn some warnings into errors, so we don't accidently get successful builds
6632 # when there are problems that should be fixed.
6634 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6646 xorg_testset_save_CFLAGS="$CFLAGS"
6648 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6651 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6652 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6653 $as_echo_n "(cached) " >&6
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6659 if ac_fn_c_try_compile "$LINENO"; then :
6660 xorg_cv_compiler_flag_unknown_warning_option=yes
6662 xorg_cv_compiler_flag_unknown_warning_option=no
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6667 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6668 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6669 CFLAGS="$xorg_testset_save_CFLAGS"
6672 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6673 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6678 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6679 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6680 $as_echo_n "(cached) " >&6
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6686 if ac_fn_c_try_compile "$LINENO"; then :
6687 xorg_cv_compiler_flag_unused_command_line_argument=yes
6689 xorg_cv_compiler_flag_unused_command_line_argument=no
6691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6694 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6695 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6696 CFLAGS="$xorg_testset_save_CFLAGS"
6701 if test $found = "no" ; then
6702 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6706 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6710 CFLAGS="$CFLAGS -Werror=implicit"
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6713 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6714 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=implicit`
6715 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6716 $as_echo_n "(cached) " >&6
6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6719 /* end confdefs.h. */
6729 if ac_fn_c_try_link "$LINENO"; then :
6730 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6732 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6734 rm -f core conftest.err conftest.$ac_objext \
6735 conftest$ac_exeext conftest.$ac_ext
6739 CFLAGS="$xorg_testset_save_CFLAGS"
6741 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6743 $as_echo "$supported" >&6; }
6744 if test "$supported" = "yes" ; then
6745 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6750 if test $found = "no" ; then
6751 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6755 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6759 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6762 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6763 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6764 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6765 $as_echo_n "(cached) " >&6
6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6768 /* end confdefs.h. */
6778 if ac_fn_c_try_link "$LINENO"; then :
6779 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6781 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6783 rm -f core conftest.err conftest.$ac_objext \
6784 conftest$ac_exeext conftest.$ac_ext
6788 CFLAGS="$xorg_testset_save_CFLAGS"
6790 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6792 $as_echo "$supported" >&6; }
6793 if test "$supported" = "yes" ; then
6794 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6811 xorg_testset_save_CFLAGS="$CFLAGS"
6813 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6816 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6817 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6818 $as_echo_n "(cached) " >&6
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6824 if ac_fn_c_try_compile "$LINENO"; then :
6825 xorg_cv_compiler_flag_unknown_warning_option=yes
6827 xorg_cv_compiler_flag_unknown_warning_option=no
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6832 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6833 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6834 CFLAGS="$xorg_testset_save_CFLAGS"
6837 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6838 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6843 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6844 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6845 $as_echo_n "(cached) " >&6
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6851 if ac_fn_c_try_compile "$LINENO"; then :
6852 xorg_cv_compiler_flag_unused_command_line_argument=yes
6854 xorg_cv_compiler_flag_unused_command_line_argument=no
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6859 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6860 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6861 CFLAGS="$xorg_testset_save_CFLAGS"
6866 if test $found = "no" ; then
6867 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6875 CFLAGS="$CFLAGS -Werror=nonnull"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6878 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6879 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=nonnull`
6880 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6881 $as_echo_n "(cached) " >&6
6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6884 /* end confdefs.h. */
6894 if ac_fn_c_try_link "$LINENO"; then :
6895 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6897 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6899 rm -f core conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
6904 CFLAGS="$xorg_testset_save_CFLAGS"
6906 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6908 $as_echo "$supported" >&6; }
6909 if test "$supported" = "yes" ; then
6910 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6927 xorg_testset_save_CFLAGS="$CFLAGS"
6929 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
6932 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
6933 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
6934 $as_echo_n "(cached) " >&6
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 xorg_cv_compiler_flag_unknown_warning_option=yes
6943 xorg_cv_compiler_flag_unknown_warning_option=no
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
6948 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
6949 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
6950 CFLAGS="$xorg_testset_save_CFLAGS"
6953 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6954 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
6959 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
6960 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
6961 $as_echo_n "(cached) " >&6
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6967 if ac_fn_c_try_compile "$LINENO"; then :
6968 xorg_cv_compiler_flag_unused_command_line_argument=yes
6970 xorg_cv_compiler_flag_unused_command_line_argument=no
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
6975 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
6976 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
6977 CFLAGS="$xorg_testset_save_CFLAGS"
6982 if test $found = "no" ; then
6983 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991 CFLAGS="$CFLAGS -Werror=init-self"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6994 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6995 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=init-self`
6996 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6997 $as_echo_n "(cached) " >&6
6999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7000 /* end confdefs.h. */
7010 if ac_fn_c_try_link "$LINENO"; then :
7011 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7013 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7015 rm -f core conftest.err conftest.$ac_objext \
7016 conftest$ac_exeext conftest.$ac_ext
7020 CFLAGS="$xorg_testset_save_CFLAGS"
7022 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7024 $as_echo "$supported" >&6; }
7025 if test "$supported" = "yes" ; then
7026 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7043 xorg_testset_save_CFLAGS="$CFLAGS"
7045 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7048 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7049 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7050 $as_echo_n "(cached) " >&6
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7056 if ac_fn_c_try_compile "$LINENO"; then :
7057 xorg_cv_compiler_flag_unknown_warning_option=yes
7059 xorg_cv_compiler_flag_unknown_warning_option=no
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7064 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7065 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7066 CFLAGS="$xorg_testset_save_CFLAGS"
7069 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7075 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7076 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7077 $as_echo_n "(cached) " >&6
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7083 if ac_fn_c_try_compile "$LINENO"; then :
7084 xorg_cv_compiler_flag_unused_command_line_argument=yes
7086 xorg_cv_compiler_flag_unused_command_line_argument=no
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7091 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7092 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7093 CFLAGS="$xorg_testset_save_CFLAGS"
7098 if test $found = "no" ; then
7099 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7103 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7107 CFLAGS="$CFLAGS -Werror=main"
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7110 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7111 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=main`
7112 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7113 $as_echo_n "(cached) " >&6
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7126 if ac_fn_c_try_link "$LINENO"; then :
7127 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7129 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7131 rm -f core conftest.err conftest.$ac_objext \
7132 conftest$ac_exeext conftest.$ac_ext
7136 CFLAGS="$xorg_testset_save_CFLAGS"
7138 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7140 $as_echo "$supported" >&6; }
7141 if test "$supported" = "yes" ; then
7142 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7159 xorg_testset_save_CFLAGS="$CFLAGS"
7161 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7164 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7165 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7172 if ac_fn_c_try_compile "$LINENO"; then :
7173 xorg_cv_compiler_flag_unknown_warning_option=yes
7175 xorg_cv_compiler_flag_unknown_warning_option=no
7177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7180 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7181 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7182 CFLAGS="$xorg_testset_save_CFLAGS"
7185 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7191 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7192 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7193 $as_echo_n "(cached) " >&6
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7199 if ac_fn_c_try_compile "$LINENO"; then :
7200 xorg_cv_compiler_flag_unused_command_line_argument=yes
7202 xorg_cv_compiler_flag_unused_command_line_argument=no
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7207 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7208 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7209 CFLAGS="$xorg_testset_save_CFLAGS"
7214 if test $found = "no" ; then
7215 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7219 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7223 CFLAGS="$CFLAGS -Werror=missing-braces"
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7226 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7227 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=missing-braces`
7228 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7229 $as_echo_n "(cached) " >&6
7231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232 /* end confdefs.h. */
7242 if ac_fn_c_try_link "$LINENO"; then :
7243 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7245 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7247 rm -f core conftest.err conftest.$ac_objext \
7248 conftest$ac_exeext conftest.$ac_ext
7252 CFLAGS="$xorg_testset_save_CFLAGS"
7254 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7256 $as_echo "$supported" >&6; }
7257 if test "$supported" = "yes" ; then
7258 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7275 xorg_testset_save_CFLAGS="$CFLAGS"
7277 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7280 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7281 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7282 $as_echo_n "(cached) " >&6
7284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h. */
7288 if ac_fn_c_try_compile "$LINENO"; then :
7289 xorg_cv_compiler_flag_unknown_warning_option=yes
7291 xorg_cv_compiler_flag_unknown_warning_option=no
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7296 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7297 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7298 CFLAGS="$xorg_testset_save_CFLAGS"
7301 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7302 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7307 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7308 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7309 $as_echo_n "(cached) " >&6
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7315 if ac_fn_c_try_compile "$LINENO"; then :
7316 xorg_cv_compiler_flag_unused_command_line_argument=yes
7318 xorg_cv_compiler_flag_unused_command_line_argument=no
7320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7323 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7324 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7325 CFLAGS="$xorg_testset_save_CFLAGS"
7330 if test $found = "no" ; then
7331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7339 CFLAGS="$CFLAGS -Werror=sequence-point"
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7342 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7343 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=sequence-point`
7344 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7345 $as_echo_n "(cached) " >&6
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7358 if ac_fn_c_try_link "$LINENO"; then :
7359 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7361 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7363 rm -f core conftest.err conftest.$ac_objext \
7364 conftest$ac_exeext conftest.$ac_ext
7368 CFLAGS="$xorg_testset_save_CFLAGS"
7370 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7372 $as_echo "$supported" >&6; }
7373 if test "$supported" = "yes" ; then
7374 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7391 xorg_testset_save_CFLAGS="$CFLAGS"
7393 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7396 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7397 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7398 $as_echo_n "(cached) " >&6
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7404 if ac_fn_c_try_compile "$LINENO"; then :
7405 xorg_cv_compiler_flag_unknown_warning_option=yes
7407 xorg_cv_compiler_flag_unknown_warning_option=no
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7412 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7413 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7414 CFLAGS="$xorg_testset_save_CFLAGS"
7417 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7418 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7423 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7424 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7425 $as_echo_n "(cached) " >&6
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7431 if ac_fn_c_try_compile "$LINENO"; then :
7432 xorg_cv_compiler_flag_unused_command_line_argument=yes
7434 xorg_cv_compiler_flag_unused_command_line_argument=no
7436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7439 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7440 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7441 CFLAGS="$xorg_testset_save_CFLAGS"
7446 if test $found = "no" ; then
7447 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7455 CFLAGS="$CFLAGS -Werror=return-type"
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7458 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7459 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=return-type`
7460 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7461 $as_echo_n "(cached) " >&6
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7474 if ac_fn_c_try_link "$LINENO"; then :
7475 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7477 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7479 rm -f core conftest.err conftest.$ac_objext \
7480 conftest$ac_exeext conftest.$ac_ext
7484 CFLAGS="$xorg_testset_save_CFLAGS"
7486 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7488 $as_echo "$supported" >&6; }
7489 if test "$supported" = "yes" ; then
7490 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7495 if test $found = "no" ; then
7496 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7500 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7504 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7507 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7508 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7509 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7510 $as_echo_n "(cached) " >&6
7512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7513 /* end confdefs.h. */
7523 if ac_fn_c_try_link "$LINENO"; then :
7524 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7526 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7528 rm -f core conftest.err conftest.$ac_objext \
7529 conftest$ac_exeext conftest.$ac_ext
7533 CFLAGS="$xorg_testset_save_CFLAGS"
7535 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7537 $as_echo "$supported" >&6; }
7538 if test "$supported" = "yes" ; then
7539 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7556 xorg_testset_save_CFLAGS="$CFLAGS"
7558 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7561 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7562 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7563 $as_echo_n "(cached) " >&6
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7569 if ac_fn_c_try_compile "$LINENO"; then :
7570 xorg_cv_compiler_flag_unknown_warning_option=yes
7572 xorg_cv_compiler_flag_unknown_warning_option=no
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7577 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7578 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7579 CFLAGS="$xorg_testset_save_CFLAGS"
7582 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7588 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7589 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7590 $as_echo_n "(cached) " >&6
7592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 xorg_cv_compiler_flag_unused_command_line_argument=yes
7599 xorg_cv_compiler_flag_unused_command_line_argument=no
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7604 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7605 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7606 CFLAGS="$xorg_testset_save_CFLAGS"
7611 if test $found = "no" ; then
7612 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7616 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7620 CFLAGS="$CFLAGS -Werror=trigraphs"
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7623 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7624 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=trigraphs`
7625 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7626 $as_echo_n "(cached) " >&6
7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7629 /* end confdefs.h. */
7639 if ac_fn_c_try_link "$LINENO"; then :
7640 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7642 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7644 rm -f core conftest.err conftest.$ac_objext \
7645 conftest$ac_exeext conftest.$ac_ext
7649 CFLAGS="$xorg_testset_save_CFLAGS"
7651 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7653 $as_echo "$supported" >&6; }
7654 if test "$supported" = "yes" ; then
7655 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7672 xorg_testset_save_CFLAGS="$CFLAGS"
7674 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7677 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7678 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7679 $as_echo_n "(cached) " >&6
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686 xorg_cv_compiler_flag_unknown_warning_option=yes
7688 xorg_cv_compiler_flag_unknown_warning_option=no
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7693 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7694 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7695 CFLAGS="$xorg_testset_save_CFLAGS"
7698 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7699 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7704 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7705 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7706 $as_echo_n "(cached) " >&6
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7712 if ac_fn_c_try_compile "$LINENO"; then :
7713 xorg_cv_compiler_flag_unused_command_line_argument=yes
7715 xorg_cv_compiler_flag_unused_command_line_argument=no
7717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7720 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7721 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7727 if test $found = "no" ; then
7728 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7732 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7736 CFLAGS="$CFLAGS -Werror=array-bounds"
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7739 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7740 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=array-bounds`
7741 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7742 $as_echo_n "(cached) " >&6
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7755 if ac_fn_c_try_link "$LINENO"; then :
7756 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7758 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7760 rm -f core conftest.err conftest.$ac_objext \
7761 conftest$ac_exeext conftest.$ac_ext
7765 CFLAGS="$xorg_testset_save_CFLAGS"
7767 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7769 $as_echo "$supported" >&6; }
7770 if test "$supported" = "yes" ; then
7771 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7788 xorg_testset_save_CFLAGS="$CFLAGS"
7790 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7793 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7794 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7795 $as_echo_n "(cached) " >&6
7797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7798 /* end confdefs.h. */
7801 if ac_fn_c_try_compile "$LINENO"; then :
7802 xorg_cv_compiler_flag_unknown_warning_option=yes
7804 xorg_cv_compiler_flag_unknown_warning_option=no
7806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7809 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7810 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7811 CFLAGS="$xorg_testset_save_CFLAGS"
7814 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7815 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7816 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7820 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7821 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7822 $as_echo_n "(cached) " >&6
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7828 if ac_fn_c_try_compile "$LINENO"; then :
7829 xorg_cv_compiler_flag_unused_command_line_argument=yes
7831 xorg_cv_compiler_flag_unused_command_line_argument=no
7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7836 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7837 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7838 CFLAGS="$xorg_testset_save_CFLAGS"
7843 if test $found = "no" ; then
7844 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7848 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7852 CFLAGS="$CFLAGS -Werror=write-strings"
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7855 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7856 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=write-strings`
7857 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7858 $as_echo_n "(cached) " >&6
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861 /* end confdefs.h. */
7871 if ac_fn_c_try_link "$LINENO"; then :
7872 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7874 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7876 rm -f core conftest.err conftest.$ac_objext \
7877 conftest$ac_exeext conftest.$ac_ext
7881 CFLAGS="$xorg_testset_save_CFLAGS"
7883 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7885 $as_echo "$supported" >&6; }
7886 if test "$supported" = "yes" ; then
7887 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7904 xorg_testset_save_CFLAGS="$CFLAGS"
7906 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
7909 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
7910 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
7911 $as_echo_n "(cached) " >&6
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7917 if ac_fn_c_try_compile "$LINENO"; then :
7918 xorg_cv_compiler_flag_unknown_warning_option=yes
7920 xorg_cv_compiler_flag_unknown_warning_option=no
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
7925 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
7926 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
7927 CFLAGS="$xorg_testset_save_CFLAGS"
7930 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
7936 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
7937 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
7938 $as_echo_n "(cached) " >&6
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 xorg_cv_compiler_flag_unused_command_line_argument=yes
7947 xorg_cv_compiler_flag_unused_command_line_argument=no
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
7952 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
7953 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7959 if test $found = "no" ; then
7960 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7968 CFLAGS="$CFLAGS -Werror=address"
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7971 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7972 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=address`
7973 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7974 $as_echo_n "(cached) " >&6
7976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977 /* end confdefs.h. */
7987 if ac_fn_c_try_link "$LINENO"; then :
7988 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7990 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7992 rm -f core conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
7997 CFLAGS="$xorg_testset_save_CFLAGS"
7999 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8001 $as_echo "$supported" >&6; }
8002 if test "$supported" = "yes" ; then
8003 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8020 xorg_testset_save_CFLAGS="$CFLAGS"
8022 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8025 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8026 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8027 $as_echo_n "(cached) " >&6
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8033 if ac_fn_c_try_compile "$LINENO"; then :
8034 xorg_cv_compiler_flag_unknown_warning_option=yes
8036 xorg_cv_compiler_flag_unknown_warning_option=no
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8041 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8042 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8043 CFLAGS="$xorg_testset_save_CFLAGS"
8046 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8047 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8052 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8053 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8054 $as_echo_n "(cached) " >&6
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8060 if ac_fn_c_try_compile "$LINENO"; then :
8061 xorg_cv_compiler_flag_unused_command_line_argument=yes
8063 xorg_cv_compiler_flag_unused_command_line_argument=no
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8068 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8069 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8070 CFLAGS="$xorg_testset_save_CFLAGS"
8075 if test $found = "no" ; then
8076 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8080 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8084 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8087 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8088 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
8089 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8090 $as_echo_n "(cached) " >&6
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8103 if ac_fn_c_try_link "$LINENO"; then :
8104 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8106 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8108 rm -f core conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
8113 CFLAGS="$xorg_testset_save_CFLAGS"
8115 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8117 $as_echo "$supported" >&6; }
8118 if test "$supported" = "yes" ; then
8119 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8124 if test $found = "no" ; then
8125 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8133 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8136 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8137 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
8138 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8139 $as_echo_n "(cached) " >&6
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8152 if ac_fn_c_try_link "$LINENO"; then :
8153 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8155 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8157 rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8162 CFLAGS="$xorg_testset_save_CFLAGS"
8164 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8166 $as_echo "$supported" >&6; }
8167 if test "$supported" = "yes" ; then
8168 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8185 xorg_testset_save_CFLAGS="$CFLAGS"
8187 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8190 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8191 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8192 $as_echo_n "(cached) " >&6
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8198 if ac_fn_c_try_compile "$LINENO"; then :
8199 xorg_cv_compiler_flag_unknown_warning_option=yes
8201 xorg_cv_compiler_flag_unknown_warning_option=no
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8206 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8207 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8208 CFLAGS="$xorg_testset_save_CFLAGS"
8211 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8212 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8217 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8218 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8219 $as_echo_n "(cached) " >&6
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8225 if ac_fn_c_try_compile "$LINENO"; then :
8226 xorg_cv_compiler_flag_unused_command_line_argument=yes
8228 xorg_cv_compiler_flag_unused_command_line_argument=no
8230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8233 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8234 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8235 CFLAGS="$xorg_testset_save_CFLAGS"
8240 if test $found = "no" ; then
8241 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8245 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8249 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8252 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8253 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
8254 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8255 $as_echo_n "(cached) " >&6
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8268 if ac_fn_c_try_link "$LINENO"; then :
8269 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8271 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8273 rm -f core conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8278 CFLAGS="$xorg_testset_save_CFLAGS"
8280 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8282 $as_echo "$supported" >&6; }
8283 if test "$supported" = "yes" ; then
8284 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8289 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8291 { $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
8292 $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;}
8304 xorg_testset_save_CFLAGS="$CFLAGS"
8306 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8309 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8310 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8311 $as_echo_n "(cached) " >&6
8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8317 if ac_fn_c_try_compile "$LINENO"; then :
8318 xorg_cv_compiler_flag_unknown_warning_option=yes
8320 xorg_cv_compiler_flag_unknown_warning_option=no
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8325 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8326 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8327 CFLAGS="$xorg_testset_save_CFLAGS"
8330 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8336 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8337 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8338 $as_echo_n "(cached) " >&6
8340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8341 /* end confdefs.h. */
8344 if ac_fn_c_try_compile "$LINENO"; then :
8345 xorg_cv_compiler_flag_unused_command_line_argument=yes
8347 xorg_cv_compiler_flag_unused_command_line_argument=no
8349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8352 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8353 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8354 CFLAGS="$xorg_testset_save_CFLAGS"
8359 if test $found = "no" ; then
8360 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8364 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8368 CFLAGS="$CFLAGS -Wimplicit"
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8371 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8372 cacheid=`$as_echo xorg_cv_cc_flag_-Wimplicit`
8373 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8374 $as_echo_n "(cached) " >&6
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8387 if ac_fn_c_try_link "$LINENO"; then :
8388 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8390 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8392 rm -f core conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext conftest.$ac_ext
8397 CFLAGS="$xorg_testset_save_CFLAGS"
8399 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8401 $as_echo "$supported" >&6; }
8402 if test "$supported" = "yes" ; then
8403 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8420 xorg_testset_save_CFLAGS="$CFLAGS"
8422 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8425 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8426 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8427 $as_echo_n "(cached) " >&6
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h. */
8433 if ac_fn_c_try_compile "$LINENO"; then :
8434 xorg_cv_compiler_flag_unknown_warning_option=yes
8436 xorg_cv_compiler_flag_unknown_warning_option=no
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8441 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8442 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8443 CFLAGS="$xorg_testset_save_CFLAGS"
8446 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8447 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8448 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8452 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8453 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8454 $as_echo_n "(cached) " >&6
8456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h. */
8460 if ac_fn_c_try_compile "$LINENO"; then :
8461 xorg_cv_compiler_flag_unused_command_line_argument=yes
8463 xorg_cv_compiler_flag_unused_command_line_argument=no
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8468 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8469 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8470 CFLAGS="$xorg_testset_save_CFLAGS"
8475 if test $found = "no" ; then
8476 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8484 CFLAGS="$CFLAGS -Wnonnull"
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8487 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8488 cacheid=`$as_echo xorg_cv_cc_flag_-Wnonnull`
8489 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8490 $as_echo_n "(cached) " >&6
8492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8493 /* end confdefs.h. */
8503 if ac_fn_c_try_link "$LINENO"; then :
8504 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8506 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8508 rm -f core conftest.err conftest.$ac_objext \
8509 conftest$ac_exeext conftest.$ac_ext
8513 CFLAGS="$xorg_testset_save_CFLAGS"
8515 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8517 $as_echo "$supported" >&6; }
8518 if test "$supported" = "yes" ; then
8519 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8536 xorg_testset_save_CFLAGS="$CFLAGS"
8538 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8541 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8542 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8543 $as_echo_n "(cached) " >&6
8545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8549 if ac_fn_c_try_compile "$LINENO"; then :
8550 xorg_cv_compiler_flag_unknown_warning_option=yes
8552 xorg_cv_compiler_flag_unknown_warning_option=no
8554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8557 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8558 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8559 CFLAGS="$xorg_testset_save_CFLAGS"
8562 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8563 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8568 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8569 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8570 $as_echo_n "(cached) " >&6
8572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8576 if ac_fn_c_try_compile "$LINENO"; then :
8577 xorg_cv_compiler_flag_unused_command_line_argument=yes
8579 xorg_cv_compiler_flag_unused_command_line_argument=no
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8584 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8585 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8586 CFLAGS="$xorg_testset_save_CFLAGS"
8591 if test $found = "no" ; then
8592 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8596 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8600 CFLAGS="$CFLAGS -Winit-self"
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8603 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8604 cacheid=`$as_echo xorg_cv_cc_flag_-Winit-self`
8605 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8606 $as_echo_n "(cached) " >&6
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8619 if ac_fn_c_try_link "$LINENO"; then :
8620 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8622 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8624 rm -f core conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8629 CFLAGS="$xorg_testset_save_CFLAGS"
8631 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8633 $as_echo "$supported" >&6; }
8634 if test "$supported" = "yes" ; then
8635 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8652 xorg_testset_save_CFLAGS="$CFLAGS"
8654 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8655 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8657 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8658 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8659 $as_echo_n "(cached) " >&6
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662 /* end confdefs.h. */
8665 if ac_fn_c_try_compile "$LINENO"; then :
8666 xorg_cv_compiler_flag_unknown_warning_option=yes
8668 xorg_cv_compiler_flag_unknown_warning_option=no
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8673 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8674 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8675 CFLAGS="$xorg_testset_save_CFLAGS"
8678 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8679 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8684 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8685 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8686 $as_echo_n "(cached) " >&6
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689 /* end confdefs.h. */
8692 if ac_fn_c_try_compile "$LINENO"; then :
8693 xorg_cv_compiler_flag_unused_command_line_argument=yes
8695 xorg_cv_compiler_flag_unused_command_line_argument=no
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8700 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8701 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8702 CFLAGS="$xorg_testset_save_CFLAGS"
8707 if test $found = "no" ; then
8708 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8712 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8716 CFLAGS="$CFLAGS -Wmain"
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8719 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8720 cacheid=`$as_echo xorg_cv_cc_flag_-Wmain`
8721 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8722 $as_echo_n "(cached) " >&6
8724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725 /* end confdefs.h. */
8735 if ac_fn_c_try_link "$LINENO"; then :
8736 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8738 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8740 rm -f core conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8745 CFLAGS="$xorg_testset_save_CFLAGS"
8747 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8749 $as_echo "$supported" >&6; }
8750 if test "$supported" = "yes" ; then
8751 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8768 xorg_testset_save_CFLAGS="$CFLAGS"
8770 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8773 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8774 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8775 $as_echo_n "(cached) " >&6
8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8781 if ac_fn_c_try_compile "$LINENO"; then :
8782 xorg_cv_compiler_flag_unknown_warning_option=yes
8784 xorg_cv_compiler_flag_unknown_warning_option=no
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8789 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8790 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8791 CFLAGS="$xorg_testset_save_CFLAGS"
8794 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8795 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8800 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8801 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8802 $as_echo_n "(cached) " >&6
8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h. */
8808 if ac_fn_c_try_compile "$LINENO"; then :
8809 xorg_cv_compiler_flag_unused_command_line_argument=yes
8811 xorg_cv_compiler_flag_unused_command_line_argument=no
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8816 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8817 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8818 CFLAGS="$xorg_testset_save_CFLAGS"
8823 if test $found = "no" ; then
8824 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8828 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8832 CFLAGS="$CFLAGS -Wmissing-braces"
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8835 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8836 cacheid=`$as_echo xorg_cv_cc_flag_-Wmissing-braces`
8837 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8838 $as_echo_n "(cached) " >&6
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8851 if ac_fn_c_try_link "$LINENO"; then :
8852 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8854 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8856 rm -f core conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
8861 CFLAGS="$xorg_testset_save_CFLAGS"
8863 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8865 $as_echo "$supported" >&6; }
8866 if test "$supported" = "yes" ; then
8867 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8884 xorg_testset_save_CFLAGS="$CFLAGS"
8886 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
8889 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
8890 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
8891 $as_echo_n "(cached) " >&6
8893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8894 /* end confdefs.h. */
8897 if ac_fn_c_try_compile "$LINENO"; then :
8898 xorg_cv_compiler_flag_unknown_warning_option=yes
8900 xorg_cv_compiler_flag_unknown_warning_option=no
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
8905 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
8906 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
8907 CFLAGS="$xorg_testset_save_CFLAGS"
8910 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8911 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
8916 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
8917 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
8918 $as_echo_n "(cached) " >&6
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8924 if ac_fn_c_try_compile "$LINENO"; then :
8925 xorg_cv_compiler_flag_unused_command_line_argument=yes
8927 xorg_cv_compiler_flag_unused_command_line_argument=no
8929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
8932 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
8933 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
8934 CFLAGS="$xorg_testset_save_CFLAGS"
8939 if test $found = "no" ; then
8940 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8944 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8948 CFLAGS="$CFLAGS -Wsequence-point"
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8951 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8952 cacheid=`$as_echo xorg_cv_cc_flag_-Wsequence-point`
8953 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8954 $as_echo_n "(cached) " >&6
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8967 if ac_fn_c_try_link "$LINENO"; then :
8968 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8970 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8972 rm -f core conftest.err conftest.$ac_objext \
8973 conftest$ac_exeext conftest.$ac_ext
8977 CFLAGS="$xorg_testset_save_CFLAGS"
8979 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8981 $as_echo "$supported" >&6; }
8982 if test "$supported" = "yes" ; then
8983 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9000 xorg_testset_save_CFLAGS="$CFLAGS"
9002 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9005 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9006 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9007 $as_echo_n "(cached) " >&6
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 xorg_cv_compiler_flag_unknown_warning_option=yes
9016 xorg_cv_compiler_flag_unknown_warning_option=no
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9021 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9022 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9023 CFLAGS="$xorg_testset_save_CFLAGS"
9026 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9027 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9032 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9033 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9034 $as_echo_n "(cached) " >&6
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9040 if ac_fn_c_try_compile "$LINENO"; then :
9041 xorg_cv_compiler_flag_unused_command_line_argument=yes
9043 xorg_cv_compiler_flag_unused_command_line_argument=no
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9048 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9049 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9050 CFLAGS="$xorg_testset_save_CFLAGS"
9055 if test $found = "no" ; then
9056 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9060 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9064 CFLAGS="$CFLAGS -Wreturn-type"
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9067 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9068 cacheid=`$as_echo xorg_cv_cc_flag_-Wreturn-type`
9069 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9070 $as_echo_n "(cached) " >&6
9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h. */
9083 if ac_fn_c_try_link "$LINENO"; then :
9084 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9086 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9093 CFLAGS="$xorg_testset_save_CFLAGS"
9095 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9097 $as_echo "$supported" >&6; }
9098 if test "$supported" = "yes" ; then
9099 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9116 xorg_testset_save_CFLAGS="$CFLAGS"
9118 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9121 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9122 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9123 $as_echo_n "(cached) " >&6
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9129 if ac_fn_c_try_compile "$LINENO"; then :
9130 xorg_cv_compiler_flag_unknown_warning_option=yes
9132 xorg_cv_compiler_flag_unknown_warning_option=no
9134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9137 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9138 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9139 CFLAGS="$xorg_testset_save_CFLAGS"
9142 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9148 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9149 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9150 $as_echo_n "(cached) " >&6
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9156 if ac_fn_c_try_compile "$LINENO"; then :
9157 xorg_cv_compiler_flag_unused_command_line_argument=yes
9159 xorg_cv_compiler_flag_unused_command_line_argument=no
9161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9164 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9165 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9166 CFLAGS="$xorg_testset_save_CFLAGS"
9171 if test $found = "no" ; then
9172 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9176 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9180 CFLAGS="$CFLAGS -Wtrigraphs"
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9183 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9184 cacheid=`$as_echo xorg_cv_cc_flag_-Wtrigraphs`
9185 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9186 $as_echo_n "(cached) " >&6
9188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9189 /* end confdefs.h. */
9199 if ac_fn_c_try_link "$LINENO"; then :
9200 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9202 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9204 rm -f core conftest.err conftest.$ac_objext \
9205 conftest$ac_exeext conftest.$ac_ext
9209 CFLAGS="$xorg_testset_save_CFLAGS"
9211 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9213 $as_echo "$supported" >&6; }
9214 if test "$supported" = "yes" ; then
9215 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9232 xorg_testset_save_CFLAGS="$CFLAGS"
9234 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9237 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9238 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9239 $as_echo_n "(cached) " >&6
9241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9242 /* end confdefs.h. */
9245 if ac_fn_c_try_compile "$LINENO"; then :
9246 xorg_cv_compiler_flag_unknown_warning_option=yes
9248 xorg_cv_compiler_flag_unknown_warning_option=no
9250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9253 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9254 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9255 CFLAGS="$xorg_testset_save_CFLAGS"
9258 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9264 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9265 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9266 $as_echo_n "(cached) " >&6
9268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9269 /* end confdefs.h. */
9272 if ac_fn_c_try_compile "$LINENO"; then :
9273 xorg_cv_compiler_flag_unused_command_line_argument=yes
9275 xorg_cv_compiler_flag_unused_command_line_argument=no
9277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9280 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9281 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9282 CFLAGS="$xorg_testset_save_CFLAGS"
9287 if test $found = "no" ; then
9288 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9292 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9296 CFLAGS="$CFLAGS -Warray-bounds"
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9299 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9300 cacheid=`$as_echo xorg_cv_cc_flag_-Warray-bounds`
9301 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9302 $as_echo_n "(cached) " >&6
9304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9305 /* end confdefs.h. */
9315 if ac_fn_c_try_link "$LINENO"; then :
9316 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9318 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9325 CFLAGS="$xorg_testset_save_CFLAGS"
9327 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9329 $as_echo "$supported" >&6; }
9330 if test "$supported" = "yes" ; then
9331 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9348 xorg_testset_save_CFLAGS="$CFLAGS"
9350 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9353 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9354 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9355 $as_echo_n "(cached) " >&6
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9361 if ac_fn_c_try_compile "$LINENO"; then :
9362 xorg_cv_compiler_flag_unknown_warning_option=yes
9364 xorg_cv_compiler_flag_unknown_warning_option=no
9366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9369 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9370 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9371 CFLAGS="$xorg_testset_save_CFLAGS"
9374 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9375 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9380 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9381 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9382 $as_echo_n "(cached) " >&6
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9388 if ac_fn_c_try_compile "$LINENO"; then :
9389 xorg_cv_compiler_flag_unused_command_line_argument=yes
9391 xorg_cv_compiler_flag_unused_command_line_argument=no
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9396 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9397 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9398 CFLAGS="$xorg_testset_save_CFLAGS"
9403 if test $found = "no" ; then
9404 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9408 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9412 CFLAGS="$CFLAGS -Wwrite-strings"
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9415 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9416 cacheid=`$as_echo xorg_cv_cc_flag_-Wwrite-strings`
9417 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9418 $as_echo_n "(cached) " >&6
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9431 if ac_fn_c_try_link "$LINENO"; then :
9432 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9434 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9441 CFLAGS="$xorg_testset_save_CFLAGS"
9443 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9445 $as_echo "$supported" >&6; }
9446 if test "$supported" = "yes" ; then
9447 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9464 xorg_testset_save_CFLAGS="$CFLAGS"
9466 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9469 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9470 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9471 $as_echo_n "(cached) " >&6
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474 /* end confdefs.h. */
9477 if ac_fn_c_try_compile "$LINENO"; then :
9478 xorg_cv_compiler_flag_unknown_warning_option=yes
9480 xorg_cv_compiler_flag_unknown_warning_option=no
9482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9485 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9486 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9487 CFLAGS="$xorg_testset_save_CFLAGS"
9490 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9496 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9497 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9498 $as_echo_n "(cached) " >&6
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501 /* end confdefs.h. */
9504 if ac_fn_c_try_compile "$LINENO"; then :
9505 xorg_cv_compiler_flag_unused_command_line_argument=yes
9507 xorg_cv_compiler_flag_unused_command_line_argument=no
9509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9512 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9513 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9514 CFLAGS="$xorg_testset_save_CFLAGS"
9519 if test $found = "no" ; then
9520 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9524 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9528 CFLAGS="$CFLAGS -Waddress"
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9531 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9532 cacheid=`$as_echo xorg_cv_cc_flag_-Waddress`
9533 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9534 $as_echo_n "(cached) " >&6
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9547 if ac_fn_c_try_link "$LINENO"; then :
9548 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9550 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9552 rm -f core conftest.err conftest.$ac_objext \
9553 conftest$ac_exeext conftest.$ac_ext
9557 CFLAGS="$xorg_testset_save_CFLAGS"
9559 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9561 $as_echo "$supported" >&6; }
9562 if test "$supported" = "yes" ; then
9563 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9580 xorg_testset_save_CFLAGS="$CFLAGS"
9582 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9585 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9586 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9587 $as_echo_n "(cached) " >&6
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9593 if ac_fn_c_try_compile "$LINENO"; then :
9594 xorg_cv_compiler_flag_unknown_warning_option=yes
9596 xorg_cv_compiler_flag_unknown_warning_option=no
9598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9601 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9602 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9603 CFLAGS="$xorg_testset_save_CFLAGS"
9606 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9607 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9612 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9613 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9614 $as_echo_n "(cached) " >&6
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9620 if ac_fn_c_try_compile "$LINENO"; then :
9621 xorg_cv_compiler_flag_unused_command_line_argument=yes
9623 xorg_cv_compiler_flag_unused_command_line_argument=no
9625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9628 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9629 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9630 CFLAGS="$xorg_testset_save_CFLAGS"
9635 if test $found = "no" ; then
9636 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9640 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9644 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9647 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9648 cacheid=`$as_echo xorg_cv_cc_flag_-Wint-to-pointer-cast`
9649 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9650 $as_echo_n "(cached) " >&6
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9663 if ac_fn_c_try_link "$LINENO"; then :
9664 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9666 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9668 rm -f core conftest.err conftest.$ac_objext \
9669 conftest$ac_exeext conftest.$ac_ext
9673 CFLAGS="$xorg_testset_save_CFLAGS"
9675 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9677 $as_echo "$supported" >&6; }
9678 if test "$supported" = "yes" ; then
9679 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9696 xorg_testset_save_CFLAGS="$CFLAGS"
9698 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9701 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9702 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9703 $as_echo_n "(cached) " >&6
9705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9709 if ac_fn_c_try_compile "$LINENO"; then :
9710 xorg_cv_compiler_flag_unknown_warning_option=yes
9712 xorg_cv_compiler_flag_unknown_warning_option=no
9714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9717 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9718 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9719 CFLAGS="$xorg_testset_save_CFLAGS"
9722 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9723 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9728 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9729 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9730 $as_echo_n "(cached) " >&6
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9736 if ac_fn_c_try_compile "$LINENO"; then :
9737 xorg_cv_compiler_flag_unused_command_line_argument=yes
9739 xorg_cv_compiler_flag_unused_command_line_argument=no
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9744 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9745 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9746 CFLAGS="$xorg_testset_save_CFLAGS"
9751 if test $found = "no" ; then
9752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9756 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9760 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9763 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9764 cacheid=`$as_echo xorg_cv_cc_flag_-Wpointer-to-int-cast`
9765 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9766 $as_echo_n "(cached) " >&6
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9779 if ac_fn_c_try_link "$LINENO"; then :
9780 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9782 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9784 rm -f core conftest.err conftest.$ac_objext \
9785 conftest$ac_exeext conftest.$ac_ext
9789 CFLAGS="$xorg_testset_save_CFLAGS"
9791 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9793 $as_echo "$supported" >&6; }
9794 if test "$supported" = "yes" ; then
9795 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9809 CWARNFLAGS="$BASE_CFLAGS"
9810 if test "x$GCC" = xyes ; then
9811 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9821 # Check whether --enable-strict-compilation was given.
9822 if test "${enable_strict_compilation+set}" = set; then :
9823 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9845 xorg_testset_save_CFLAGS="$CFLAGS"
9847 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9850 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9851 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9852 $as_echo_n "(cached) " >&6
9854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9855 /* end confdefs.h. */
9858 if ac_fn_c_try_compile "$LINENO"; then :
9859 xorg_cv_compiler_flag_unknown_warning_option=yes
9861 xorg_cv_compiler_flag_unknown_warning_option=no
9863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9866 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9867 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9868 CFLAGS="$xorg_testset_save_CFLAGS"
9871 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9872 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9877 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9878 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9879 $as_echo_n "(cached) " >&6
9881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9882 /* end confdefs.h. */
9885 if ac_fn_c_try_compile "$LINENO"; then :
9886 xorg_cv_compiler_flag_unused_command_line_argument=yes
9888 xorg_cv_compiler_flag_unused_command_line_argument=no
9890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
9893 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
9894 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
9895 CFLAGS="$xorg_testset_save_CFLAGS"
9900 if test $found = "no" ; then
9901 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9905 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9909 CFLAGS="$CFLAGS -pedantic"
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9912 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9913 cacheid=`$as_echo xorg_cv_cc_flag_-pedantic`
9914 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9915 $as_echo_n "(cached) " >&6
9917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9918 /* end confdefs.h. */
9928 if ac_fn_c_try_link "$LINENO"; then :
9929 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9931 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9933 rm -f core conftest.err conftest.$ac_objext \
9934 conftest$ac_exeext conftest.$ac_ext
9938 CFLAGS="$xorg_testset_save_CFLAGS"
9940 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9942 $as_echo "$supported" >&6; }
9943 if test "$supported" = "yes" ; then
9944 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9961 xorg_testset_save_CFLAGS="$CFLAGS"
9963 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
9966 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
9967 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
9968 $as_echo_n "(cached) " >&6
9970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9971 /* end confdefs.h. */
9974 if ac_fn_c_try_compile "$LINENO"; then :
9975 xorg_cv_compiler_flag_unknown_warning_option=yes
9977 xorg_cv_compiler_flag_unknown_warning_option=no
9979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
9982 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
9983 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
9984 CFLAGS="$xorg_testset_save_CFLAGS"
9987 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9988 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
9993 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
9994 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
9995 $as_echo_n "(cached) " >&6
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
10001 if ac_fn_c_try_compile "$LINENO"; then :
10002 xorg_cv_compiler_flag_unused_command_line_argument=yes
10004 xorg_cv_compiler_flag_unused_command_line_argument=no
10006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
10009 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
10010 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
10011 CFLAGS="$xorg_testset_save_CFLAGS"
10016 if test $found = "no" ; then
10017 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10025 CFLAGS="$CFLAGS -Werror"
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10028 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10029 cacheid=`$as_echo xorg_cv_cc_flag_-Werror`
10030 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
10031 $as_echo_n "(cached) " >&6
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10044 if ac_fn_c_try_link "$LINENO"; then :
10045 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
10047 eval `$as_echo "$cacheid" | $as_tr_sh`=no
10049 rm -f core conftest.err conftest.$ac_objext \
10050 conftest$ac_exeext conftest.$ac_ext
10054 CFLAGS="$xorg_testset_save_CFLAGS"
10056 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10058 $as_echo "$supported" >&6; }
10059 if test "$supported" = "yes" ; then
10060 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10065 if test $found = "no" ; then
10066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10070 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10074 CFLAGS="$CFLAGS -errwarn"
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10077 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10078 cacheid=`$as_echo xorg_cv_cc_flag_-errwarn`
10079 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
10080 $as_echo_n "(cached) " >&6
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10093 if ac_fn_c_try_link "$LINENO"; then :
10094 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
10096 eval `$as_echo "$cacheid" | $as_tr_sh`=no
10098 rm -f core conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10103 CFLAGS="$xorg_testset_save_CFLAGS"
10105 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10107 $as_echo "$supported" >&6; }
10108 if test "$supported" = "yes" ; then
10109 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10116 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10117 # activate it with -Werror, so we add it here explicitly.
10129 xorg_testset_save_CFLAGS="$CFLAGS"
10131 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unknown-warning-option" >&5
10134 $as_echo_n "checking if compiler supports -Werror=unknown-warning-option... " >&6; }
10135 if ${xorg_cv_compiler_flag_unknown_warning_option+:} false; then :
10136 $as_echo_n "(cached) " >&6
10138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10139 /* end confdefs.h. */
10142 if ac_fn_c_try_compile "$LINENO"; then :
10143 xorg_cv_compiler_flag_unknown_warning_option=yes
10145 xorg_cv_compiler_flag_unknown_warning_option=no
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unknown_warning_option" >&5
10150 $as_echo "$xorg_cv_compiler_flag_unknown_warning_option" >&6; }
10151 xorg_testset_unknown_warning_option=$xorg_cv_compiler_flag_unknown_warning_option
10152 CFLAGS="$xorg_testset_save_CFLAGS"
10155 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
10156 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Werror=unused-command-line-argument" >&5
10161 $as_echo_n "checking if compiler supports -Werror=unused-command-line-argument... " >&6; }
10162 if ${xorg_cv_compiler_flag_unused_command_line_argument+:} false; then :
10163 $as_echo_n "(cached) " >&6
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10169 if ac_fn_c_try_compile "$LINENO"; then :
10170 xorg_cv_compiler_flag_unused_command_line_argument=yes
10172 xorg_cv_compiler_flag_unused_command_line_argument=no
10174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_compiler_flag_unused_command_line_argument" >&5
10177 $as_echo "$xorg_cv_compiler_flag_unused_command_line_argument" >&6; }
10178 xorg_testset_unused_command_line_argument=$xorg_cv_compiler_flag_unused_command_line_argument
10179 CFLAGS="$xorg_testset_save_CFLAGS"
10184 if test $found = "no" ; then
10185 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10189 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10193 CFLAGS="$CFLAGS -Werror=attributes"
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10196 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10197 cacheid=`$as_echo xorg_cv_cc_flag_-Werror=attributes`
10198 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
10199 $as_echo_n "(cached) " >&6
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10202 /* end confdefs.h. */
10212 if ac_fn_c_try_link "$LINENO"; then :
10213 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
10215 eval `$as_echo "$cacheid" | $as_tr_sh`=no
10217 rm -f core conftest.err conftest.$ac_objext \
10218 conftest$ac_exeext conftest.$ac_ext
10222 CFLAGS="$xorg_testset_save_CFLAGS"
10224 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10226 $as_echo "$supported" >&6; }
10227 if test "$supported" = "yes" ; then
10228 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10235 if test "x$STRICT_COMPILE" = "xyes"; then
10236 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10237 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10245 cat >>confdefs.h <<_ACEOF
10246 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10249 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10250 if test "x$PVM" = "x"; then
10254 cat >>confdefs.h <<_ACEOF
10255 #define PACKAGE_VERSION_MINOR $PVM
10258 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10259 if test "x$PVP" = "x"; then
10263 cat >>confdefs.h <<_ACEOF
10264 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10269 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10270 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10271 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10272 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10277 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10278 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10279 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10280 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10281 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10288 if test x$APP_MAN_SUFFIX = x ; then
10291 if test x$APP_MAN_DIR = x ; then
10292 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10295 if test x$LIB_MAN_SUFFIX = x ; then
10298 if test x$LIB_MAN_DIR = x ; then
10299 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10302 if test x$FILE_MAN_SUFFIX = x ; then
10304 solaris*) FILE_MAN_SUFFIX=4 ;;
10305 *) FILE_MAN_SUFFIX=5 ;;
10308 if test x$FILE_MAN_DIR = x ; then
10309 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10312 if test x$MISC_MAN_SUFFIX = x ; then
10314 solaris*) MISC_MAN_SUFFIX=5 ;;
10315 *) MISC_MAN_SUFFIX=7 ;;
10318 if test x$MISC_MAN_DIR = x ; then
10319 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10322 if test x$DRIVER_MAN_SUFFIX = x ; then
10324 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10325 *) DRIVER_MAN_SUFFIX=4 ;;
10328 if test x$DRIVER_MAN_DIR = x ; then
10329 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10332 if test x$ADMIN_MAN_SUFFIX = x ; then
10334 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10335 *) ADMIN_MAN_SUFFIX=8 ;;
10338 if test x$ADMIN_MAN_DIR = x ; then
10339 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10356 XORG_MAN_PAGE="X Version 11"
10359 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10360 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10361 -e 's|__xservername__|Xorg|g' \
10362 -e 's|__xconfigfile__|xorg.conf|g' \
10363 -e 's|__projectroot__|\$(prefix)|g' \
10364 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10365 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10366 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10367 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10368 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10369 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10370 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10374 # Check whether --enable-silent-rules was given.
10375 if test "${enable_silent_rules+set}" = set; then :
10376 enableval=$enable_silent_rules;
10379 case $enable_silent_rules in
10380 yes) AM_DEFAULT_VERBOSITY=0;;
10381 no) AM_DEFAULT_VERBOSITY=1;;
10382 *) AM_DEFAULT_VERBOSITY=0;;
10389 ac_cpp='$CPP $CPPFLAGS'
10390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
10394 $as_echo_n "checking how to run the C preprocessor... " >&6; }
10395 # On Suns, sometimes $CPP names a directory.
10396 if test -n "$CPP" && test -d "$CPP"; then
10399 if test -z "$CPP"; then
10400 if ${ac_cv_prog_CPP+:} false; then :
10401 $as_echo_n "(cached) " >&6
10403 # Double quotes because CPP needs to be expanded
10404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10406 ac_preproc_ok=false
10407 for ac_c_preproc_warn_flag in '' yes
10409 # Use a header file that comes with gcc, so configuring glibc
10410 # with a fresh cross-compiler works.
10411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10412 # <limits.h> exists even on freestanding compilers.
10413 # On the NeXT, cc -E runs the code through the compiler's parser,
10414 # not just through cpp. "Syntax error" is here to catch this case.
10415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10416 /* end confdefs.h. */
10418 # include <limits.h>
10420 # include <assert.h>
10424 if ac_fn_c_try_cpp "$LINENO"; then :
10427 # Broken: fails on valid input.
10430 rm -f conftest.err conftest.i conftest.$ac_ext
10432 # OK, works on sane cases. Now check whether nonexistent headers
10433 # can be detected and how.
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10436 #include <ac_nonexistent.h>
10438 if ac_fn_c_try_cpp "$LINENO"; then :
10439 # Broken: success on invalid input.
10442 # Passes both tests.
10446 rm -f conftest.err conftest.i conftest.$ac_ext
10449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10450 rm -f conftest.i conftest.err conftest.$ac_ext
10451 if $ac_preproc_ok; then :
10456 ac_cv_prog_CPP=$CPP
10459 CPP=$ac_cv_prog_CPP
10461 ac_cv_prog_CPP=$CPP
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
10464 $as_echo "$CPP" >&6; }
10465 ac_preproc_ok=false
10466 for ac_c_preproc_warn_flag in '' yes
10468 # Use a header file that comes with gcc, so configuring glibc
10469 # with a fresh cross-compiler works.
10470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10471 # <limits.h> exists even on freestanding compilers.
10472 # On the NeXT, cc -E runs the code through the compiler's parser,
10473 # not just through cpp. "Syntax error" is here to catch this case.
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10477 # include <limits.h>
10479 # include <assert.h>
10483 if ac_fn_c_try_cpp "$LINENO"; then :
10486 # Broken: fails on valid input.
10489 rm -f conftest.err conftest.i conftest.$ac_ext
10491 # OK, works on sane cases. Now check whether nonexistent headers
10492 # can be detected and how.
10493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 #include <ac_nonexistent.h>
10497 if ac_fn_c_try_cpp "$LINENO"; then :
10498 # Broken: success on invalid input.
10501 # Passes both tests.
10505 rm -f conftest.err conftest.i conftest.$ac_ext
10508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10509 rm -f conftest.i conftest.err conftest.$ac_ext
10510 if $ac_preproc_ok; then :
10513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10515 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
10516 See \`config.log' for more details" "$LINENO" 5; }
10520 ac_cpp='$CPP $CPPFLAGS'
10521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10529 # Extract the first word of "$ac_prog", so it can be a program name with args.
10530 set dummy $ac_prog; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 $as_echo_n "checking for $ac_word... " >&6; }
10533 if ${ac_cv_path_RAWCPP+:} false; then :
10534 $as_echo_n "(cached) " >&6
10538 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
10541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10542 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
10543 for as_dir in $as_dummy
10546 test -z "$as_dir" && as_dir=.
10547 for ac_exec_ext in '' $ac_executable_extensions; do
10548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10549 ac_cv_path_RAWCPP="$as_dir/$ac_word$ac_exec_ext"
10550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 RAWCPP=$ac_cv_path_RAWCPP
10561 if test -n "$RAWCPP"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
10563 $as_echo "$RAWCPP" >&6; }
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 $as_echo "no" >&6; }
10570 test -n "$RAWCPP" && break
10572 test -n "$RAWCPP" || RAWCPP="${CPP}"
10575 # Check for flag to avoid builtin definitions - assumes unix is predefined,
10576 # which is not the best choice for supporting other OS'es, but covers most
10577 # of the ones we need for now.
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
10579 $as_echo_n "checking if $RAWCPP requires -undef... " >&6; }
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10582 Does cpp redefine unix ?
10584 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10588 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10591 $as_echo "yes" >&6; }
10592 # under Cygwin unix is still defined even with -undef
10593 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
10594 RAWCPPFLAGS="-undef -ansi"
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
10596 $as_echo "yes, with -ansi" >&6; }
10598 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
10601 rm -f conftest.$ac_ext
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
10604 $as_echo_n "checking if $RAWCPP requires -traditional... " >&6; }
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10606 /* end confdefs.h. */
10607 Does cpp preserve "whitespace"?
10609 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10613 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
10614 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616 $as_echo "yes" >&6; }
10618 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
10621 rm -f conftest.$ac_ext
10624 CPP_PROGRAM=${RAWCPP}
10627 for ac_func in mkstemp
10629 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10630 if test "x$ac_cv_func_mkstemp" = xyes; then :
10631 cat >>confdefs.h <<_ACEOF
10632 #define HAVE_MKSTEMP 1
10639 # Extract the first word of "perl", so it can be a program name with args.
10640 set dummy perl; ac_word=$2
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642 $as_echo_n "checking for $ac_word... " >&6; }
10643 if ${ac_cv_prog_HAS_PERL+:} false; then :
10644 $as_echo_n "(cached) " >&6
10646 if test -n "$HAS_PERL"; then
10647 ac_cv_prog_HAS_PERL="$HAS_PERL" # Let the user override the test.
10649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10650 for as_dir in $PATH
10653 test -z "$as_dir" && as_dir=.
10654 for ac_exec_ext in '' $ac_executable_extensions; do
10655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10656 ac_cv_prog_HAS_PERL="yes"
10657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 HAS_PERL=$ac_cv_prog_HAS_PERL
10667 if test -n "$HAS_PERL"; then
10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_PERL" >&5
10669 $as_echo "$HAS_PERL" >&6; }
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10672 $as_echo "no" >&6; }
10676 if test "x$HAS_PERL" = xyes; then
10687 DEFAULT_XCONFDIR="${libdir}/X11/config"
10689 # Check whether --with-config-dir was given.
10690 if test "${with_config_dir+set}" = set; then :
10691 withval=$with_config_dir; XCONFDIR="$withval"
10693 XCONFDIR="$DEFAULT_XCONFDIR"
10698 DEFAULT_PREPROCESSCMD_MKDEPEND="gcc -E"
10700 # Check whether --with-script-preproc-cmd was given.
10701 if test "${with_script_preproc_cmd+set}" = set; then :
10702 withval=$with_script_preproc_cmd; PREPROCESSCMD_MKDEPEND="$withval"
10704 PREPROCESSCMD_MKDEPEND="$DEFAULT_PREPROCESSCMD_MKDEPEND"
10709 DEFAULT_ARCMD="ar clq"
10711 # Check whether --with-create-lib-cmd was given.
10712 if test "${with_create_lib_cmd+set}" = set; then :
10713 withval=$with_create_lib_cmd; ARCMD="$withval"
10715 ARCMD="$DEFAULT_ARCMD"
10720 DEFAULT_RANLIB="ranlib"
10722 # Check whether --with-clean-lib-cmd was given.
10723 if test "${with_clean_lib_cmd+set}" = set; then :
10724 withval=$with_clean_lib_cmd; RANLIB="$withval"
10726 RANLIB="$DEFAULT_RANLIB"
10731 # Check whether --enable-revpath was given.
10732 if test "${enable_revpath+set}" = set; then :
10733 enableval=$enable_revpath; BUILD_REVPATH="$enableval"
10738 if test "x$BUILD_REVPATH" = xyes; then
10739 BUILD_REVPATH_TRUE=
10740 BUILD_REVPATH_FALSE='#'
10742 BUILD_REVPATH_TRUE='#'
10743 BUILD_REVPATH_FALSE=
10747 # Check whether --enable-makeg was given.
10748 if test "${enable_makeg+set}" = set; then :
10749 enableval=$enable_makeg; BUILD_MAKEG="$enableval"
10754 if test "x$BUILD_MAKEG" = xyes; then
10756 BUILD_MAKEG_FALSE='#'
10758 BUILD_MAKEG_TRUE='#'
10763 # Check whether --enable-xmkmf was given.
10764 if test "${enable_xmkmf+set}" = set; then :
10765 enableval=$enable_xmkmf; BUILD_XMKMF="$enableval"
10770 if test "x$BUILD_XMKMF" = xyes; then
10772 BUILD_XMKMF_FALSE='#'
10774 BUILD_XMKMF_TRUE='#'
10779 # Check whether --enable-ccmakedep was given.
10780 if test "${enable_ccmakedep+set}" = set; then :
10781 enableval=$enable_ccmakedep; BUILD_CCMAKEDEP="$enableval"
10783 BUILD_CCMAKEDEP=yes
10786 if test "x$BUILD_CCMAKEDEP" = xyes; then
10787 BUILD_CCMAKEDEP_TRUE=
10788 BUILD_CCMAKEDEP_FALSE='#'
10790 BUILD_CCMAKEDEP_TRUE='#'
10791 BUILD_CCMAKEDEP_FALSE=
10795 # Check whether --enable-mergelib was given.
10796 if test "${enable_mergelib+set}" = set; then :
10797 enableval=$enable_mergelib; BUILD_MERGELIB="$enableval"
10802 if test "x$BUILD_MERGELIB" = xyes; then
10803 BUILD_MERGELIB_TRUE=
10804 BUILD_MERGELIB_FALSE='#'
10806 BUILD_MERGELIB_TRUE='#'
10807 BUILD_MERGELIB_FALSE=
10811 # Check whether --enable-mkdirhier was given.
10812 if test "${enable_mkdirhier+set}" = set; then :
10813 enableval=$enable_mkdirhier; BUILD_MKDIRHIER="$enableval"
10815 BUILD_MKDIRHIER=yes
10818 if test "x$BUILD_MKDIRHIER" = xyes; then
10819 BUILD_MKDIRHIER_TRUE=
10820 BUILD_MKDIRHIER_FALSE='#'
10822 BUILD_MKDIRHIER_TRUE='#'
10823 BUILD_MKDIRHIER_FALSE=
10827 # Check whether --enable-cleanlinks was given.
10828 if test "${enable_cleanlinks+set}" = set; then :
10829 enableval=$enable_cleanlinks; BUILD_CLEANLINKS="$enableval"
10831 BUILD_CLEANLINKS=yes
10834 if test "x$BUILD_CLEANLINKS" = xyes; then
10835 BUILD_CLEANLINKS_TRUE=
10836 BUILD_CLEANLINKS_FALSE='#'
10838 BUILD_CLEANLINKS_TRUE='#'
10839 BUILD_CLEANLINKS_FALSE=
10843 # Check whether --enable-mkhtmlindex was given.
10844 if test "${enable_mkhtmlindex+set}" = set; then :
10845 enableval=$enable_mkhtmlindex; BUILD_MKHTMLINDEX="$enableval"
10847 BUILD_MKHTMLINDEX=yes
10850 if test "x$BUILD_MKHTMLINDEX" = xyes; then
10851 BUILD_MKHTMLINDEX_TRUE=
10852 BUILD_MKHTMLINDEX_FALSE='#'
10854 BUILD_MKHTMLINDEX_TRUE='#'
10855 BUILD_MKHTMLINDEX_FALSE=
10859 # Checks for pkg-config packages
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPROTO" >&5
10863 $as_echo_n "checking for XPROTO... " >&6; }
10865 if test -n "$XPROTO_CFLAGS"; then
10866 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS"
10867 elif test -n "$PKG_CONFIG"; then
10868 if test -n "$PKG_CONFIG" && \
10869 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10870 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10873 test $ac_status = 0; }; then
10874 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
10881 if test -n "$XPROTO_LIBS"; then
10882 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS"
10883 elif test -n "$PKG_CONFIG"; then
10884 if test -n "$PKG_CONFIG" && \
10885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10886 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10889 test $ac_status = 0; }; then
10890 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
10900 if test $pkg_failed = yes; then
10902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10903 _pkg_short_errors_supported=yes
10905 _pkg_short_errors_supported=no
10907 if test $_pkg_short_errors_supported = yes; then
10908 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
10910 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
10912 # Put the nasty error message in config.log where it belongs
10913 echo "$XPROTO_PKG_ERRORS" >&5
10915 as_fn_error $? "Package requirements (xproto) were not met:
10919 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10920 installed software in a non-standard prefix.
10922 Alternatively, you may set the environment variables XPROTO_CFLAGS
10923 and XPROTO_LIBS to avoid the need to call pkg-config.
10924 See the pkg-config man page for more details.
10926 elif test $pkg_failed = untried; then
10927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10929 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10930 is in your PATH or set the PKG_CONFIG environment variable to the full
10931 path to pkg-config.
10933 Alternatively, you may set the environment variables XPROTO_CFLAGS
10934 and XPROTO_LIBS to avoid the need to call pkg-config.
10935 See the pkg-config man page for more details.
10937 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10938 See \`config.log' for more details" "$LINENO" 5; }
10940 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS
10941 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10943 $as_echo "yes" >&6; }
10947 ac_config_files="$ac_config_files Makefile"
10949 cat >confcache <<\_ACEOF
10950 # This file is a shell script that caches the results of configure
10951 # tests run on this system so they can be shared between configure
10952 # scripts and configure runs, see configure's option --config-cache.
10953 # It is not useful on other systems. If it contains results you don't
10954 # want to keep, you may remove or edit it.
10956 # config.status only pays attention to the cache file if you give it
10957 # the --recheck option to rerun configure.
10959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10961 # following values.
10965 # The following way of writing the cache mishandles newlines in values,
10966 # but we know of no workaround that is simple, portable, and efficient.
10967 # So, we kill variables containing newlines.
10968 # Ultrix sh set writes to stderr and can't be redirected directly,
10969 # and sets the high bit in the cache file unless we assign to the vars.
10971 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10972 eval ac_val=\$$ac_var
10976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10980 _ | IFS | as_nl) ;; #(
10981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10982 *) { eval $ac_var=; unset $ac_var;} ;;
10988 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10989 *${as_nl}ac_space=\ *)
10990 # `set' does not quote correctly, so add quotes: double-quote
10991 # substitution turns \\\\ into \\, and sed turns \\ into \.
10994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10997 # `set' quotes correctly as required by POSIX, so do not add quotes.
10998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11012 if test -w "$cache_file"; then
11013 if test "x$cache_file" != "x/dev/null"; then
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11015 $as_echo "$as_me: updating cache $cache_file" >&6;}
11016 if test ! -f "$cache_file" || test -h "$cache_file"; then
11017 cat confcache >"$cache_file"
11019 case $cache_file in #(
11021 mv -f confcache "$cache_file"$$ &&
11022 mv -f "$cache_file"$$ "$cache_file" ;; #(
11024 mv -f confcache "$cache_file" ;;
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11030 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11036 # Let make expand exec_prefix.
11037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11039 DEFS=-DHAVE_CONFIG_H
11044 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11045 # 1. Remove the extension, and $U if already installed.
11046 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11047 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11048 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11049 # will be set to the directory where LIBOBJS objects are built.
11050 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11051 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11053 LIBOBJS=$ac_libobjs
11055 LTLIBOBJS=$ac_ltlibobjs
11058 if test -n "$EXEEXT"; then
11060 am__EXEEXT_FALSE='#'
11062 am__EXEEXT_TRUE='#'
11066 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11067 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11070 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11071 as_fn_error $? "conditional \"AMDEP\" was never defined.
11072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11074 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11075 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11078 if test -z "${HAS_PERL_TRUE}" && test -z "${HAS_PERL_FALSE}"; then
11079 as_fn_error $? "conditional \"HAS_PERL\" was never defined.
11080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11082 if test -z "${BUILD_REVPATH_TRUE}" && test -z "${BUILD_REVPATH_FALSE}"; then
11083 as_fn_error $? "conditional \"BUILD_REVPATH\" was never defined.
11084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11086 if test -z "${BUILD_MAKEG_TRUE}" && test -z "${BUILD_MAKEG_FALSE}"; then
11087 as_fn_error $? "conditional \"BUILD_MAKEG\" was never defined.
11088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11090 if test -z "${BUILD_XMKMF_TRUE}" && test -z "${BUILD_XMKMF_FALSE}"; then
11091 as_fn_error $? "conditional \"BUILD_XMKMF\" was never defined.
11092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11094 if test -z "${BUILD_CCMAKEDEP_TRUE}" && test -z "${BUILD_CCMAKEDEP_FALSE}"; then
11095 as_fn_error $? "conditional \"BUILD_CCMAKEDEP\" was never defined.
11096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11098 if test -z "${BUILD_MERGELIB_TRUE}" && test -z "${BUILD_MERGELIB_FALSE}"; then
11099 as_fn_error $? "conditional \"BUILD_MERGELIB\" was never defined.
11100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11102 if test -z "${BUILD_MKDIRHIER_TRUE}" && test -z "${BUILD_MKDIRHIER_FALSE}"; then
11103 as_fn_error $? "conditional \"BUILD_MKDIRHIER\" was never defined.
11104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11106 if test -z "${BUILD_CLEANLINKS_TRUE}" && test -z "${BUILD_CLEANLINKS_FALSE}"; then
11107 as_fn_error $? "conditional \"BUILD_CLEANLINKS\" was never defined.
11108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11110 if test -z "${BUILD_MKHTMLINDEX_TRUE}" && test -z "${BUILD_MKHTMLINDEX_FALSE}"; then
11111 as_fn_error $? "conditional \"BUILD_MKHTMLINDEX\" was never defined.
11112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11115 : "${CONFIG_STATUS=./config.status}"
11117 ac_clean_files_save=$ac_clean_files
11118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11122 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11124 # Generated by $as_me.
11125 # Run this file to recreate the current configuration.
11126 # Compiler output produced by configure, useful for debugging
11127 # configure, is in config.log if it exists.
11130 ac_cs_recheck=false
11133 SHELL=\${CONFIG_SHELL-$SHELL}
11136 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11137 ## -------------------- ##
11138 ## M4sh Initialization. ##
11139 ## -------------------- ##
11141 # Be more Bourne compatible
11142 DUALCASE=1; export DUALCASE # for MKS sh
11143 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11146 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11147 # is contrary to our usage. Disable this feature.
11148 alias -g '${1+"$@"}'='"$@"'
11149 setopt NO_GLOB_SUBST
11151 case `(set -o) 2>/dev/null` in #(
11163 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11164 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11165 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11166 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11167 # Prefer a ksh shell builtin over an external printf program on Solaris,
11168 # but without wasting forks for bash or zsh.
11169 if test -z "$BASH_VERSION$ZSH_VERSION" \
11170 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11171 as_echo='print -r --'
11172 as_echo_n='print -rn --'
11173 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11174 as_echo='printf %s\n'
11175 as_echo_n='printf %s'
11177 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11178 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11179 as_echo_n='/usr/ucb/echo -n'
11181 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11182 as_echo_n_body='eval
11186 expr "X$arg" : "X\\(.*\\)$as_nl";
11187 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11189 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11191 export as_echo_n_body
11192 as_echo_n='sh -c $as_echo_n_body as_echo'
11194 export as_echo_body
11195 as_echo='sh -c $as_echo_body as_echo'
11198 # The user is always right.
11199 if test "${PATH_SEPARATOR+set}" != set; then
11201 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11202 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11209 # We need space, tab and new line, in precisely that order. Quoting is
11210 # there to prevent editors from complaining about space-tab.
11211 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11212 # splitting by setting IFS to empty value.)
11215 # Find who we are. Look in the path if we contain no directory separator.
11218 *[\\/]* ) as_myself=$0 ;;
11219 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11223 test -z "$as_dir" && as_dir=.
11224 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11230 # We did not find ourselves, most probably we were run as `sh COMMAND'
11231 # in which case we are not to be found in the path.
11232 if test "x$as_myself" = x; then
11235 if test ! -f "$as_myself"; then
11236 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11240 # Unset variables that we do not need and which cause bugs (e.g. in
11241 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11242 # suppresses any "Segmentation fault" message there. '((' could
11243 # trigger a bug in pdksh 5.2.14.
11244 for as_var in BASH_ENV ENV MAIL MAILPATH
11245 do eval test x\${$as_var+set} = xset \
11246 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11259 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11262 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11263 # ----------------------------------------
11264 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11265 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11266 # script with STATUS, using 1 if that was 0.
11269 as_status=$1; test $as_status -eq 0 && as_status=1
11271 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11272 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11274 $as_echo "$as_me: error: $2" >&2
11275 as_fn_exit $as_status
11279 # as_fn_set_status STATUS
11280 # -----------------------
11281 # Set $? to STATUS, without forking.
11282 as_fn_set_status ()
11285 } # as_fn_set_status
11287 # as_fn_exit STATUS
11288 # -----------------
11289 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11293 as_fn_set_status $1
11299 # Portably unset VAR.
11302 { eval $1=; unset $1;}
11304 as_unset=as_fn_unset
11305 # as_fn_append VAR VALUE
11306 # ----------------------
11307 # Append the text in VALUE to the end of the definition contained in VAR. Take
11308 # advantage of any shell optimizations that allow amortized linear growth over
11309 # repeated appends, instead of the typical quadratic growth present in naive
11311 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11312 eval 'as_fn_append ()
11323 # as_fn_arith ARG...
11324 # ------------------
11325 # Perform arithmetic evaluation on the ARGs, and store the result in the
11326 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11327 # must be portable across $(()) and expr.
11328 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11329 eval 'as_fn_arith ()
11336 as_val=`expr "$@" || test $? -eq 1`
11341 if expr a : '\(a\)' >/dev/null 2>&1 &&
11342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11348 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11349 as_basename=basename
11354 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11360 as_me=`$as_basename -- "$0" ||
11361 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11362 X"$0" : 'X\(//\)$' \| \
11363 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11365 sed '/^.*\/\([^/][^/]*\)\/*$/{
11379 # Avoid depending upon Character Ranges.
11380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11383 as_cr_digits='0123456789'
11384 as_cr_alnum=$as_cr_Letters$as_cr_digits
11386 ECHO_C= ECHO_N= ECHO_T=
11387 case `echo -n x` in #(((((
11389 case `echo 'xy\c'` in
11390 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11392 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11399 rm -f conf$$ conf$$.exe conf$$.file
11400 if test -d conf$$.dir; then
11401 rm -f conf$$.dir/conf$$.file
11404 mkdir conf$$.dir 2>/dev/null
11406 if (echo >conf$$.file) 2>/dev/null; then
11407 if ln -s conf$$.file conf$$ 2>/dev/null; then
11409 # ... but there are two gotchas:
11410 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11411 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11412 # In both cases, we have to default to `cp -p'.
11413 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11415 elif ln conf$$.file conf$$ 2>/dev/null; then
11423 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11424 rmdir conf$$.dir 2>/dev/null
11429 # Create "$as_dir" as a directory, including parents if necessary.
11434 -*) as_dir=./$as_dir;;
11436 test -d "$as_dir" || eval $as_mkdir_p || {
11440 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11441 *) as_qdir=$as_dir;;
11443 as_dirs="'$as_qdir' $as_dirs"
11444 as_dir=`$as_dirname -- "$as_dir" ||
11445 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11446 X"$as_dir" : 'X\(//\)[^/]' \| \
11447 X"$as_dir" : 'X\(//\)$' \| \
11448 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11449 $as_echo X"$as_dir" |
11450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11454 /^X\(\/\/\)[^/].*/{
11467 test -d "$as_dir" && break
11469 test -z "$as_dirs" || eval "mkdir $as_dirs"
11470 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11474 if mkdir -p . 2>/dev/null; then
11475 as_mkdir_p='mkdir -p "$as_dir"'
11477 test -d ./-p && rmdir ./-p
11481 if test -x / >/dev/null 2>&1; then
11482 as_test_x='test -x'
11484 if ls -dL / >/dev/null 2>&1; then
11491 if test -d "$1"; then
11497 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11498 ???[sx]*):;;*)false;;esac;fi
11502 as_executable_p=$as_test_x
11504 # Sed expression to map a string onto a valid CPP name.
11505 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11507 # Sed expression to map a string onto a valid variable name.
11508 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11512 ## ----------------------------------- ##
11513 ## Main body of $CONFIG_STATUS script. ##
11514 ## ----------------------------------- ##
11516 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11519 # Save the log message, to keep $0 and so on meaningful, and to
11520 # report actual input values of CONFIG_FILES etc. instead of their
11521 # values after options handling.
11523 This file was extended by imake $as_me 1.0.5, which was
11524 generated by GNU Autoconf 2.68. Invocation command line was
11526 CONFIG_FILES = $CONFIG_FILES
11527 CONFIG_HEADERS = $CONFIG_HEADERS
11528 CONFIG_LINKS = $CONFIG_LINKS
11529 CONFIG_COMMANDS = $CONFIG_COMMANDS
11532 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11537 case $ac_config_files in *"
11538 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11541 case $ac_config_headers in *"
11542 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11547 # Files that config.status was made for.
11548 config_files="$ac_config_files"
11549 config_headers="$ac_config_headers"
11550 config_commands="$ac_config_commands"
11554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11556 \`$as_me' instantiates files and other configuration actions
11557 from templates according to the current configuration. Unless the files
11558 and actions are specified as TAGs, all are instantiated by default.
11560 Usage: $0 [OPTION]... [TAG]...
11562 -h, --help print this help, then exit
11563 -V, --version print version number and configuration settings, then exit
11564 --config print configuration, then exit
11565 -q, --quiet, --silent
11566 do not print progress messages
11567 -d, --debug don't remove temporary files
11568 --recheck update $as_me by reconfiguring in the same conditions
11569 --file=FILE[:TEMPLATE]
11570 instantiate the configuration file FILE
11571 --header=FILE[:TEMPLATE]
11572 instantiate the configuration header FILE
11574 Configuration files:
11577 Configuration headers:
11580 Configuration commands:
11583 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11587 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11589 imake config.status 1.0.5
11590 configured by $0, generated by GNU Autoconf 2.68,
11591 with options \\"\$ac_cs_config\\"
11593 Copyright (C) 2010 Free Software Foundation, Inc.
11594 This config.status script is free software; the Free Software Foundation
11595 gives unlimited permission to copy, distribute and modify it."
11602 test -n "\$AWK" || AWK=awk
11605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11606 # The default lists apply if the user does not specify any file.
11612 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11613 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11617 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11629 # Handling of the options.
11630 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11632 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11633 $as_echo "$ac_cs_version"; exit ;;
11634 --config | --confi | --conf | --con | --co | --c )
11635 $as_echo "$ac_cs_config"; exit ;;
11636 --debug | --debu | --deb | --de | --d | -d )
11638 --file | --fil | --fi | --f )
11641 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11642 '') as_fn_error $? "missing file argument" ;;
11644 as_fn_append CONFIG_FILES " '$ac_optarg'"
11645 ac_need_defaults=false;;
11646 --header | --heade | --head | --hea )
11649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11651 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11652 ac_need_defaults=false;;
11654 # Conflict between --help and --header
11655 as_fn_error $? "ambiguous option: \`$1'
11656 Try \`$0 --help' for more information.";;
11657 --help | --hel | -h )
11658 $as_echo "$ac_cs_usage"; exit ;;
11659 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11660 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11663 # This is an error.
11664 -*) as_fn_error $? "unrecognized option: \`$1'
11665 Try \`$0 --help' for more information." ;;
11667 *) as_fn_append ac_config_targets " $1"
11668 ac_need_defaults=false ;;
11674 ac_configure_extra_args=
11676 if $ac_cs_silent; then
11678 ac_configure_extra_args="$ac_configure_extra_args --silent"
11682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11683 if \$ac_cs_recheck; then
11684 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11686 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11687 CONFIG_SHELL='$SHELL'
11688 export CONFIG_SHELL
11693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11698 ## Running $as_me. ##
11704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11708 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11714 # Handling of arguments.
11715 for ac_config_target in $ac_config_targets
11717 case $ac_config_target in
11718 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11719 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11720 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11722 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11727 # If the user did not use the arguments to specify the items to instantiate,
11728 # then the envvar interface is used. Set only those that are not.
11729 # We use the long form for the default assignment because of an extremely
11730 # bizarre bug on SunOS 4.1.3.
11731 if $ac_need_defaults; then
11732 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11733 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11734 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11737 # Have a temporary directory for convenience. Make it in the build tree
11738 # simply because there is no reason against having it here, and in addition,
11739 # creating and moving files from /tmp can sometimes cause problems.
11740 # Hook for its removal unless debugging.
11741 # Note that there is a small window in which the directory will not be cleaned:
11742 # after its creation but before its name has been assigned to `$tmp'.
11746 trap 'exit_status=$?
11747 : "${ac_tmp:=$tmp}"
11748 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11750 trap 'as_fn_exit 1' 1 2 13 15
11752 # Create a (secure) tmp directory for tmp files.
11755 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11759 tmp=./conf$$-$RANDOM
11760 (umask 077 && mkdir "$tmp")
11761 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11764 # Set up the scripts for CONFIG_FILES section.
11765 # No need to generate them if there are no CONFIG_FILES.
11766 # This happens for instance with `./config.status config.h'.
11767 if test -n "$CONFIG_FILES"; then
11770 ac_cr=`echo X | tr X '\015'`
11771 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11772 # But we know of no other shell where ac_cr would be empty at this
11773 # point, so we can use a bashism as a fallback.
11774 if test "x$ac_cr" = x; then
11775 eval ac_cr=\$\'\\r\'
11777 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11778 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11781 ac_cs_awk_cr=$ac_cr
11784 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11789 echo "cat >conf$$subs.awk <<_ACEOF" &&
11790 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11792 } >conf$$subs.sh ||
11793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11794 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11796 for ac_last_try in false false false false false :; do
11797 . ./conf$$subs.sh ||
11798 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11800 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11801 if test $ac_delim_n = $ac_delim_num; then
11803 elif $ac_last_try; then
11804 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11806 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11809 rm -f conf$$subs.sh
11811 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11812 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11816 s/^/S["/; s/!.*/"]=/
11826 s/\(.\{148\}\)..*/\1/
11828 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11840 s/\(.\{148\}\)..*/\1/
11842 s/["\\]/\\&/g; s/^/"/; s/$/"/
11846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11851 ' <conf$$subs.awk | sed '
11856 ' >>$CONFIG_STATUS || ac_write_fail=1
11857 rm -f conf$$subs.awk
11858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11860 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11861 for (key in S) S_is_set[key] = 1
11867 nfields = split(line, field, "@")
11869 len = length(field[1])
11870 for (i = 2; i < nfields; i++) {
11872 keylen = length(key)
11873 if (S_is_set[key]) {
11875 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11876 len += length(value) + length(field[++i])
11887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11888 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11889 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11892 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11893 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11896 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11897 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11898 # trailing colons and then remove the whole line if VPATH becomes empty
11899 # (actually we leave an empty line to preserve line numbers).
11900 if test "x$srcdir" = x.; then
11901 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11920 fi # test -n "$CONFIG_FILES"
11922 # Set up the scripts for CONFIG_HEADERS section.
11923 # No need to generate them if there are no CONFIG_HEADERS.
11924 # This happens for instance with `./config.status Makefile'.
11925 if test -n "$CONFIG_HEADERS"; then
11926 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11930 # Transform confdefs.h into an awk script `defines.awk', embedded as
11931 # here-document in config.status, that substitutes the proper values into
11932 # config.h.in to produce config.h.
11934 # Create a delimiter string that does not exist in confdefs.h, to ease
11935 # handling of long lines.
11937 for ac_last_try in false false :; do
11938 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11939 if test -z "$ac_tt"; then
11941 elif $ac_last_try; then
11942 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11944 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11948 # For the awk script, D is an array of macro values keyed by name,
11949 # likewise P contains macro parameters if any. Preserve backslash
11950 # newline sequences.
11952 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11954 s/.\{148\}/&'"$ac_delim"'/g
11957 s/^[ ]*#[ ]*define[ ][ ]*/ /
11964 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11966 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11970 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11971 D["\1"]=" \3\\\\\\n"\\/p
11973 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11978 s/.\{148\}/&'"$ac_delim"'/g
11983 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11986 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11988 ' <confdefs.h | sed '
11989 s/'"$ac_delim"'/"\\\
11990 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11993 for (key in D) D_is_set[key] = 1
11996 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11998 split(line, arg, " ")
11999 if (arg[1] == "#") {
12003 defundef = substr(arg[1], 2)
12006 split(mac1, mac2, "(") #)
12008 prefix = substr(line, 1, index(line, defundef) - 1)
12009 if (D_is_set[macro]) {
12010 # Preserve the white space surrounding the "#".
12011 print prefix "define", macro P[macro] D[macro]
12014 # Replace #undef with comments. This is necessary, for example,
12015 # in the case of _POSIX_SOURCE, which is predefined and required
12016 # on some systems where configure will not decide to define it.
12017 if (defundef == "undef") {
12018 print "/*", prefix defundef, macro, "*/"
12026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12027 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12028 fi # test -n "$CONFIG_HEADERS"
12031 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12036 :[FHLC]) ac_mode=$ac_tag; continue;;
12038 case $ac_mode$ac_tag in
12040 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12041 :[FH]-) ac_tag=-:-;;
12042 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12059 -) ac_f="$ac_tmp/stdin";;
12060 *) # Look for the file first in the build tree, then in the source tree
12061 # (if the path is not absolute). The absolute path cannot be DOS-style,
12062 # because $ac_f cannot contain `:'.
12066 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12068 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12070 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12071 as_fn_append ac_file_inputs " '$ac_f'"
12074 # Let's still pretend it is `configure' which instantiates (i.e., don't
12075 # use $as_me), people would be surprised to read:
12076 # /* config.h. Generated by config.status. */
12077 configure_input='Generated from '`
12078 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12080 if test x"$ac_file" != x-; then
12081 configure_input="$ac_file. $configure_input"
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12083 $as_echo "$as_me: creating $ac_file" >&6;}
12085 # Neutralize special characters interpreted by sed in replacement strings.
12086 case $configure_input in #(
12087 *\&* | *\|* | *\\* )
12088 ac_sed_conf_input=`$as_echo "$configure_input" |
12089 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12090 *) ac_sed_conf_input=$configure_input;;
12094 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12100 ac_dir=`$as_dirname -- "$ac_file" ||
12101 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12102 X"$ac_file" : 'X\(//\)[^/]' \| \
12103 X"$ac_file" : 'X\(//\)$' \| \
12104 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12105 $as_echo X"$ac_file" |
12106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12110 /^X\(\/\/\)[^/].*/{
12123 as_dir="$ac_dir"; as_fn_mkdir_p
12127 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12129 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12130 # A ".." for each directory in $ac_dir_suffix.
12131 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12132 case $ac_top_builddir_sub in
12133 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12134 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12137 ac_abs_top_builddir=$ac_pwd
12138 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12139 # for backward compatibility:
12140 ac_top_builddir=$ac_top_build_prefix
12143 .) # We are building in place.
12145 ac_top_srcdir=$ac_top_builddir_sub
12146 ac_abs_top_srcdir=$ac_pwd ;;
12147 [\\/]* | ?:[\\/]* ) # Absolute name.
12148 ac_srcdir=$srcdir$ac_dir_suffix;
12149 ac_top_srcdir=$srcdir
12150 ac_abs_top_srcdir=$srcdir ;;
12151 *) # Relative name.
12152 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12153 ac_top_srcdir=$ac_top_build_prefix$srcdir
12154 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12156 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12166 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12167 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12169 ac_MKDIR_P=$MKDIR_P
12171 [\\/$]* | ?:[\\/]* ) ;;
12172 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12176 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12177 # If the template does not know about datarootdir, expand it.
12178 # FIXME: This hack should be removed a few years after 2.60.
12179 ac_datarootdir_hack=; ac_datarootdir_seen=
12190 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12191 *datarootdir*) ac_datarootdir_seen=yes;;
12192 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12194 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12197 ac_datarootdir_hack='
12198 s&@datadir@&$datadir&g
12199 s&@docdir@&$docdir&g
12200 s&@infodir@&$infodir&g
12201 s&@localedir@&$localedir&g
12202 s&@mandir@&$mandir&g
12203 s&\\\${datarootdir}&$datarootdir&g' ;;
12207 # Neutralize VPATH when `$srcdir' = `.'.
12208 # Shell code in configure.ac might set extrasub.
12209 # FIXME: do we really want to maintain this feature?
12210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12211 ac_sed_extra="$ac_vpsub
12214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12217 s|@configure_input@|$ac_sed_conf_input|;t t
12218 s&@top_builddir@&$ac_top_builddir_sub&;t t
12219 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12220 s&@srcdir@&$ac_srcdir&;t t
12221 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12222 s&@top_srcdir@&$ac_top_srcdir&;t t
12223 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12224 s&@builddir@&$ac_builddir&;t t
12225 s&@abs_builddir@&$ac_abs_builddir&;t t
12226 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12227 s&@INSTALL@&$ac_INSTALL&;t t
12228 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12229 $ac_datarootdir_hack
12231 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12232 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12234 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12235 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12236 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12237 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12239 which seems to be undefined. Please make sure it is defined" >&5
12240 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12241 which seems to be undefined. Please make sure it is defined" >&2;}
12243 rm -f "$ac_tmp/stdin"
12245 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12246 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12248 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12254 if test x"$ac_file" != x-; then
12256 $as_echo "/* $configure_input */" \
12257 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12258 } >"$ac_tmp/config.h" \
12259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12260 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12262 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12265 mv "$ac_tmp/config.h" "$ac_file" \
12266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12269 $as_echo "/* $configure_input */" \
12270 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12271 || as_fn_error $? "could not create -" "$LINENO" 5
12273 # Compute "$ac_file"'s index in $config_headers.
12276 for _am_header in $config_headers :; do
12277 case $_am_header in
12278 $_am_arg | $_am_arg:* )
12281 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12284 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12285 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12286 X"$_am_arg" : 'X\(//\)[^/]' \| \
12287 X"$_am_arg" : 'X\(//\)$' \| \
12288 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12289 $as_echo X"$_am_arg" |
12290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12294 /^X\(\/\/\)[^/].*/{
12306 s/.*/./; q'`/stamp-h$_am_stamp_count
12309 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12310 $as_echo "$as_me: executing $ac_file commands" >&6;}
12315 case $ac_file$ac_mode in
12316 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12317 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12318 # are listed without --file. Let's play safe and only enable the eval
12319 # if we detect the quoting.
12320 case $CONFIG_FILES in
12321 *\'*) eval set x "$CONFIG_FILES" ;;
12322 *) set x $CONFIG_FILES ;;
12327 # Strip MF so we end up with the name of the file.
12328 mf=`echo "$mf" | sed -e 's/:.*$//'`
12329 # Check whether this is an Automake generated Makefile or not.
12330 # We used to match only the files named `Makefile.in', but
12331 # some people rename them; so instead we look at the file content.
12332 # Grep'ing the first line is not enough: some people post-process
12333 # each Makefile.in and add a new line on top of each file to say so.
12334 # Grep'ing the whole file is not good either: AIX grep has a line
12335 # limit of 2048, but all sed's we know have understand at least 4000.
12336 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12337 dirpart=`$as_dirname -- "$mf" ||
12338 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12339 X"$mf" : 'X\(//\)[^/]' \| \
12340 X"$mf" : 'X\(//\)$' \| \
12341 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12347 /^X\(\/\/\)[^/].*/{
12363 # Extract the definition of DEPDIR, am__include, and am__quote
12364 # from the Makefile without running `make'.
12365 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12366 test -z "$DEPDIR" && continue
12367 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12368 test -z "am__include" && continue
12369 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12370 # When using ansi2knr, U may be empty or an underscore; expand it
12371 U=`sed -n 's/^U = //p' < "$mf"`
12372 # Find all dependency output files, they are included files with
12373 # $(DEPDIR) in their names. We invoke sed twice because it is the
12374 # simplest approach to changing $(DEPDIR) to its actual value in the
12376 for file in `sed -n "
12377 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12378 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12379 # Make sure the directory exists.
12380 test -f "$dirpart/$file" && continue
12381 fdir=`$as_dirname -- "$file" ||
12382 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12383 X"$file" : 'X\(//\)[^/]' \| \
12384 X"$file" : 'X\(//\)$' \| \
12385 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12386 $as_echo X"$file" |
12387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12391 /^X\(\/\/\)[^/].*/{
12404 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12405 # echo "creating $dirpart/$file"
12406 echo '# dummy' > "$dirpart/$file"
12418 ac_clean_files=$ac_clean_files_save
12420 test $ac_write_fail = 0 ||
12421 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12424 # configure is writing to config.log, and then calls config.status.
12425 # config.status does its own redirection, appending to config.log.
12426 # Unfortunately, on DOS this fails, as config.log is still kept open
12427 # by configure, so config.status won't be able to write to it; its
12428 # output is simply discarded. So we exec the FD to /dev/null,
12429 # effectively closing config.log, so it can be properly (re)opened and
12430 # appended to by config.status. When coming back to configure, we
12431 # need to make the FD available again.
12432 if test "$no_create" != yes; then
12434 ac_config_status_args=
12435 test "$silent" = yes &&
12436 ac_config_status_args="$ac_config_status_args --quiet"
12438 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12440 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12441 # would make configure fail if this is the last instruction.
12442 $ac_cs_success || as_fn_exit 1
12444 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12446 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}