2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for mkfontdir 1.0.7.
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir=.
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 *v*x* | *x*v* ) as_opts=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
252 SHELL=${CONFIG_SHELL-/bin/sh}
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
263 # Portably unset VAR.
266 { eval $1=; unset $1;}
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290 # Create "$as_dir" as a directory, including parents if necessary.
295 -*) as_dir=./$as_dir;;
297 test -d "$as_dir" || eval $as_mkdir_p || {
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328 test -d "$as_dir" && break
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366 as_val=`expr "$@" || test $? -eq 1`
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
378 as_status=$1; test $as_status -eq 0 && as_status=1
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
460 # Exit status is that of the last command.
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
482 mkdir conf$$.dir 2>/dev/null
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
493 elif ln conf$$.file conf$$ 2>/dev/null; then
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
507 test -d ./-p && rmdir ./-p
511 if test -x / >/dev/null 2>&1; then
514 if ls -dL / >/dev/null 2>&1; then
521 if test -d "$1"; then
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
532 as_executable_p=$as_test_x
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 test -n "$DJDIR" || exec 7<&0 </dev/null
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552 ac_default_prefix=/usr/local
554 ac_config_libobj_dir=.
561 # Identity of this package.
562 PACKAGE_NAME='mkfontdir'
563 PACKAGE_TARNAME='mkfontdir'
564 PACKAGE_VERSION='1.0.7'
565 PACKAGE_STRING='mkfontdir 1.0.7'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
569 ac_unique_file="Makefile.am"
570 # Factoring default headers for most tests.
571 ac_includes_default="\
573 #ifdef HAVE_SYS_TYPES_H
574 # include <sys/types.h>
576 #ifdef HAVE_SYS_STAT_H
577 # include <sys/stat.h>
583 # ifdef HAVE_STDLIB_H
588 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
593 #ifdef HAVE_STRINGS_H
594 # include <strings.h>
596 #ifdef HAVE_INTTYPES_H
597 # include <inttypes.h>
606 ac_subst_vars='am__EXEEXT_FALSE
661 MAINTAINER_MODE_FALSE
671 INSTALL_STRIP_PROGRAM
713 program_transform_name
726 enable_option_checking
727 enable_maintainer_mode
728 enable_dependency_tracking
729 enable_selective_werror
730 enable_strict_compilation
733 ac_precious_vars='build_alias
745 # Initialize some variables set by options.
747 ac_init_version=false
748 ac_unrecognized_opts=
750 # The variables have the same names as the options, with
751 # dashes changed to underlines.
759 program_transform_name=s,x,x,
767 # Installation directory options.
768 # These are left unexpanded so users can "make install exec_prefix=/foo"
769 # and all the variables that are supposed to be based on exec_prefix
770 # by default will actually change.
771 # Use braces instead of parens because sh, perl, etc. also accept them.
772 # (The list follows the same order as the GNU Coding Standards.)
773 bindir='${exec_prefix}/bin'
774 sbindir='${exec_prefix}/sbin'
775 libexecdir='${exec_prefix}/libexec'
776 datarootdir='${prefix}/share'
777 datadir='${datarootdir}'
778 sysconfdir='${prefix}/etc'
779 sharedstatedir='${prefix}/com'
780 localstatedir='${prefix}/var'
781 includedir='${prefix}/include'
782 oldincludedir='/usr/include'
783 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
784 infodir='${datarootdir}/info'
789 libdir='${exec_prefix}/lib'
790 localedir='${datarootdir}/locale'
791 mandir='${datarootdir}/man'
797 # If the previous option needs an argument, assign it.
798 if test -n "$ac_prev"; then
799 eval $ac_prev=\$ac_option
805 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
816 -bindir | --bindir | --bindi | --bind | --bin | --bi)
818 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
821 -build | --build | --buil | --bui | --bu)
822 ac_prev=build_alias ;;
823 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
824 build_alias=$ac_optarg ;;
826 -cache-file | --cache-file | --cache-fil | --cache-fi \
827 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
828 ac_prev=cache_file ;;
829 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
830 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
831 cache_file=$ac_optarg ;;
834 cache_file=config.cache ;;
836 -datadir | --datadir | --datadi | --datad)
838 -datadir=* | --datadir=* | --datadi=* | --datad=*)
839 datadir=$ac_optarg ;;
841 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
842 | --dataroo | --dataro | --datar)
843 ac_prev=datarootdir ;;
844 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
845 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
846 datarootdir=$ac_optarg ;;
848 -disable-* | --disable-*)
849 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
852 as_fn_error $? "invalid feature name: $ac_useropt"
853 ac_useropt_orig=$ac_useropt
854 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
855 case $ac_user_opts in
859 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
860 ac_unrecognized_sep=', ';;
862 eval enable_$ac_useropt=no ;;
864 -docdir | --docdir | --docdi | --doc | --do)
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
874 -enable-* | --enable-*)
875 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
878 as_fn_error $? "invalid feature name: $ac_useropt"
879 ac_useropt_orig=$ac_useropt
880 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
881 case $ac_user_opts in
885 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
886 ac_unrecognized_sep=', ';;
888 eval enable_$ac_useropt=\$ac_optarg ;;
890 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
891 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
892 | --exec | --exe | --ex)
893 ac_prev=exec_prefix ;;
894 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
895 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
896 | --exec=* | --exe=* | --ex=*)
897 exec_prefix=$ac_optarg ;;
899 -gas | --gas | --ga | --g)
900 # Obsolete; use --with-gas.
903 -help | --help | --hel | --he | -h)
905 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
906 ac_init_help=recursive ;;
907 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
908 ac_init_help=short ;;
910 -host | --host | --hos | --ho)
911 ac_prev=host_alias ;;
912 -host=* | --host=* | --hos=* | --ho=*)
913 host_alias=$ac_optarg ;;
915 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
917 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
919 htmldir=$ac_optarg ;;
921 -includedir | --includedir | --includedi | --included | --include \
922 | --includ | --inclu | --incl | --inc)
923 ac_prev=includedir ;;
924 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
925 | --includ=* | --inclu=* | --incl=* | --inc=*)
926 includedir=$ac_optarg ;;
928 -infodir | --infodir | --infodi | --infod | --info | --inf)
930 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
931 infodir=$ac_optarg ;;
933 -libdir | --libdir | --libdi | --libd)
935 -libdir=* | --libdir=* | --libdi=* | --libd=*)
938 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
939 | --libexe | --libex | --libe)
940 ac_prev=libexecdir ;;
941 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
942 | --libexe=* | --libex=* | --libe=*)
943 libexecdir=$ac_optarg ;;
945 -localedir | --localedir | --localedi | --localed | --locale)
947 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
948 localedir=$ac_optarg ;;
950 -localstatedir | --localstatedir | --localstatedi | --localstated \
951 | --localstate | --localstat | --localsta | --localst | --locals)
952 ac_prev=localstatedir ;;
953 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
954 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
955 localstatedir=$ac_optarg ;;
957 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
959 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
963 # Obsolete; use --without-fp.
966 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
967 | --no-cr | --no-c | -n)
970 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
971 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
974 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
975 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
976 | --oldin | --oldi | --old | --ol | --o)
977 ac_prev=oldincludedir ;;
978 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
979 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
980 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
981 oldincludedir=$ac_optarg ;;
983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
988 -program-prefix | --program-prefix | --program-prefi | --program-pref \
989 | --program-pre | --program-pr | --program-p)
990 ac_prev=program_prefix ;;
991 -program-prefix=* | --program-prefix=* | --program-prefi=* \
992 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
993 program_prefix=$ac_optarg ;;
995 -program-suffix | --program-suffix | --program-suffi | --program-suff \
996 | --program-suf | --program-su | --program-s)
997 ac_prev=program_suffix ;;
998 -program-suffix=* | --program-suffix=* | --program-suffi=* \
999 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1000 program_suffix=$ac_optarg ;;
1002 -program-transform-name | --program-transform-name \
1003 | --program-transform-nam | --program-transform-na \
1004 | --program-transform-n | --program-transform- \
1005 | --program-transform | --program-transfor \
1006 | --program-transfo | --program-transf \
1007 | --program-trans | --program-tran \
1008 | --progr-tra | --program-tr | --program-t)
1009 ac_prev=program_transform_name ;;
1010 -program-transform-name=* | --program-transform-name=* \
1011 | --program-transform-nam=* | --program-transform-na=* \
1012 | --program-transform-n=* | --program-transform-=* \
1013 | --program-transform=* | --program-transfor=* \
1014 | --program-transfo=* | --program-transf=* \
1015 | --program-trans=* | --program-tran=* \
1016 | --progr-tra=* | --program-tr=* | --program-t=*)
1017 program_transform_name=$ac_optarg ;;
1019 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1021 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1022 pdfdir=$ac_optarg ;;
1024 -psdir | --psdir | --psdi | --psd | --ps)
1026 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1030 | -silent | --silent | --silen | --sile | --sil)
1033 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1035 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1037 sbindir=$ac_optarg ;;
1039 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1040 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1041 | --sharedst | --shareds | --shared | --share | --shar \
1043 ac_prev=sharedstatedir ;;
1044 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1045 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1046 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1048 sharedstatedir=$ac_optarg ;;
1050 -site | --site | --sit)
1052 -site=* | --site=* | --sit=*)
1055 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1057 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1058 srcdir=$ac_optarg ;;
1060 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1061 | --syscon | --sysco | --sysc | --sys | --sy)
1062 ac_prev=sysconfdir ;;
1063 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1064 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1065 sysconfdir=$ac_optarg ;;
1067 -target | --target | --targe | --targ | --tar | --ta | --t)
1068 ac_prev=target_alias ;;
1069 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1070 target_alias=$ac_optarg ;;
1072 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1075 -version | --version | --versio | --versi | --vers | -V)
1076 ac_init_version=: ;;
1079 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 as_fn_error $? "invalid package name: $ac_useropt"
1083 ac_useropt_orig=$ac_useropt
1084 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 case $ac_user_opts in
1089 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1090 ac_unrecognized_sep=', ';;
1092 eval with_$ac_useropt=\$ac_optarg ;;
1094 -without-* | --without-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error $? "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1108 eval with_$ac_useropt=no ;;
1111 # Obsolete; use --with-x.
1114 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1115 | --x-incl | --x-inc | --x-in | --x-i)
1116 ac_prev=x_includes ;;
1117 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1118 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1119 x_includes=$ac_optarg ;;
1121 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1122 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1123 ac_prev=x_libraries ;;
1124 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1125 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1126 x_libraries=$ac_optarg ;;
1128 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1129 Try \`$0 --help' for more information"
1133 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1134 # Reject names that are not valid shell variable names.
1135 case $ac_envvar in #(
1136 '' | [0-9]* | *[!_$as_cr_alnum]* )
1137 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1139 eval $ac_envvar=\$ac_optarg
1140 export $ac_envvar ;;
1143 # FIXME: should be removed in autoconf 3.0.
1144 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1145 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1146 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1147 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153 if test -n "$ac_prev"; then
1154 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1155 as_fn_error $? "missing argument to $ac_option"
1158 if test -n "$ac_unrecognized_opts"; then
1159 case $enable_option_checking in
1161 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1162 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1166 # Check all directory arguments for consistency.
1167 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1168 datadir sysconfdir sharedstatedir localstatedir includedir \
1169 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1170 libdir localedir mandir
1172 eval ac_val=\$$ac_var
1173 # Remove trailing slashes.
1176 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1177 eval $ac_var=\$ac_val;;
1179 # Be sure to have absolute directory names.
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1187 # There might be people who depend on the old broken behavior: `$host'
1188 # used to hold the argument of --host etc.
1189 # FIXME: To remove some day.
1192 target=$target_alias
1194 # FIXME: To remove some day.
1195 if test "x$host_alias" != x; then
1196 if test "x$build_alias" = x; then
1197 cross_compiling=maybe
1198 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1199 If a cross compiler is detected then cross compile mode will be used" >&2
1200 elif test "x$build_alias" != "x$host_alias"; then
1206 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1208 test "$silent" = yes && exec 6>/dev/null
1211 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1212 ac_ls_di=`ls -di .` &&
1213 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1214 as_fn_error $? "working directory cannot be determined"
1215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 as_fn_error $? "pwd does not report name of working directory"
1219 # Find the source files, if location was not specified.
1220 if test -z "$srcdir"; then
1221 ac_srcdir_defaulted=yes
1222 # Try the directory containing this script, then the parent directory.
1223 ac_confdir=`$as_dirname -- "$as_myself" ||
1224 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1225 X"$as_myself" : 'X\(//\)[^/]' \| \
1226 X"$as_myself" : 'X\(//\)$' \| \
1227 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1228 $as_echo X"$as_myself" |
1229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 if test ! -r "$srcdir/$ac_unique_file"; then
1251 ac_srcdir_defaulted=no
1253 if test ! -r "$srcdir/$ac_unique_file"; then
1254 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1255 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1257 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1259 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1271 for ac_var in $ac_precious_vars; do
1272 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273 eval ac_env_${ac_var}_value=\$${ac_var}
1274 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279 # Report the --help message.
1281 if test "$ac_init_help" = "long"; then
1282 # Omit some internal or obsolete options to make the list less imposing.
1283 # This message is too long to be a string in the A/UX 3.1 sh.
1285 \`configure' configures mkfontdir 1.0.7 to adapt to many kinds of systems.
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE. See below for descriptions of some of the useful variables.
1292 Defaults for the options are specified in brackets.
1295 -h, --help display this help and exit
1296 --help=short display options specific to this package
1297 --help=recursive display the short help of all the included packages
1298 -V, --version display version information and exit
1299 -q, --quiet, --silent do not print \`checking ...' messages
1300 --cache-file=FILE cache test results in FILE [disabled]
1301 -C, --config-cache alias for \`--cache-file=config.cache'
1302 -n, --no-create do not create output files
1303 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1305 Installation directories:
1306 --prefix=PREFIX install architecture-independent files in PREFIX
1307 [$ac_default_prefix]
1308 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1316 For better control, use the options below.
1318 Fine tuning of the installation directories:
1319 --bindir=DIR user executables [EPREFIX/bin]
1320 --sbindir=DIR system admin executables [EPREFIX/sbin]
1321 --libexecdir=DIR program executables [EPREFIX/libexec]
1322 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1323 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1324 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1325 --libdir=DIR object code libraries [EPREFIX/lib]
1326 --includedir=DIR C header files [PREFIX/include]
1327 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1328 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1329 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1330 --infodir=DIR info documentation [DATAROOTDIR/info]
1331 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1332 --mandir=DIR man documentation [DATAROOTDIR/man]
1333 --docdir=DIR documentation root [DATAROOTDIR/doc/mkfontdir]
1334 --htmldir=DIR html documentation [DOCDIR]
1335 --dvidir=DIR dvi documentation [DOCDIR]
1336 --pdfdir=DIR pdf documentation [DOCDIR]
1337 --psdir=DIR ps documentation [DOCDIR]
1343 --program-prefix=PREFIX prepend PREFIX to installed program names
1344 --program-suffix=SUFFIX append SUFFIX to installed program names
1345 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 if test -n "$ac_init_help"; then
1354 case $ac_init_help in
1355 short | recursive ) echo "Configuration of mkfontdir 1.0.7:";;
1360 --disable-option-checking ignore unrecognized --enable/--with options
1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1363 --enable-maintainer-mode enable make rules and dependencies not useful
1364 (and sometimes confusing) to the casual installer
1365 --disable-dependency-tracking speeds up one-time build
1366 --enable-dependency-tracking do not reject slow dependency extractors
1367 --disable-selective-werror
1368 Turn off selective compiler errors. (default:
1370 --enable-strict-compilation
1371 Enable all warnings from compiler and make them
1372 errors (default: disabled)
1373 --enable-silent-rules less verbose build output (undo: `make V=1')
1374 --disable-silent-rules verbose build output (undo: `make V=0')
1376 Some influential environment variables:
1377 CC C compiler command
1378 CFLAGS C compiler flags
1379 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1380 nonstandard directory <lib dir>
1381 LIBS libraries to pass to the linker, e.g. -l<library>
1382 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1383 you have headers in a nonstandard directory <include dir>
1385 PKG_CONFIG path to pkg-config utility
1387 Use these variables to override the choices made by `configure' or to help
1388 it to find libraries and programs with nonstandard names/locations.
1390 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" ||
1399 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1420 .) # We are building in place.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1444 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1453 mkfontdir configure 1.0.7
1454 generated by GNU Autoconf 2.68
1456 Copyright (C) 2010 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1463 ## ------------------------ ##
1464 ## Autoconf initialization. ##
1465 ## ------------------------ ##
1467 # ac_fn_c_try_compile LINENO
1468 # --------------------------
1469 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1470 ac_fn_c_try_compile ()
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 rm -f conftest.$ac_objext
1474 if { { ac_try="$ac_compile"
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_compile") 2>conftest.err
1483 if test -s conftest.err; then
1484 grep -v '^ *+' conftest.err >conftest.er1
1485 cat conftest.er1 >&5
1486 mv -f conftest.er1 conftest.err
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } && {
1490 test -z "$ac_c_werror_flag" ||
1491 test ! -s conftest.err
1492 } && test -s conftest.$ac_objext; then :
1495 $as_echo "$as_me: failed program was:" >&5
1496 sed 's/^/| /' conftest.$ac_ext >&5
1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501 as_fn_set_status $ac_retval
1503 } # ac_fn_c_try_compile
1505 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1506 # ---------------------------------------------
1507 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1509 ac_fn_c_check_decl ()
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 as_decl_name=`echo $2|sed 's/ *(.*//'`
1513 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1515 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1516 if eval \${$3+:} false; then :
1517 $as_echo_n "(cached) " >&6
1519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1520 /* end confdefs.h. */
1525 #ifndef $as_decl_name
1527 (void) $as_decl_use;
1529 (void) $as_decl_name;
1537 if ac_fn_c_try_compile "$LINENO"; then :
1542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1546 $as_echo "$ac_res" >&6; }
1547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 } # ac_fn_c_check_decl
1551 # ac_fn_c_try_cpp LINENO
1552 # ----------------------
1553 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 if { { ac_try="$ac_cpp conftest.$ac_ext"
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } > conftest.i && {
1573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1574 test ! -s conftest.err
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1588 # ac_fn_c_try_run LINENO
1589 # ----------------------
1590 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1591 # that executables *can* be run.
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 if { { ac_try="$ac_link"
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_link") 2>&5
1604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1606 { { case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_try") 2>&5
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; }; }; then :
1618 $as_echo "$as_me: program exited with status $ac_status" >&5
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1622 ac_retval=$ac_status
1624 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1630 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1631 # -------------------------------------------------------
1632 # Tests whether HEADER exists and can be compiled using the include files in
1633 # INCLUDES, setting the cache variable VAR accordingly.
1634 ac_fn_c_check_header_compile ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638 $as_echo_n "checking for $2... " >&6; }
1639 if eval \${$3+:} false; then :
1640 $as_echo_n "(cached) " >&6
1642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1643 /* end confdefs.h. */
1647 if ac_fn_c_try_compile "$LINENO"; then :
1652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1656 $as_echo "$ac_res" >&6; }
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 } # ac_fn_c_check_header_compile
1661 # ac_fn_c_try_link LINENO
1662 # -----------------------
1663 # Try to link conftest.$ac_ext, and return whether this succeeded.
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 rm -f conftest.$ac_objext conftest$ac_exeext
1668 if { { ac_try="$ac_link"
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_link") 2>conftest.err
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } && {
1684 test -z "$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 } && test -s conftest$ac_exeext && {
1687 test "$cross_compiling" = yes ||
1688 $as_test_x conftest$ac_exeext
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1698 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1699 # interfere with the next link command; also delete a directory that is
1700 # left behind by Apple's compiler. We do this before executing the actions.
1701 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_link
1706 cat >config.log <<_ACEOF
1707 This file contains any messages produced by compilers while
1708 running configure, to aid debugging if configure makes a mistake.
1710 It was created by mkfontdir $as_me 1.0.7, which was
1711 generated by GNU Autoconf 2.68. Invocation command line was
1723 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1724 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1725 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1726 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1727 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1729 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1730 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1732 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1733 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1734 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1735 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1736 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1737 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1738 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746 test -z "$as_dir" && as_dir=.
1747 $as_echo "PATH: $as_dir"
1763 # Keep a trace of the command line.
1764 # Strip out --no-create and --no-recursion so they do not pile up.
1765 # Strip out --silent because we don't want to record it for future runs.
1766 # Also quote any args containing shell meta-characters.
1767 # Make two passes to allow for proper duplicate-argument suppression.
1771 ac_must_keep_next=false
1777 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1778 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1779 | -silent | --silent | --silen | --sile | --sil)
1782 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1785 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1787 as_fn_append ac_configure_args1 " '$ac_arg'"
1788 if test $ac_must_keep_next = true; then
1789 ac_must_keep_next=false # Got value, back to normal.
1792 *=* | --config-cache | -C | -disable-* | --disable-* \
1793 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1794 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1795 | -with-* | --with-* | -without-* | --without-* | --x)
1796 case "$ac_configure_args0 " in
1797 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1800 -* ) ac_must_keep_next=true ;;
1803 as_fn_append ac_configure_args " '$ac_arg'"
1808 { ac_configure_args0=; unset ac_configure_args0;}
1809 { ac_configure_args1=; unset ac_configure_args1;}
1811 # When interrupted or exit'd, cleanup temporary files, and complete
1812 # config.log. We remove comments because anyway the quotes in there
1813 # would cause problems or look ugly.
1814 # WARNING: Use '\'' to represent an apostrophe within the trap.
1815 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1816 trap 'exit_status=$?
1817 # Save into config.log some information that might help in debugging.
1821 $as_echo "## ---------------- ##
1822 ## Cache variables. ##
1823 ## ---------------- ##"
1825 # The following way of writing the cache mishandles newlines in values,
1827 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1828 eval ac_val=\$$ac_var
1832 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1833 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1836 _ | IFS | as_nl) ;; #(
1837 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1838 *) { eval $ac_var=; unset $ac_var;} ;;
1843 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1844 *${as_nl}ac_space=\ *)
1846 "s/'\''/'\''\\\\'\'''\''/g;
1847 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1857 $as_echo "## ----------------- ##
1858 ## Output variables. ##
1859 ## ----------------- ##"
1861 for ac_var in $ac_subst_vars
1863 eval ac_val=\$$ac_var
1865 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1867 $as_echo "$ac_var='\''$ac_val'\''"
1871 if test -n "$ac_subst_files"; then
1872 $as_echo "## ------------------- ##
1873 ## File substitutions. ##
1874 ## ------------------- ##"
1876 for ac_var in $ac_subst_files
1878 eval ac_val=\$$ac_var
1880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1882 $as_echo "$ac_var='\''$ac_val'\''"
1887 if test -s confdefs.h; then
1888 $as_echo "## ----------- ##
1895 test "$ac_signal" != 0 &&
1896 $as_echo "$as_me: caught signal $ac_signal"
1897 $as_echo "$as_me: exit $exit_status"
1899 rm -f core *.core core.conftest.* &&
1900 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1903 for ac_signal in 1 2 13 15; do
1904 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1908 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1909 rm -f -r conftest* confdefs.h
1911 $as_echo "/* confdefs.h */" > confdefs.h
1913 # Predefined preprocessor variables.
1915 cat >>confdefs.h <<_ACEOF
1916 #define PACKAGE_NAME "$PACKAGE_NAME"
1919 cat >>confdefs.h <<_ACEOF
1920 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1923 cat >>confdefs.h <<_ACEOF
1924 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE_STRING "$PACKAGE_STRING"
1931 cat >>confdefs.h <<_ACEOF
1932 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1935 cat >>confdefs.h <<_ACEOF
1936 #define PACKAGE_URL "$PACKAGE_URL"
1940 # Let the site file select an alternate cache file if it wants to.
1941 # Prefer an explicitly selected file to automatically selected ones.
1944 if test -n "$CONFIG_SITE"; then
1945 # We do not want a PATH search for config.site.
1946 case $CONFIG_SITE in #((
1947 -*) ac_site_file1=./$CONFIG_SITE;;
1948 */*) ac_site_file1=$CONFIG_SITE;;
1949 *) ac_site_file1=./$CONFIG_SITE;;
1951 elif test "x$prefix" != xNONE; then
1952 ac_site_file1=$prefix/share/config.site
1953 ac_site_file2=$prefix/etc/config.site
1955 ac_site_file1=$ac_default_prefix/share/config.site
1956 ac_site_file2=$ac_default_prefix/etc/config.site
1958 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1960 test "x$ac_site_file" = xNONE && continue
1961 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1963 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1964 sed 's/^/| /' "$ac_site_file" >&5
1966 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1967 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1968 as_fn_error $? "failed to load site script $ac_site_file
1969 See \`config.log' for more details" "$LINENO" 5; }
1973 if test -r "$cache_file"; then
1974 # Some versions of bash will fail to source /dev/null (special files
1975 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1976 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1978 $as_echo "$as_me: loading cache $cache_file" >&6;}
1980 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1981 *) . "./$cache_file";;
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1986 $as_echo "$as_me: creating cache $cache_file" >&6;}
1990 # Check that the precious variables saved in the cache have kept the same
1992 ac_cache_corrupted=false
1993 for ac_var in $ac_precious_vars; do
1994 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1995 eval ac_new_set=\$ac_env_${ac_var}_set
1996 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1997 eval ac_new_val=\$ac_env_${ac_var}_value
1998 case $ac_old_set,$ac_new_set in
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2001 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2002 ac_cache_corrupted=: ;;
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2005 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2006 ac_cache_corrupted=: ;;
2009 if test "x$ac_old_val" != "x$ac_new_val"; then
2010 # differences in whitespace do not lead to failure.
2011 ac_old_val_w=`echo x $ac_old_val`
2012 ac_new_val_w=`echo x $ac_new_val`
2013 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2015 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2016 ac_cache_corrupted=:
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2019 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2020 eval $ac_var=\$ac_old_val
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2023 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2025 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2028 # Pass precious variables to config.status.
2029 if test "$ac_new_set" = set; then
2031 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2032 *) ac_arg=$ac_var=$ac_new_val ;;
2034 case " $ac_configure_args " in
2035 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2036 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2040 if $ac_cache_corrupted; then
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2044 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2045 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2047 ## -------------------- ##
2048 ## Main body of script. ##
2049 ## -------------------- ##
2052 ac_cpp='$CPP $CPPFLAGS'
2053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2060 # Initialize Automake
2061 am__api_version='1.11'
2064 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2065 if test -f "$ac_dir/install-sh"; then
2067 ac_install_sh="$ac_aux_dir/install-sh -c"
2069 elif test -f "$ac_dir/install.sh"; then
2071 ac_install_sh="$ac_aux_dir/install.sh -c"
2073 elif test -f "$ac_dir/shtool"; then
2075 ac_install_sh="$ac_aux_dir/shtool install -c"
2079 if test -z "$ac_aux_dir"; then
2080 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2083 # These three variables are undocumented and unsupported,
2084 # and are intended to be withdrawn in a future Autoconf release.
2085 # They can cause serious problems if a builder's source tree is in a directory
2086 # whose full name contains unusual characters.
2087 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2088 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2089 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2092 # Find a good install program. We prefer a C program (faster),
2093 # so one script is as good as another. But avoid the broken or
2094 # incompatible versions:
2095 # SysV /etc/install, /usr/sbin/install
2096 # SunOS /usr/etc/install
2097 # IRIX /sbin/install
2099 # AmigaOS /C/install, which installs bootblocks on floppy discs
2100 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2101 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2102 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2103 # OS/2's system install, which has a completely different semantic
2104 # ./install, which can be erroneously created by make from ./install.sh.
2105 # Reject install programs that cannot install multiple files.
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2107 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2108 if test -z "$INSTALL"; then
2109 if ${ac_cv_path_install+:} false; then :
2110 $as_echo_n "(cached) " >&6
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 test -z "$as_dir" && as_dir=.
2117 # Account for people who put trailing slashes in PATH elements.
2118 case $as_dir/ in #((
2119 ./ | .// | /[cC]/* | \
2120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2121 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2124 # OSF1 and SCO ODT 3.0 have their own names for install.
2125 # Don't use installbsd from OSF since it installs stuff as root
2127 for ac_prog in ginstall scoinst install; do
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2130 if test $ac_prog = install &&
2131 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2132 # AIX install. It has an incompatible calling convention.
2134 elif test $ac_prog = install &&
2135 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2136 # program-specific install script used by HP pwplus--don't use.
2139 rm -rf conftest.one conftest.two conftest.dir
2140 echo one > conftest.one
2141 echo two > conftest.two
2143 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2144 test -s conftest.one && test -s conftest.two &&
2145 test -s conftest.dir/conftest.one &&
2146 test -s conftest.dir/conftest.two
2148 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2161 rm -rf conftest.one conftest.two conftest.dir
2164 if test "${ac_cv_path_install+set}" = set; then
2165 INSTALL=$ac_cv_path_install
2167 # As a last resort, use the slow shell script. Don't cache a
2168 # value for INSTALL within a source directory, because that will
2169 # break other packages using the cache if that directory is
2170 # removed, or if the value is a relative name.
2171 INSTALL=$ac_install_sh
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2175 $as_echo "$INSTALL" >&6; }
2177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2178 # It thinks the first close brace ends the variable substitution.
2179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2186 $as_echo_n "checking whether build environment is sane... " >&6; }
2189 echo timestamp > conftest.file
2190 # Reject unsafe characters in $srcdir or the absolute working directory
2191 # name. Accept space and tab only in the latter.
2195 *[\\\"\#\$\&\'\`$am_lf]*)
2196 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2199 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2200 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2203 # Do `set' in a subshell so we don't clobber the current shell's
2204 # arguments. Must try -L first in case configure is actually a
2205 # symlink; some systems play weird games with the mod time of symlinks
2206 # (eg FreeBSD returns the mod time of the symlink's containing
2209 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2210 if test "$*" = "X"; then
2212 set X `ls -t "$srcdir/configure" conftest.file`
2215 if test "$*" != "X $srcdir/configure conftest.file" \
2216 && test "$*" != "X conftest.file $srcdir/configure"; then
2218 # If neither matched, then we have a broken ls. This can happen
2219 # if, for instance, CONFIG_SHELL is bash and it inherits a
2220 # broken ls alias from the environment. This has actually
2221 # happened. Such a system could not be considered "sane".
2222 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2223 alias in your environment" "$LINENO" 5
2226 test "$2" = conftest.file
2232 as_fn_error $? "newly created file is older than distributed files!
2233 Check your system clock" "$LINENO" 5
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2236 $as_echo "yes" >&6; }
2237 test "$program_prefix" != NONE &&
2238 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2239 # Use a double $ so make ignores it.
2240 test "$program_suffix" != NONE &&
2241 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2242 # Double any \ or $.
2243 # By default was `s,x,x', remove it if useless.
2244 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2245 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2247 # expand $ac_aux_dir to an absolute path
2248 am_aux_dir=`cd $ac_aux_dir && pwd`
2250 if test x"${MISSING+set}" != xset; then
2253 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2255 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2258 # Use eval to expand $SHELL
2259 if eval "$MISSING --run true"; then
2260 am_missing_run="$MISSING --run "
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2264 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2267 if test x"${install_sh}" != xset; then
2270 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2272 install_sh="\${SHELL} $am_aux_dir/install-sh"
2276 # Installed binaries are usually stripped using `strip' when the user
2277 # run `make install-strip'. However `strip' might not be the right
2278 # tool to use in cross-compilation environments, therefore Automake
2279 # will honor the `STRIP' environment variable to overrule this program.
2280 if test "$cross_compiling" != no; then
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}strip; ac_word=$2
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2285 $as_echo_n "checking for $ac_word... " >&6; }
2286 if ${ac_cv_prog_STRIP+:} false; then :
2287 $as_echo_n "(cached) " >&6
2289 if test -n "$STRIP"; then
2290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 STRIP=$ac_cv_prog_STRIP
2310 if test -n "$STRIP"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2312 $as_echo "$STRIP" >&6; }
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2315 $as_echo "no" >&6; }
2320 if test -z "$ac_cv_prog_STRIP"; then
2322 # Extract the first word of "strip", so it can be a program name with args.
2323 set dummy strip; ac_word=$2
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2325 $as_echo_n "checking for $ac_word... " >&6; }
2326 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2327 $as_echo_n "(cached) " >&6
2329 if test -n "$ac_ct_STRIP"; then
2330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_ac_ct_STRIP="strip"
2340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2350 if test -n "$ac_ct_STRIP"; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2352 $as_echo "$ac_ct_STRIP" >&6; }
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2355 $as_echo "no" >&6; }
2358 if test "x$ac_ct_STRIP" = x; then
2361 case $cross_compiling:$ac_tool_warned in
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2365 ac_tool_warned=yes ;;
2370 STRIP="$ac_cv_prog_STRIP"
2374 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2377 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2378 if test -z "$MKDIR_P"; then
2379 if ${ac_cv_path_mkdir+:} false; then :
2380 $as_echo_n "(cached) " >&6
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2386 test -z "$as_dir" && as_dir=.
2387 for ac_prog in mkdir gmkdir; do
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2390 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2391 'mkdir (GNU coreutils) '* | \
2392 'mkdir (coreutils) '* | \
2393 'mkdir (fileutils) '4.1*)
2394 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2404 test -d ./--version && rmdir ./--version
2405 if test "${ac_cv_path_mkdir+set}" = set; then
2406 MKDIR_P="$ac_cv_path_mkdir -p"
2408 # As a last resort, use the slow shell script. Don't cache a
2409 # value for MKDIR_P within a source directory, because that will
2410 # break other packages using the cache if that directory is
2411 # removed, or if the value is a relative name.
2412 MKDIR_P="$ac_install_sh -d"
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2416 $as_echo "$MKDIR_P" >&6; }
2420 [\\/$]* | ?:[\\/]*) ;;
2421 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2424 for ac_prog in gawk mawk nawk awk
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if ${ac_cv_prog_AWK+:} false; then :
2431 $as_echo_n "(cached) " >&6
2433 if test -n "$AWK"; then
2434 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_AWK="$ac_prog"
2444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 if test -n "$AWK"; then
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2456 $as_echo "$AWK" >&6; }
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2459 $as_echo "no" >&6; }
2463 test -n "$AWK" && break
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2467 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2469 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2470 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2471 $as_echo_n "(cached) " >&6
2473 cat >conftest.make <<\_ACEOF
2476 @echo '@@@%%%=$(MAKE)=@@@%%%'
2478 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2479 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2481 eval ac_cv_prog_make_${ac_make}_set=yes;;
2483 eval ac_cv_prog_make_${ac_make}_set=no;;
2487 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2489 $as_echo "yes" >&6; }
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2493 $as_echo "no" >&6; }
2494 SET_MAKE="MAKE=${MAKE-make}"
2497 rm -rf .tst 2>/dev/null
2498 mkdir .tst 2>/dev/null
2499 if test -d .tst; then
2504 rmdir .tst 2>/dev/null
2506 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2507 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2508 # is not polluted with repeated "-I."
2509 am__isrc=' -I$(srcdir)'
2510 # test to see if srcdir already configured
2511 if test -f $srcdir/config.status; then
2512 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2516 # test whether we have cygpath
2517 if test -z "$CYGPATH_W"; then
2518 if (cygpath --version) >/dev/null 2>/dev/null; then
2519 CYGPATH_W='cygpath -w'
2526 # Define the identity of the package.
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE "$PACKAGE"
2536 cat >>confdefs.h <<_ACEOF
2537 #define VERSION "$VERSION"
2540 # Some tools Automake needs.
2542 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2545 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2548 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2551 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2554 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2556 # We need awk for the "check" target. The system "awk" is bad on
2558 # Always define AMTAR for backward compatibility.
2560 AMTAR=${AMTAR-"${am_missing_run}tar"}
2562 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2570 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2571 # Check whether --enable-maintainer-mode was given.
2572 if test "${enable_maintainer_mode+set}" = set; then :
2573 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2575 USE_MAINTAINER_MODE=no
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2579 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2580 if test $USE_MAINTAINER_MODE = yes; then
2581 MAINTAINER_MODE_TRUE=
2582 MAINTAINER_MODE_FALSE='#'
2584 MAINTAINER_MODE_TRUE='#'
2585 MAINTAINER_MODE_FALSE=
2588 MAINT=$MAINTAINER_MODE_TRUE
2592 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2604 DEPDIR="${am__leading_dot}deps"
2606 ac_config_commands="$ac_config_commands depfiles"
2609 am_make=${MAKE-make}
2610 cat > confinc << 'END'
2612 @echo this is the am__doit target
2615 # If we don't find an include directive, just comment out the code.
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2617 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2621 # First try GNU make style include.
2622 echo "include confinc" > confmf
2623 # Ignore all kinds of additional output from `make'.
2624 case `$am_make -s -f confmf 2> /dev/null` in #(
2625 *the\ am__doit\ target*)
2631 # Now try BSD make style include.
2632 if test "$am__include" = "#"; then
2633 echo '.include "confinc"' > confmf
2634 case `$am_make -s -f confmf 2> /dev/null` in #(
2635 *the\ am__doit\ target*)
2636 am__include=.include
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2645 $as_echo "$_am_result" >&6; }
2646 rm -f confinc confmf
2648 # Check whether --enable-dependency-tracking was given.
2649 if test "${enable_dependency_tracking+set}" = set; then :
2650 enableval=$enable_dependency_tracking;
2653 if test "x$enable_dependency_tracking" != xno; then
2654 am_depcomp="$ac_aux_dir/depcomp"
2657 if test "x$enable_dependency_tracking" != xno; then
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if ${ac_cv_prog_CC+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2710 if test -z "$ac_cv_prog_CC"; then
2712 # Extract the first word of "gcc", so it can be a program name with args.
2713 set dummy gcc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$ac_ct_CC"; then
2720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_ac_ct_CC="gcc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740 if test -n "$ac_ct_CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2742 $as_echo "$ac_ct_CC" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2748 if test "x$ac_ct_CC" = x; then
2751 case $cross_compiling:$ac_tool_warned in
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 ac_tool_warned=yes ;;
2763 if test -z "$CC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2766 set dummy ${ac_tool_prefix}cc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if ${ac_cv_prog_CC+:} false; then :
2770 $as_echo_n "(cached) " >&6
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CC="${ac_tool_prefix}cc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2804 if test -z "$CC"; then
2805 # Extract the first word of "cc", so it can be a program name with args.
2806 set dummy cc; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_prog_CC+:} false; then :
2810 $as_echo_n "(cached) " >&6
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC="$CC" # Let the user override the test.
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2824 ac_prog_rejected=yes
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test $ac_prog_rejected = yes; then
2836 # We found a bogon in the path, so make sure we never use it.
2837 set dummy $ac_cv_prog_CC
2839 if test $# != 0; then
2840 # We chose a different compiler from the bogus one.
2841 # However, it has the same basename, so the bogon will be chosen
2842 # first if we set CC to just the basename; use the full file name.
2844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2860 if test -z "$CC"; then
2861 if test -n "$ac_tool_prefix"; then
2862 for ac_prog in cl.exe
2864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if ${ac_cv_prog_CC+:} false; then :
2869 $as_echo_n "(cached) " >&6
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2901 test -n "$CC" && break
2904 if test -z "$CC"; then
2906 for ac_prog in cl.exe
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_ac_ct_CC="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$ac_ct_CC" && break
2948 if test "x$ac_ct_CC" = x; then
2951 case $cross_compiling:$ac_tool_warned in
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 ac_tool_warned=yes ;;
2964 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 as_fn_error $? "no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details" "$LINENO" 5; }
2969 # Provide some information about the compiler.
2970 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2973 for ac_option in --version -v -V -qversion; do
2974 { { ac_try="$ac_compiler $ac_option >&5"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2983 if test -s conftest.err; then
2985 ... rest of stderr output deleted ...
2986 10q' conftest.err >conftest.er1
2987 cat conftest.er1 >&5
2989 rm -f conftest.er1 conftest.err
2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
3005 ac_clean_files_save=$ac_clean_files
3006 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3007 # Try to create an executable without -o first, disregard a.out.
3008 # It will help us diagnose broken compilers, and finding out an intuition
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3011 $as_echo_n "checking whether the C compiler works... " >&6; }
3012 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 # The possible output files:
3015 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3018 for ac_file in $ac_files
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3027 if { { ac_try="$ac_link_default"
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link_default") 2>&5
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3039 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3040 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3041 # so that the user can short-circuit this test for compilers unknown to
3043 for ac_file in $ac_files ''
3045 test -f "$ac_file" || continue
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3050 # We found the default executable, but exeext='' is most
3054 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3056 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3058 # We set ac_cv_exeext here because the later test for it is not
3059 # safe: cross compilers may not add the suffix if given an `-o'
3060 # argument, so we may need to know it at that point already.
3061 # Even if this section looks crufty: it has the advantage of
3068 test "$ac_cv_exeext" = no && ac_cv_exeext=
3073 if test -z "$ac_file"; then :
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 $as_echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error 77 "C compiler cannot create executables
3082 See \`config.log' for more details" "$LINENO" 5; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3088 $as_echo_n "checking for C compiler default output file name... " >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3090 $as_echo "$ac_file" >&6; }
3091 ac_exeext=$ac_cv_exeext
3093 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3094 ac_clean_files=$ac_clean_files_save
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3096 $as_echo_n "checking for suffix of executables... " >&6; }
3097 if { { ac_try="$ac_link"
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3112 for ac_file in conftest.exe conftest conftest.*; do
3113 test -f "$ac_file" || continue
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details" "$LINENO" 5; }
3127 rm -f conftest conftest$ac_cv_exeext
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3129 $as_echo "$ac_cv_exeext" >&6; }
3131 rm -f conftest.$ac_ext
3132 EXEEXT=$ac_cv_exeext
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3140 FILE *f = fopen ("conftest.out", "w");
3141 return ferror (f) || fclose (f) != 0;
3147 ac_clean_files="$ac_clean_files conftest.out"
3148 # Check that the compiler produces executables we can run. If not, either
3149 # the compiler is broken, or we cross compile.
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3151 $as_echo_n "checking whether we are cross compiling... " >&6; }
3152 if test "$cross_compiling" != yes; then
3153 { { ac_try="$ac_link"
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_link") 2>&5
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }
3164 if { ac_try='./conftest$ac_cv_exeext'
3165 { { case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_try") 2>&5
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; }; then
3177 if test "$cross_compiling" = maybe; then
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot run C compiled programs.
3183 If you meant to cross compile, use \`--host'.
3184 See \`config.log' for more details" "$LINENO" 5; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3189 $as_echo "$cross_compiling" >&6; }
3191 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3192 ac_clean_files=$ac_clean_files_save
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3194 $as_echo_n "checking for suffix of object files... " >&6; }
3195 if ${ac_cv_objext+:} false; then :
3196 $as_echo_n "(cached) " >&6
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3209 rm -f conftest.o conftest.obj
3210 if { { ac_try="$ac_compile"
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compile") 2>&5
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 for ac_file in conftest.o conftest.obj conftest.*; do
3222 test -f "$ac_file" || continue;
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3230 $as_echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "cannot compute suffix of object files: cannot compile
3236 See \`config.log' for more details" "$LINENO" 5; }
3238 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3241 $as_echo "$ac_cv_objext" >&6; }
3242 OBJEXT=$ac_cv_objext
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3245 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3246 if ${ac_cv_c_compiler_gnu+:} false; then :
3247 $as_echo_n "(cached) " >&6
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3263 if ac_fn_c_try_compile "$LINENO"; then :
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3273 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3274 if test $ac_compiler_gnu = yes; then
3279 ac_test_CFLAGS=${CFLAGS+set}
3280 ac_save_CFLAGS=$CFLAGS
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3282 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3283 if ${ac_cv_prog_cc_g+:} false; then :
3284 $as_echo_n "(cached) " >&6
3286 ac_save_c_werror_flag=$ac_c_werror_flag
3287 ac_c_werror_flag=yes
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3301 if ac_fn_c_try_compile "$LINENO"; then :
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3316 if ac_fn_c_try_compile "$LINENO"; then :
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3332 if ac_fn_c_try_compile "$LINENO"; then :
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 ac_c_werror_flag=$ac_save_c_werror_flag
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3343 $as_echo "$ac_cv_prog_cc_g" >&6; }
3344 if test "$ac_test_CFLAGS" = set; then
3345 CFLAGS=$ac_save_CFLAGS
3346 elif test $ac_cv_prog_cc_g = yes; then
3347 if test "$GCC" = yes; then
3353 if test "$GCC" = yes; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3360 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3361 if ${ac_cv_prog_cc_c89+:} false; then :
3362 $as_echo_n "(cached) " >&6
3364 ac_cv_prog_cc_c89=no
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3386 s = g (p, va_arg (v,int));
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
3394 as 'x'. The following induces an error, until -std is added to get
3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
3397 that's true only with -std. */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401 inside strings and character constants. */
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 CC="$ac_save_CC $ac_arg"
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_c89=$ac_arg
3426 rm -f core conftest.err conftest.$ac_objext
3427 test "x$ac_cv_prog_cc_c89" != "xno" && break
3429 rm -f conftest.$ac_ext
3434 case "x$ac_cv_prog_cc_c89" in
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3437 $as_echo "none needed" >&6; } ;;
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3440 $as_echo "unsupported" >&6; } ;;
3442 CC="$CC $ac_cv_prog_cc_c89"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3444 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3446 if test "x$ac_cv_prog_cc_c89" != xno; then :
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 depcc="$CC" am_compiler_list=
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3459 $as_echo_n "checking dependency style of $depcc... " >&6; }
3460 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3461 $as_echo_n "(cached) " >&6
3463 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3464 # We make a subdir and do the tests there. Otherwise we can end up
3465 # making bogus files that we don't know about and never remove. For
3466 # instance it was reported that on HP-UX the gcc test will end up
3467 # making a dummy file named `D' -- because `-MD' means `put the output
3470 # Copy depcomp to subdir because otherwise we won't find it if we're
3471 # using a relative directory.
3472 cp "$am_depcomp" conftest.dir
3474 # We will build objects and dependencies in a subdirectory because
3475 # it helps to detect inapplicable dependency modes. For instance
3476 # both Tru64's cc and ICC support -MD to output dependencies as a
3477 # side effect of compilation, but ICC will put the dependencies in
3478 # the current directory while Tru64 will put them in the object
3482 am_cv_CC_dependencies_compiler_type=none
3483 if test "$am_compiler_list" = ""; then
3484 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3487 case " $depcc " in #(
3488 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3491 for depmode in $am_compiler_list; do
3492 # Setup a source with many dependencies, because some compilers
3493 # like to wrap large dependency lists on column 80 (with \), and
3494 # we should not choose a depcomp mode which is confused by this.
3496 # We need to recreate these files for each test, as the compiler may
3497 # overwrite some of them when testing with obscure command lines.
3498 # This happens at least with the AIX C compiler.
3500 for i in 1 2 3 4 5 6; do
3501 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3502 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3503 # Solaris 8's {/usr,}/bin/sh.
3504 touch sub/conftst$i.h
3506 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3508 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3509 # mode. It turns out that the SunPro C++ compiler does not properly
3510 # handle `-M -o', and we need to detect this. Also, some Intel
3511 # versions had trouble with output in subdirs
3512 am__obj=sub/conftest.${OBJEXT-o}
3513 am__minus_obj="-o $am__obj"
3516 # This depmode causes a compiler race in universal mode.
3517 test "$am__universal" = false || continue
3520 # after this tag, mechanisms are not by side-effect, so they'll
3521 # only be used when explicitly requested
3522 if test "x$enable_dependency_tracking" = xyes; then
3528 msvisualcpp | msvcmsys)
3529 # This compiler won't grok `-c -o', but also, the minuso test has
3530 # not run yet. These depmodes are late enough in the game, and
3531 # so weak that their functioning should not be impacted.
3532 am__obj=conftest.${OBJEXT-o}
3537 if depmode=$depmode \
3538 source=sub/conftest.c object=$am__obj \
3539 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3540 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3541 >/dev/null 2>conftest.err &&
3542 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3543 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3544 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3545 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3546 # icc doesn't choke on unknown options, it will just issue warnings
3547 # or remarks (even with -Werror). So we grep stderr for any message
3548 # that says an option was ignored or not supported.
3549 # When given -MP, icc 7.0 and 7.1 complain thusly:
3550 # icc: Command line warning: ignoring option '-M'; no argument required
3551 # The diagnosis changed in icc 8.0:
3552 # icc: Command line remark: option '-MP' not supported
3553 if (grep 'ignoring option' conftest.err ||
3554 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3555 am_cv_CC_dependencies_compiler_type=$depmode
3564 am_cv_CC_dependencies_compiler_type=none
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3569 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3570 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3573 test "x$enable_dependency_tracking" != xno \
3574 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3576 am__fastdepCC_FALSE='#'
3578 am__fastdepCC_TRUE='#'
3579 am__fastdepCC_FALSE=
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3584 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3585 if ${ac_cv_prog_cc_c99+:} false; then :
3586 $as_echo_n "(cached) " >&6
3588 ac_cv_prog_cc_c99=no
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591 /* end confdefs.h. */
3593 #include <stdbool.h>
3598 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3599 #define debug(...) fprintf (stderr, __VA_ARGS__)
3600 #define showlist(...) puts (#__VA_ARGS__)
3601 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3603 test_varargs_macros (void)
3608 debug ("X = %d\n", x);
3609 showlist (The first, second, and third items.);
3610 report (x>y, "x is %d but y is %d", x, y);
3613 // Check long long types.
3614 #define BIG64 18446744073709551615ull
3615 #define BIG32 4294967295ul
3616 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3618 your preprocessor is broken;
3622 your preprocessor is broken;
3624 static long long int bignum = -9223372036854775807LL;
3625 static unsigned long long int ubignum = BIG64;
3627 struct incomplete_array
3635 const wchar_t *name;
3639 typedef const char *ccp;
3642 test_restrict (ccp restrict text)
3644 // See if C++-style comments work.
3645 // Iterate through items via the restricted pointer.
3646 // Also check for declarations in for loops.
3647 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3652 // Check varargs and va_copy.
3654 test_varargs (const char *format, ...)
3657 va_start (args, format);
3659 va_copy (args_copy, args);
3670 str = va_arg (args_copy, const char *);
3673 number = va_arg (args_copy, int);
3676 fnumber = va_arg (args_copy, double);
3691 _Bool success = false;
3694 if (test_restrict ("String literal") == 0)
3696 char *restrict newvar = "Another string";
3699 test_varargs ("s, d' f .", "string", 65, 34.234);
3700 test_varargs_macros ();
3702 // Check flexible array members.
3703 struct incomplete_array *ia =
3704 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3706 for (int i = 0; i < ia->datasize; ++i)
3707 ia->data[i] = i * 1.234;
3709 // Check named initializers.
3710 struct named_init ni = {
3712 .name = L"Test wide string",
3713 .average = 543.34343,
3718 int dynamic_array[ni.number];
3719 dynamic_array[ni.number - 1] = 543;
3721 // work around unused variable warnings
3722 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3723 || dynamic_array[ni.number - 1] != 543);
3729 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3731 CC="$ac_save_CC $ac_arg"
3732 if ac_fn_c_try_compile "$LINENO"; then :
3733 ac_cv_prog_cc_c99=$ac_arg
3735 rm -f core conftest.err conftest.$ac_objext
3736 test "x$ac_cv_prog_cc_c99" != "xno" && break
3738 rm -f conftest.$ac_ext
3743 case "x$ac_cv_prog_cc_c99" in
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3746 $as_echo "none needed" >&6; } ;;
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3749 $as_echo "unsupported" >&6; } ;;
3751 CC="$CC $ac_cv_prog_cc_c99"
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3753 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3755 if test "x$ac_cv_prog_cc_c99" != xno; then :
3762 ac_cpp='$CPP $CPPFLAGS'
3763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3767 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3768 # On Suns, sometimes $CPP names a directory.
3769 if test -n "$CPP" && test -d "$CPP"; then
3772 if test -z "$CPP"; then
3773 if ${ac_cv_prog_CPP+:} false; then :
3774 $as_echo_n "(cached) " >&6
3776 # Double quotes because CPP needs to be expanded
3777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3780 for ac_c_preproc_warn_flag in '' yes
3782 # Use a header file that comes with gcc, so configuring glibc
3783 # with a fresh cross-compiler works.
3784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3785 # <limits.h> exists even on freestanding compilers.
3786 # On the NeXT, cc -E runs the code through the compiler's parser,
3787 # not just through cpp. "Syntax error" is here to catch this case.
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3791 # include <limits.h>
3793 # include <assert.h>
3797 if ac_fn_c_try_cpp "$LINENO"; then :
3800 # Broken: fails on valid input.
3803 rm -f conftest.err conftest.i conftest.$ac_ext
3805 # OK, works on sane cases. Now check whether nonexistent headers
3806 # can be detected and how.
3807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3808 /* end confdefs.h. */
3809 #include <ac_nonexistent.h>
3811 if ac_fn_c_try_cpp "$LINENO"; then :
3812 # Broken: success on invalid input.
3815 # Passes both tests.
3819 rm -f conftest.err conftest.i conftest.$ac_ext
3822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3823 rm -f conftest.i conftest.err conftest.$ac_ext
3824 if $ac_preproc_ok; then :
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3837 $as_echo "$CPP" >&6; }
3839 for ac_c_preproc_warn_flag in '' yes
3841 # Use a header file that comes with gcc, so configuring glibc
3842 # with a fresh cross-compiler works.
3843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3844 # <limits.h> exists even on freestanding compilers.
3845 # On the NeXT, cc -E runs the code through the compiler's parser,
3846 # not just through cpp. "Syntax error" is here to catch this case.
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3850 # include <limits.h>
3852 # include <assert.h>
3856 if ac_fn_c_try_cpp "$LINENO"; then :
3859 # Broken: fails on valid input.
3862 rm -f conftest.err conftest.i conftest.$ac_ext
3864 # OK, works on sane cases. Now check whether nonexistent headers
3865 # can be detected and how.
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #include <ac_nonexistent.h>
3870 if ac_fn_c_try_cpp "$LINENO"; then :
3871 # Broken: success on invalid input.
3874 # Passes both tests.
3878 rm -f conftest.err conftest.i conftest.$ac_ext
3881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3882 rm -f conftest.i conftest.err conftest.$ac_ext
3883 if $ac_preproc_ok; then :
3886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3889 See \`config.log' for more details" "$LINENO" 5; }
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3900 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3901 if ${ac_cv_path_GREP+:} false; then :
3902 $as_echo_n "(cached) " >&6
3904 if test -z "$GREP"; then
3905 ac_path_GREP_found=false
3906 # Loop through the user's path and test for each of PROGNAME-LIST
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3911 test -z "$as_dir" && as_dir=.
3912 for ac_prog in grep ggrep; do
3913 for ac_exec_ext in '' $ac_executable_extensions; do
3914 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3915 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3916 # Check for GNU ac_path_GREP and select it if it is found.
3917 # Check for GNU $ac_path_GREP
3918 case `"$ac_path_GREP" --version 2>&1` in
3920 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3923 $as_echo_n 0123456789 >"conftest.in"
3926 cat "conftest.in" "conftest.in" >"conftest.tmp"
3927 mv "conftest.tmp" "conftest.in"
3928 cp "conftest.in" "conftest.nl"
3929 $as_echo 'GREP' >> "conftest.nl"
3930 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3932 as_fn_arith $ac_count + 1 && ac_count=$as_val
3933 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3934 # Best one so far, save it but keep looking for a better one
3935 ac_cv_path_GREP="$ac_path_GREP"
3936 ac_path_GREP_max=$ac_count
3938 # 10*(2^10) chars as input seems more than enough
3939 test $ac_count -gt 10 && break
3941 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3944 $ac_path_GREP_found && break 3
3949 if test -z "$ac_cv_path_GREP"; then
3950 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3953 ac_cv_path_GREP=$GREP
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3958 $as_echo "$ac_cv_path_GREP" >&6; }
3959 GREP="$ac_cv_path_GREP"
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3963 $as_echo_n "checking for egrep... " >&6; }
3964 if ${ac_cv_path_EGREP+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968 then ac_cv_path_EGREP="$GREP -E"
3970 if test -z "$EGREP"; then
3971 ac_path_EGREP_found=false
3972 # Loop through the user's path and test for each of PROGNAME-LIST
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3977 test -z "$as_dir" && as_dir=.
3978 for ac_prog in egrep; do
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3982 # Check for GNU ac_path_EGREP and select it if it is found.
3983 # Check for GNU $ac_path_EGREP
3984 case `"$ac_path_EGREP" --version 2>&1` in
3986 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3989 $as_echo_n 0123456789 >"conftest.in"
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 $as_echo 'EGREP' >> "conftest.nl"
3996 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998 as_fn_arith $ac_count + 1 && ac_count=$as_val
3999 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_EGREP="$ac_path_EGREP"
4002 ac_path_EGREP_max=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4007 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_EGREP_found && break 3
4015 if test -z "$ac_cv_path_EGREP"; then
4016 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4019 ac_cv_path_EGREP=$EGREP
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4025 $as_echo "$ac_cv_path_EGREP" >&6; }
4026 EGREP="$ac_cv_path_EGREP"
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4030 $as_echo_n "checking for ANSI C header files... " >&6; }
4031 if ${ac_cv_header_stdc+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4049 if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_header_stdc=yes
4052 ac_cv_header_stdc=no
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 if test $ac_cv_header_stdc = yes; then
4057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4064 $EGREP "memchr" >/dev/null 2>&1; then :
4067 ac_cv_header_stdc=no
4073 if test $ac_cv_header_stdc = yes; then
4074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081 $EGREP "free" >/dev/null 2>&1; then :
4084 ac_cv_header_stdc=no
4090 if test $ac_cv_header_stdc = yes; then
4091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4092 if test "$cross_compiling" = yes; then :
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4099 #if ((' ' & 0x0FF) == 0x020)
4100 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4101 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4103 # define ISLOWER(c) \
4104 (('a' <= (c) && (c) <= 'i') \
4105 || ('j' <= (c) && (c) <= 'r') \
4106 || ('s' <= (c) && (c) <= 'z'))
4107 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4110 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4115 for (i = 0; i < 256; i++)
4116 if (XOR (islower (i), ISLOWER (i))
4117 || toupper (i) != TOUPPER (i))
4122 if ac_fn_c_try_run "$LINENO"; then :
4125 ac_cv_header_stdc=no
4127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4128 conftest.$ac_objext conftest.beam conftest.$ac_ext
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4134 $as_echo "$ac_cv_header_stdc" >&6; }
4135 if test $ac_cv_header_stdc = yes; then
4137 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4141 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4143 inttypes.h stdint.h unistd.h
4145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4146 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4148 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4149 cat >>confdefs.h <<_ACEOF
4150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4160 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4161 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4167 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4168 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4174 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4175 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4184 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4187 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189 $as_echo_n "checking for $ac_word... " >&6; }
4190 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4191 $as_echo_n "(cached) " >&6
4195 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4217 if test -n "$PKG_CONFIG"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4219 $as_echo "$PKG_CONFIG" >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4227 if test -z "$ac_cv_path_PKG_CONFIG"; then
4228 ac_pt_PKG_CONFIG=$PKG_CONFIG
4229 # Extract the first word of "pkg-config", so it can be a program name with args.
4230 set dummy pkg-config; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4234 $as_echo_n "(cached) " >&6
4236 case $ac_pt_PKG_CONFIG in
4238 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4260 if test -n "$ac_pt_PKG_CONFIG"; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4262 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265 $as_echo "no" >&6; }
4268 if test "x$ac_pt_PKG_CONFIG" = x; then
4271 case $cross_compiling:$ac_tool_warned in
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4275 ac_tool_warned=yes ;;
4277 PKG_CONFIG=$ac_pt_PKG_CONFIG
4280 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4284 if test -n "$PKG_CONFIG"; then
4285 _pkg_min_version=0.9.0
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4287 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4288 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4290 $as_echo "yes" >&6; }
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4298 # Make sure we can run config.sub.
4299 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4300 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4303 $as_echo_n "checking build system type... " >&6; }
4304 if ${ac_cv_build+:} false; then :
4305 $as_echo_n "(cached) " >&6
4307 ac_build_alias=$build_alias
4308 test "x$ac_build_alias" = x &&
4309 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4310 test "x$ac_build_alias" = x &&
4311 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4312 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4313 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4317 $as_echo "$ac_cv_build" >&6; }
4318 case $ac_cv_build in
4320 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4323 ac_save_IFS=$IFS; IFS='-'
4329 # Remember, the first character of IFS is used to create $*,
4330 # except with old shells:
4333 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4337 $as_echo_n "checking host system type... " >&6; }
4338 if ${ac_cv_host+:} false; then :
4339 $as_echo_n "(cached) " >&6
4341 if test "x$host_alias" = x; then
4342 ac_cv_host=$ac_cv_build
4344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4345 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4350 $as_echo "$ac_cv_host" >&6; }
4353 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4356 ac_save_IFS=$IFS; IFS='-'
4362 # Remember, the first character of IFS is used to create $*,
4363 # except with old shells:
4366 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4370 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4371 if ${ac_cv_path_SED+:} false; then :
4372 $as_echo_n "(cached) " >&6
4374 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4375 for ac_i in 1 2 3 4 5 6 7; do
4376 ac_script="$ac_script$as_nl$ac_script"
4378 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4379 { ac_script=; unset ac_script;}
4380 if test -z "$SED"; then
4381 ac_path_SED_found=false
4382 # Loop through the user's path and test for each of PROGNAME-LIST
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir=.
4388 for ac_prog in sed gsed; do
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4391 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4392 # Check for GNU ac_path_SED and select it if it is found.
4393 # Check for GNU $ac_path_SED
4394 case `"$ac_path_SED" --version 2>&1` in
4396 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4399 $as_echo_n 0123456789 >"conftest.in"
4402 cat "conftest.in" "conftest.in" >"conftest.tmp"
4403 mv "conftest.tmp" "conftest.in"
4404 cp "conftest.in" "conftest.nl"
4405 $as_echo '' >> "conftest.nl"
4406 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4408 as_fn_arith $ac_count + 1 && ac_count=$as_val
4409 if test $ac_count -gt ${ac_path_SED_max-0}; then
4410 # Best one so far, save it but keep looking for a better one
4411 ac_cv_path_SED="$ac_path_SED"
4412 ac_path_SED_max=$ac_count
4414 # 10*(2^10) chars as input seems more than enough
4415 test $ac_count -gt 10 && break
4417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4420 $ac_path_SED_found && break 3
4425 if test -z "$ac_cv_path_SED"; then
4426 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4434 $as_echo "$ac_cv_path_SED" >&6; }
4435 SED="$ac_cv_path_SED"
4443 # Check whether --enable-selective-werror was given.
4444 if test "${enable_selective_werror+set}" = set; then :
4445 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4447 SELECTIVE_WERROR=yes
4451 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4452 if test "x$SUNCC" = "xyes"; then
4458 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4464 xorg_testset_save_CFLAGS="$CFLAGS"
4466 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4469 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4470 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4471 $as_echo_n "(cached) " >&6
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4477 if ac_fn_c_try_compile "$LINENO"; then :
4478 xorg_cv_cc_flag_unknown_warning_option=yes
4480 xorg_cv_cc_flag_unknown_warning_option=no
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4485 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4486 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4487 CFLAGS="$xorg_testset_save_CFLAGS"
4490 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4491 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4496 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4497 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4498 $as_echo_n "(cached) " >&6
4500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501 /* end confdefs.h. */
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 xorg_cv_cc_flag_unused_command_line_argument=yes
4507 xorg_cv_cc_flag_unused_command_line_argument=no
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4512 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4513 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4514 CFLAGS="$xorg_testset_save_CFLAGS"
4519 if test $found = "no" ; then
4520 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4524 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4528 CFLAGS="$CFLAGS -Wall"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4531 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4532 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wall`
4533 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4534 $as_echo_n "(cached) " >&6
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4547 if ac_fn_c_try_link "$LINENO"; then :
4548 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4550 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4552 rm -f core conftest.err conftest.$ac_objext \
4553 conftest$ac_exeext conftest.$ac_ext
4557 CFLAGS="$xorg_testset_save_CFLAGS"
4559 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4561 $as_echo "$supported" >&6; }
4562 if test "$supported" = "yes" ; then
4563 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4574 xorg_testset_save_CFLAGS="$CFLAGS"
4576 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4579 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4580 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4581 $as_echo_n "(cached) " >&6
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4587 if ac_fn_c_try_compile "$LINENO"; then :
4588 xorg_cv_cc_flag_unknown_warning_option=yes
4590 xorg_cv_cc_flag_unknown_warning_option=no
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4595 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4596 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4597 CFLAGS="$xorg_testset_save_CFLAGS"
4600 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4606 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4607 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4608 $as_echo_n "(cached) " >&6
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4614 if ac_fn_c_try_compile "$LINENO"; then :
4615 xorg_cv_cc_flag_unused_command_line_argument=yes
4617 xorg_cv_cc_flag_unused_command_line_argument=no
4619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4622 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4623 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4624 CFLAGS="$xorg_testset_save_CFLAGS"
4629 if test $found = "no" ; then
4630 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4634 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4638 CFLAGS="$CFLAGS -Wpointer-arith"
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4641 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4642 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-arith`
4643 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4644 $as_echo_n "(cached) " >&6
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4657 if ac_fn_c_try_link "$LINENO"; then :
4658 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4660 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4662 rm -f core conftest.err conftest.$ac_objext \
4663 conftest$ac_exeext conftest.$ac_ext
4667 CFLAGS="$xorg_testset_save_CFLAGS"
4669 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4671 $as_echo "$supported" >&6; }
4672 if test "$supported" = "yes" ; then
4673 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4684 xorg_testset_save_CFLAGS="$CFLAGS"
4686 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4689 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4690 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4697 if ac_fn_c_try_compile "$LINENO"; then :
4698 xorg_cv_cc_flag_unknown_warning_option=yes
4700 xorg_cv_cc_flag_unknown_warning_option=no
4702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4705 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4706 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4707 CFLAGS="$xorg_testset_save_CFLAGS"
4710 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4711 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4716 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4717 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4718 $as_echo_n "(cached) " >&6
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4724 if ac_fn_c_try_compile "$LINENO"; then :
4725 xorg_cv_cc_flag_unused_command_line_argument=yes
4727 xorg_cv_cc_flag_unused_command_line_argument=no
4729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4732 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4733 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4734 CFLAGS="$xorg_testset_save_CFLAGS"
4739 if test $found = "no" ; then
4740 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4744 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4748 CFLAGS="$CFLAGS -Wstrict-prototypes"
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
4751 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
4752 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wstrict-prototypes`
4753 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4754 $as_echo_n "(cached) " >&6
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4767 if ac_fn_c_try_link "$LINENO"; then :
4768 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4770 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4772 rm -f core conftest.err conftest.$ac_objext \
4773 conftest$ac_exeext conftest.$ac_ext
4777 CFLAGS="$xorg_testset_save_CFLAGS"
4779 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4781 $as_echo "$supported" >&6; }
4782 if test "$supported" = "yes" ; then
4783 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
4794 xorg_testset_save_CFLAGS="$CFLAGS"
4796 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4799 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4800 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4801 $as_echo_n "(cached) " >&6
4803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4804 /* end confdefs.h. */
4807 if ac_fn_c_try_compile "$LINENO"; then :
4808 xorg_cv_cc_flag_unknown_warning_option=yes
4810 xorg_cv_cc_flag_unknown_warning_option=no
4812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4815 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4816 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4817 CFLAGS="$xorg_testset_save_CFLAGS"
4820 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4821 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4826 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4827 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4834 if ac_fn_c_try_compile "$LINENO"; then :
4835 xorg_cv_cc_flag_unused_command_line_argument=yes
4837 xorg_cv_cc_flag_unused_command_line_argument=no
4839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4842 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4843 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4844 CFLAGS="$xorg_testset_save_CFLAGS"
4849 if test $found = "no" ; then
4850 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4854 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4858 CFLAGS="$CFLAGS -Wmissing-prototypes"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
4861 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
4862 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-prototypes`
4863 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4864 $as_echo_n "(cached) " >&6
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4877 if ac_fn_c_try_link "$LINENO"; then :
4878 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4880 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4882 rm -f core conftest.err conftest.$ac_objext \
4883 conftest$ac_exeext conftest.$ac_ext
4887 CFLAGS="$xorg_testset_save_CFLAGS"
4889 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4891 $as_echo "$supported" >&6; }
4892 if test "$supported" = "yes" ; then
4893 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
4904 xorg_testset_save_CFLAGS="$CFLAGS"
4906 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4909 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4910 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4911 $as_echo_n "(cached) " >&6
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914 /* end confdefs.h. */
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 xorg_cv_cc_flag_unknown_warning_option=yes
4920 xorg_cv_cc_flag_unknown_warning_option=no
4922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4925 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4926 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4927 CFLAGS="$xorg_testset_save_CFLAGS"
4930 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
4931 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4936 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4937 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4938 $as_echo_n "(cached) " >&6
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4944 if ac_fn_c_try_compile "$LINENO"; then :
4945 xorg_cv_cc_flag_unused_command_line_argument=yes
4947 xorg_cv_cc_flag_unused_command_line_argument=no
4949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4952 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4953 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4954 CFLAGS="$xorg_testset_save_CFLAGS"
4959 if test $found = "no" ; then
4960 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4964 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4968 CFLAGS="$CFLAGS -Wmissing-declarations"
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4971 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4972 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-declarations`
4973 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
4974 $as_echo_n "(cached) " >&6
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4987 if ac_fn_c_try_link "$LINENO"; then :
4988 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
4990 eval `$as_echo "$cacheid" | $as_tr_sh`=no
4992 rm -f core conftest.err conftest.$ac_objext \
4993 conftest$ac_exeext conftest.$ac_ext
4997 CFLAGS="$xorg_testset_save_CFLAGS"
4999 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5001 $as_echo "$supported" >&6; }
5002 if test "$supported" = "yes" ; then
5003 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5014 xorg_testset_save_CFLAGS="$CFLAGS"
5016 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5019 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5020 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5021 $as_echo_n "(cached) " >&6
5023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5027 if ac_fn_c_try_compile "$LINENO"; then :
5028 xorg_cv_cc_flag_unknown_warning_option=yes
5030 xorg_cv_cc_flag_unknown_warning_option=no
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5035 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5036 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5037 CFLAGS="$xorg_testset_save_CFLAGS"
5040 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5041 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5042 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5046 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5047 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5048 $as_echo_n "(cached) " >&6
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5054 if ac_fn_c_try_compile "$LINENO"; then :
5055 xorg_cv_cc_flag_unused_command_line_argument=yes
5057 xorg_cv_cc_flag_unused_command_line_argument=no
5059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5062 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5063 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5064 CFLAGS="$xorg_testset_save_CFLAGS"
5069 if test $found = "no" ; then
5070 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5074 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078 CFLAGS="$CFLAGS -Wnested-externs"
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5081 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5082 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnested-externs`
5083 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5084 $as_echo_n "(cached) " >&6
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5097 if ac_fn_c_try_link "$LINENO"; then :
5098 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5100 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5102 rm -f core conftest.err conftest.$ac_objext \
5103 conftest$ac_exeext conftest.$ac_ext
5107 CFLAGS="$xorg_testset_save_CFLAGS"
5109 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5111 $as_echo "$supported" >&6; }
5112 if test "$supported" = "yes" ; then
5113 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5124 xorg_testset_save_CFLAGS="$CFLAGS"
5126 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5129 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5130 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5131 $as_echo_n "(cached) " >&6
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5137 if ac_fn_c_try_compile "$LINENO"; then :
5138 xorg_cv_cc_flag_unknown_warning_option=yes
5140 xorg_cv_cc_flag_unknown_warning_option=no
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5145 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5146 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5147 CFLAGS="$xorg_testset_save_CFLAGS"
5150 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5151 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5156 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5157 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5158 $as_echo_n "(cached) " >&6
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165 xorg_cv_cc_flag_unused_command_line_argument=yes
5167 xorg_cv_cc_flag_unused_command_line_argument=no
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5172 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5173 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5174 CFLAGS="$xorg_testset_save_CFLAGS"
5179 if test $found = "no" ; then
5180 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5181 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5184 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5188 CFLAGS="$CFLAGS -Wbad-function-cast"
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5191 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5192 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wbad-function-cast`
5193 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5194 $as_echo_n "(cached) " >&6
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5207 if ac_fn_c_try_link "$LINENO"; then :
5208 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5210 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5212 rm -f core conftest.err conftest.$ac_objext \
5213 conftest$ac_exeext conftest.$ac_ext
5217 CFLAGS="$xorg_testset_save_CFLAGS"
5219 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5221 $as_echo "$supported" >&6; }
5222 if test "$supported" = "yes" ; then
5223 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5234 xorg_testset_save_CFLAGS="$CFLAGS"
5236 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5239 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5240 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5241 $as_echo_n "(cached) " >&6
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 xorg_cv_cc_flag_unknown_warning_option=yes
5250 xorg_cv_cc_flag_unknown_warning_option=no
5252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5255 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5256 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5257 CFLAGS="$xorg_testset_save_CFLAGS"
5260 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5261 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5266 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5267 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5268 $as_echo_n "(cached) " >&6
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5274 if ac_fn_c_try_compile "$LINENO"; then :
5275 xorg_cv_cc_flag_unused_command_line_argument=yes
5277 xorg_cv_cc_flag_unused_command_line_argument=no
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5282 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5283 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5284 CFLAGS="$xorg_testset_save_CFLAGS"
5289 if test $found = "no" ; then
5290 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5294 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298 CFLAGS="$CFLAGS -Wformat=2"
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5301 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5302 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat=2`
5303 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5304 $as_echo_n "(cached) " >&6
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5317 if ac_fn_c_try_link "$LINENO"; then :
5318 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5320 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5322 rm -f core conftest.err conftest.$ac_objext \
5323 conftest$ac_exeext conftest.$ac_ext
5327 CFLAGS="$xorg_testset_save_CFLAGS"
5329 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5331 $as_echo "$supported" >&6; }
5332 if test "$supported" = "yes" ; then
5333 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5338 if test $found = "no" ; then
5339 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5343 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5347 CFLAGS="$CFLAGS -Wformat"
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5350 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5351 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wformat`
5352 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5353 $as_echo_n "(cached) " >&6
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5366 if ac_fn_c_try_link "$LINENO"; then :
5367 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5369 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5371 rm -f core conftest.err conftest.$ac_objext \
5372 conftest$ac_exeext conftest.$ac_ext
5376 CFLAGS="$xorg_testset_save_CFLAGS"
5378 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5380 $as_echo "$supported" >&6; }
5381 if test "$supported" = "yes" ; then
5382 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5393 xorg_testset_save_CFLAGS="$CFLAGS"
5395 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5398 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5399 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5400 $as_echo_n "(cached) " >&6
5402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403 /* end confdefs.h. */
5406 if ac_fn_c_try_compile "$LINENO"; then :
5407 xorg_cv_cc_flag_unknown_warning_option=yes
5409 xorg_cv_cc_flag_unknown_warning_option=no
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5414 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5415 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5416 CFLAGS="$xorg_testset_save_CFLAGS"
5419 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5423 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5425 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5426 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5427 $as_echo_n "(cached) " >&6
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5433 if ac_fn_c_try_compile "$LINENO"; then :
5434 xorg_cv_cc_flag_unused_command_line_argument=yes
5436 xorg_cv_cc_flag_unused_command_line_argument=no
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5441 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5442 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5443 CFLAGS="$xorg_testset_save_CFLAGS"
5448 if test $found = "no" ; then
5449 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5453 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5454 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5457 CFLAGS="$CFLAGS -Wold-style-definition"
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5460 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5461 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wold-style-definition`
5462 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5463 $as_echo_n "(cached) " >&6
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5476 if ac_fn_c_try_link "$LINENO"; then :
5477 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5479 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5481 rm -f core conftest.err conftest.$ac_objext \
5482 conftest$ac_exeext conftest.$ac_ext
5486 CFLAGS="$xorg_testset_save_CFLAGS"
5488 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5490 $as_echo "$supported" >&6; }
5491 if test "$supported" = "yes" ; then
5492 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5503 xorg_testset_save_CFLAGS="$CFLAGS"
5505 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5508 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5509 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5510 $as_echo_n "(cached) " >&6
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5516 if ac_fn_c_try_compile "$LINENO"; then :
5517 xorg_cv_cc_flag_unknown_warning_option=yes
5519 xorg_cv_cc_flag_unknown_warning_option=no
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5524 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5525 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5526 CFLAGS="$xorg_testset_save_CFLAGS"
5529 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5530 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5535 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5536 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5537 $as_echo_n "(cached) " >&6
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5543 if ac_fn_c_try_compile "$LINENO"; then :
5544 xorg_cv_cc_flag_unused_command_line_argument=yes
5546 xorg_cv_cc_flag_unused_command_line_argument=no
5548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5551 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5552 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5553 CFLAGS="$xorg_testset_save_CFLAGS"
5558 if test $found = "no" ; then
5559 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5567 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5570 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5571 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wdeclaration-after-statement`
5572 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5573 $as_echo_n "(cached) " >&6
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5586 if ac_fn_c_try_link "$LINENO"; then :
5587 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5589 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5591 rm -f core conftest.err conftest.$ac_objext \
5592 conftest$ac_exeext conftest.$ac_ext
5596 CFLAGS="$xorg_testset_save_CFLAGS"
5598 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5600 $as_echo "$supported" >&6; }
5601 if test "$supported" = "yes" ; then
5602 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5609 # This chunk adds additional warnings that could catch undesired effects.
5615 xorg_testset_save_CFLAGS="$CFLAGS"
5617 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5622 $as_echo_n "(cached) " >&6
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 xorg_cv_cc_flag_unknown_warning_option=yes
5631 xorg_cv_cc_flag_unknown_warning_option=no
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5636 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5637 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5641 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5642 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5647 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5648 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5649 $as_echo_n "(cached) " >&6
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 xorg_cv_cc_flag_unused_command_line_argument=yes
5658 xorg_cv_cc_flag_unused_command_line_argument=no
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665 CFLAGS="$xorg_testset_save_CFLAGS"
5670 if test $found = "no" ; then
5671 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5675 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5679 CFLAGS="$CFLAGS -Wunused"
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5682 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5683 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wunused`
5684 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5685 $as_echo_n "(cached) " >&6
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5698 if ac_fn_c_try_link "$LINENO"; then :
5699 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5701 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5703 rm -f core conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
5708 CFLAGS="$xorg_testset_save_CFLAGS"
5710 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5712 $as_echo "$supported" >&6; }
5713 if test "$supported" = "yes" ; then
5714 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5725 xorg_testset_save_CFLAGS="$CFLAGS"
5727 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5730 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5731 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5732 $as_echo_n "(cached) " >&6
5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5738 if ac_fn_c_try_compile "$LINENO"; then :
5739 xorg_cv_cc_flag_unknown_warning_option=yes
5741 xorg_cv_cc_flag_unknown_warning_option=no
5743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5746 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5747 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5748 CFLAGS="$xorg_testset_save_CFLAGS"
5751 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5752 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5753 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5757 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5758 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5759 $as_echo_n "(cached) " >&6
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5765 if ac_fn_c_try_compile "$LINENO"; then :
5766 xorg_cv_cc_flag_unused_command_line_argument=yes
5768 xorg_cv_cc_flag_unused_command_line_argument=no
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5773 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5774 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5775 CFLAGS="$xorg_testset_save_CFLAGS"
5780 if test $found = "no" ; then
5781 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5785 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5789 CFLAGS="$CFLAGS -Wuninitialized"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
5792 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
5793 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wuninitialized`
5794 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5795 $as_echo_n "(cached) " >&6
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5808 if ac_fn_c_try_link "$LINENO"; then :
5809 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5811 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5813 rm -f core conftest.err conftest.$ac_objext \
5814 conftest$ac_exeext conftest.$ac_ext
5818 CFLAGS="$xorg_testset_save_CFLAGS"
5820 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5822 $as_echo "$supported" >&6; }
5823 if test "$supported" = "yes" ; then
5824 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
5835 xorg_testset_save_CFLAGS="$CFLAGS"
5837 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5842 $as_echo_n "(cached) " >&6
5844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5848 if ac_fn_c_try_compile "$LINENO"; then :
5849 xorg_cv_cc_flag_unknown_warning_option=yes
5851 xorg_cv_cc_flag_unknown_warning_option=no
5853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5857 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5858 CFLAGS="$xorg_testset_save_CFLAGS"
5861 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5862 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5869 $as_echo_n "(cached) " >&6
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5875 if ac_fn_c_try_compile "$LINENO"; then :
5876 xorg_cv_cc_flag_unused_command_line_argument=yes
5878 xorg_cv_cc_flag_unused_command_line_argument=no
5880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5884 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5885 CFLAGS="$xorg_testset_save_CFLAGS"
5890 if test $found = "no" ; then
5891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899 CFLAGS="$CFLAGS -Wshadow"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
5902 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
5903 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wshadow`
5904 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
5905 $as_echo_n "(cached) " >&6
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5918 if ac_fn_c_try_link "$LINENO"; then :
5919 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
5921 eval `$as_echo "$cacheid" | $as_tr_sh`=no
5923 rm -f core conftest.err conftest.$ac_objext \
5924 conftest$ac_exeext conftest.$ac_ext
5928 CFLAGS="$xorg_testset_save_CFLAGS"
5930 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5932 $as_echo "$supported" >&6; }
5933 if test "$supported" = "yes" ; then
5934 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
5945 xorg_testset_save_CFLAGS="$CFLAGS"
5947 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5950 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5951 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5952 $as_echo_n "(cached) " >&6
5954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5955 /* end confdefs.h. */
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 xorg_cv_cc_flag_unknown_warning_option=yes
5961 xorg_cv_cc_flag_unknown_warning_option=no
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5966 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5967 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5968 CFLAGS="$xorg_testset_save_CFLAGS"
5971 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
5972 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5977 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5978 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5979 $as_echo_n "(cached) " >&6
5981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5982 /* end confdefs.h. */
5985 if ac_fn_c_try_compile "$LINENO"; then :
5986 xorg_cv_cc_flag_unused_command_line_argument=yes
5988 xorg_cv_cc_flag_unused_command_line_argument=no
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5993 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5994 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5995 CFLAGS="$xorg_testset_save_CFLAGS"
6000 if test $found = "no" ; then
6001 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6005 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6009 CFLAGS="$CFLAGS -Wcast-qual"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6012 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6013 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wcast-qual`
6014 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6015 $as_echo_n "(cached) " >&6
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6028 if ac_fn_c_try_link "$LINENO"; then :
6029 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6031 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6033 rm -f core conftest.err conftest.$ac_objext \
6034 conftest$ac_exeext conftest.$ac_ext
6038 CFLAGS="$xorg_testset_save_CFLAGS"
6040 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6042 $as_echo "$supported" >&6; }
6043 if test "$supported" = "yes" ; then
6044 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6055 xorg_testset_save_CFLAGS="$CFLAGS"
6057 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6060 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6061 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6062 $as_echo_n "(cached) " >&6
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065 /* end confdefs.h. */
6068 if ac_fn_c_try_compile "$LINENO"; then :
6069 xorg_cv_cc_flag_unknown_warning_option=yes
6071 xorg_cv_cc_flag_unknown_warning_option=no
6073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6076 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6077 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6078 CFLAGS="$xorg_testset_save_CFLAGS"
6081 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6082 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6087 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6088 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6089 $as_echo_n "(cached) " >&6
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6095 if ac_fn_c_try_compile "$LINENO"; then :
6096 xorg_cv_cc_flag_unused_command_line_argument=yes
6098 xorg_cv_cc_flag_unused_command_line_argument=no
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6103 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6104 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6105 CFLAGS="$xorg_testset_save_CFLAGS"
6110 if test $found = "no" ; then
6111 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6115 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 CFLAGS="$CFLAGS -Wmissing-noreturn"
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6122 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6123 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-noreturn`
6124 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6125 $as_echo_n "(cached) " >&6
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6138 if ac_fn_c_try_link "$LINENO"; then :
6139 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6141 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6143 rm -f core conftest.err conftest.$ac_objext \
6144 conftest$ac_exeext conftest.$ac_ext
6148 CFLAGS="$xorg_testset_save_CFLAGS"
6150 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6152 $as_echo "$supported" >&6; }
6153 if test "$supported" = "yes" ; then
6154 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6165 xorg_testset_save_CFLAGS="$CFLAGS"
6167 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6170 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6171 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6172 $as_echo_n "(cached) " >&6
6174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6175 /* end confdefs.h. */
6178 if ac_fn_c_try_compile "$LINENO"; then :
6179 xorg_cv_cc_flag_unknown_warning_option=yes
6181 xorg_cv_cc_flag_unknown_warning_option=no
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6186 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6187 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6188 CFLAGS="$xorg_testset_save_CFLAGS"
6191 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6192 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6197 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6198 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6199 $as_echo_n "(cached) " >&6
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6205 if ac_fn_c_try_compile "$LINENO"; then :
6206 xorg_cv_cc_flag_unused_command_line_argument=yes
6208 xorg_cv_cc_flag_unused_command_line_argument=no
6210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6213 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6214 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6215 CFLAGS="$xorg_testset_save_CFLAGS"
6220 if test $found = "no" ; then
6221 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6229 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6232 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6233 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-format-attribute`
6234 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6235 $as_echo_n "(cached) " >&6
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6248 if ac_fn_c_try_link "$LINENO"; then :
6249 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6251 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6253 rm -f core conftest.err conftest.$ac_objext \
6254 conftest$ac_exeext conftest.$ac_ext
6258 CFLAGS="$xorg_testset_save_CFLAGS"
6260 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6262 $as_echo "$supported" >&6; }
6263 if test "$supported" = "yes" ; then
6264 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6275 xorg_testset_save_CFLAGS="$CFLAGS"
6277 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6280 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6281 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6282 $as_echo_n "(cached) " >&6
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6288 if ac_fn_c_try_compile "$LINENO"; then :
6289 xorg_cv_cc_flag_unknown_warning_option=yes
6291 xorg_cv_cc_flag_unknown_warning_option=no
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6296 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6297 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6298 CFLAGS="$xorg_testset_save_CFLAGS"
6301 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6302 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6307 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6308 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6309 $as_echo_n "(cached) " >&6
6311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6312 /* end confdefs.h. */
6315 if ac_fn_c_try_compile "$LINENO"; then :
6316 xorg_cv_cc_flag_unused_command_line_argument=yes
6318 xorg_cv_cc_flag_unused_command_line_argument=no
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6323 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6324 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6325 CFLAGS="$xorg_testset_save_CFLAGS"
6330 if test $found = "no" ; then
6331 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6335 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6339 CFLAGS="$CFLAGS -Wredundant-decls"
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6342 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6343 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wredundant-decls`
6344 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6345 $as_echo_n "(cached) " >&6
6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6358 if ac_fn_c_try_link "$LINENO"; then :
6359 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6361 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6363 rm -f core conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6368 CFLAGS="$xorg_testset_save_CFLAGS"
6370 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6372 $as_echo "$supported" >&6; }
6373 if test "$supported" = "yes" ; then
6374 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6381 # These are currently disabled because they are noisy. They will be enabled
6382 # in the future once the codebase is sufficiently modernized to silence
6383 # them. For now, I don't want them to drown out the other warnings.
6384 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wlogical-op])
6385 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wparentheses])
6386 # XORG_TESTSET_CFLAG([BASE_CFLAGS], [-Wcast-align])
6388 # Turn some warnings into errors, so we don't accidently get successful builds
6389 # when there are problems that should be fixed.
6391 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6397 xorg_testset_save_CFLAGS="$CFLAGS"
6399 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6402 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6403 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6404 $as_echo_n "(cached) " >&6
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6410 if ac_fn_c_try_compile "$LINENO"; then :
6411 xorg_cv_cc_flag_unknown_warning_option=yes
6413 xorg_cv_cc_flag_unknown_warning_option=no
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6418 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6419 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6420 CFLAGS="$xorg_testset_save_CFLAGS"
6423 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6429 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6430 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6431 $as_echo_n "(cached) " >&6
6433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6434 /* end confdefs.h. */
6437 if ac_fn_c_try_compile "$LINENO"; then :
6438 xorg_cv_cc_flag_unused_command_line_argument=yes
6440 xorg_cv_cc_flag_unused_command_line_argument=no
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6445 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6446 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6447 CFLAGS="$xorg_testset_save_CFLAGS"
6452 if test $found = "no" ; then
6453 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6457 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6461 CFLAGS="$CFLAGS -Werror=implicit"
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6464 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6465 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=implicit`
6466 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6467 $as_echo_n "(cached) " >&6
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6480 if ac_fn_c_try_link "$LINENO"; then :
6481 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6483 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6485 rm -f core conftest.err conftest.$ac_objext \
6486 conftest$ac_exeext conftest.$ac_ext
6490 CFLAGS="$xorg_testset_save_CFLAGS"
6492 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6494 $as_echo "$supported" >&6; }
6495 if test "$supported" = "yes" ; then
6496 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6501 if test $found = "no" ; then
6502 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6506 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6510 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6513 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6514 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED`
6515 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6516 $as_echo_n "(cached) " >&6
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6529 if ac_fn_c_try_link "$LINENO"; then :
6530 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6532 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6534 rm -f core conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6539 CFLAGS="$xorg_testset_save_CFLAGS"
6541 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6543 $as_echo "$supported" >&6; }
6544 if test "$supported" = "yes" ; then
6545 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6556 xorg_testset_save_CFLAGS="$CFLAGS"
6558 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6559 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6561 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6562 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6563 $as_echo_n "(cached) " >&6
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6569 if ac_fn_c_try_compile "$LINENO"; then :
6570 xorg_cv_cc_flag_unknown_warning_option=yes
6572 xorg_cv_cc_flag_unknown_warning_option=no
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6577 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6578 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6579 CFLAGS="$xorg_testset_save_CFLAGS"
6582 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6588 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6589 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6590 $as_echo_n "(cached) " >&6
6592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593 /* end confdefs.h. */
6596 if ac_fn_c_try_compile "$LINENO"; then :
6597 xorg_cv_cc_flag_unused_command_line_argument=yes
6599 xorg_cv_cc_flag_unused_command_line_argument=no
6601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6604 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6605 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6606 CFLAGS="$xorg_testset_save_CFLAGS"
6611 if test $found = "no" ; then
6612 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6616 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620 CFLAGS="$CFLAGS -Werror=nonnull"
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6623 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6624 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=nonnull`
6625 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6626 $as_echo_n "(cached) " >&6
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6639 if ac_fn_c_try_link "$LINENO"; then :
6640 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6642 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6644 rm -f core conftest.err conftest.$ac_objext \
6645 conftest$ac_exeext conftest.$ac_ext
6649 CFLAGS="$xorg_testset_save_CFLAGS"
6651 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6653 $as_echo "$supported" >&6; }
6654 if test "$supported" = "yes" ; then
6655 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6666 xorg_testset_save_CFLAGS="$CFLAGS"
6668 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6671 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6672 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6673 $as_echo_n "(cached) " >&6
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6679 if ac_fn_c_try_compile "$LINENO"; then :
6680 xorg_cv_cc_flag_unknown_warning_option=yes
6682 xorg_cv_cc_flag_unknown_warning_option=no
6684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6687 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6688 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6689 CFLAGS="$xorg_testset_save_CFLAGS"
6692 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6698 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6699 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6700 $as_echo_n "(cached) " >&6
6702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6706 if ac_fn_c_try_compile "$LINENO"; then :
6707 xorg_cv_cc_flag_unused_command_line_argument=yes
6709 xorg_cv_cc_flag_unused_command_line_argument=no
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6714 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6715 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6716 CFLAGS="$xorg_testset_save_CFLAGS"
6721 if test $found = "no" ; then
6722 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6726 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6730 CFLAGS="$CFLAGS -Werror=init-self"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
6733 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
6734 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=init-self`
6735 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6736 $as_echo_n "(cached) " >&6
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6749 if ac_fn_c_try_link "$LINENO"; then :
6750 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6752 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6754 rm -f core conftest.err conftest.$ac_objext \
6755 conftest$ac_exeext conftest.$ac_ext
6759 CFLAGS="$xorg_testset_save_CFLAGS"
6761 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6763 $as_echo "$supported" >&6; }
6764 if test "$supported" = "yes" ; then
6765 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
6776 xorg_testset_save_CFLAGS="$CFLAGS"
6778 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6781 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6782 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6783 $as_echo_n "(cached) " >&6
6785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6786 /* end confdefs.h. */
6789 if ac_fn_c_try_compile "$LINENO"; then :
6790 xorg_cv_cc_flag_unknown_warning_option=yes
6792 xorg_cv_cc_flag_unknown_warning_option=no
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6797 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6798 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6799 CFLAGS="$xorg_testset_save_CFLAGS"
6802 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6808 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6809 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6810 $as_echo_n "(cached) " >&6
6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6813 /* end confdefs.h. */
6816 if ac_fn_c_try_compile "$LINENO"; then :
6817 xorg_cv_cc_flag_unused_command_line_argument=yes
6819 xorg_cv_cc_flag_unused_command_line_argument=no
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6824 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6825 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6826 CFLAGS="$xorg_testset_save_CFLAGS"
6831 if test $found = "no" ; then
6832 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6836 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6840 CFLAGS="$CFLAGS -Werror=main"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
6843 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
6844 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=main`
6845 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6846 $as_echo_n "(cached) " >&6
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849 /* end confdefs.h. */
6859 if ac_fn_c_try_link "$LINENO"; then :
6860 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6862 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6864 rm -f core conftest.err conftest.$ac_objext \
6865 conftest$ac_exeext conftest.$ac_ext
6869 CFLAGS="$xorg_testset_save_CFLAGS"
6871 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6873 $as_echo "$supported" >&6; }
6874 if test "$supported" = "yes" ; then
6875 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
6886 xorg_testset_save_CFLAGS="$CFLAGS"
6888 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6891 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6892 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6893 $as_echo_n "(cached) " >&6
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 xorg_cv_cc_flag_unknown_warning_option=yes
6902 xorg_cv_cc_flag_unknown_warning_option=no
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6907 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6908 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6909 CFLAGS="$xorg_testset_save_CFLAGS"
6912 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
6913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6918 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6919 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6920 $as_echo_n "(cached) " >&6
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6926 if ac_fn_c_try_compile "$LINENO"; then :
6927 xorg_cv_cc_flag_unused_command_line_argument=yes
6929 xorg_cv_cc_flag_unused_command_line_argument=no
6931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6934 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6935 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6936 CFLAGS="$xorg_testset_save_CFLAGS"
6941 if test $found = "no" ; then
6942 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6946 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6950 CFLAGS="$CFLAGS -Werror=missing-braces"
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
6953 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
6954 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=missing-braces`
6955 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
6956 $as_echo_n "(cached) " >&6
6958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6959 /* end confdefs.h. */
6969 if ac_fn_c_try_link "$LINENO"; then :
6970 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
6972 eval `$as_echo "$cacheid" | $as_tr_sh`=no
6974 rm -f core conftest.err conftest.$ac_objext \
6975 conftest$ac_exeext conftest.$ac_ext
6979 CFLAGS="$xorg_testset_save_CFLAGS"
6981 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6983 $as_echo "$supported" >&6; }
6984 if test "$supported" = "yes" ; then
6985 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
6996 xorg_testset_save_CFLAGS="$CFLAGS"
6998 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
6999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7001 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7002 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7003 $as_echo_n "(cached) " >&6
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7009 if ac_fn_c_try_compile "$LINENO"; then :
7010 xorg_cv_cc_flag_unknown_warning_option=yes
7012 xorg_cv_cc_flag_unknown_warning_option=no
7014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7017 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7018 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7019 CFLAGS="$xorg_testset_save_CFLAGS"
7022 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7028 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7029 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7030 $as_echo_n "(cached) " >&6
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7036 if ac_fn_c_try_compile "$LINENO"; then :
7037 xorg_cv_cc_flag_unused_command_line_argument=yes
7039 xorg_cv_cc_flag_unused_command_line_argument=no
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7044 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7045 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7046 CFLAGS="$xorg_testset_save_CFLAGS"
7051 if test $found = "no" ; then
7052 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7060 CFLAGS="$CFLAGS -Werror=sequence-point"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7063 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7064 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=sequence-point`
7065 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7066 $as_echo_n "(cached) " >&6
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7079 if ac_fn_c_try_link "$LINENO"; then :
7080 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7082 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7084 rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7089 CFLAGS="$xorg_testset_save_CFLAGS"
7091 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7093 $as_echo "$supported" >&6; }
7094 if test "$supported" = "yes" ; then
7095 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7106 xorg_testset_save_CFLAGS="$CFLAGS"
7108 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7111 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7112 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7113 $as_echo_n "(cached) " >&6
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7119 if ac_fn_c_try_compile "$LINENO"; then :
7120 xorg_cv_cc_flag_unknown_warning_option=yes
7122 xorg_cv_cc_flag_unknown_warning_option=no
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7127 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7128 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7129 CFLAGS="$xorg_testset_save_CFLAGS"
7132 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7138 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7139 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7140 $as_echo_n "(cached) " >&6
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7146 if ac_fn_c_try_compile "$LINENO"; then :
7147 xorg_cv_cc_flag_unused_command_line_argument=yes
7149 xorg_cv_cc_flag_unused_command_line_argument=no
7151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7154 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7155 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7161 if test $found = "no" ; then
7162 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7166 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7170 CFLAGS="$CFLAGS -Werror=return-type"
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7173 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7174 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=return-type`
7175 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7176 $as_echo_n "(cached) " >&6
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7189 if ac_fn_c_try_link "$LINENO"; then :
7190 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7192 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7194 rm -f core conftest.err conftest.$ac_objext \
7195 conftest$ac_exeext conftest.$ac_ext
7199 CFLAGS="$xorg_testset_save_CFLAGS"
7201 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7203 $as_echo "$supported" >&6; }
7204 if test "$supported" = "yes" ; then
7205 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7210 if test $found = "no" ; then
7211 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7215 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7219 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7222 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7223 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT`
7224 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7225 $as_echo_n "(cached) " >&6
7227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h. */
7238 if ac_fn_c_try_link "$LINENO"; then :
7239 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7241 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7243 rm -f core conftest.err conftest.$ac_objext \
7244 conftest$ac_exeext conftest.$ac_ext
7248 CFLAGS="$xorg_testset_save_CFLAGS"
7250 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7252 $as_echo "$supported" >&6; }
7253 if test "$supported" = "yes" ; then
7254 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7265 xorg_testset_save_CFLAGS="$CFLAGS"
7267 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7270 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7271 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7272 $as_echo_n "(cached) " >&6
7274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275 /* end confdefs.h. */
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 xorg_cv_cc_flag_unknown_warning_option=yes
7281 xorg_cv_cc_flag_unknown_warning_option=no
7283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7286 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7287 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7288 CFLAGS="$xorg_testset_save_CFLAGS"
7291 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7292 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7297 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7298 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 /* end confdefs.h. */
7305 if ac_fn_c_try_compile "$LINENO"; then :
7306 xorg_cv_cc_flag_unused_command_line_argument=yes
7308 xorg_cv_cc_flag_unused_command_line_argument=no
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7313 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7314 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7320 if test $found = "no" ; then
7321 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7325 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329 CFLAGS="$CFLAGS -Werror=trigraphs"
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7332 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7333 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=trigraphs`
7334 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7335 $as_echo_n "(cached) " >&6
7337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338 /* end confdefs.h. */
7348 if ac_fn_c_try_link "$LINENO"; then :
7349 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7351 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7353 rm -f core conftest.err conftest.$ac_objext \
7354 conftest$ac_exeext conftest.$ac_ext
7358 CFLAGS="$xorg_testset_save_CFLAGS"
7360 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7362 $as_echo "$supported" >&6; }
7363 if test "$supported" = "yes" ; then
7364 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7375 xorg_testset_save_CFLAGS="$CFLAGS"
7377 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7381 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7382 $as_echo_n "(cached) " >&6
7384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7385 /* end confdefs.h. */
7388 if ac_fn_c_try_compile "$LINENO"; then :
7389 xorg_cv_cc_flag_unknown_warning_option=yes
7391 xorg_cv_cc_flag_unknown_warning_option=no
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7396 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7397 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7398 CFLAGS="$xorg_testset_save_CFLAGS"
7401 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7402 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7407 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7408 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7409 $as_echo_n "(cached) " >&6
7411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7412 /* end confdefs.h. */
7415 if ac_fn_c_try_compile "$LINENO"; then :
7416 xorg_cv_cc_flag_unused_command_line_argument=yes
7418 xorg_cv_cc_flag_unused_command_line_argument=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7423 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7424 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7425 CFLAGS="$xorg_testset_save_CFLAGS"
7430 if test $found = "no" ; then
7431 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7435 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7439 CFLAGS="$CFLAGS -Werror=array-bounds"
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7442 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7443 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=array-bounds`
7444 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7445 $as_echo_n "(cached) " >&6
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7458 if ac_fn_c_try_link "$LINENO"; then :
7459 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7461 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7463 rm -f core conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7468 CFLAGS="$xorg_testset_save_CFLAGS"
7470 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7472 $as_echo "$supported" >&6; }
7473 if test "$supported" = "yes" ; then
7474 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7485 xorg_testset_save_CFLAGS="$CFLAGS"
7487 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7488 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7490 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7491 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7492 $as_echo_n "(cached) " >&6
7494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* end confdefs.h. */
7498 if ac_fn_c_try_compile "$LINENO"; then :
7499 xorg_cv_cc_flag_unknown_warning_option=yes
7501 xorg_cv_cc_flag_unknown_warning_option=no
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7506 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7507 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7508 CFLAGS="$xorg_testset_save_CFLAGS"
7511 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7512 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7517 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7518 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7519 $as_echo_n "(cached) " >&6
7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7522 /* end confdefs.h. */
7525 if ac_fn_c_try_compile "$LINENO"; then :
7526 xorg_cv_cc_flag_unused_command_line_argument=yes
7528 xorg_cv_cc_flag_unused_command_line_argument=no
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7533 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7534 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7535 CFLAGS="$xorg_testset_save_CFLAGS"
7540 if test $found = "no" ; then
7541 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7545 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7549 CFLAGS="$CFLAGS -Werror=write-strings"
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7552 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7553 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=write-strings`
7554 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7555 $as_echo_n "(cached) " >&6
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7568 if ac_fn_c_try_link "$LINENO"; then :
7569 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7571 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext conftest.$ac_ext
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7580 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7582 $as_echo "$supported" >&6; }
7583 if test "$supported" = "yes" ; then
7584 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7595 xorg_testset_save_CFLAGS="$CFLAGS"
7597 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7602 $as_echo_n "(cached) " >&6
7604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605 /* end confdefs.h. */
7608 if ac_fn_c_try_compile "$LINENO"; then :
7609 xorg_cv_cc_flag_unknown_warning_option=yes
7611 xorg_cv_cc_flag_unknown_warning_option=no
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7617 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7618 CFLAGS="$xorg_testset_save_CFLAGS"
7621 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7622 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7629 $as_echo_n "(cached) " >&6
7631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7632 /* end confdefs.h. */
7635 if ac_fn_c_try_compile "$LINENO"; then :
7636 xorg_cv_cc_flag_unused_command_line_argument=yes
7638 xorg_cv_cc_flag_unused_command_line_argument=no
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7644 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7645 CFLAGS="$xorg_testset_save_CFLAGS"
7650 if test $found = "no" ; then
7651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7655 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7659 CFLAGS="$CFLAGS -Werror=address"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
7662 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
7663 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=address`
7664 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7665 $as_echo_n "(cached) " >&6
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7678 if ac_fn_c_try_link "$LINENO"; then :
7679 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7681 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7683 rm -f core conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7688 CFLAGS="$xorg_testset_save_CFLAGS"
7690 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7692 $as_echo "$supported" >&6; }
7693 if test "$supported" = "yes" ; then
7694 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
7705 xorg_testset_save_CFLAGS="$CFLAGS"
7707 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7710 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7711 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7712 $as_echo_n "(cached) " >&6
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7718 if ac_fn_c_try_compile "$LINENO"; then :
7719 xorg_cv_cc_flag_unknown_warning_option=yes
7721 xorg_cv_cc_flag_unknown_warning_option=no
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7726 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7727 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7728 CFLAGS="$xorg_testset_save_CFLAGS"
7731 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7737 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7738 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7739 $as_echo_n "(cached) " >&6
7741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7742 /* end confdefs.h. */
7745 if ac_fn_c_try_compile "$LINENO"; then :
7746 xorg_cv_cc_flag_unused_command_line_argument=yes
7748 xorg_cv_cc_flag_unused_command_line_argument=no
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7753 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7754 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7755 CFLAGS="$xorg_testset_save_CFLAGS"
7760 if test $found = "no" ; then
7761 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
7772 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
7773 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=int-to-pointer-cast`
7774 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7775 $as_echo_n "(cached) " >&6
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7788 if ac_fn_c_try_link "$LINENO"; then :
7789 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7791 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7793 rm -f core conftest.err conftest.$ac_objext \
7794 conftest$ac_exeext conftest.$ac_ext
7798 CFLAGS="$xorg_testset_save_CFLAGS"
7800 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7802 $as_echo "$supported" >&6; }
7803 if test "$supported" = "yes" ; then
7804 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
7809 if test $found = "no" ; then
7810 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7814 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7818 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
7821 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
7822 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION`
7823 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7824 $as_echo_n "(cached) " >&6
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827 /* end confdefs.h. */
7837 if ac_fn_c_try_link "$LINENO"; then :
7838 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7840 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7842 rm -f core conftest.err conftest.$ac_objext \
7843 conftest$ac_exeext conftest.$ac_ext
7847 CFLAGS="$xorg_testset_save_CFLAGS"
7849 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7851 $as_echo "$supported" >&6; }
7852 if test "$supported" = "yes" ; then
7853 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
7864 xorg_testset_save_CFLAGS="$CFLAGS"
7866 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7869 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7870 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7877 if ac_fn_c_try_compile "$LINENO"; then :
7878 xorg_cv_cc_flag_unknown_warning_option=yes
7880 xorg_cv_cc_flag_unknown_warning_option=no
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7885 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7886 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7887 CFLAGS="$xorg_testset_save_CFLAGS"
7890 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
7891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7896 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7897 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7898 $as_echo_n "(cached) " >&6
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7904 if ac_fn_c_try_compile "$LINENO"; then :
7905 xorg_cv_cc_flag_unused_command_line_argument=yes
7907 xorg_cv_cc_flag_unused_command_line_argument=no
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7912 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7913 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7914 CFLAGS="$xorg_testset_save_CFLAGS"
7919 if test $found = "no" ; then
7920 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7928 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
7931 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
7932 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=pointer-to-int-cast`
7933 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
7934 $as_echo_n "(cached) " >&6
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7947 if ac_fn_c_try_link "$LINENO"; then :
7948 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
7950 eval `$as_echo "$cacheid" | $as_tr_sh`=no
7952 rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7957 CFLAGS="$xorg_testset_save_CFLAGS"
7959 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7961 $as_echo "$supported" >&6; }
7962 if test "$supported" = "yes" ; then
7963 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
7968 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
7970 { $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
7971 $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;}
7977 xorg_testset_save_CFLAGS="$CFLAGS"
7979 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
7980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7982 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7983 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7984 $as_echo_n "(cached) " >&6
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7990 if ac_fn_c_try_compile "$LINENO"; then :
7991 xorg_cv_cc_flag_unknown_warning_option=yes
7993 xorg_cv_cc_flag_unknown_warning_option=no
7995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7998 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7999 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8000 CFLAGS="$xorg_testset_save_CFLAGS"
8003 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8004 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8009 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8010 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8011 $as_echo_n "(cached) " >&6
8013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014 /* end confdefs.h. */
8017 if ac_fn_c_try_compile "$LINENO"; then :
8018 xorg_cv_cc_flag_unused_command_line_argument=yes
8020 xorg_cv_cc_flag_unused_command_line_argument=no
8022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8025 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8026 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8027 CFLAGS="$xorg_testset_save_CFLAGS"
8032 if test $found = "no" ; then
8033 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8041 CFLAGS="$CFLAGS -Wimplicit"
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8044 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8045 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wimplicit`
8046 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8047 $as_echo_n "(cached) " >&6
8049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h. */
8060 if ac_fn_c_try_link "$LINENO"; then :
8061 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8063 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8065 rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
8070 CFLAGS="$xorg_testset_save_CFLAGS"
8072 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8074 $as_echo "$supported" >&6; }
8075 if test "$supported" = "yes" ; then
8076 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8087 xorg_testset_save_CFLAGS="$CFLAGS"
8089 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8092 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8093 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8094 $as_echo_n "(cached) " >&6
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8097 /* end confdefs.h. */
8100 if ac_fn_c_try_compile "$LINENO"; then :
8101 xorg_cv_cc_flag_unknown_warning_option=yes
8103 xorg_cv_cc_flag_unknown_warning_option=no
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8108 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8109 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8110 CFLAGS="$xorg_testset_save_CFLAGS"
8113 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8114 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8119 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8120 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8121 $as_echo_n "(cached) " >&6
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128 xorg_cv_cc_flag_unused_command_line_argument=yes
8130 xorg_cv_cc_flag_unused_command_line_argument=no
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8135 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8136 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8137 CFLAGS="$xorg_testset_save_CFLAGS"
8142 if test $found = "no" ; then
8143 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8147 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8151 CFLAGS="$CFLAGS -Wnonnull"
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8154 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8155 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wnonnull`
8156 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8157 $as_echo_n "(cached) " >&6
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8170 if ac_fn_c_try_link "$LINENO"; then :
8171 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8173 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8175 rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8180 CFLAGS="$xorg_testset_save_CFLAGS"
8182 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8184 $as_echo "$supported" >&6; }
8185 if test "$supported" = "yes" ; then
8186 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8197 xorg_testset_save_CFLAGS="$CFLAGS"
8199 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8204 $as_echo_n "(cached) " >&6
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211 xorg_cv_cc_flag_unknown_warning_option=yes
8213 xorg_cv_cc_flag_unknown_warning_option=no
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8219 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8220 CFLAGS="$xorg_testset_save_CFLAGS"
8223 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8224 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8231 $as_echo_n "(cached) " >&6
8233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8237 if ac_fn_c_try_compile "$LINENO"; then :
8238 xorg_cv_cc_flag_unused_command_line_argument=yes
8240 xorg_cv_cc_flag_unused_command_line_argument=no
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8246 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8247 CFLAGS="$xorg_testset_save_CFLAGS"
8252 if test $found = "no" ; then
8253 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8257 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8261 CFLAGS="$CFLAGS -Winit-self"
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8264 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8265 cacheid=`$as_echo_n xorg_cv_cc_flag_-Winit-self`
8266 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8267 $as_echo_n "(cached) " >&6
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8280 if ac_fn_c_try_link "$LINENO"; then :
8281 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8283 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8285 rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
8290 CFLAGS="$xorg_testset_save_CFLAGS"
8292 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8294 $as_echo "$supported" >&6; }
8295 if test "$supported" = "yes" ; then
8296 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8307 xorg_testset_save_CFLAGS="$CFLAGS"
8309 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8312 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8313 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8314 $as_echo_n "(cached) " >&6
8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8317 /* end confdefs.h. */
8320 if ac_fn_c_try_compile "$LINENO"; then :
8321 xorg_cv_cc_flag_unknown_warning_option=yes
8323 xorg_cv_cc_flag_unknown_warning_option=no
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8328 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8329 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8330 CFLAGS="$xorg_testset_save_CFLAGS"
8333 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8334 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8339 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8340 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8341 $as_echo_n "(cached) " >&6
8343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8347 if ac_fn_c_try_compile "$LINENO"; then :
8348 xorg_cv_cc_flag_unused_command_line_argument=yes
8350 xorg_cv_cc_flag_unused_command_line_argument=no
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8355 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8356 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8357 CFLAGS="$xorg_testset_save_CFLAGS"
8362 if test $found = "no" ; then
8363 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8371 CFLAGS="$CFLAGS -Wmain"
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8374 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8375 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmain`
8376 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8377 $as_echo_n "(cached) " >&6
8379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8380 /* end confdefs.h. */
8390 if ac_fn_c_try_link "$LINENO"; then :
8391 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8393 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8395 rm -f core conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
8400 CFLAGS="$xorg_testset_save_CFLAGS"
8402 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8404 $as_echo "$supported" >&6; }
8405 if test "$supported" = "yes" ; then
8406 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8417 xorg_testset_save_CFLAGS="$CFLAGS"
8419 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8422 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8423 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8424 $as_echo_n "(cached) " >&6
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8430 if ac_fn_c_try_compile "$LINENO"; then :
8431 xorg_cv_cc_flag_unknown_warning_option=yes
8433 xorg_cv_cc_flag_unknown_warning_option=no
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8438 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8439 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8440 CFLAGS="$xorg_testset_save_CFLAGS"
8443 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8444 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8449 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8450 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8451 $as_echo_n "(cached) " >&6
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8457 if ac_fn_c_try_compile "$LINENO"; then :
8458 xorg_cv_cc_flag_unused_command_line_argument=yes
8460 xorg_cv_cc_flag_unused_command_line_argument=no
8462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8465 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8466 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8467 CFLAGS="$xorg_testset_save_CFLAGS"
8472 if test $found = "no" ; then
8473 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481 CFLAGS="$CFLAGS -Wmissing-braces"
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8484 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8485 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wmissing-braces`
8486 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8487 $as_echo_n "(cached) " >&6
8489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8490 /* end confdefs.h. */
8500 if ac_fn_c_try_link "$LINENO"; then :
8501 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8503 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8505 rm -f core conftest.err conftest.$ac_objext \
8506 conftest$ac_exeext conftest.$ac_ext
8510 CFLAGS="$xorg_testset_save_CFLAGS"
8512 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8514 $as_echo "$supported" >&6; }
8515 if test "$supported" = "yes" ; then
8516 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8527 xorg_testset_save_CFLAGS="$CFLAGS"
8529 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8532 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8533 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8534 $as_echo_n "(cached) " >&6
8536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8537 /* end confdefs.h. */
8540 if ac_fn_c_try_compile "$LINENO"; then :
8541 xorg_cv_cc_flag_unknown_warning_option=yes
8543 xorg_cv_cc_flag_unknown_warning_option=no
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8548 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8549 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8550 CFLAGS="$xorg_testset_save_CFLAGS"
8553 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8554 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8559 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8560 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8561 $as_echo_n "(cached) " >&6
8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564 /* end confdefs.h. */
8567 if ac_fn_c_try_compile "$LINENO"; then :
8568 xorg_cv_cc_flag_unused_command_line_argument=yes
8570 xorg_cv_cc_flag_unused_command_line_argument=no
8572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8575 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8576 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8577 CFLAGS="$xorg_testset_save_CFLAGS"
8582 if test $found = "no" ; then
8583 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8584 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8587 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8588 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8591 CFLAGS="$CFLAGS -Wsequence-point"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
8594 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
8595 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wsequence-point`
8596 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8597 $as_echo_n "(cached) " >&6
8599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8600 /* end confdefs.h. */
8610 if ac_fn_c_try_link "$LINENO"; then :
8611 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8613 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8615 rm -f core conftest.err conftest.$ac_objext \
8616 conftest$ac_exeext conftest.$ac_ext
8620 CFLAGS="$xorg_testset_save_CFLAGS"
8622 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8624 $as_echo "$supported" >&6; }
8625 if test "$supported" = "yes" ; then
8626 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
8637 xorg_testset_save_CFLAGS="$CFLAGS"
8639 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8642 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8643 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8644 $as_echo_n "(cached) " >&6
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647 /* end confdefs.h. */
8650 if ac_fn_c_try_compile "$LINENO"; then :
8651 xorg_cv_cc_flag_unknown_warning_option=yes
8653 xorg_cv_cc_flag_unknown_warning_option=no
8655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8658 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8659 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8660 CFLAGS="$xorg_testset_save_CFLAGS"
8663 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8664 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8669 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8670 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8671 $as_echo_n "(cached) " >&6
8673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8674 /* end confdefs.h. */
8677 if ac_fn_c_try_compile "$LINENO"; then :
8678 xorg_cv_cc_flag_unused_command_line_argument=yes
8680 xorg_cv_cc_flag_unused_command_line_argument=no
8682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8685 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8686 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8687 CFLAGS="$xorg_testset_save_CFLAGS"
8692 if test $found = "no" ; then
8693 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8701 CFLAGS="$CFLAGS -Wreturn-type"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
8704 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
8705 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wreturn-type`
8706 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8707 $as_echo_n "(cached) " >&6
8709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8710 /* end confdefs.h. */
8720 if ac_fn_c_try_link "$LINENO"; then :
8721 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8723 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8725 rm -f core conftest.err conftest.$ac_objext \
8726 conftest$ac_exeext conftest.$ac_ext
8730 CFLAGS="$xorg_testset_save_CFLAGS"
8732 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8734 $as_echo "$supported" >&6; }
8735 if test "$supported" = "yes" ; then
8736 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
8747 xorg_testset_save_CFLAGS="$CFLAGS"
8749 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8752 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8753 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8754 $as_echo_n "(cached) " >&6
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8760 if ac_fn_c_try_compile "$LINENO"; then :
8761 xorg_cv_cc_flag_unknown_warning_option=yes
8763 xorg_cv_cc_flag_unknown_warning_option=no
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8768 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8769 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8770 CFLAGS="$xorg_testset_save_CFLAGS"
8773 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8774 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8775 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8779 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8780 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8781 $as_echo_n "(cached) " >&6
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8787 if ac_fn_c_try_compile "$LINENO"; then :
8788 xorg_cv_cc_flag_unused_command_line_argument=yes
8790 xorg_cv_cc_flag_unused_command_line_argument=no
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8795 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8796 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8797 CFLAGS="$xorg_testset_save_CFLAGS"
8802 if test $found = "no" ; then
8803 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8807 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811 CFLAGS="$CFLAGS -Wtrigraphs"
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
8814 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
8815 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wtrigraphs`
8816 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8817 $as_echo_n "(cached) " >&6
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8830 if ac_fn_c_try_link "$LINENO"; then :
8831 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8833 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8835 rm -f core conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
8840 CFLAGS="$xorg_testset_save_CFLAGS"
8842 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8844 $as_echo "$supported" >&6; }
8845 if test "$supported" = "yes" ; then
8846 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
8857 xorg_testset_save_CFLAGS="$CFLAGS"
8859 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8860 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8862 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8863 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8864 $as_echo_n "(cached) " >&6
8866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h. */
8870 if ac_fn_c_try_compile "$LINENO"; then :
8871 xorg_cv_cc_flag_unknown_warning_option=yes
8873 xorg_cv_cc_flag_unknown_warning_option=no
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8878 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8879 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8880 CFLAGS="$xorg_testset_save_CFLAGS"
8883 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8884 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8889 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8890 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_cc_flag_unused_command_line_argument=yes
8900 xorg_cv_cc_flag_unused_command_line_argument=no
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8905 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8906 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8907 CFLAGS="$xorg_testset_save_CFLAGS"
8912 if test $found = "no" ; then
8913 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8917 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8921 CFLAGS="$CFLAGS -Warray-bounds"
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
8924 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
8925 cacheid=`$as_echo_n xorg_cv_cc_flag_-Warray-bounds`
8926 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
8927 $as_echo_n "(cached) " >&6
8929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8930 /* end confdefs.h. */
8940 if ac_fn_c_try_link "$LINENO"; then :
8941 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
8943 eval `$as_echo "$cacheid" | $as_tr_sh`=no
8945 rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
8950 CFLAGS="$xorg_testset_save_CFLAGS"
8952 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8954 $as_echo "$supported" >&6; }
8955 if test "$supported" = "yes" ; then
8956 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
8967 xorg_testset_save_CFLAGS="$CFLAGS"
8969 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
8970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8972 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8973 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8974 $as_echo_n "(cached) " >&6
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8980 if ac_fn_c_try_compile "$LINENO"; then :
8981 xorg_cv_cc_flag_unknown_warning_option=yes
8983 xorg_cv_cc_flag_unknown_warning_option=no
8985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8988 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8989 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8990 CFLAGS="$xorg_testset_save_CFLAGS"
8993 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
8994 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8999 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9000 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9001 $as_echo_n "(cached) " >&6
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9007 if ac_fn_c_try_compile "$LINENO"; then :
9008 xorg_cv_cc_flag_unused_command_line_argument=yes
9010 xorg_cv_cc_flag_unused_command_line_argument=no
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9015 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9016 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9022 if test $found = "no" ; then
9023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9027 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031 CFLAGS="$CFLAGS -Wwrite-strings"
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9034 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9035 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wwrite-strings`
9036 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9037 $as_echo_n "(cached) " >&6
9039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* end confdefs.h. */
9050 if ac_fn_c_try_link "$LINENO"; then :
9051 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9053 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9060 CFLAGS="$xorg_testset_save_CFLAGS"
9062 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9064 $as_echo "$supported" >&6; }
9065 if test "$supported" = "yes" ; then
9066 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9077 xorg_testset_save_CFLAGS="$CFLAGS"
9079 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9080 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9082 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9083 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9084 $as_echo_n "(cached) " >&6
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9090 if ac_fn_c_try_compile "$LINENO"; then :
9091 xorg_cv_cc_flag_unknown_warning_option=yes
9093 xorg_cv_cc_flag_unknown_warning_option=no
9095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9098 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9099 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9100 CFLAGS="$xorg_testset_save_CFLAGS"
9103 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9104 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9109 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9110 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9111 $as_echo_n "(cached) " >&6
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9117 if ac_fn_c_try_compile "$LINENO"; then :
9118 xorg_cv_cc_flag_unused_command_line_argument=yes
9120 xorg_cv_cc_flag_unused_command_line_argument=no
9122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9125 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9126 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9127 CFLAGS="$xorg_testset_save_CFLAGS"
9132 if test $found = "no" ; then
9133 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9141 CFLAGS="$CFLAGS -Waddress"
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9144 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9145 cacheid=`$as_echo_n xorg_cv_cc_flag_-Waddress`
9146 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9147 $as_echo_n "(cached) " >&6
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9160 if ac_fn_c_try_link "$LINENO"; then :
9161 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9163 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9165 rm -f core conftest.err conftest.$ac_objext \
9166 conftest$ac_exeext conftest.$ac_ext
9170 CFLAGS="$xorg_testset_save_CFLAGS"
9172 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9174 $as_echo "$supported" >&6; }
9175 if test "$supported" = "yes" ; then
9176 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9187 xorg_testset_save_CFLAGS="$CFLAGS"
9189 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9192 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9193 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9194 $as_echo_n "(cached) " >&6
9196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9200 if ac_fn_c_try_compile "$LINENO"; then :
9201 xorg_cv_cc_flag_unknown_warning_option=yes
9203 xorg_cv_cc_flag_unknown_warning_option=no
9205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9208 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9209 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9210 CFLAGS="$xorg_testset_save_CFLAGS"
9213 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9214 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9219 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9220 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9221 $as_echo_n "(cached) " >&6
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9227 if ac_fn_c_try_compile "$LINENO"; then :
9228 xorg_cv_cc_flag_unused_command_line_argument=yes
9230 xorg_cv_cc_flag_unused_command_line_argument=no
9232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9235 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9236 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9237 CFLAGS="$xorg_testset_save_CFLAGS"
9242 if test $found = "no" ; then
9243 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9247 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9251 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9254 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9255 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wint-to-pointer-cast`
9256 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9257 $as_echo_n "(cached) " >&6
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9270 if ac_fn_c_try_link "$LINENO"; then :
9271 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9273 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9275 rm -f core conftest.err conftest.$ac_objext \
9276 conftest$ac_exeext conftest.$ac_ext
9280 CFLAGS="$xorg_testset_save_CFLAGS"
9282 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9284 $as_echo "$supported" >&6; }
9285 if test "$supported" = "yes" ; then
9286 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9297 xorg_testset_save_CFLAGS="$CFLAGS"
9299 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9302 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9303 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9304 $as_echo_n "(cached) " >&6
9306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h. */
9310 if ac_fn_c_try_compile "$LINENO"; then :
9311 xorg_cv_cc_flag_unknown_warning_option=yes
9313 xorg_cv_cc_flag_unknown_warning_option=no
9315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9318 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9319 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9320 CFLAGS="$xorg_testset_save_CFLAGS"
9323 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9324 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9329 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9330 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9331 $as_echo_n "(cached) " >&6
9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9334 /* end confdefs.h. */
9337 if ac_fn_c_try_compile "$LINENO"; then :
9338 xorg_cv_cc_flag_unused_command_line_argument=yes
9340 xorg_cv_cc_flag_unused_command_line_argument=no
9342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9345 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9346 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9347 CFLAGS="$xorg_testset_save_CFLAGS"
9352 if test $found = "no" ; then
9353 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9357 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9361 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9364 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9365 cacheid=`$as_echo_n xorg_cv_cc_flag_-Wpointer-to-int-cast`
9366 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9367 $as_echo_n "(cached) " >&6
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9380 if ac_fn_c_try_link "$LINENO"; then :
9381 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9383 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9385 rm -f core conftest.err conftest.$ac_objext \
9386 conftest$ac_exeext conftest.$ac_ext
9390 CFLAGS="$xorg_testset_save_CFLAGS"
9392 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9394 $as_echo "$supported" >&6; }
9395 if test "$supported" = "yes" ; then
9396 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9409 CWARNFLAGS="$BASE_CFLAGS"
9410 if test "x$GCC" = xyes ; then
9411 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9419 # Check whether --enable-strict-compilation was given.
9420 if test "${enable_strict_compilation+set}" = set; then :
9421 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9433 xorg_testset_save_CFLAGS="$CFLAGS"
9435 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9440 $as_echo_n "(cached) " >&6
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447 xorg_cv_cc_flag_unknown_warning_option=yes
9449 xorg_cv_cc_flag_unknown_warning_option=no
9451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9455 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9456 CFLAGS="$xorg_testset_save_CFLAGS"
9459 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9460 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9467 $as_echo_n "(cached) " >&6
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9473 if ac_fn_c_try_compile "$LINENO"; then :
9474 xorg_cv_cc_flag_unused_command_line_argument=yes
9476 xorg_cv_cc_flag_unused_command_line_argument=no
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9482 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9483 CFLAGS="$xorg_testset_save_CFLAGS"
9488 if test $found = "no" ; then
9489 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9493 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9497 CFLAGS="$CFLAGS -pedantic"
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9500 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9501 cacheid=`$as_echo_n xorg_cv_cc_flag_-pedantic`
9502 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9503 $as_echo_n "(cached) " >&6
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9516 if ac_fn_c_try_link "$LINENO"; then :
9517 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9519 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9521 rm -f core conftest.err conftest.$ac_objext \
9522 conftest$ac_exeext conftest.$ac_ext
9526 CFLAGS="$xorg_testset_save_CFLAGS"
9528 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9530 $as_echo "$supported" >&6; }
9531 if test "$supported" = "yes" ; then
9532 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
9543 xorg_testset_save_CFLAGS="$CFLAGS"
9545 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9550 $as_echo_n "(cached) " >&6
9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9553 /* end confdefs.h. */
9556 if ac_fn_c_try_compile "$LINENO"; then :
9557 xorg_cv_cc_flag_unknown_warning_option=yes
9559 xorg_cv_cc_flag_unknown_warning_option=no
9561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9565 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9566 CFLAGS="$xorg_testset_save_CFLAGS"
9569 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9570 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9577 $as_echo_n "(cached) " >&6
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9583 if ac_fn_c_try_compile "$LINENO"; then :
9584 xorg_cv_cc_flag_unused_command_line_argument=yes
9586 xorg_cv_cc_flag_unused_command_line_argument=no
9588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9592 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9593 CFLAGS="$xorg_testset_save_CFLAGS"
9598 if test $found = "no" ; then
9599 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9603 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607 CFLAGS="$CFLAGS -Werror"
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
9610 $as_echo_n "checking if $CC supports -Werror... " >&6; }
9611 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror`
9612 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9613 $as_echo_n "(cached) " >&6
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9626 if ac_fn_c_try_link "$LINENO"; then :
9627 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9629 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9631 rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
9636 CFLAGS="$xorg_testset_save_CFLAGS"
9638 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9640 $as_echo "$supported" >&6; }
9641 if test "$supported" = "yes" ; then
9642 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
9647 if test $found = "no" ; then
9648 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9656 CFLAGS="$CFLAGS -errwarn"
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
9659 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
9660 cacheid=`$as_echo_n xorg_cv_cc_flag_-errwarn`
9661 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9662 $as_echo_n "(cached) " >&6
9664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9665 /* end confdefs.h. */
9675 if ac_fn_c_try_link "$LINENO"; then :
9676 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9678 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9680 rm -f core conftest.err conftest.$ac_objext \
9681 conftest$ac_exeext conftest.$ac_ext
9685 CFLAGS="$xorg_testset_save_CFLAGS"
9687 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9689 $as_echo "$supported" >&6; }
9690 if test "$supported" = "yes" ; then
9691 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
9698 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
9699 # activate it with -Werror, so we add it here explicitly.
9705 xorg_testset_save_CFLAGS="$CFLAGS"
9707 if test "x$xorg_testset_unknown_warning_option" = "x" ; then
9708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9710 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9711 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9712 $as_echo_n "(cached) " >&6
9714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9715 /* end confdefs.h. */
9718 if ac_fn_c_try_compile "$LINENO"; then :
9719 xorg_cv_cc_flag_unknown_warning_option=yes
9721 xorg_cv_cc_flag_unknown_warning_option=no
9723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9726 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9727 xorg_testset_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9728 CFLAGS="$xorg_testset_save_CFLAGS"
9731 if test "x$xorg_testset_unused_command_line_argument" = "x" ; then
9732 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9737 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9738 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9739 $as_echo_n "(cached) " >&6
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9745 if ac_fn_c_try_compile "$LINENO"; then :
9746 xorg_cv_cc_flag_unused_command_line_argument=yes
9748 xorg_cv_cc_flag_unused_command_line_argument=no
9750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9753 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9754 xorg_testset_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9755 CFLAGS="$xorg_testset_save_CFLAGS"
9760 if test $found = "no" ; then
9761 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9765 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9769 CFLAGS="$CFLAGS -Werror=attributes"
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
9772 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
9773 cacheid=`$as_echo_n xorg_cv_cc_flag_-Werror=attributes`
9774 if { as_var=`$as_echo "$cacheid" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
9775 $as_echo_n "(cached) " >&6
9777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9778 /* end confdefs.h. */
9788 if ac_fn_c_try_link "$LINENO"; then :
9789 eval `$as_echo "$cacheid" | $as_tr_sh`=yes
9791 eval `$as_echo "$cacheid" | $as_tr_sh`=no
9793 rm -f core conftest.err conftest.$ac_objext \
9794 conftest$ac_exeext conftest.$ac_ext
9798 CFLAGS="$xorg_testset_save_CFLAGS"
9800 eval supported=$`$as_echo "$cacheid" | $as_tr_sh`
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9802 $as_echo "$supported" >&6; }
9803 if test "$supported" = "yes" ; then
9804 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
9811 if test "x$STRICT_COMPILE" = "xyes"; then
9812 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
9813 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
9821 cat >>confdefs.h <<_ACEOF
9822 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
9825 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
9826 if test "x$PVM" = "x"; then
9830 cat >>confdefs.h <<_ACEOF
9831 #define PACKAGE_VERSION_MINOR $PVM
9834 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
9835 if test "x$PVP" = "x"; then
9839 cat >>confdefs.h <<_ACEOF
9840 #define PACKAGE_VERSION_PATCHLEVEL $PVP
9845 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
9846 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
9847 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
9848 echo 'git directory not found: installing possibly empty changelog.' >&2)"
9853 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
9854 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
9855 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
9856 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
9857 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
9864 if test x$APP_MAN_SUFFIX = x ; then
9867 if test x$APP_MAN_DIR = x ; then
9868 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
9871 if test x$LIB_MAN_SUFFIX = x ; then
9874 if test x$LIB_MAN_DIR = x ; then
9875 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
9878 if test x$FILE_MAN_SUFFIX = x ; then
9880 solaris*) FILE_MAN_SUFFIX=4 ;;
9881 *) FILE_MAN_SUFFIX=5 ;;
9884 if test x$FILE_MAN_DIR = x ; then
9885 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
9888 if test x$MISC_MAN_SUFFIX = x ; then
9890 solaris*) MISC_MAN_SUFFIX=5 ;;
9891 *) MISC_MAN_SUFFIX=7 ;;
9894 if test x$MISC_MAN_DIR = x ; then
9895 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
9898 if test x$DRIVER_MAN_SUFFIX = x ; then
9900 solaris*) DRIVER_MAN_SUFFIX=7 ;;
9901 *) DRIVER_MAN_SUFFIX=4 ;;
9904 if test x$DRIVER_MAN_DIR = x ; then
9905 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
9908 if test x$ADMIN_MAN_SUFFIX = x ; then
9910 solaris*) ADMIN_MAN_SUFFIX=1m ;;
9911 *) ADMIN_MAN_SUFFIX=8 ;;
9914 if test x$ADMIN_MAN_DIR = x ; then
9915 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
9932 XORG_MAN_PAGE="X Version 11"
9935 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9936 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
9937 -e 's|__xservername__|Xorg|g' \
9938 -e 's|__xconfigfile__|xorg.conf|g' \
9939 -e 's|__projectroot__|\$(prefix)|g' \
9940 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
9941 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
9942 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
9943 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
9944 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
9945 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
9946 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
9950 # Check whether --enable-silent-rules was given.
9951 if test "${enable_silent_rules+set}" = set; then :
9952 enableval=$enable_silent_rules;
9955 case $enable_silent_rules in
9956 yes) AM_DEFAULT_VERBOSITY=0;;
9957 no) AM_DEFAULT_VERBOSITY=1;;
9958 *) AM_DEFAULT_VERBOSITY=0;;
9964 ac_config_files="$ac_config_files Makefile man/Makefile"
9966 cat >confcache <<\_ACEOF
9967 # This file is a shell script that caches the results of configure
9968 # tests run on this system so they can be shared between configure
9969 # scripts and configure runs, see configure's option --config-cache.
9970 # It is not useful on other systems. If it contains results you don't
9971 # want to keep, you may remove or edit it.
9973 # config.status only pays attention to the cache file if you give it
9974 # the --recheck option to rerun configure.
9976 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9977 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9982 # The following way of writing the cache mishandles newlines in values,
9983 # but we know of no workaround that is simple, portable, and efficient.
9984 # So, we kill variables containing newlines.
9985 # Ultrix sh set writes to stderr and can't be redirected directly,
9986 # and sets the high bit in the cache file unless we assign to the vars.
9988 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9989 eval ac_val=\$$ac_var
9993 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9997 _ | IFS | as_nl) ;; #(
9998 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9999 *) { eval $ac_var=; unset $ac_var;} ;;
10005 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10006 *${as_nl}ac_space=\ *)
10007 # `set' does not quote correctly, so add quotes: double-quote
10008 # substitution turns \\\\ into \\, and sed turns \\ into \.
10011 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10014 # `set' quotes correctly as required by POSIX, so do not add quotes.
10015 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10026 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10028 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10029 if test -w "$cache_file"; then
10030 if test "x$cache_file" != "x/dev/null"; then
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10032 $as_echo "$as_me: updating cache $cache_file" >&6;}
10033 if test ! -f "$cache_file" || test -h "$cache_file"; then
10034 cat confcache >"$cache_file"
10036 case $cache_file in #(
10038 mv -f confcache "$cache_file"$$ &&
10039 mv -f "$cache_file"$$ "$cache_file" ;; #(
10041 mv -f confcache "$cache_file" ;;
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10053 # Let make expand exec_prefix.
10054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10056 # Transform confdefs.h into DEFS.
10057 # Protect against shell expansion while executing Makefile rules.
10058 # Protect against Makefile macro expansion.
10060 # If the first sed substitution is executed (which looks for macros that
10061 # take arguments), then branch to the quote section. Otherwise,
10062 # look for a macro that doesn't take arguments.
10072 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
10074 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
10078 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
10091 DEFS=`sed -n "$ac_script" confdefs.h`
10097 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10098 # 1. Remove the extension, and $U if already installed.
10099 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10100 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10101 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10102 # will be set to the directory where LIBOBJS objects are built.
10103 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10104 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10106 LIBOBJS=$ac_libobjs
10108 LTLIBOBJS=$ac_ltlibobjs
10111 if test -n "$EXEEXT"; then
10113 am__EXEEXT_FALSE='#'
10115 am__EXEEXT_TRUE='#'
10119 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
10120 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
10121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10123 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10124 as_fn_error $? "conditional \"AMDEP\" was never defined.
10125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10127 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10128 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
10129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
10132 : "${CONFIG_STATUS=./config.status}"
10134 ac_clean_files_save=$ac_clean_files
10135 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10137 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10139 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10141 # Generated by $as_me.
10142 # Run this file to recreate the current configuration.
10143 # Compiler output produced by configure, useful for debugging
10144 # configure, is in config.log if it exists.
10147 ac_cs_recheck=false
10150 SHELL=\${CONFIG_SHELL-$SHELL}
10153 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10154 ## -------------------- ##
10155 ## M4sh Initialization. ##
10156 ## -------------------- ##
10158 # Be more Bourne compatible
10159 DUALCASE=1; export DUALCASE # for MKS sh
10160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10163 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10164 # is contrary to our usage. Disable this feature.
10165 alias -g '${1+"$@"}'='"$@"'
10166 setopt NO_GLOB_SUBST
10168 case `(set -o) 2>/dev/null` in #(
10180 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10181 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10184 # Prefer a ksh shell builtin over an external printf program on Solaris,
10185 # but without wasting forks for bash or zsh.
10186 if test -z "$BASH_VERSION$ZSH_VERSION" \
10187 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10188 as_echo='print -r --'
10189 as_echo_n='print -rn --'
10190 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10191 as_echo='printf %s\n'
10192 as_echo_n='printf %s'
10194 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10195 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10196 as_echo_n='/usr/ucb/echo -n'
10198 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10199 as_echo_n_body='eval
10203 expr "X$arg" : "X\\(.*\\)$as_nl";
10204 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10206 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10208 export as_echo_n_body
10209 as_echo_n='sh -c $as_echo_n_body as_echo'
10211 export as_echo_body
10212 as_echo='sh -c $as_echo_body as_echo'
10215 # The user is always right.
10216 if test "${PATH_SEPARATOR+set}" != set; then
10218 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10219 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10226 # We need space, tab and new line, in precisely that order. Quoting is
10227 # there to prevent editors from complaining about space-tab.
10228 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10229 # splitting by setting IFS to empty value.)
10232 # Find who we are. Look in the path if we contain no directory separator.
10235 *[\\/]* ) as_myself=$0 ;;
10236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237 for as_dir in $PATH
10240 test -z "$as_dir" && as_dir=.
10241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10247 # We did not find ourselves, most probably we were run as `sh COMMAND'
10248 # in which case we are not to be found in the path.
10249 if test "x$as_myself" = x; then
10252 if test ! -f "$as_myself"; then
10253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10257 # Unset variables that we do not need and which cause bugs (e.g. in
10258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10259 # suppresses any "Segmentation fault" message there. '((' could
10260 # trigger a bug in pdksh 5.2.14.
10261 for as_var in BASH_ENV ENV MAIL MAILPATH
10262 do eval test x\${$as_var+set} = xset \
10263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10279 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10280 # ----------------------------------------
10281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10283 # script with STATUS, using 1 if that was 0.
10286 as_status=$1; test $as_status -eq 0 && as_status=1
10288 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10291 $as_echo "$as_me: error: $2" >&2
10292 as_fn_exit $as_status
10296 # as_fn_set_status STATUS
10297 # -----------------------
10298 # Set $? to STATUS, without forking.
10299 as_fn_set_status ()
10302 } # as_fn_set_status
10304 # as_fn_exit STATUS
10305 # -----------------
10306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10310 as_fn_set_status $1
10316 # Portably unset VAR.
10319 { eval $1=; unset $1;}
10321 as_unset=as_fn_unset
10322 # as_fn_append VAR VALUE
10323 # ----------------------
10324 # Append the text in VALUE to the end of the definition contained in VAR. Take
10325 # advantage of any shell optimizations that allow amortized linear growth over
10326 # repeated appends, instead of the typical quadratic growth present in naive
10328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10329 eval 'as_fn_append ()
10340 # as_fn_arith ARG...
10341 # ------------------
10342 # Perform arithmetic evaluation on the ARGs, and store the result in the
10343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10344 # must be portable across $(()) and expr.
10345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10346 eval 'as_fn_arith ()
10353 as_val=`expr "$@" || test $? -eq 1`
10358 if expr a : '\(a\)' >/dev/null 2>&1 &&
10359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10366 as_basename=basename
10371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10377 as_me=`$as_basename -- "$0" ||
10378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10379 X"$0" : 'X\(//\)$' \| \
10380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10382 sed '/^.*\/\([^/][^/]*\)\/*$/{
10396 # Avoid depending upon Character Ranges.
10397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10400 as_cr_digits='0123456789'
10401 as_cr_alnum=$as_cr_Letters$as_cr_digits
10403 ECHO_C= ECHO_N= ECHO_T=
10404 case `echo -n x` in #(((((
10406 case `echo 'xy\c'` in
10407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10416 rm -f conf$$ conf$$.exe conf$$.file
10417 if test -d conf$$.dir; then
10418 rm -f conf$$.dir/conf$$.file
10421 mkdir conf$$.dir 2>/dev/null
10423 if (echo >conf$$.file) 2>/dev/null; then
10424 if ln -s conf$$.file conf$$ 2>/dev/null; then
10426 # ... but there are two gotchas:
10427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10429 # In both cases, we have to default to `cp -p'.
10430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10432 elif ln conf$$.file conf$$ 2>/dev/null; then
10440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10441 rmdir conf$$.dir 2>/dev/null
10446 # Create "$as_dir" as a directory, including parents if necessary.
10451 -*) as_dir=./$as_dir;;
10453 test -d "$as_dir" || eval $as_mkdir_p || {
10457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10458 *) as_qdir=$as_dir;;
10460 as_dirs="'$as_qdir' $as_dirs"
10461 as_dir=`$as_dirname -- "$as_dir" ||
10462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10463 X"$as_dir" : 'X\(//\)[^/]' \| \
10464 X"$as_dir" : 'X\(//\)$' \| \
10465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10466 $as_echo X"$as_dir" |
10467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10471 /^X\(\/\/\)[^/].*/{
10484 test -d "$as_dir" && break
10486 test -z "$as_dirs" || eval "mkdir $as_dirs"
10487 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10491 if mkdir -p . 2>/dev/null; then
10492 as_mkdir_p='mkdir -p "$as_dir"'
10494 test -d ./-p && rmdir ./-p
10498 if test -x / >/dev/null 2>&1; then
10499 as_test_x='test -x'
10501 if ls -dL / >/dev/null 2>&1; then
10508 if test -d "$1"; then
10514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10515 ???[sx]*):;;*)false;;esac;fi
10519 as_executable_p=$as_test_x
10521 # Sed expression to map a string onto a valid CPP name.
10522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10524 # Sed expression to map a string onto a valid variable name.
10525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10529 ## ----------------------------------- ##
10530 ## Main body of $CONFIG_STATUS script. ##
10531 ## ----------------------------------- ##
10533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10536 # Save the log message, to keep $0 and so on meaningful, and to
10537 # report actual input values of CONFIG_FILES etc. instead of their
10538 # values after options handling.
10540 This file was extended by mkfontdir $as_me 1.0.7, which was
10541 generated by GNU Autoconf 2.68. Invocation command line was
10543 CONFIG_FILES = $CONFIG_FILES
10544 CONFIG_HEADERS = $CONFIG_HEADERS
10545 CONFIG_LINKS = $CONFIG_LINKS
10546 CONFIG_COMMANDS = $CONFIG_COMMANDS
10549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10554 case $ac_config_files in *"
10555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10561 # Files that config.status was made for.
10562 config_files="$ac_config_files"
10563 config_commands="$ac_config_commands"
10567 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10569 \`$as_me' instantiates files and other configuration actions
10570 from templates according to the current configuration. Unless the files
10571 and actions are specified as TAGs, all are instantiated by default.
10573 Usage: $0 [OPTION]... [TAG]...
10575 -h, --help print this help, then exit
10576 -V, --version print version number and configuration settings, then exit
10577 --config print configuration, then exit
10578 -q, --quiet, --silent
10579 do not print progress messages
10580 -d, --debug don't remove temporary files
10581 --recheck update $as_me by reconfiguring in the same conditions
10582 --file=FILE[:TEMPLATE]
10583 instantiate the configuration file FILE
10585 Configuration files:
10588 Configuration commands:
10591 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
10594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10595 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10597 mkfontdir config.status 1.0.7
10598 configured by $0, generated by GNU Autoconf 2.68,
10599 with options \\"\$ac_cs_config\\"
10601 Copyright (C) 2010 Free Software Foundation, Inc.
10602 This config.status script is free software; the Free Software Foundation
10603 gives unlimited permission to copy, distribute and modify it."
10610 test -n "\$AWK" || AWK=awk
10613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10614 # The default lists apply if the user does not specify any file.
10620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10637 # Handling of the options.
10638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10641 $as_echo "$ac_cs_version"; exit ;;
10642 --config | --confi | --conf | --con | --co | --c )
10643 $as_echo "$ac_cs_config"; exit ;;
10644 --debug | --debu | --deb | --de | --d | -d )
10646 --file | --fil | --fi | --f )
10649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10650 '') as_fn_error $? "missing file argument" ;;
10652 as_fn_append CONFIG_FILES " '$ac_optarg'"
10653 ac_need_defaults=false;;
10654 --he | --h | --help | --hel | -h )
10655 $as_echo "$ac_cs_usage"; exit ;;
10656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10660 # This is an error.
10661 -*) as_fn_error $? "unrecognized option: \`$1'
10662 Try \`$0 --help' for more information." ;;
10664 *) as_fn_append ac_config_targets " $1"
10665 ac_need_defaults=false ;;
10671 ac_configure_extra_args=
10673 if $ac_cs_silent; then
10675 ac_configure_extra_args="$ac_configure_extra_args --silent"
10679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10680 if \$ac_cs_recheck; then
10681 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10683 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10684 CONFIG_SHELL='$SHELL'
10685 export CONFIG_SHELL
10690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10695 ## Running $as_me. ##
10701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10705 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10711 # Handling of arguments.
10712 for ac_config_target in $ac_config_targets
10714 case $ac_config_target in
10715 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10716 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10717 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10719 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10724 # If the user did not use the arguments to specify the items to instantiate,
10725 # then the envvar interface is used. Set only those that are not.
10726 # We use the long form for the default assignment because of an extremely
10727 # bizarre bug on SunOS 4.1.3.
10728 if $ac_need_defaults; then
10729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10730 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10733 # Have a temporary directory for convenience. Make it in the build tree
10734 # simply because there is no reason against having it here, and in addition,
10735 # creating and moving files from /tmp can sometimes cause problems.
10736 # Hook for its removal unless debugging.
10737 # Note that there is a small window in which the directory will not be cleaned:
10738 # after its creation but before its name has been assigned to `$tmp'.
10742 trap 'exit_status=$?
10743 : "${ac_tmp:=$tmp}"
10744 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10746 trap 'as_fn_exit 1' 1 2 13 15
10748 # Create a (secure) tmp directory for tmp files.
10751 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10755 tmp=./conf$$-$RANDOM
10756 (umask 077 && mkdir "$tmp")
10757 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10760 # Set up the scripts for CONFIG_FILES section.
10761 # No need to generate them if there are no CONFIG_FILES.
10762 # This happens for instance with `./config.status config.h'.
10763 if test -n "$CONFIG_FILES"; then
10766 ac_cr=`echo X | tr X '\015'`
10767 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10768 # But we know of no other shell where ac_cr would be empty at this
10769 # point, so we can use a bashism as a fallback.
10770 if test "x$ac_cr" = x; then
10771 eval ac_cr=\$\'\\r\'
10773 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10774 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10777 ac_cs_awk_cr=$ac_cr
10780 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10785 echo "cat >conf$$subs.awk <<_ACEOF" &&
10786 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10788 } >conf$$subs.sh ||
10789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10790 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10792 for ac_last_try in false false false false false :; do
10793 . ./conf$$subs.sh ||
10794 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10796 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10797 if test $ac_delim_n = $ac_delim_num; then
10799 elif $ac_last_try; then
10800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10802 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10805 rm -f conf$$subs.sh
10807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10808 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10812 s/^/S["/; s/!.*/"]=/
10822 s/\(.\{148\}\)..*/\1/
10824 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10829 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10836 s/\(.\{148\}\)..*/\1/
10838 s/["\\]/\\&/g; s/^/"/; s/$/"/
10842 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10847 ' <conf$$subs.awk | sed '
10852 ' >>$CONFIG_STATUS || ac_write_fail=1
10853 rm -f conf$$subs.awk
10854 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10856 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10857 for (key in S) S_is_set[key] = 1
10863 nfields = split(line, field, "@")
10865 len = length(field[1])
10866 for (i = 2; i < nfields; i++) {
10868 keylen = length(key)
10869 if (S_is_set[key]) {
10871 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10872 len += length(value) + length(field[++i])
10883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10884 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10885 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10888 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10889 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10892 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10893 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10894 # trailing colons and then remove the whole line if VPATH becomes empty
10895 # (actually we leave an empty line to preserve line numbers).
10896 if test "x$srcdir" = x.; then
10897 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10916 fi # test -n "$CONFIG_FILES"
10919 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
10924 :[FHLC]) ac_mode=$ac_tag; continue;;
10926 case $ac_mode$ac_tag in
10928 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10929 :[FH]-) ac_tag=-:-;;
10930 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10947 -) ac_f="$ac_tmp/stdin";;
10948 *) # Look for the file first in the build tree, then in the source tree
10949 # (if the path is not absolute). The absolute path cannot be DOS-style,
10950 # because $ac_f cannot contain `:'.
10954 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10956 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10958 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10959 as_fn_append ac_file_inputs " '$ac_f'"
10962 # Let's still pretend it is `configure' which instantiates (i.e., don't
10963 # use $as_me), people would be surprised to read:
10964 # /* config.h. Generated by config.status. */
10965 configure_input='Generated from '`
10966 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10968 if test x"$ac_file" != x-; then
10969 configure_input="$ac_file. $configure_input"
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10971 $as_echo "$as_me: creating $ac_file" >&6;}
10973 # Neutralize special characters interpreted by sed in replacement strings.
10974 case $configure_input in #(
10975 *\&* | *\|* | *\\* )
10976 ac_sed_conf_input=`$as_echo "$configure_input" |
10977 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10978 *) ac_sed_conf_input=$configure_input;;
10982 *:-:* | *:-) cat >"$ac_tmp/stdin" \
10983 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
10988 ac_dir=`$as_dirname -- "$ac_file" ||
10989 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10990 X"$ac_file" : 'X\(//\)[^/]' \| \
10991 X"$ac_file" : 'X\(//\)$' \| \
10992 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10993 $as_echo X"$ac_file" |
10994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10998 /^X\(\/\/\)[^/].*/{
11011 as_dir="$ac_dir"; as_fn_mkdir_p
11015 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11017 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11018 # A ".." for each directory in $ac_dir_suffix.
11019 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11020 case $ac_top_builddir_sub in
11021 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11022 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11025 ac_abs_top_builddir=$ac_pwd
11026 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11027 # for backward compatibility:
11028 ac_top_builddir=$ac_top_build_prefix
11031 .) # We are building in place.
11033 ac_top_srcdir=$ac_top_builddir_sub
11034 ac_abs_top_srcdir=$ac_pwd ;;
11035 [\\/]* | ?:[\\/]* ) # Absolute name.
11036 ac_srcdir=$srcdir$ac_dir_suffix;
11037 ac_top_srcdir=$srcdir
11038 ac_abs_top_srcdir=$srcdir ;;
11039 *) # Relative name.
11040 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11041 ac_top_srcdir=$ac_top_build_prefix$srcdir
11042 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11044 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11054 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11055 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11057 ac_MKDIR_P=$MKDIR_P
11059 [\\/$]* | ?:[\\/]* ) ;;
11060 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11065 # If the template does not know about datarootdir, expand it.
11066 # FIXME: This hack should be removed a few years after 2.60.
11067 ac_datarootdir_hack=; ac_datarootdir_seen=
11078 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11079 *datarootdir*) ac_datarootdir_seen=yes;;
11080 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11082 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11085 ac_datarootdir_hack='
11086 s&@datadir@&$datadir&g
11087 s&@docdir@&$docdir&g
11088 s&@infodir@&$infodir&g
11089 s&@localedir@&$localedir&g
11090 s&@mandir@&$mandir&g
11091 s&\\\${datarootdir}&$datarootdir&g' ;;
11095 # Neutralize VPATH when `$srcdir' = `.'.
11096 # Shell code in configure.ac might set extrasub.
11097 # FIXME: do we really want to maintain this feature?
11098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11099 ac_sed_extra="$ac_vpsub
11102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11104 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11105 s|@configure_input@|$ac_sed_conf_input|;t t
11106 s&@top_builddir@&$ac_top_builddir_sub&;t t
11107 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11108 s&@srcdir@&$ac_srcdir&;t t
11109 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11110 s&@top_srcdir@&$ac_top_srcdir&;t t
11111 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11112 s&@builddir@&$ac_builddir&;t t
11113 s&@abs_builddir@&$ac_abs_builddir&;t t
11114 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11115 s&@INSTALL@&$ac_INSTALL&;t t
11116 s&@MKDIR_P@&$ac_MKDIR_P&;t t
11117 $ac_datarootdir_hack
11119 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11120 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11122 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11123 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11124 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11125 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11127 which seems to be undefined. Please make sure it is defined" >&5
11128 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11129 which seems to be undefined. Please make sure it is defined" >&2;}
11131 rm -f "$ac_tmp/stdin"
11133 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11134 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11136 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11140 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11141 $as_echo "$as_me: executing $ac_file commands" >&6;}
11146 case $ac_file$ac_mode in
11147 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
11148 # Autoconf 2.62 quotes --file arguments for eval, but not when files
11149 # are listed without --file. Let's play safe and only enable the eval
11150 # if we detect the quoting.
11151 case $CONFIG_FILES in
11152 *\'*) eval set x "$CONFIG_FILES" ;;
11153 *) set x $CONFIG_FILES ;;
11158 # Strip MF so we end up with the name of the file.
11159 mf=`echo "$mf" | sed -e 's/:.*$//'`
11160 # Check whether this is an Automake generated Makefile or not.
11161 # We used to match only the files named `Makefile.in', but
11162 # some people rename them; so instead we look at the file content.
11163 # Grep'ing the first line is not enough: some people post-process
11164 # each Makefile.in and add a new line on top of each file to say so.
11165 # Grep'ing the whole file is not good either: AIX grep has a line
11166 # limit of 2048, but all sed's we know have understand at least 4000.
11167 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
11168 dirpart=`$as_dirname -- "$mf" ||
11169 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11170 X"$mf" : 'X\(//\)[^/]' \| \
11171 X"$mf" : 'X\(//\)$' \| \
11172 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
11174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11178 /^X\(\/\/\)[^/].*/{
11194 # Extract the definition of DEPDIR, am__include, and am__quote
11195 # from the Makefile without running `make'.
11196 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
11197 test -z "$DEPDIR" && continue
11198 am__include=`sed -n 's/^am__include = //p' < "$mf"`
11199 test -z "am__include" && continue
11200 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
11201 # When using ansi2knr, U may be empty or an underscore; expand it
11202 U=`sed -n 's/^U = //p' < "$mf"`
11203 # Find all dependency output files, they are included files with
11204 # $(DEPDIR) in their names. We invoke sed twice because it is the
11205 # simplest approach to changing $(DEPDIR) to its actual value in the
11207 for file in `sed -n "
11208 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
11209 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
11210 # Make sure the directory exists.
11211 test -f "$dirpart/$file" && continue
11212 fdir=`$as_dirname -- "$file" ||
11213 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11214 X"$file" : 'X\(//\)[^/]' \| \
11215 X"$file" : 'X\(//\)$' \| \
11216 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
11217 $as_echo X"$file" |
11218 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11222 /^X\(\/\/\)[^/].*/{
11235 as_dir=$dirpart/$fdir; as_fn_mkdir_p
11236 # echo "creating $dirpart/$file"
11237 echo '# dummy' > "$dirpart/$file"
11249 ac_clean_files=$ac_clean_files_save
11251 test $ac_write_fail = 0 ||
11252 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11255 # configure is writing to config.log, and then calls config.status.
11256 # config.status does its own redirection, appending to config.log.
11257 # Unfortunately, on DOS this fails, as config.log is still kept open
11258 # by configure, so config.status won't be able to write to it; its
11259 # output is simply discarded. So we exec the FD to /dev/null,
11260 # effectively closing config.log, so it can be properly (re)opened and
11261 # appended to by config.status. When coming back to configure, we
11262 # need to make the FD available again.
11263 if test "$no_create" != yes; then
11265 ac_config_status_args=
11266 test "$silent" = yes &&
11267 ac_config_status_args="$ac_config_status_args --quiet"
11269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11272 # would make configure fail if this is the last instruction.
11273 $ac_cs_success || as_fn_exit 1
11275 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11277 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}