2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # 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 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
666 INSTALL_STRIP_PROGRAM
675 MAINTAINER_MODE_FALSE
708 am__fastdepCC_FOR_BUILD_TRUE
709 am__fastdepCC_FOR_BUILD_FALSE
727 am__fastdepOBJC_FALSE
746 GLIB_FOR_BUILD_CFLAGS
821 ac_precious_vars='build_alias
846 GLIB_FOR_BUILD_CFLAGS
862 # Initialize some variables set by options.
864 ac_init_version=false
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
874 program_transform_name=s,x,x,
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE}'
899 infodir='${datarootdir}/info'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
920 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 # Accept the important Cygnus configure options, so we can diagnose typos.
926 case $ac_dashdash$ac_option in
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
948 cache_file=config.cache ;;
950 -datadir | --datadir | --datadi | --datad)
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
962 -disable-* | --disable-*)
963 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
966 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
967 { (exit 1); exit 1; }; }
968 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
969 eval enable_$ac_feature=no ;;
971 -docdir | --docdir | --docdi | --doc | --do)
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
981 -enable-* | --enable-*)
982 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
985 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
986 { (exit 1); exit 1; }; }
987 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
988 eval enable_$ac_feature=\$ac_optarg ;;
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
997 exec_prefix=$ac_optarg ;;
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
1010 -host | --host | --hos | --ho)
1011 ac_prev=host_alias ;;
1012 -host=* | --host=* | --hos=* | --ho=*)
1013 host_alias=$ac_optarg ;;
1015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 htmldir=$ac_optarg ;;
1021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
1026 includedir=$ac_optarg ;;
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1031 infodir=$ac_optarg ;;
1033 -libdir | --libdir | --libdi | --libd)
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1036 libdir=$ac_optarg ;;
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
1043 libexecdir=$ac_optarg ;;
1045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1050 -localstatedir | --localstatedir | --localstatedi | --localstated \
1051 | --localstate | --localstat | --localsta | --localst | --locals)
1052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1055 localstatedir=$ac_optarg ;;
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1060 mandir=$ac_optarg ;;
1062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1067 | --no-cr | --no-c | -n)
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1081 oldincludedir=$ac_optarg ;;
1083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1086 prefix=$ac_optarg ;;
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1093 program_prefix=$ac_optarg ;;
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1100 program_suffix=$ac_optarg ;;
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
1117 program_transform_name=$ac_optarg ;;
1119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1124 -psdir | --psdir | --psdi | --psd | --ps)
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 sbindir=$ac_optarg ;;
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 sharedstatedir=$ac_optarg ;;
1150 -site | --site | --sit)
1152 -site=* | --site=* | --sit=*)
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1158 srcdir=$ac_optarg ;;
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1165 sysconfdir=$ac_optarg ;;
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
1168 ac_prev=target_alias ;;
1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1170 target_alias=$ac_optarg ;;
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
1179 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid package name: $ac_package" >&2
1183 { (exit 1); exit 1; }; }
1184 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1185 eval with_$ac_package=\$ac_optarg ;;
1187 -without-* | --without-*)
1188 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 { echo "$as_me: error: invalid package name: $ac_package" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1194 eval with_$ac_package=no ;;
1197 # Obsolete; use --with-x.
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205 x_includes=$ac_optarg ;;
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212 x_libraries=$ac_optarg ;;
1214 -*) { echo "$as_me: error: unrecognized option: $ac_option
1215 Try \`$0 --help' for more information." >&2
1216 { (exit 1); exit 1; }; }
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1224 { (exit 1); exit 1; }; }
1225 eval $ac_envvar=\$ac_optarg
1226 export $ac_envvar ;;
1229 # FIXME: should be removed in autoconf 3.0.
1230 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1239 if test -n "$ac_prev"; then
1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 { echo "$as_me: error: missing argument to $ac_option" >&2
1242 { (exit 1); exit 1; }; }
1245 # Be sure to have absolute directory names.
1246 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1247 datadir sysconfdir sharedstatedir localstatedir includedir \
1248 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1249 libdir localedir mandir
1251 eval ac_val=\$$ac_var
1253 [\\/$]* | ?:[\\/]* ) continue;;
1254 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1256 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1257 { (exit 1); exit 1; }; }
1260 # There might be people who depend on the old broken behavior: `$host'
1261 # used to hold the argument of --host etc.
1262 # FIXME: To remove some day.
1265 target=$target_alias
1267 # FIXME: To remove some day.
1268 if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
1271 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1279 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1281 test "$silent" = yes && exec 6>/dev/null
1284 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285 ac_ls_di=`ls -di .` &&
1286 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 { echo "$as_me: error: Working directory cannot be determined" >&2
1288 { (exit 1); exit 1; }; }
1289 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1290 { echo "$as_me: error: pwd does not report name of working directory" >&2
1291 { (exit 1); exit 1; }; }
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$0" ||
1299 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$0" : 'X\(//\)[^/]' \| \
1301 X"$0" : 'X\(//\)$' \| \
1302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1331 { (exit 1); exit 1; }; }
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1335 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1336 { (exit 1); exit 1; }; }
1338 # When building in place, set srcdir=.
1339 if test "$ac_abs_confdir" = "$ac_pwd"; then
1342 # Remove unnecessary trailing slashes from srcdir.
1343 # Double slashes in file names in object file debugging info
1344 # mess up M-x gdb in Emacs.
1346 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 for ac_var in $ac_precious_vars; do
1349 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_env_${ac_var}_value=\$${ac_var}
1351 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356 # Report the --help message.
1358 if test "$ac_init_help" = "long"; then
1359 # Omit some internal or obsolete options to make the list less imposing.
1360 # This message is too long to be a string in the A/UX 3.1 sh.
1362 \`configure' configures this package to adapt to many kinds of systems.
1364 Usage: $0 [OPTION]... [VAR=VALUE]...
1366 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367 VAR=VALUE. See below for descriptions of some of the useful variables.
1369 Defaults for the options are specified in brackets.
1372 -h, --help display this help and exit
1373 --help=short display options specific to this package
1374 --help=recursive display the short help of all the included packages
1375 -V, --version display version information and exit
1376 -q, --quiet, --silent do not print \`checking...' messages
1377 --cache-file=FILE cache test results in FILE [disabled]
1378 -C, --config-cache alias for \`--cache-file=config.cache'
1379 -n, --no-create do not create output files
1380 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1382 Installation directories:
1383 --prefix=PREFIX install architecture-independent files in PREFIX
1384 [$ac_default_prefix]
1385 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388 By default, \`make install' will install all the files in
1389 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391 for instance \`--prefix=\$HOME'.
1393 For better control, use the options below.
1395 Fine tuning of the installation directories:
1396 --bindir=DIR user executables [EPREFIX/bin]
1397 --sbindir=DIR system admin executables [EPREFIX/sbin]
1398 --libexecdir=DIR program executables [EPREFIX/libexec]
1399 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1420 --program-prefix=PREFIX prepend PREFIX to installed program names
1421 --program-suffix=SUFFIX append SUFFIX to installed program names
1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430 if test -n "$ac_init_help"; then
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1437 --enable-maintainer-mode enable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
1439 --disable-dependency-tracking speeds up one-time build
1440 --enable-dependency-tracking do not reject slow dependency extractors
1441 --enable-strict-warn Enable strict compilation warnings
1442 --disable-translator Disable the SH4 translator (Enabled by default)
1443 --disable-optimized Disable compile-time optimizations (Enabled by
1445 --enable-shared Build drivers as shared libraries (Enabled if
1447 --enable-profiled Enable profiling build
1448 --enable-trace Enable generation of IO traces (warning: hurts
1450 --enable-watch Enable watchpoints in the debugger (warning: hurts
1452 --enable-sh4stats Enable statistics on executed sh4 instructions
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-osmesa Build with the osmesa GL library (software
1459 --with-gtk Build with the GTK UI. Default on X11 systems
1460 --with-esd Build with support for the ESounD audio system
1461 --with-pulse Build with support for the PulseAudio audio system
1462 --with-sdl Build with support for SDL audio
1464 Some influential environment variables:
1465 CC C compiler command
1466 CFLAGS C compiler flags
1467 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1468 nonstandard directory <lib dir>
1469 LIBS libraries to pass to the linker, e.g. -l<library>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1473 OBJC Objective C compiler command
1474 OBJCFLAGS Objective C compiler flags
1475 CCAS assembler compiler command (defaults to CC)
1476 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1477 PKG_CONFIG path to pkg-config utility
1479 C compiler flags for LIBPNG, overriding pkg-config
1480 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1481 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1482 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1483 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1484 GTK_LIBS linker flags for GTK, overriding pkg-config
1485 GLIB_FOR_BUILD_CFLAGS
1486 C compiler flags for GLIB_FOR_BUILD, overriding pkg-config
1488 linker flags for GLIB_FOR_BUILD, overriding pkg-config
1490 C compiler flags for LIBISOFS, overriding pkg-config
1492 linker flags for LIBISOFS, overriding pkg-config
1494 C compiler flags for LIBGL, overriding pkg-config
1495 LIBGL_LIBS linker flags for LIBGL, overriding pkg-config
1496 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1497 SDL_LIBS linker flags for SDL, overriding pkg-config
1499 C compiler flags for PULSE, overriding pkg-config
1500 PULSE_LIBS linker flags for PULSE, overriding pkg-config
1502 C compiler flags for ESOUND, overriding pkg-config
1503 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1504 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1505 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1537 .) # We are building in place.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1571 generated by GNU Autoconf 2.61
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1584 It was created by $as_me, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1645 ac_must_keep_next=false
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1674 -* ) ac_must_keep_next=true ;;
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1701 # The following way of writing the cache mishandles newlines in values,
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1738 for ac_var in $ac_subst_vars
1740 eval ac_val=\$$ac_var
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1744 echo "$ac_var='\''$ac_val'\''"
1748 if test -n "$ac_subst_files"; then
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1755 for ac_var in $ac_subst_files
1757 eval ac_val=\$$ac_var
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761 echo "$ac_var='\''$ac_val'\''"
1766 if test -s confdefs.h; then
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1792 # Predefined preprocessor variables.
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1857 # Check that the precious variables saved in the cache have kept the same
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1929 am__api_version="1.9"
1931 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1932 if test -f "$ac_dir/install-sh"; then
1934 ac_install_sh="$ac_aux_dir/install-sh -c"
1936 elif test -f "$ac_dir/install.sh"; then
1938 ac_install_sh="$ac_aux_dir/install.sh -c"
1940 elif test -f "$ac_dir/shtool"; then
1942 ac_install_sh="$ac_aux_dir/shtool install -c"
1946 if test -z "$ac_aux_dir"; then
1947 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1948 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1949 { (exit 1); exit 1; }; }
1952 # These three variables are undocumented and unsupported,
1953 # and are intended to be withdrawn in a future Autoconf release.
1954 # They can cause serious problems if a builder's source tree is in a directory
1955 # whose full name contains unusual characters.
1956 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1957 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1958 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1961 # Find a good install program. We prefer a C program (faster),
1962 # so one script is as good as another. But avoid the broken or
1963 # incompatible versions:
1964 # SysV /etc/install, /usr/sbin/install
1965 # SunOS /usr/etc/install
1966 # IRIX /sbin/install
1968 # AmigaOS /C/install, which installs bootblocks on floppy discs
1969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1972 # OS/2's system install, which has a completely different semantic
1973 # ./install, which can be erroneously created by make from ./install.sh.
1974 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1975 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1976 if test -z "$INSTALL"; then
1977 if test "${ac_cv_path_install+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 # Account for people who put trailing slashes in PATH elements.
1987 ./ | .// | /cC/* | \
1988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1989 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1992 # OSF1 and SCO ODT 3.0 have their own names for install.
1993 # Don't use installbsd from OSF since it installs stuff as root
1995 for ac_prog in ginstall scoinst install; do
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1998 if test $ac_prog = install &&
1999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000 # AIX install. It has an incompatible calling convention.
2002 elif test $ac_prog = install &&
2003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2004 # program-specific install script used by HP pwplus--don't use.
2007 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2020 if test "${ac_cv_path_install+set}" = set; then
2021 INSTALL=$ac_cv_path_install
2023 # As a last resort, use the slow shell script. Don't cache a
2024 # value for INSTALL within a source directory, because that will
2025 # break other packages using the cache if that directory is
2026 # removed, or if the value is a relative name.
2027 INSTALL=$ac_install_sh
2030 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2031 echo "${ECHO_T}$INSTALL" >&6; }
2033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2034 # It thinks the first close brace ends the variable substitution.
2035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2037 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2041 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2042 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2045 echo timestamp > conftest.file
2046 # Do `set' in a subshell so we don't clobber the current shell's
2047 # arguments. Must try -L first in case configure is actually a
2048 # symlink; some systems play weird games with the mod time of symlinks
2049 # (eg FreeBSD returns the mod time of the symlink's containing
2052 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2053 if test "$*" = "X"; then
2055 set X `ls -t $srcdir/configure conftest.file`
2058 if test "$*" != "X $srcdir/configure conftest.file" \
2059 && test "$*" != "X conftest.file $srcdir/configure"; then
2061 # If neither matched, then we have a broken ls. This can happen
2062 # if, for instance, CONFIG_SHELL is bash and it inherits a
2063 # broken ls alias from the environment. This has actually
2064 # happened. Such a system could not be considered "sane".
2065 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2066 alias in your environment" >&5
2067 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2068 alias in your environment" >&2;}
2069 { (exit 1); exit 1; }; }
2072 test "$2" = conftest.file
2078 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2079 Check your system clock" >&5
2080 echo "$as_me: error: newly created file is older than distributed files!
2081 Check your system clock" >&2;}
2082 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: result: yes" >&5
2085 echo "${ECHO_T}yes" >&6; }
2086 test "$program_prefix" != NONE &&
2087 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2088 # Use a double $ so make ignores it.
2089 test "$program_suffix" != NONE &&
2090 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2091 # Double any \ or $. echo might interpret backslashes.
2092 # By default was `s,x,x', remove it if useless.
2093 cat <<\_ACEOF >conftest.sed
2094 s/[\\$]/&&/g;s/;s,x,x,$//
2096 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2099 # expand $ac_aux_dir to an absolute path
2100 am_aux_dir=`cd $ac_aux_dir && pwd`
2102 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2103 # Use eval to expand $SHELL
2104 if eval "$MISSING --run true"; then
2105 am_missing_run="$MISSING --run "
2108 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2109 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2112 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2113 # We used to keeping the `.' as first argument, in order to
2114 # allow $(mkdir_p) to be used without argument. As in
2115 # $(mkdir_p) $(somedir)
2116 # where $(somedir) is conditionally defined. However this is wrong
2118 # 1. if the package is installed by a user who cannot write `.'
2119 # make install will fail,
2120 # 2. the above comment should most certainly read
2121 # $(mkdir_p) $(DESTDIR)$(somedir)
2122 # so it does not work when $(somedir) is undefined and
2123 # $(DESTDIR) is not.
2124 # To support the latter case, we have to write
2125 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2126 # so the `.' trick is pointless.
2127 mkdir_p='mkdir -p --'
2129 # On NextStep and OpenStep, the `mkdir' command does not
2130 # recognize any option. It will interpret all options as
2131 # directories to create, and then abort because `.' already
2133 for d in ./-p ./--version;
2135 test -d $d && rmdir $d
2137 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2138 if test -f "$ac_aux_dir/mkinstalldirs"; then
2139 mkdir_p='$(mkinstalldirs)'
2141 mkdir_p='$(install_sh) -d'
2145 for ac_prog in gawk mawk nawk awk
2147 # Extract the first word of "$ac_prog", so it can be a program name with args.
2148 set dummy $ac_prog; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_AWK+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2154 if test -n "$AWK"; then
2155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_AWK="$ac_prog"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 if test -n "$AWK"; then
2176 { echo "$as_me:$LINENO: result: $AWK" >&5
2177 echo "${ECHO_T}$AWK" >&6; }
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2184 test -n "$AWK" && break
2187 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2188 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2189 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2193 cat >conftest.make <<\_ACEOF
2196 @echo '@@@%%%=$(MAKE)=@@@%%%'
2198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2201 eval ac_cv_prog_make_${ac_make}_set=yes;;
2203 eval ac_cv_prog_make_${ac_make}_set=no;;
2207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2208 { echo "$as_me:$LINENO: result: yes" >&5
2209 echo "${ECHO_T}yes" >&6; }
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214 SET_MAKE="MAKE=${MAKE-make}"
2217 rm -rf .tst 2>/dev/null
2218 mkdir .tst 2>/dev/null
2219 if test -d .tst; then
2224 rmdir .tst 2>/dev/null
2226 # test to see if srcdir already configured
2227 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2228 test -f $srcdir/config.status; then
2229 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2230 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2231 { (exit 1); exit 1; }; }
2234 # test whether we have cygpath
2235 if test -z "$CYGPATH_W"; then
2236 if (cygpath --version) >/dev/null 2>/dev/null; then
2237 CYGPATH_W='cygpath -w'
2244 # Define the identity of the package.
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE "$PACKAGE"
2254 cat >>confdefs.h <<_ACEOF
2255 #define VERSION "$VERSION"
2258 # Some tools Automake needs.
2260 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2263 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2266 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2269 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2272 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2274 install_sh=${install_sh-"$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 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_prog_STRIP+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&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 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 STRIP=$ac_cv_prog_STRIP
2310 if test -n "$STRIP"; then
2311 { echo "$as_me:$LINENO: result: $STRIP" >&5
2312 echo "${ECHO_T}$STRIP" >&6; }
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}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 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&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 echo "$as_me:$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 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2352 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2358 if test "x$ac_ct_STRIP" = x; then
2361 case $cross_compiling:$ac_tool_warned in
2363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2364 whose name does not start with the host triplet. If you think this
2365 configuration is useful to you, please write to autoconf@gnu.org." >&5
2366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet. If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2369 ac_tool_warned=yes ;;
2374 STRIP="$ac_cv_prog_STRIP"
2378 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2380 # We need awk for the "check" target. The system "awk" is bad on
2382 # Always define AMTAR for backward compatibility.
2384 AMTAR=${AMTAR-"${am_missing_run}tar"}
2386 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2392 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2393 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2394 # Check whether --enable-maintainer-mode was given.
2395 if test "${enable_maintainer_mode+set}" = set; then
2396 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2398 USE_MAINTAINER_MODE=no
2401 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2402 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2405 if test $USE_MAINTAINER_MODE = yes; then
2406 MAINTAINER_MODE_TRUE=
2407 MAINTAINER_MODE_FALSE='#'
2409 MAINTAINER_MODE_TRUE='#'
2410 MAINTAINER_MODE_FALSE=
2413 MAINT=$MAINTAINER_MODE_TRUE
2416 ac_config_headers="$ac_config_headers config.h"
2419 # Make sure we can run config.sub.
2420 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2421 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2422 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2423 { (exit 1); exit 1; }; }
2425 { echo "$as_me:$LINENO: checking build system type" >&5
2426 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2427 if test "${ac_cv_build+set}" = set; then
2428 echo $ECHO_N "(cached) $ECHO_C" >&6
2430 ac_build_alias=$build_alias
2431 test "x$ac_build_alias" = x &&
2432 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2433 test "x$ac_build_alias" = x &&
2434 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2435 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2436 { (exit 1); exit 1; }; }
2437 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2438 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2439 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2440 { (exit 1); exit 1; }; }
2443 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2444 echo "${ECHO_T}$ac_cv_build" >&6; }
2445 case $ac_cv_build in
2447 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2448 echo "$as_me: error: invalid value of canonical build" >&2;}
2449 { (exit 1); exit 1; }; };;
2452 ac_save_IFS=$IFS; IFS='-'
2458 # Remember, the first character of IFS is used to create $*,
2459 # except with old shells:
2462 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2465 { echo "$as_me:$LINENO: checking host system type" >&5
2466 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2467 if test "${ac_cv_host+set}" = set; then
2468 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 if test "x$host_alias" = x; then
2471 ac_cv_host=$ac_cv_build
2473 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2474 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2475 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2476 { (exit 1); exit 1; }; }
2480 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2481 echo "${ECHO_T}$ac_cv_host" >&6; }
2484 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2485 echo "$as_me: error: invalid value of canonical host" >&2;}
2486 { (exit 1); exit 1; }; };;
2489 ac_save_IFS=$IFS; IFS='-'
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2499 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2511 DEPDIR="${am__leading_dot}deps"
2513 ac_config_commands="$ac_config_commands depfiles"
2516 am_make=${MAKE-make}
2517 cat > confinc << 'END'
2522 # If we don't find an include directive, just comment out the code.
2523 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2524 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2528 # First try GNU make style include.
2529 echo "include confinc" > confmf
2530 # We grep out `Entering directory' and `Leaving directory'
2531 # messages which can occur if `w' ends up in MAKEFLAGS.
2532 # In particular we don't look at `^make:' because GNU make might
2533 # be invoked under some other name (usually "gmake"), in which
2534 # case it prints its new name instead of `make'.
2535 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2540 # Now try BSD make style include.
2541 if test "$am__include" = "#"; then
2542 echo '.include "confinc"' > confmf
2543 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2544 am__include=.include
2551 { echo "$as_me:$LINENO: result: $_am_result" >&5
2552 echo "${ECHO_T}$_am_result" >&6; }
2553 rm -f confinc confmf
2555 # Check whether --enable-dependency-tracking was given.
2556 if test "${enable_dependency_tracking+set}" = set; then
2557 enableval=$enable_dependency_tracking;
2560 if test "x$enable_dependency_tracking" != xno; then
2561 am_depcomp="$ac_aux_dir/depcomp"
2566 if test "x$enable_dependency_tracking" != xno; then
2577 ac_cpp='$CPP $CPPFLAGS'
2578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581 if test -n "$ac_tool_prefix"; then
2582 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2583 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$CC"; then
2590 ac_cv_prog_CC="$CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 if test -n "$CC"; then
2611 { echo "$as_me:$LINENO: result: $CC" >&5
2612 echo "${ECHO_T}$CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2620 if test -z "$ac_cv_prog_CC"; then
2622 # Extract the first word of "gcc", so it can be a program name with args.
2623 set dummy gcc; ac_word=$2
2624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2626 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 if test -n "$ac_ct_CC"; then
2630 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 test -z "$as_dir" && as_dir=.
2637 for ac_exec_ext in '' $ac_executable_extensions; do
2638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639 ac_cv_prog_ac_ct_CC="gcc"
2640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2650 if test -n "$ac_ct_CC"; then
2651 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2652 echo "${ECHO_T}$ac_ct_CC" >&6; }
2654 { echo "$as_me:$LINENO: result: no" >&5
2655 echo "${ECHO_T}no" >&6; }
2658 if test "x$ac_ct_CC" = x; then
2661 case $cross_compiling:$ac_tool_warned in
2663 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2664 whose name does not start with the host triplet. If you think this
2665 configuration is useful to you, please write to autoconf@gnu.org." >&5
2666 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2667 whose name does not start with the host triplet. If you think this
2668 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2669 ac_tool_warned=yes ;;
2677 if test -z "$CC"; then
2678 if test -n "$ac_tool_prefix"; then
2679 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2680 set dummy ${ac_tool_prefix}cc; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 test -z "$as_dir" && as_dir=.
2694 for ac_exec_ext in '' $ac_executable_extensions; do
2695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2696 ac_cv_prog_CC="${ac_tool_prefix}cc"
2697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2707 if test -n "$CC"; then
2708 { echo "$as_me:$LINENO: result: $CC" >&5
2709 echo "${ECHO_T}$CC" >&6; }
2711 { echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6; }
2718 if test -z "$CC"; then
2719 # Extract the first word of "cc", so it can be a program name with args.
2720 set dummy cc; ac_word=$2
2721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2723 if test "${ac_cv_prog_CC+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir=.
2735 for ac_exec_ext in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2738 ac_prog_rejected=yes
2742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 if test $ac_prog_rejected = yes; then
2750 # We found a bogon in the path, so make sure we never use it.
2751 set dummy $ac_cv_prog_CC
2753 if test $# != 0; then
2754 # We chose a different compiler from the bogus one.
2755 # However, it has the same basename, so the bogon will be chosen
2756 # first if we set CC to just the basename; use the full file name.
2758 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2764 if test -n "$CC"; then
2765 { echo "$as_me:$LINENO: result: $CC" >&5
2766 echo "${ECHO_T}$CC" >&6; }
2768 { echo "$as_me:$LINENO: result: no" >&5
2769 echo "${ECHO_T}no" >&6; }
2774 if test -z "$CC"; then
2775 if test -n "$ac_tool_prefix"; then
2776 for ac_prog in cl.exe
2778 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2779 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2780 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2782 if test "${ac_cv_prog_CC+set}" = set; then
2783 echo $ECHO_N "(cached) $ECHO_C" >&6
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792 test -z "$as_dir" && as_dir=.
2793 for ac_exec_ext in '' $ac_executable_extensions; do
2794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2795 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 if test -n "$CC"; then
2807 { echo "$as_me:$LINENO: result: $CC" >&5
2808 echo "${ECHO_T}$CC" >&6; }
2810 { echo "$as_me:$LINENO: result: no" >&5
2811 echo "${ECHO_T}no" >&6; }
2815 test -n "$CC" && break
2818 if test -z "$CC"; then
2820 for ac_prog in cl.exe
2822 # Extract the first word of "$ac_prog", so it can be a program name with args.
2823 set dummy $ac_prog; ac_word=$2
2824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2826 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_ac_ct_CC="$ac_prog"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850 if test -n "$ac_ct_CC"; then
2851 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2852 echo "${ECHO_T}$ac_ct_CC" >&6; }
2854 { echo "$as_me:$LINENO: result: no" >&5
2855 echo "${ECHO_T}no" >&6; }
2859 test -n "$ac_ct_CC" && break
2862 if test "x$ac_ct_CC" = x; then
2865 case $cross_compiling:$ac_tool_warned in
2867 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2868 whose name does not start with the host triplet. If you think this
2869 configuration is useful to you, please write to autoconf@gnu.org." >&5
2870 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet. If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2873 ac_tool_warned=yes ;;
2882 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2883 See \`config.log' for more details." >&5
2884 echo "$as_me: error: no acceptable C compiler found in \$PATH
2885 See \`config.log' for more details." >&2;}
2886 { (exit 1); exit 1; }; }
2888 # Provide some information about the compiler.
2889 echo "$as_me:$LINENO: checking for C compiler version" >&5
2890 ac_compiler=`set X $ac_compile; echo $2`
2891 { (ac_try="$ac_compiler --version >&5"
2893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler --version >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2901 { (ac_try="$ac_compiler -v >&5"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compiler -v >&5") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }
2911 { (ac_try="$ac_compiler -V >&5"
2913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914 *) ac_try_echo=$ac_try;;
2916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2917 (eval "$ac_compiler -V >&5") 2>&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2937 ac_clean_files_save=$ac_clean_files
2938 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2939 # Try to create an executable without -o first, disregard a.out.
2940 # It will help us diagnose broken compilers, and finding out an intuition
2942 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2943 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2944 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2946 # List of possible output files, starting from the most likely.
2947 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2948 # only as a last resort. b.out is created by i960 compilers.
2949 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2951 # The IRIX 6 linker writes into existing files which may not be
2952 # executable, retaining their permissions. Remove them first so a
2953 # subsequent execution test works.
2955 for ac_file in $ac_files
2958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2959 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2964 if { (ac_try="$ac_link_default"
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_link_default") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; then
2974 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2975 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2976 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2977 # so that the user can short-circuit this test for compilers unknown to
2979 for ac_file in $ac_files ''
2981 test -f "$ac_file" || continue
2983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2986 # We found the default executable, but exeext='' is most
2990 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2994 # We set ac_cv_exeext here because the later test for it is not
2995 # safe: cross compilers may not add the suffix if given an `-o'
2996 # argument, so we may need to know it at that point already.
2997 # Even if this section looks crufty: it has the advantage of
3004 test "$ac_cv_exeext" = no && ac_cv_exeext=
3010 { echo "$as_me:$LINENO: result: $ac_file" >&5
3011 echo "${ECHO_T}$ac_file" >&6; }
3012 if test -z "$ac_file"; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3016 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3017 See \`config.log' for more details." >&5
3018 echo "$as_me: error: C compiler cannot create executables
3019 See \`config.log' for more details." >&2;}
3020 { (exit 77); exit 77; }; }
3023 ac_exeext=$ac_cv_exeext
3025 # Check that the compiler produces executables we can run. If not, either
3026 # the compiler is broken, or we cross compile.
3027 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3028 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3029 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3030 # If not cross compiling, check that we can run a simple program.
3031 if test "$cross_compiling" != yes; then
3032 if { ac_try='./$ac_file'
3033 { (case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_try") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; }; then
3044 if test "$cross_compiling" = maybe; then
3047 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3048 If you meant to cross compile, use \`--host'.
3049 See \`config.log' for more details." >&5
3050 echo "$as_me: error: cannot run C compiled programs.
3051 If you meant to cross compile, use \`--host'.
3052 See \`config.log' for more details." >&2;}
3053 { (exit 1); exit 1; }; }
3057 { echo "$as_me:$LINENO: result: yes" >&5
3058 echo "${ECHO_T}yes" >&6; }
3060 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3061 ac_clean_files=$ac_clean_files_save
3062 # Check that the compiler produces executables we can run. If not, either
3063 # the compiler is broken, or we cross compile.
3064 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3065 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3066 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3067 echo "${ECHO_T}$cross_compiling" >&6; }
3069 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3070 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3071 if { (ac_try="$ac_link"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_link") 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; then
3081 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3082 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3083 # work properly (i.e., refer to `conftest.exe'), while it won't with
3085 for ac_file in conftest.exe conftest conftest.*; do
3086 test -f "$ac_file" || continue
3088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3089 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3095 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3096 See \`config.log' for more details." >&5
3097 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3098 See \`config.log' for more details." >&2;}
3099 { (exit 1); exit 1; }; }
3102 rm -f conftest$ac_cv_exeext
3103 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3104 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3106 rm -f conftest.$ac_ext
3107 EXEEXT=$ac_cv_exeext
3109 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3110 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3111 if test "${ac_cv_objext+set}" = set; then
3112 echo $ECHO_N "(cached) $ECHO_C" >&6
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3129 rm -f conftest.o conftest.obj
3130 if { (ac_try="$ac_compile"
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_compile") 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); }; then
3140 for ac_file in conftest.o conftest.obj conftest.*; do
3141 test -f "$ac_file" || continue;
3143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3149 echo "$as_me: failed program was:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3153 See \`config.log' for more details." >&5
3154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3155 See \`config.log' for more details." >&2;}
3156 { (exit 1); exit 1; }; }
3159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3161 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3162 echo "${ECHO_T}$ac_cv_objext" >&6; }
3163 OBJEXT=$ac_cv_objext
3165 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3168 echo $ECHO_N "(cached) $ECHO_C" >&6
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3188 rm -f conftest.$ac_objext
3189 if { (ac_try="$ac_compile"
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_compile") 2>conftest.er1
3197 grep -v '^ *+' conftest.er1 >conftest.err
3199 cat conftest.err >&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); } && {
3202 test -z "$ac_c_werror_flag" ||
3203 test ! -s conftest.err
3204 } && test -s conftest.$ac_objext; then
3207 echo "$as_me: failed program was:" >&5
3208 sed 's/^/| /' conftest.$ac_ext >&5
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3217 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3218 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3219 GCC=`test $ac_compiler_gnu = yes && echo yes`
3220 ac_test_CFLAGS=${CFLAGS+set}
3221 ac_save_CFLAGS=$CFLAGS
3222 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3223 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3224 if test "${ac_cv_prog_cc_g+set}" = set; then
3225 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 ac_save_c_werror_flag=$ac_c_werror_flag
3228 ac_c_werror_flag=yes
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3246 rm -f conftest.$ac_objext
3247 if { (ac_try="$ac_compile"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3253 (eval "$ac_compile") 2>conftest.er1
3255 grep -v '^ *+' conftest.er1 >conftest.err
3257 cat conftest.err >&5
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); } && {
3260 test -z "$ac_c_werror_flag" ||
3261 test ! -s conftest.err
3262 } && test -s conftest.$ac_objext; then
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3269 cat >conftest.$ac_ext <<_ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h. */
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compile") 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } && {
3298 test -z "$ac_c_werror_flag" ||
3299 test ! -s conftest.err
3300 } && test -s conftest.$ac_objext; then
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 ac_c_werror_flag=$ac_save_c_werror_flag
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3323 rm -f conftest.$ac_objext
3324 if { (ac_try="$ac_compile"
3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327 *) ac_try_echo=$ac_try;;
3329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3330 (eval "$ac_compile") 2>conftest.er1
3332 grep -v '^ *+' conftest.er1 >conftest.err
3334 cat conftest.err >&5
3335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3336 (exit $ac_status); } && {
3337 test -z "$ac_c_werror_flag" ||
3338 test ! -s conftest.err
3339 } && test -s conftest.$ac_objext; then
3342 echo "$as_me: failed program was:" >&5
3343 sed 's/^/| /' conftest.$ac_ext >&5
3348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_c_werror_flag=$ac_save_c_werror_flag
3357 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3358 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3359 if test "$ac_test_CFLAGS" = set; then
3360 CFLAGS=$ac_save_CFLAGS
3361 elif test $ac_cv_prog_cc_g = yes; then
3362 if test "$GCC" = yes; then
3368 if test "$GCC" = yes; then
3374 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3375 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3376 if test "${ac_cv_prog_cc_c89+set}" = set; then
3377 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 ac_cv_prog_cc_c89=no
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3389 #include <sys/types.h>
3390 #include <sys/stat.h>
3391 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3392 struct buf { int x; };
3393 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3394 static char *e (p, i)
3400 static char *f (char * (*g) (char **, int), char **p, ...)
3405 s = g (p, va_arg (v,int));
3410 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3411 function prototypes and stuff, but not '\xHH' hex character constants.
3412 These don't provoke an error unfortunately, instead are silently treated
3413 as 'x'. The following induces an error, until -std is added to get
3414 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3415 array size at least. It's necessary to write '\x00'==0 to get something
3416 that's true only with -std. */
3417 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3420 inside strings and character constants. */
3422 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424 int test (int i, double x);
3425 struct s1 {int (*f) (int a);};
3426 struct s2 {int (*f) (double a);};
3427 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3433 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3438 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3439 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 CC="$ac_save_CC $ac_arg"
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } && {
3456 test -z "$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 } && test -s conftest.$ac_objext; then
3459 ac_cv_prog_cc_c89=$ac_arg
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3467 rm -f core conftest.err conftest.$ac_objext
3468 test "x$ac_cv_prog_cc_c89" != "xno" && break
3470 rm -f conftest.$ac_ext
3475 case "x$ac_cv_prog_cc_c89" in
3477 { echo "$as_me:$LINENO: result: none needed" >&5
3478 echo "${ECHO_T}none needed" >&6; } ;;
3480 { echo "$as_me:$LINENO: result: unsupported" >&5
3481 echo "${ECHO_T}unsupported" >&6; } ;;
3483 CC="$CC $ac_cv_prog_cc_c89"
3484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3485 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3490 ac_cpp='$CPP $CPPFLAGS'
3491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 depcc="$CC" am_compiler_list=
3497 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3498 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3499 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3503 # We make a subdir and do the tests there. Otherwise we can end up
3504 # making bogus files that we don't know about and never remove. For
3505 # instance it was reported that on HP-UX the gcc test will end up
3506 # making a dummy file named `D' -- because `-MD' means `put the output
3509 # Copy depcomp to subdir because otherwise we won't find it if we're
3510 # using a relative directory.
3511 cp "$am_depcomp" conftest.dir
3513 # We will build objects and dependencies in a subdirectory because
3514 # it helps to detect inapplicable dependency modes. For instance
3515 # both Tru64's cc and ICC support -MD to output dependencies as a
3516 # side effect of compilation, but ICC will put the dependencies in
3517 # the current directory while Tru64 will put them in the object
3521 am_cv_CC_dependencies_compiler_type=none
3522 if test "$am_compiler_list" = ""; then
3523 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3525 for depmode in $am_compiler_list; do
3526 # Setup a source with many dependencies, because some compilers
3527 # like to wrap large dependency lists on column 80 (with \), and
3528 # we should not choose a depcomp mode which is confused by this.
3530 # We need to recreate these files for each test, as the compiler may
3531 # overwrite some of them when testing with obscure command lines.
3532 # This happens at least with the AIX C compiler.
3534 for i in 1 2 3 4 5 6; do
3535 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3536 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3537 # Solaris 8's {/usr,}/bin/sh.
3538 touch sub/conftst$i.h
3540 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3544 # after this tag, mechanisms are not by side-effect, so they'll
3545 # only be used when explicitly requested
3546 if test "x$enable_dependency_tracking" = xyes; then
3554 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3555 # mode. It turns out that the SunPro C++ compiler does not properly
3556 # handle `-M -o', and we need to detect this.
3557 if depmode=$depmode \
3558 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3559 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3560 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3561 >/dev/null 2>conftest.err &&
3562 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3563 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3564 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3565 # icc doesn't choke on unknown options, it will just issue warnings
3566 # or remarks (even with -Werror). So we grep stderr for any message
3567 # that says an option was ignored or not supported.
3568 # When given -MP, icc 7.0 and 7.1 complain thusly:
3569 # icc: Command line warning: ignoring option '-M'; no argument required
3570 # The diagnosis changed in icc 8.0:
3571 # icc: Command line remark: option '-MP' not supported
3572 if (grep 'ignoring option' conftest.err ||
3573 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3574 am_cv_CC_dependencies_compiler_type=$depmode
3583 am_cv_CC_dependencies_compiler_type=none
3587 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3588 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3589 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3594 test "x$enable_dependency_tracking" != xno \
3595 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3597 am__fastdepCC_FALSE='#'
3599 am__fastdepCC_TRUE='#'
3600 am__fastdepCC_FALSE=
3606 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3607 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
3608 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3611 ac_check_lib_save_LIBS=$LIBS
3612 LIBS="-lcposix $LIBS"
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3620 /* Override any GCC internal prototype to avoid an error.
3621 Use char because int might match the return type of a GCC
3622 builtin and then its argument prototype would still apply. */
3635 rm -f conftest.$ac_objext conftest$ac_exeext
3636 if { (ac_try="$ac_link"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_link") 2>conftest.er1
3644 grep -v '^ *+' conftest.er1 >conftest.err
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest$ac_exeext &&
3652 $as_test_x conftest$ac_exeext; then
3653 ac_cv_lib_cposix_strerror=yes
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 ac_cv_lib_cposix_strerror=no
3661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3662 conftest$ac_exeext conftest.$ac_ext
3663 LIBS=$ac_check_lib_save_LIBS
3665 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3666 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
3667 if test $ac_cv_lib_cposix_strerror = yes; then
3668 LIBS="$LIBS -lcposix"
3674 ac_cpp='$CPP $CPPFLAGS'
3675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678 if test -n "$ac_tool_prefix"; then
3679 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3680 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3683 if test "${ac_cv_prog_CC+set}" = set; then
3684 echo $ECHO_N "(cached) $ECHO_C" >&6
3686 if test -n "$CC"; then
3687 ac_cv_prog_CC="$CC" # Let the user override the test.
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 if test -n "$CC"; then
3708 { echo "$as_me:$LINENO: result: $CC" >&5
3709 echo "${ECHO_T}$CC" >&6; }
3711 { echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6; }
3717 if test -z "$ac_cv_prog_CC"; then
3719 # Extract the first word of "gcc", so it can be a program name with args.
3720 set dummy gcc; ac_word=$2
3721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 if test -n "$ac_ct_CC"; then
3727 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_ac_ct_CC="gcc"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3747 if test -n "$ac_ct_CC"; then
3748 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3749 echo "${ECHO_T}$ac_ct_CC" >&6; }
3751 { echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6; }
3755 if test "x$ac_ct_CC" = x; then
3758 case $cross_compiling:$ac_tool_warned in
3760 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3761 whose name does not start with the host triplet. If you think this
3762 configuration is useful to you, please write to autoconf@gnu.org." >&5
3763 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3764 whose name does not start with the host triplet. If you think this
3765 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3766 ac_tool_warned=yes ;;
3774 if test -z "$CC"; then
3775 if test -n "$ac_tool_prefix"; then
3776 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3777 set dummy ${ac_tool_prefix}cc; ac_word=$2
3778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3780 if test "${ac_cv_prog_CC+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 if test -n "$CC"; then
3784 ac_cv_prog_CC="$CC" # Let the user override the test.
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3793 ac_cv_prog_CC="${ac_tool_prefix}cc"
3794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 if test -n "$CC"; then
3805 { echo "$as_me:$LINENO: result: $CC" >&5
3806 echo "${ECHO_T}$CC" >&6; }
3808 { echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6; }
3815 if test -z "$CC"; then
3816 # Extract the first word of "cc", so it can be a program name with args.
3817 set dummy cc; ac_word=$2
3818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3820 if test "${ac_cv_prog_CC+set}" = set; then
3821 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 if test -n "$CC"; then
3824 ac_cv_prog_CC="$CC" # Let the user override the test.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 for ac_exec_ext in '' $ac_executable_extensions; do
3833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3834 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3835 ac_prog_rejected=yes
3839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 if test $ac_prog_rejected = yes; then
3847 # We found a bogon in the path, so make sure we never use it.
3848 set dummy $ac_cv_prog_CC
3850 if test $# != 0; then
3851 # We chose a different compiler from the bogus one.
3852 # However, it has the same basename, so the bogon will be chosen
3853 # first if we set CC to just the basename; use the full file name.
3855 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3861 if test -n "$CC"; then
3862 { echo "$as_me:$LINENO: result: $CC" >&5
3863 echo "${ECHO_T}$CC" >&6; }
3865 { echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6; }
3871 if test -z "$CC"; then
3872 if test -n "$ac_tool_prefix"; then
3873 for ac_prog in cl.exe
3875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3879 if test "${ac_cv_prog_CC+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 if test -n "$CC"; then
3883 ac_cv_prog_CC="$CC" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 if test -n "$CC"; then
3904 { echo "$as_me:$LINENO: result: $CC" >&5
3905 echo "${ECHO_T}$CC" >&6; }
3907 { echo "$as_me:$LINENO: result: no" >&5
3908 echo "${ECHO_T}no" >&6; }
3912 test -n "$CC" && break
3915 if test -z "$CC"; then
3917 for ac_prog in cl.exe
3919 # Extract the first word of "$ac_prog", so it can be a program name with args.
3920 set dummy $ac_prog; ac_word=$2
3921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3924 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 if test -n "$ac_ct_CC"; then
3927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_prog_ac_ct_CC="$ac_prog"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3947 if test -n "$ac_ct_CC"; then
3948 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3949 echo "${ECHO_T}$ac_ct_CC" >&6; }
3951 { echo "$as_me:$LINENO: result: no" >&5
3952 echo "${ECHO_T}no" >&6; }
3956 test -n "$ac_ct_CC" && break
3959 if test "x$ac_ct_CC" = x; then
3962 case $cross_compiling:$ac_tool_warned in
3964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3965 whose name does not start with the host triplet. If you think this
3966 configuration is useful to you, please write to autoconf@gnu.org." >&5
3967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3968 whose name does not start with the host triplet. If you think this
3969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3970 ac_tool_warned=yes ;;
3979 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3980 See \`config.log' for more details." >&5
3981 echo "$as_me: error: no acceptable C compiler found in \$PATH
3982 See \`config.log' for more details." >&2;}
3983 { (exit 1); exit 1; }; }
3985 # Provide some information about the compiler.
3986 echo "$as_me:$LINENO: checking for C compiler version" >&5
3987 ac_compiler=`set X $ac_compile; echo $2`
3988 { (ac_try="$ac_compiler --version >&5"
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3994 (eval "$ac_compiler --version >&5") 2>&5
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }
3998 { (ac_try="$ac_compiler -v >&5"
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_compiler -v >&5") 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }
4008 { (ac_try="$ac_compiler -V >&5"
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_compiler -V >&5") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }
4019 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4020 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4021 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4022 echo $ECHO_N "(cached) $ECHO_C" >&6
4024 cat >conftest.$ac_ext <<_ACEOF
4027 cat confdefs.h >>conftest.$ac_ext
4028 cat >>conftest.$ac_ext <<_ACEOF
4029 /* end confdefs.h. */
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4051 grep -v '^ *+' conftest.er1 >conftest.err
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } && {
4056 test -z "$ac_c_werror_flag" ||
4057 test ! -s conftest.err
4058 } && test -s conftest.$ac_objext; then
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4072 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4073 GCC=`test $ac_compiler_gnu = yes && echo yes`
4074 ac_test_CFLAGS=${CFLAGS+set}
4075 ac_save_CFLAGS=$CFLAGS
4076 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4077 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4078 if test "${ac_cv_prog_cc_g+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4081 ac_save_c_werror_flag=$ac_c_werror_flag
4082 ac_c_werror_flag=yes
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4100 rm -f conftest.$ac_objext
4101 if { (ac_try="$ac_compile"
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4107 (eval "$ac_compile") 2>conftest.er1
4109 grep -v '^ *+' conftest.er1 >conftest.err
4111 cat conftest.err >&5
4112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4113 (exit $ac_status); } && {
4114 test -z "$ac_c_werror_flag" ||
4115 test ! -s conftest.err
4116 } && test -s conftest.$ac_objext; then
4119 echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4123 cat >conftest.$ac_ext <<_ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4138 rm -f conftest.$ac_objext
4139 if { (ac_try="$ac_compile"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } && {
4152 test -z "$ac_c_werror_flag" ||
4153 test ! -s conftest.err
4154 } && test -s conftest.$ac_objext; then
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 ac_c_werror_flag=$ac_save_c_werror_flag
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4177 rm -f conftest.$ac_objext
4178 if { (ac_try="$ac_compile"
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && {
4191 test -z "$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 } && test -s conftest.$ac_objext; then
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4212 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4213 if test "$ac_test_CFLAGS" = set; then
4214 CFLAGS=$ac_save_CFLAGS
4215 elif test $ac_cv_prog_cc_g = yes; then
4216 if test "$GCC" = yes; then
4222 if test "$GCC" = yes; then
4228 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4229 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4230 if test "${ac_cv_prog_cc_c89+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 ac_cv_prog_cc_c89=no
4235 cat >conftest.$ac_ext <<_ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4243 #include <sys/types.h>
4244 #include <sys/stat.h>
4245 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4246 struct buf { int x; };
4247 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4248 static char *e (p, i)
4254 static char *f (char * (*g) (char **, int), char **p, ...)
4259 s = g (p, va_arg (v,int));
4264 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4265 function prototypes and stuff, but not '\xHH' hex character constants.
4266 These don't provoke an error unfortunately, instead are silently treated
4267 as 'x'. The following induces an error, until -std is added to get
4268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4269 array size at least. It's necessary to write '\x00'==0 to get something
4270 that's true only with -std. */
4271 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4273 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4274 inside strings and character constants. */
4276 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4278 int test (int i, double x);
4279 struct s1 {int (*f) (int a);};
4280 struct s2 {int (*f) (double a);};
4281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4287 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4292 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4295 CC="$ac_save_CC $ac_arg"
4296 rm -f conftest.$ac_objext
4297 if { (ac_try="$ac_compile"
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_compile") 2>conftest.er1
4305 grep -v '^ *+' conftest.er1 >conftest.err
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); } && {
4310 test -z "$ac_c_werror_flag" ||
4311 test ! -s conftest.err
4312 } && test -s conftest.$ac_objext; then
4313 ac_cv_prog_cc_c89=$ac_arg
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4321 rm -f core conftest.err conftest.$ac_objext
4322 test "x$ac_cv_prog_cc_c89" != "xno" && break
4324 rm -f conftest.$ac_ext
4329 case "x$ac_cv_prog_cc_c89" in
4331 { echo "$as_me:$LINENO: result: none needed" >&5
4332 echo "${ECHO_T}none needed" >&6; } ;;
4334 { echo "$as_me:$LINENO: result: unsupported" >&5
4335 echo "${ECHO_T}unsupported" >&6; } ;;
4337 CC="$CC $ac_cv_prog_cc_c89"
4338 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4339 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4349 depcc="$CC" am_compiler_list=
4351 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4352 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4353 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4357 # We make a subdir and do the tests there. Otherwise we can end up
4358 # making bogus files that we don't know about and never remove. For
4359 # instance it was reported that on HP-UX the gcc test will end up
4360 # making a dummy file named `D' -- because `-MD' means `put the output
4363 # Copy depcomp to subdir because otherwise we won't find it if we're
4364 # using a relative directory.
4365 cp "$am_depcomp" conftest.dir
4367 # We will build objects and dependencies in a subdirectory because
4368 # it helps to detect inapplicable dependency modes. For instance
4369 # both Tru64's cc and ICC support -MD to output dependencies as a
4370 # side effect of compilation, but ICC will put the dependencies in
4371 # the current directory while Tru64 will put them in the object
4375 am_cv_CC_dependencies_compiler_type=none
4376 if test "$am_compiler_list" = ""; then
4377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4379 for depmode in $am_compiler_list; do
4380 # Setup a source with many dependencies, because some compilers
4381 # like to wrap large dependency lists on column 80 (with \), and
4382 # we should not choose a depcomp mode which is confused by this.
4384 # We need to recreate these files for each test, as the compiler may
4385 # overwrite some of them when testing with obscure command lines.
4386 # This happens at least with the AIX C compiler.
4388 for i in 1 2 3 4 5 6; do
4389 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4390 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4391 # Solaris 8's {/usr,}/bin/sh.
4392 touch sub/conftst$i.h
4394 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4398 # after this tag, mechanisms are not by side-effect, so they'll
4399 # only be used when explicitly requested
4400 if test "x$enable_dependency_tracking" = xyes; then
4408 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4409 # mode. It turns out that the SunPro C++ compiler does not properly
4410 # handle `-M -o', and we need to detect this.
4411 if depmode=$depmode \
4412 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4413 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4414 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4415 >/dev/null 2>conftest.err &&
4416 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4417 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4418 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4419 # icc doesn't choke on unknown options, it will just issue warnings
4420 # or remarks (even with -Werror). So we grep stderr for any message
4421 # that says an option was ignored or not supported.
4422 # When given -MP, icc 7.0 and 7.1 complain thusly:
4423 # icc: Command line warning: ignoring option '-M'; no argument required
4424 # The diagnosis changed in icc 8.0:
4425 # icc: Command line remark: option '-MP' not supported
4426 if (grep 'ignoring option' conftest.err ||
4427 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4428 am_cv_CC_dependencies_compiler_type=$depmode
4437 am_cv_CC_dependencies_compiler_type=none
4441 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4442 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4443 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4448 test "x$enable_dependency_tracking" != xno \
4449 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4451 am__fastdepCC_FALSE='#'
4453 am__fastdepCC_TRUE='#'
4454 am__fastdepCC_FALSE=
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463 if test -n "$ac_tool_prefix"; then
4464 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4465 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4466 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4468 if test "${ac_cv_prog_CC+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 if test -n "$CC"; then
4472 ac_cv_prog_CC="$CC" # Let the user override the test.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 if test -n "$CC"; then
4493 { echo "$as_me:$LINENO: result: $CC" >&5
4494 echo "${ECHO_T}$CC" >&6; }
4496 { echo "$as_me:$LINENO: result: no" >&5
4497 echo "${ECHO_T}no" >&6; }
4502 if test -z "$ac_cv_prog_CC"; then
4504 # Extract the first word of "gcc", so it can be a program name with args.
4505 set dummy gcc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 if test -n "$ac_ct_CC"; then
4512 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4521 ac_cv_prog_ac_ct_CC="gcc"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4532 if test -n "$ac_ct_CC"; then
4533 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4534 echo "${ECHO_T}$ac_ct_CC" >&6; }
4536 { echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6; }
4540 if test "x$ac_ct_CC" = x; then
4543 case $cross_compiling:$ac_tool_warned in
4545 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4546 whose name does not start with the host triplet. If you think this
4547 configuration is useful to you, please write to autoconf@gnu.org." >&5
4548 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4549 whose name does not start with the host triplet. If you think this
4550 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4551 ac_tool_warned=yes ;;
4559 if test -z "$CC"; then
4560 if test -n "$ac_tool_prefix"; then
4561 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4562 set dummy ${ac_tool_prefix}cc; ac_word=$2
4563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4565 if test "${ac_cv_prog_CC+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 if test -n "$CC"; then
4569 ac_cv_prog_CC="$CC" # Let the user override the test.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4578 ac_cv_prog_CC="${ac_tool_prefix}cc"
4579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 if test -n "$CC"; then
4590 { echo "$as_me:$LINENO: result: $CC" >&5
4591 echo "${ECHO_T}$CC" >&6; }
4593 { echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6; }
4600 if test -z "$CC"; then
4601 # Extract the first word of "cc", so it can be a program name with args.
4602 set dummy cc; ac_word=$2
4603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4605 if test "${ac_cv_prog_CC+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test -n "$CC"; then
4609 ac_cv_prog_CC="$CC" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4620 ac_prog_rejected=yes
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4631 if test $ac_prog_rejected = yes; then
4632 # We found a bogon in the path, so make sure we never use it.
4633 set dummy $ac_cv_prog_CC
4635 if test $# != 0; then
4636 # We chose a different compiler from the bogus one.
4637 # However, it has the same basename, so the bogon will be chosen
4638 # first if we set CC to just the basename; use the full file name.
4640 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4646 if test -n "$CC"; then
4647 { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4656 if test -z "$CC"; then
4657 if test -n "$ac_tool_prefix"; then
4658 for ac_prog in cl.exe
4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4664 if test "${ac_cv_prog_CC+set}" = set; then
4665 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 if test -n "$CC"; then
4668 ac_cv_prog_CC="$CC" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 if test -n "$CC"; then
4689 { echo "$as_me:$LINENO: result: $CC" >&5
4690 echo "${ECHO_T}$CC" >&6; }
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4697 test -n "$CC" && break
4700 if test -z "$CC"; then
4702 for ac_prog in cl.exe
4704 # Extract the first word of "$ac_prog", so it can be a program name with args.
4705 set dummy $ac_prog; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$ac_ct_CC"; then
4712 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_ac_ct_CC="$ac_prog"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4732 if test -n "$ac_ct_CC"; then
4733 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4734 echo "${ECHO_T}$ac_ct_CC" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4741 test -n "$ac_ct_CC" && break
4744 if test "x$ac_ct_CC" = x; then
4747 case $cross_compiling:$ac_tool_warned in
4749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4750 whose name does not start with the host triplet. If you think this
4751 configuration is useful to you, please write to autoconf@gnu.org." >&5
4752 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4753 whose name does not start with the host triplet. If you think this
4754 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4755 ac_tool_warned=yes ;;
4764 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4765 See \`config.log' for more details." >&5
4766 echo "$as_me: error: no acceptable C compiler found in \$PATH
4767 See \`config.log' for more details." >&2;}
4768 { (exit 1); exit 1; }; }
4770 # Provide some information about the compiler.
4771 echo "$as_me:$LINENO: checking for C compiler version" >&5
4772 ac_compiler=`set X $ac_compile; echo $2`
4773 { (ac_try="$ac_compiler --version >&5"
4775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4776 *) ac_try_echo=$ac_try;;
4778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4779 (eval "$ac_compiler --version >&5") 2>&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }
4783 { (ac_try="$ac_compiler -v >&5"
4785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4786 *) ac_try_echo=$ac_try;;
4788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4789 (eval "$ac_compiler -v >&5") 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); }
4793 { (ac_try="$ac_compiler -V >&5"
4795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4796 *) ac_try_echo=$ac_try;;
4798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4799 (eval "$ac_compiler -V >&5") 2>&5
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }
4804 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4809 cat >conftest.$ac_ext <<_ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4827 rm -f conftest.$ac_objext
4828 if { (ac_try="$ac_compile"
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_compile") 2>conftest.er1
4836 grep -v '^ *+' conftest.er1 >conftest.err
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } && {
4841 test -z "$ac_c_werror_flag" ||
4842 test ! -s conftest.err
4843 } && test -s conftest.$ac_objext; then
4846 echo "$as_me: failed program was:" >&5
4847 sed 's/^/| /' conftest.$ac_ext >&5
4852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4856 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4857 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4858 GCC=`test $ac_compiler_gnu = yes && echo yes`
4859 ac_test_CFLAGS=${CFLAGS+set}
4860 ac_save_CFLAGS=$CFLAGS
4861 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4862 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_cc_g+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_save_c_werror_flag=$ac_c_werror_flag
4867 ac_c_werror_flag=yes
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4885 rm -f conftest.$ac_objext
4886 if { (ac_try="$ac_compile"
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_compile") 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && {
4899 test -z "$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4901 } && test -s conftest.$ac_objext; then
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4908 cat >conftest.$ac_ext <<_ACEOF
4911 cat confdefs.h >>conftest.$ac_ext
4912 cat >>conftest.$ac_ext <<_ACEOF
4913 /* end confdefs.h. */
4923 rm -f conftest.$ac_objext
4924 if { (ac_try="$ac_compile"
4926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4927 *) ac_try_echo=$ac_try;;
4929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4930 (eval "$ac_compile") 2>conftest.er1
4932 grep -v '^ *+' conftest.er1 >conftest.err
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && {
4937 test -z "$ac_c_werror_flag" ||
4938 test ! -s conftest.err
4939 } && test -s conftest.$ac_objext; then
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4945 ac_c_werror_flag=$ac_save_c_werror_flag
4947 cat >conftest.$ac_ext <<_ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4962 rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966 *) ac_try_echo=$ac_try;;
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969 (eval "$ac_compile") 2>conftest.er1
4971 grep -v '^ *+' conftest.er1 >conftest.err
4973 cat conftest.err >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && {
4976 test -z "$ac_c_werror_flag" ||
4977 test ! -s conftest.err
4978 } && test -s conftest.$ac_objext; then
4981 echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4994 ac_c_werror_flag=$ac_save_c_werror_flag
4996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4997 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4998 if test "$ac_test_CFLAGS" = set; then
4999 CFLAGS=$ac_save_CFLAGS
5000 elif test $ac_cv_prog_cc_g = yes; then
5001 if test "$GCC" = yes; then
5007 if test "$GCC" = yes; then
5013 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5014 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5015 if test "${ac_cv_prog_cc_c89+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 ac_cv_prog_cc_c89=no
5020 cat >conftest.$ac_ext <<_ACEOF
5023 cat confdefs.h >>conftest.$ac_ext
5024 cat >>conftest.$ac_ext <<_ACEOF
5025 /* end confdefs.h. */
5028 #include <sys/types.h>
5029 #include <sys/stat.h>
5030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5031 struct buf { int x; };
5032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5033 static char *e (p, i)
5039 static char *f (char * (*g) (char **, int), char **p, ...)
5044 s = g (p, va_arg (v,int));
5049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5050 function prototypes and stuff, but not '\xHH' hex character constants.
5051 These don't provoke an error unfortunately, instead are silently treated
5052 as 'x'. The following induces an error, until -std is added to get
5053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5054 array size at least. It's necessary to write '\x00'==0 to get something
5055 that's true only with -std. */
5056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5059 inside strings and character constants. */
5061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5063 int test (int i, double x);
5064 struct s1 {int (*f) (int a);};
5065 struct s2 {int (*f) (double a);};
5066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5072 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5080 CC="$ac_save_CC $ac_arg"
5081 rm -f conftest.$ac_objext
5082 if { (ac_try="$ac_compile"
5084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5085 *) ac_try_echo=$ac_try;;
5087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5088 (eval "$ac_compile") 2>conftest.er1
5090 grep -v '^ *+' conftest.er1 >conftest.err
5092 cat conftest.err >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } && {
5095 test -z "$ac_c_werror_flag" ||
5096 test ! -s conftest.err
5097 } && test -s conftest.$ac_objext; then
5098 ac_cv_prog_cc_c89=$ac_arg
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5106 rm -f core conftest.err conftest.$ac_objext
5107 test "x$ac_cv_prog_cc_c89" != "xno" && break
5109 rm -f conftest.$ac_ext
5114 case "x$ac_cv_prog_cc_c89" in
5116 { echo "$as_me:$LINENO: result: none needed" >&5
5117 echo "${ECHO_T}none needed" >&6; } ;;
5119 { echo "$as_me:$LINENO: result: unsupported" >&5
5120 echo "${ECHO_T}unsupported" >&6; } ;;
5122 CC="$CC $ac_cv_prog_cc_c89"
5123 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5124 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5134 depcc="$CC" am_compiler_list=
5136 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5137 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5138 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5142 # We make a subdir and do the tests there. Otherwise we can end up
5143 # making bogus files that we don't know about and never remove. For
5144 # instance it was reported that on HP-UX the gcc test will end up
5145 # making a dummy file named `D' -- because `-MD' means `put the output
5148 # Copy depcomp to subdir because otherwise we won't find it if we're
5149 # using a relative directory.
5150 cp "$am_depcomp" conftest.dir
5152 # We will build objects and dependencies in a subdirectory because
5153 # it helps to detect inapplicable dependency modes. For instance
5154 # both Tru64's cc and ICC support -MD to output dependencies as a
5155 # side effect of compilation, but ICC will put the dependencies in
5156 # the current directory while Tru64 will put them in the object
5160 am_cv_CC_dependencies_compiler_type=none
5161 if test "$am_compiler_list" = ""; then
5162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5164 for depmode in $am_compiler_list; do
5165 # Setup a source with many dependencies, because some compilers
5166 # like to wrap large dependency lists on column 80 (with \), and
5167 # we should not choose a depcomp mode which is confused by this.
5169 # We need to recreate these files for each test, as the compiler may
5170 # overwrite some of them when testing with obscure command lines.
5171 # This happens at least with the AIX C compiler.
5173 for i in 1 2 3 4 5 6; do
5174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5175 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5176 # Solaris 8's {/usr,}/bin/sh.
5177 touch sub/conftst$i.h
5179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5183 # after this tag, mechanisms are not by side-effect, so they'll
5184 # only be used when explicitly requested
5185 if test "x$enable_dependency_tracking" = xyes; then
5193 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5194 # mode. It turns out that the SunPro C++ compiler does not properly
5195 # handle `-M -o', and we need to detect this.
5196 if depmode=$depmode \
5197 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5198 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5199 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5200 >/dev/null 2>conftest.err &&
5201 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5202 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5203 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5204 # icc doesn't choke on unknown options, it will just issue warnings
5205 # or remarks (even with -Werror). So we grep stderr for any message
5206 # that says an option was ignored or not supported.
5207 # When given -MP, icc 7.0 and 7.1 complain thusly:
5208 # icc: Command line warning: ignoring option '-M'; no argument required
5209 # The diagnosis changed in icc 8.0:
5210 # icc: Command line remark: option '-MP' not supported
5211 if (grep 'ignoring option' conftest.err ||
5212 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5213 am_cv_CC_dependencies_compiler_type=$depmode
5222 am_cv_CC_dependencies_compiler_type=none
5226 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5227 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5228 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5233 test "x$enable_dependency_tracking" != xno \
5234 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5236 am__fastdepCC_FALSE='#'
5238 am__fastdepCC_TRUE='#'
5239 am__fastdepCC_FALSE=
5244 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5247 ac_cpp='$CPP $CPPFLAGS'
5248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5251 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5253 # On Suns, sometimes $CPP names a directory.
5254 if test -n "$CPP" && test -d "$CPP"; then
5257 if test -z "$CPP"; then
5258 if test "${ac_cv_prog_CPP+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 # Double quotes because CPP needs to be expanded
5262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5265 for ac_c_preproc_warn_flag in '' yes
5267 # Use a header file that comes with gcc, so configuring glibc
5268 # with a fresh cross-compiler works.
5269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270 # <limits.h> exists even on freestanding compilers.
5271 # On the NeXT, cc -E runs the code through the compiler's parser,
5272 # not just through cpp. "Syntax error" is here to catch this case.
5273 cat >conftest.$ac_ext <<_ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h. */
5280 # include <limits.h>
5282 # include <assert.h>
5286 if { (ac_try="$ac_cpp conftest.$ac_ext"
5288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5289 *) ac_try_echo=$ac_try;;
5291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null && {
5299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5300 test ! -s conftest.err
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5307 # Broken: fails on valid input.
5311 rm -f conftest.err conftest.$ac_ext
5313 # OK, works on sane cases. Now check whether nonexistent headers
5314 # can be detected and how.
5315 cat >conftest.$ac_ext <<_ACEOF
5318 cat confdefs.h >>conftest.$ac_ext
5319 cat >>conftest.$ac_ext <<_ACEOF
5320 /* end confdefs.h. */
5321 #include <ac_nonexistent.h>
5323 if { (ac_try="$ac_cpp conftest.$ac_ext"
5325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 grep -v '^ *+' conftest.er1 >conftest.err
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } >/dev/null && {
5336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5339 # Broken: success on invalid input.
5342 echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5345 # Passes both tests.
5350 rm -f conftest.err conftest.$ac_ext
5353 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5354 rm -f conftest.err conftest.$ac_ext
5355 if $ac_preproc_ok; then
5367 { echo "$as_me:$LINENO: result: $CPP" >&5
5368 echo "${ECHO_T}$CPP" >&6; }
5370 for ac_c_preproc_warn_flag in '' yes
5372 # Use a header file that comes with gcc, so configuring glibc
5373 # with a fresh cross-compiler works.
5374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5375 # <limits.h> exists even on freestanding compilers.
5376 # On the NeXT, cc -E runs the code through the compiler's parser,
5377 # not just through cpp. "Syntax error" is here to catch this case.
5378 cat >conftest.$ac_ext <<_ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5385 # include <limits.h>
5387 # include <assert.h>
5391 if { (ac_try="$ac_cpp conftest.$ac_ext"
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } >/dev/null && {
5404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5412 # Broken: fails on valid input.
5416 rm -f conftest.err conftest.$ac_ext
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat >conftest.$ac_ext <<_ACEOF
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <ac_nonexistent.h>
5428 if { (ac_try="$ac_cpp conftest.$ac_ext"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } >/dev/null && {
5441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5444 # Broken: success on invalid input.
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 # Passes both tests.
5455 rm -f conftest.err conftest.$ac_ext
5458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5459 rm -f conftest.err conftest.$ac_ext
5460 if $ac_preproc_ok; then
5463 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5464 See \`config.log' for more details." >&5
5465 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5466 See \`config.log' for more details." >&2;}
5467 { (exit 1); exit 1; }; }
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478 test -n "$build_alias" && ac_build_tool_prefix=$build_alias-
5480 if test -z "$CC_FOR_BUILD"; then
5481 if test "$#" = yes; then
5482 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5483 See \`config.log' for more details." >&5
5484 echo "$as_me: error: cannot run test program while cross compiling
5485 See \`config.log' for more details." >&2;}
5486 { (exit 1); exit 1; }; }
5488 cat >conftest.$ac_ext <<_ACEOF
5489 int main(){return 0;}
5491 rm -f conftest$ac_exeext
5492 if { (ac_try="$ac_link"
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_link") 2>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5502 { (case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_try") 2>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5513 echo "$as_me: program exited with status $ac_status" >&5
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5526 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5527 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5528 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
5530 if test -n "$ac_build_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5532 set dummy ${ac_build_tool_prefix}gcc; ac_word=$2
5533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5535 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5536 echo $ECHO_N "(cached) $ECHO_C" >&6
5538 if test -n "$CC_FOR_BUILD"; then
5539 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}gcc"
5549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5559 if test -n "$CC_FOR_BUILD"; then
5560 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5561 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5563 { echo "$as_me:$LINENO: result: no" >&5
5564 echo "${ECHO_T}no" >&6; }
5569 if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5570 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5571 # Extract the first word of "gcc", so it can be a program name with args.
5572 set dummy gcc; ac_word=$2
5573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5575 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 if test -n "$ac_ct_CC_FOR_BUILD"; then
5579 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5588 ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5599 if test -n "$ac_ct_CC_FOR_BUILD"; then
5600 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5601 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5603 { echo "$as_me:$LINENO: result: no" >&5
5604 echo "${ECHO_T}no" >&6; }
5607 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5610 case $#:$ac_tool_warned in
5612 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5613 whose name does not start with the build triplet. If you think this
5614 configuration is useful to you, please write to autoconf@gnu.org." >&5
5615 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5616 whose name does not start with the build triplet. If you think this
5617 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5618 ac_tool_warned=yes ;;
5620 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5623 CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5626 if test -z "$CC_FOR_BUILD"; then
5627 if test -n "$ac_build_tool_prefix"; then
5628 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5629 set dummy ${ac_build_tool_prefix}cc; ac_word=$2
5630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5632 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 if test -n "$CC_FOR_BUILD"; then
5636 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 test -z "$as_dir" && as_dir=.
5643 for ac_exec_ext in '' $ac_executable_extensions; do
5644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5645 ac_cv_prog_CC_FOR_BUILD="${ac_build_tool_prefix}cc"
5646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5655 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5656 if test -n "$CC_FOR_BUILD"; then
5657 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5658 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5660 { echo "$as_me:$LINENO: result: no" >&5
5661 echo "${ECHO_T}no" >&6; }
5667 if test -z "$CC_FOR_BUILD"; then
5668 # Extract the first word of "cc", so it can be a program name with args.
5669 set dummy cc; ac_word=$2
5670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5672 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5675 if test -n "$CC_FOR_BUILD"; then
5676 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5687 ac_prog_rejected=yes
5690 ac_cv_prog_CC_FOR_BUILD="cc"
5691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 if test $ac_prog_rejected = yes; then
5699 # We found a bogon in the path, so make sure we never use it.
5700 set dummy $ac_cv_prog_CC_FOR_BUILD
5702 if test $# != 0; then
5703 # We chose a different compiler from the bogus one.
5704 # However, it has the same basename, so the bogon will be chosen
5705 # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5707 ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5712 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5713 if test -n "$CC_FOR_BUILD"; then
5714 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5715 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5717 { echo "$as_me:$LINENO: result: no" >&5
5718 echo "${ECHO_T}no" >&6; }
5723 if test -z "$CC_FOR_BUILD"; then
5724 if test -n "$ac_build_tool_prefix"; then
5725 for ac_prog in cl.exe
5727 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5728 set dummy $ac_build_tool_prefix$ac_prog; ac_word=$2
5729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5731 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5734 if test -n "$CC_FOR_BUILD"; then
5735 ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5744 ac_cv_prog_CC_FOR_BUILD="$ac_build_tool_prefix$ac_prog"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5755 if test -n "$CC_FOR_BUILD"; then
5756 { echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
5757 echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
5759 { echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6; }
5764 test -n "$CC_FOR_BUILD" && break
5767 if test -z "$CC_FOR_BUILD"; then
5768 ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5769 for ac_prog in cl.exe
5771 # Extract the first word of "$ac_prog", so it can be a program name with args.
5772 set dummy $ac_prog; ac_word=$2
5773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5775 if test "${ac_cv_prog_ac_ct_CC_FOR_BUILD+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 if test -n "$ac_ct_CC_FOR_BUILD"; then
5779 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 test -z "$as_dir" && as_dir=.
5786 for ac_exec_ext in '' $ac_executable_extensions; do
5787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5788 ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5798 ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5799 if test -n "$ac_ct_CC_FOR_BUILD"; then
5800 { echo "$as_me:$LINENO: result: $ac_ct_CC_FOR_BUILD" >&5
5801 echo "${ECHO_T}$ac_ct_CC_FOR_BUILD" >&6; }
5803 { echo "$as_me:$LINENO: result: no" >&5
5804 echo "${ECHO_T}no" >&6; }
5808 test -n "$ac_ct_CC_FOR_BUILD" && break
5811 if test "x$ac_ct_CC_FOR_BUILD" = x; then
5814 case $#:$ac_tool_warned in
5816 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5817 whose name does not start with the build triplet. If you think this
5818 configuration is useful to you, please write to autoconf@gnu.org." >&5
5819 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5820 whose name does not start with the build triplet. If you think this
5821 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5822 ac_tool_warned=yes ;;
5824 CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5831 test -z "$CC_FOR_BUILD" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5832 See \`config.log' for more details." >&5
5833 echo "$as_me: error: no acceptable C compiler found in \$PATH
5834 See \`config.log' for more details." >&2;}
5835 { (exit 1); exit 1; }; }
5837 # Provide some information about the compiler.
5838 echo "$as_me:$LINENO: checking for C compiler version" >&5
5839 ac_compiler=`set X $ac_build_compile; echo $2`
5840 { (ac_try="$ac_compiler --version >&5"
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compiler --version >&5") 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }
5850 { (ac_try="$ac_compiler -v >&5"
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compiler -v >&5") 2>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }
5860 { (ac_try="$ac_compiler -V >&5"
5862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5863 *) ac_try_echo=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compiler -V >&5") 2>&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); }
5871 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5872 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5873 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 cat >conftest.$ac_ext <<_ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5894 rm -f conftest.$ac_build_objext
5895 if { (ac_try="$ac_build_compile"
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5901 (eval "$ac_build_compile") 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && {
5908 test -z "$ac_c_werror_flag" ||
5909 test ! -s conftest.err
5910 } && test -s conftest.$ac_build_objext; then
5911 ac_build_compiler_gnu=yes
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5916 ac_build_compiler_gnu=no
5919 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5920 ac_cv_c_compiler_gnu=$ac_build_compiler_gnu
5923 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5924 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5925 GCC=`test $ac_build_compiler_gnu = yes && echo yes`
5926 ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5927 ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5928 { echo "$as_me:$LINENO: checking whether $CC_FOR_BUILD accepts -g" >&5
5929 echo $ECHO_N "checking whether $CC_FOR_BUILD accepts -g... $ECHO_C" >&6; }
5930 if test "${ac_cv_build_prog_cc_g+set}" = set; then
5931 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_save_c_werror_flag=$ac_c_werror_flag
5934 ac_c_werror_flag=yes
5935 ac_cv_build_prog_cc_g=no
5936 CFLAGS_FOR_BUILD="-g"
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5952 rm -f conftest.$ac_build_objext
5953 if { (ac_try="$ac_build_compile"
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_build_compile") 2>conftest.er1
5961 grep -v '^ *+' conftest.er1 >conftest.err
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_build_objext; then
5969 ac_cv_build_prog_cc_g=yes
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5975 cat >conftest.$ac_ext <<_ACEOF
5978 cat confdefs.h >>conftest.$ac_ext
5979 cat >>conftest.$ac_ext <<_ACEOF
5980 /* end confdefs.h. */
5990 rm -f conftest.$ac_build_objext
5991 if { (ac_try="$ac_build_compile"
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_build_compile") 2>conftest.er1
5999 grep -v '^ *+' conftest.er1 >conftest.err
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest.$ac_build_objext; then
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6012 ac_c_werror_flag=$ac_save_c_werror_flag
6013 CFLAGS_FOR_BUILD="-g"
6014 cat >conftest.$ac_ext <<_ACEOF
6017 cat confdefs.h >>conftest.$ac_ext
6018 cat >>conftest.$ac_ext <<_ACEOF
6019 /* end confdefs.h. */
6029 rm -f conftest.$ac_build_objext
6030 if { (ac_try="$ac_build_compile"
6032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6033 *) ac_try_echo=$ac_try;;
6035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6036 (eval "$ac_build_compile") 2>conftest.er1
6038 grep -v '^ *+' conftest.er1 >conftest.err
6040 cat conftest.err >&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } && {
6043 test -z "$ac_c_werror_flag" ||
6044 test ! -s conftest.err
6045 } && test -s conftest.$ac_build_objext; then
6046 ac_cv_build_prog_cc_g=yes
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6054 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6057 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6060 rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
6061 ac_c_werror_flag=$ac_save_c_werror_flag
6063 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_g" >&5
6064 echo "${ECHO_T}$ac_cv_build_prog_cc_g" >&6; }
6065 if test "$ac_test_CFLAGS" = set; then
6066 CFLAGS_FOR_BUILD=$ac_save_CFLAGS
6067 elif test $ac_cv_build_prog_cc_g = yes; then
6068 if test "$GCC" = yes; then
6069 CFLAGS_FOR_BUILD="-g -O2"
6071 CFLAGS_FOR_BUILD="-g"
6074 if test "$GCC" = yes; then
6075 CFLAGS_FOR_BUILD="-O2"
6080 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6081 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6082 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6083 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 ac_cv_build_prog_cc_stdc=no
6086 ac_save_CC=$CC_FOR_BUILD
6087 cat >conftest.$ac_ext <<_ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6095 #include <sys/types.h>
6096 #include <sys/stat.h>
6097 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6098 struct buf { int x; };
6099 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6100 static char *e (p, i)
6106 static char *f (char * (*g) (char **, int), char **p, ...)
6111 s = g (p, va_arg (v,int));
6116 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6117 function prototypes and stuff, but not '\xHH' hex character constants.
6118 These don't provoke an error unfortunately, instead are silently treated
6119 as 'x'. The following induces an error, until -std is added to get
6120 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6121 array size at least. It's necessary to write '\x00'==0 to get something
6122 that's true only with -std. */
6123 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6125 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6126 inside strings and character constants. */
6128 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6130 int test (int i, double x);
6131 struct s1 {int (*f) (int a);};
6132 struct s2 {int (*f) (double a);};
6133 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6139 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6144 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6145 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6147 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6148 rm -f conftest.$ac_build_objext
6149 if { (ac_try="$ac_build_compile"
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_build_compile") 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } && {
6162 test -z "$ac_c_werror_flag" ||
6163 test ! -s conftest.err
6164 } && test -s conftest.$ac_build_objext; then
6165 ac_cv_build_prog_cc_stdc=$ac_arg
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6173 rm -f core conftest.err conftest.$ac_build_objext
6174 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6176 rm -f conftest.$ac_ext
6177 CC_FOR_BUILD=$ac_save_CC
6181 case "x$ac_cv_build_prog_cc_stdc" in
6183 { echo "$as_me:$LINENO: result: none needed" >&5
6184 echo "${ECHO_T}none needed" >&6; } ;;
6186 { echo "$as_me:$LINENO: result: unsupported" >&5
6187 echo "${ECHO_T}unsupported" >&6; } ;;
6189 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6190 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6191 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6196 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6197 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6198 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6201 depcc="$CC_FOR_BUILD" am_compiler_list=
6203 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6204 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6205 if test "${am_cv_CC_FOR_BUILD_dependencies_compiler_type+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6209 # We make a subdir and do the tests there. Otherwise we can end up
6210 # making bogus files that we don't know about and never remove. For
6211 # instance it was reported that on HP-UX the gcc test will end up
6212 # making a dummy file named `D' -- because `-MD' means `put the output
6215 # Copy depcomp to subdir because otherwise we won't find it if we're
6216 # using a relative directory.
6217 cp "$am_depcomp" conftest.dir
6219 # We will build objects and dependencies in a subdirectory because
6220 # it helps to detect inapplicable dependency modes. For instance
6221 # both Tru64's cc and ICC support -MD to output dependencies as a
6222 # side effect of compilation, but ICC will put the dependencies in
6223 # the current directory while Tru64 will put them in the object
6227 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6228 if test "$am_compiler_list" = ""; then
6229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6231 for depmode in $am_compiler_list; do
6232 # Setup a source with many dependencies, because some compilers
6233 # like to wrap large dependency lists on column 80 (with \), and
6234 # we should not choose a depcomp mode which is confused by this.
6236 # We need to recreate these files for each test, as the compiler may
6237 # overwrite some of them when testing with obscure command lines.
6238 # This happens at least with the AIX C compiler.
6240 for i in 1 2 3 4 5 6; do
6241 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6242 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6243 # Solaris 8's {/usr,}/bin/sh.
6244 touch sub/conftst$i.h
6246 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6250 # after this tag, mechanisms are not by side-effect, so they'll
6251 # only be used when explicitly requested
6252 if test "x$enable_dependency_tracking" = xyes; then
6260 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6261 # mode. It turns out that the SunPro C++ compiler does not properly
6262 # handle `-M -o', and we need to detect this.
6263 if depmode=$depmode \
6264 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6265 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6266 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6267 >/dev/null 2>conftest.err &&
6268 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6269 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6270 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6271 # icc doesn't choke on unknown options, it will just issue warnings
6272 # or remarks (even with -Werror). So we grep stderr for any message
6273 # that says an option was ignored or not supported.
6274 # When given -MP, icc 7.0 and 7.1 complain thusly:
6275 # icc: Command line warning: ignoring option '-M'; no argument required
6276 # The diagnosis changed in icc 8.0:
6277 # icc: Command line remark: option '-MP' not supported
6278 if (grep 'ignoring option' conftest.err ||
6279 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6280 am_cv_CC_FOR_BUILD_dependencies_compiler_type=$depmode
6289 am_cv_CC_FOR_BUILD_dependencies_compiler_type=none
6293 { echo "$as_me:$LINENO: result: $am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&5
6294 echo "${ECHO_T}$am_cv_CC_FOR_BUILD_dependencies_compiler_type" >&6; }
6295 CC_FOR_BUILDDEPMODE=depmode=$am_cv_CC_FOR_BUILD_dependencies_compiler_type
6300 test "x$enable_dependency_tracking" != xno \
6301 && test "$am_cv_CC_FOR_BUILD_dependencies_compiler_type" = gcc3; then
6302 am__fastdepCC_FOR_BUILD_TRUE=
6303 am__fastdepCC_FOR_BUILD_FALSE='#'
6305 am__fastdepCC_FOR_BUILD_TRUE='#'
6306 am__fastdepCC_FOR_BUILD_FALSE=
6310 case $ac_cv_build_prog_cc_stdc in
6311 no) ac_cv_build_prog_cc_stdc=no; ac_cv_build_prog_cc_stdc=no ;;
6312 *) { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C99" >&5
6313 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C99... $ECHO_C" >&6; }
6314 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 ac_cv_build_prog_cc_stdc=no
6318 ac_save_CC=$CC_FOR_BUILD
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6326 #include <stdbool.h>
6331 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6332 #define debug(...) fprintf (stderr, __VA_ARGS__)
6333 #define showlist(...) puts (#__VA_ARGS__)
6334 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6336 test_varargs_macros (void)
6341 debug ("X = %d\n", x);
6342 showlist (The first, second, and third items.);
6343 report (x>y, "x is %d but y is %d", x, y);
6346 // Check long long types.
6347 #define BIG64 18446744073709551615ull
6348 #define BIG32 4294967295ul
6349 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6351 your preprocessor is broken;
6355 your preprocessor is broken;
6357 static long long int bignum = -9223372036854775807LL;
6358 static unsigned long long int ubignum = BIG64;
6360 struct incomplete_array
6368 const wchar_t *name;
6372 typedef const char *ccp;
6375 test_restrict (ccp restrict text)
6377 // See if C++-style comments work.
6378 // Iterate through items via the restricted pointer.
6379 // Also check for declarations in for loops.
6380 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6385 // Check varargs and va_copy.
6387 test_varargs (const char *format, ...)
6390 va_start (args, format);
6392 va_copy (args_copy, args);
6403 str = va_arg (args_copy, const char *);
6406 number = va_arg (args_copy, int);
6409 fnumber = va_arg (args_copy, double);
6424 _Bool success = false;
6427 if (test_restrict ("String literal") == 0)
6429 char *restrict newvar = "Another string";
6432 test_varargs ("s, d' f .", "string", 65, 34.234);
6433 test_varargs_macros ();
6435 // Check flexible array members.
6436 struct incomplete_array *ia =
6437 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6439 for (int i = 0; i < ia->datasize; ++i)
6440 ia->data[i] = i * 1.234;
6442 // Check named initializers.
6443 struct named_init ni = {
6445 .name = L"Test wide string",
6446 .average = 543.34343,
6451 int dynamic_array[ni.number];
6452 dynamic_array[ni.number - 1] = 543;
6454 // work around unused variable warnings
6455 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6456 || dynamic_array[ni.number - 1] != 543);
6462 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
6464 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6465 rm -f conftest.$ac_build_objext
6466 if { (ac_try="$ac_build_compile"
6468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6469 *) ac_try_echo=$ac_try;;
6471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6472 (eval "$ac_build_compile") 2>conftest.er1
6474 grep -v '^ *+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } && {
6479 test -z "$ac_c_werror_flag" ||
6480 test ! -s conftest.err
6481 } && test -s conftest.$ac_build_objext; then
6482 ac_cv_build_prog_cc_stdc=$ac_arg
6484 echo "$as_me: failed program was:" >&5
6485 sed 's/^/| /' conftest.$ac_ext >&5
6490 rm -f core conftest.err conftest.$ac_build_objext
6491 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6493 rm -f conftest.$ac_ext
6494 CC_FOR_BUILD=$ac_save_CC
6498 case "x$ac_cv_build_prog_cc_stdc" in
6500 { echo "$as_me:$LINENO: result: none needed" >&5
6501 echo "${ECHO_T}none needed" >&6; } ;;
6503 { echo "$as_me:$LINENO: result: unsupported" >&5
6504 echo "${ECHO_T}unsupported" >&6; } ;;
6506 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6507 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6508 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6510 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6511 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6513 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
6514 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO C89... $ECHO_C" >&6; }
6515 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 ac_cv_build_prog_cc_stdc=no
6519 ac_save_CC=$CC_FOR_BUILD
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6528 #include <sys/types.h>
6529 #include <sys/stat.h>
6530 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6531 struct buf { int x; };
6532 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6533 static char *e (p, i)
6539 static char *f (char * (*g) (char **, int), char **p, ...)
6544 s = g (p, va_arg (v,int));
6549 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6550 function prototypes and stuff, but not '\xHH' hex character constants.
6551 These don't provoke an error unfortunately, instead are silently treated
6552 as 'x'. The following induces an error, until -std is added to get
6553 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6554 array size at least. It's necessary to write '\x00'==0 to get something
6555 that's true only with -std. */
6556 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6558 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6559 inside strings and character constants. */
6561 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6563 int test (int i, double x);
6564 struct s1 {int (*f) (int a);};
6565 struct s2 {int (*f) (double a);};
6566 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6572 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6577 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6578 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6580 CC_FOR_BUILD="$ac_save_CC $ac_arg"
6581 rm -f conftest.$ac_build_objext
6582 if { (ac_try="$ac_build_compile"
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_build_compile") 2>conftest.er1
6590 grep -v '^ *+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && {
6595 test -z "$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 } && test -s conftest.$ac_build_objext; then
6598 ac_cv_build_prog_cc_stdc=$ac_arg
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6606 rm -f core conftest.err conftest.$ac_build_objext
6607 test "x$ac_cv_build_prog_cc_stdc" != "xno" && break
6609 rm -f conftest.$ac_ext
6610 CC_FOR_BUILD=$ac_save_CC
6614 case "x$ac_cv_build_prog_cc_stdc" in
6616 { echo "$as_me:$LINENO: result: none needed" >&5
6617 echo "${ECHO_T}none needed" >&6; } ;;
6619 { echo "$as_me:$LINENO: result: unsupported" >&5
6620 echo "${ECHO_T}unsupported" >&6; } ;;
6622 CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_build_prog_cc_stdc"
6623 { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6624 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6626 if test "x$ac_cv_build_prog_cc_stdc" != xno; then
6627 ac_cv_build_prog_cc_stdc=$ac_cv_build_prog_cc_stdc
6629 ac_cv_build_prog_cc_stdc=no
6637 { echo "$as_me:$LINENO: checking for $CC_FOR_BUILD option to accept ISO Standard C" >&5
6638 echo $ECHO_N "checking for $CC_FOR_BUILD option to accept ISO Standard C... $ECHO_C" >&6; }
6639 if test "${ac_cv_build_prog_cc_stdc+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 case $ac_cv_build_prog_cc_stdc in
6644 no) { echo "$as_me:$LINENO: result: unsupported" >&5
6645 echo "${ECHO_T}unsupported" >&6; } ;;
6646 '') { echo "$as_me:$LINENO: result: none needed" >&5
6647 echo "${ECHO_T}none needed" >&6; } ;;
6648 *) { echo "$as_me:$LINENO: result: $ac_cv_build_prog_cc_stdc" >&5
6649 echo "${ECHO_T}$ac_cv_build_prog_cc_stdc" >&6; } ;;
6654 ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6655 ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6656 ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6657 ac_build_compiler_gnu=$ac_cv_c_compiler_gnu
6658 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6659 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6660 # On Suns, sometimes $CPP names a directory.
6661 if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
6664 if test -z "$CPP_FOR_BUILD"; then
6665 if test "${ac_cv_build_prog_CPP+set}" = set; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 # Double quotes because CPP needs to be expanded
6669 for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
6672 for ac_c_preproc_warn_flag in '' yes
6674 # Use a header file that comes with gcc, so configuring glibc
6675 # with a fresh cross-compiler works.
6676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6677 # <limits.h> exists even on freestanding compilers.
6678 # On the NeXT, cc -E runs the code through the compiler's parser,
6679 # not just through cpp. "Syntax error" is here to catch this case.
6680 cat >conftest.$ac_ext <<_ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6687 # include <limits.h>
6689 # include <assert.h>
6693 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6701 grep -v '^ *+' conftest.er1 >conftest.err
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } >/dev/null && {
6706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 # Broken: fails on valid input.
6718 rm -f conftest.err conftest.$ac_ext
6720 # OK, works on sane cases. Now check whether nonexistent headers
6721 # can be detected and how.
6722 cat >conftest.$ac_ext <<_ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 #include <ac_nonexistent.h>
6730 if { (ac_try="$ac_build_cpp conftest.$ac_ext"
6732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733 *) ac_try_echo=$ac_try;;
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736 (eval "$ac_build_cpp conftest.$ac_ext") 2>conftest.er1
6738 grep -v '^ *+' conftest.er1 >conftest.err
6740 cat conftest.err >&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } >/dev/null && {
6743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6744 test ! -s conftest.err
6746 # Broken: success on invalid input.
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 # Passes both tests.
6757 rm -f conftest.err conftest.$ac_ext
6760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6761 rm -f conftest.err conftest.$ac_ext
6762 if $ac_preproc_ok; then
6767 ac_cv_build_prog_CPP=$CPP_FOR_BUILD
6770 CPP_FOR_BUILD=$ac_cv_build_prog_CPP