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
667 INSTALL_STRIP_PROGRAM
672 MAINTAINER_MODE_FALSE
758 ac_precious_vars='build_alias
778 # Initialize some variables set by options.
780 ac_init_version=false
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
790 program_transform_name=s,x,x,
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE}'
815 infodir='${datarootdir}/info'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
836 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
864 cache_file=config.cache ;;
866 -datadir | --datadir | --datadi | --datad)
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
897 -enable-* | --enable-*)
898 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
901 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
902 { (exit 1); exit 1; }; }
903 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
904 eval enable_$ac_feature=\$ac_optarg ;;
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
919 -help | --help | --hel | --he | -h)
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 htmldir=$ac_optarg ;;
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
949 -libdir | --libdir | --libdi | --libd)
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
961 -localedir | --localedir | --localedi | --localed | --locale)
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 # Obsolete; use --without-fp.
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1040 -psdir | --psdir | --psdi | --psd | --ps)
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 sbindir=$ac_optarg ;;
1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057 | --sharedst | --shareds | --shared | --share | --shar \
1059 ac_prev=sharedstatedir ;;
1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 sharedstatedir=$ac_optarg ;;
1066 -site | --site | --sit)
1068 -site=* | --site=* | --sit=*)
1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074 srcdir=$ac_optarg ;;
1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077 | --syscon | --sysco | --sysc | --sys | --sy)
1078 ac_prev=sysconfdir ;;
1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081 sysconfdir=$ac_optarg ;;
1083 -target | --target | --targe | --targ | --tar | --ta | --t)
1084 ac_prev=target_alias ;;
1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086 target_alias=$ac_optarg ;;
1088 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1091 -version | --version | --versio | --versi | --vers | -V)
1092 ac_init_version=: ;;
1095 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1098 { echo "$as_me: error: invalid package name: $ac_package" >&2
1099 { (exit 1); exit 1; }; }
1100 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1101 eval with_$ac_package=\$ac_optarg ;;
1103 -without-* | --without-*)
1104 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1107 { echo "$as_me: error: invalid package name: $ac_package" >&2
1108 { (exit 1); exit 1; }; }
1109 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1110 eval with_$ac_package=no ;;
1113 # Obsolete; use --with-x.
1116 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1117 | --x-incl | --x-inc | --x-in | --x-i)
1118 ac_prev=x_includes ;;
1119 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1120 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1121 x_includes=$ac_optarg ;;
1123 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1124 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1125 ac_prev=x_libraries ;;
1126 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1127 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1128 x_libraries=$ac_optarg ;;
1130 -*) { echo "$as_me: error: unrecognized option: $ac_option
1131 Try \`$0 --help' for more information." >&2
1132 { (exit 1); exit 1; }; }
1136 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1140 { (exit 1); exit 1; }; }
1141 eval $ac_envvar=\$ac_optarg
1142 export $ac_envvar ;;
1145 # FIXME: should be removed in autoconf 3.0.
1146 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1147 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1149 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1155 if test -n "$ac_prev"; then
1156 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1157 { echo "$as_me: error: missing argument to $ac_option" >&2
1158 { (exit 1); exit 1; }; }
1161 # Be sure to have absolute directory names.
1162 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1163 datadir sysconfdir sharedstatedir localstatedir includedir \
1164 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1165 libdir localedir mandir
1167 eval ac_val=\$$ac_var
1169 [\\/$]* | ?:[\\/]* ) continue;;
1170 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1172 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1173 { (exit 1); exit 1; }; }
1176 # There might be people who depend on the old broken behavior: `$host'
1177 # used to hold the argument of --host etc.
1178 # FIXME: To remove some day.
1181 target=$target_alias
1183 # FIXME: To remove some day.
1184 if test "x$host_alias" != x; then
1185 if test "x$build_alias" = x; then
1186 cross_compiling=maybe
1187 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1188 If a cross compiler is detected then cross compile mode will be used." >&2
1189 elif test "x$build_alias" != "x$host_alias"; then
1195 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1197 test "$silent" = yes && exec 6>/dev/null
1200 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1201 ac_ls_di=`ls -di .` &&
1202 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1203 { echo "$as_me: error: Working directory cannot be determined" >&2
1204 { (exit 1); exit 1; }; }
1205 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1206 { echo "$as_me: error: pwd does not report name of working directory" >&2
1207 { (exit 1); exit 1; }; }
1210 # Find the source files, if location was not specified.
1211 if test -z "$srcdir"; then
1212 ac_srcdir_defaulted=yes
1213 # Try the directory containing this script, then the parent directory.
1214 ac_confdir=`$as_dirname -- "$0" ||
1215 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1216 X"$0" : 'X\(//\)[^/]' \| \
1217 X"$0" : 'X\(//\)$' \| \
1218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 if test ! -r "$srcdir/$ac_unique_file"; then
1242 ac_srcdir_defaulted=no
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1245 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1246 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1247 { (exit 1); exit 1; }; }
1249 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1251 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1252 { (exit 1); exit 1; }; }
1254 # When building in place, set srcdir=.
1255 if test "$ac_abs_confdir" = "$ac_pwd"; then
1258 # Remove unnecessary trailing slashes from srcdir.
1259 # Double slashes in file names in object file debugging info
1260 # mess up M-x gdb in Emacs.
1262 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264 for ac_var in $ac_precious_vars; do
1265 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1266 eval ac_env_${ac_var}_value=\$${ac_var}
1267 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1268 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1272 # Report the --help message.
1274 if test "$ac_init_help" = "long"; then
1275 # Omit some internal or obsolete options to make the list less imposing.
1276 # This message is too long to be a string in the A/UX 3.1 sh.
1278 \`configure' configures this package to adapt to many kinds of systems.
1280 Usage: $0 [OPTION]... [VAR=VALUE]...
1282 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1283 VAR=VALUE. See below for descriptions of some of the useful variables.
1285 Defaults for the options are specified in brackets.
1288 -h, --help display this help and exit
1289 --help=short display options specific to this package
1290 --help=recursive display the short help of all the included packages
1291 -V, --version display version information and exit
1292 -q, --quiet, --silent do not print \`checking...' messages
1293 --cache-file=FILE cache test results in FILE [disabled]
1294 -C, --config-cache alias for \`--cache-file=config.cache'
1295 -n, --no-create do not create output files
1296 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1298 Installation directories:
1299 --prefix=PREFIX install architecture-independent files in PREFIX
1300 [$ac_default_prefix]
1301 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1304 By default, \`make install' will install all the files in
1305 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1306 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1307 for instance \`--prefix=\$HOME'.
1309 For better control, use the options below.
1311 Fine tuning of the installation directories:
1312 --bindir=DIR user executables [EPREFIX/bin]
1313 --sbindir=DIR system admin executables [EPREFIX/sbin]
1314 --libexecdir=DIR program executables [EPREFIX/libexec]
1315 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1316 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1317 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1318 --libdir=DIR object code libraries [EPREFIX/lib]
1319 --includedir=DIR C header files [PREFIX/include]
1320 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1321 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1322 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1323 --infodir=DIR info documentation [DATAROOTDIR/info]
1324 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1325 --mandir=DIR man documentation [DATAROOTDIR/man]
1326 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1327 --htmldir=DIR html documentation [DOCDIR]
1328 --dvidir=DIR dvi documentation [DOCDIR]
1329 --pdfdir=DIR pdf documentation [DOCDIR]
1330 --psdir=DIR ps documentation [DOCDIR]
1336 --program-prefix=PREFIX prepend PREFIX to installed program names
1337 --program-suffix=SUFFIX append SUFFIX to installed program names
1338 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1341 --build=BUILD configure for building on BUILD [guessed]
1342 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1346 if test -n "$ac_init_help"; then
1351 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1352 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1353 --enable-maintainer-mode enable make rules and dependencies not useful
1354 (and sometimes confusing) to the casual installer
1355 --disable-dependency-tracking Speeds up one-time builds
1356 --enable-dependency-tracking Do not reject slow dependency extractors
1357 --enable-trace Enable generation of IO traces (warning: hurts
1359 --enable-watch Enable watchpoints in the debugger (warning: hurts
1362 Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
1367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
1371 PKG_CONFIG path to pkg-config utility
1373 C compiler flags for LIBPNG, overriding pkg-config
1374 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1375 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1376 GTK_LIBS linker flags for GTK, overriding pkg-config
1378 C compiler flags for ESOUND, overriding pkg-config
1379 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1380 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1381 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1383 Use these variables to override the choices made by `configure' or to help
1384 it to find libraries and programs with nonstandard names/locations.
1390 if test "$ac_init_help" = "recursive"; then
1391 # If there are subdirs, report their specific --help.
1392 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1393 test -d "$ac_dir" || continue
1397 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1400 # A ".." for each directory in $ac_dir_suffix.
1401 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1402 case $ac_top_builddir_sub in
1403 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1407 ac_abs_top_builddir=$ac_pwd
1408 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1409 # for backward compatibility:
1410 ac_top_builddir=$ac_top_build_prefix
1413 .) # We are building in place.
1415 ac_top_srcdir=$ac_top_builddir_sub
1416 ac_abs_top_srcdir=$ac_pwd ;;
1417 [\\/]* | ?:[\\/]* ) # Absolute name.
1418 ac_srcdir=$srcdir$ac_dir_suffix;
1419 ac_top_srcdir=$srcdir
1420 ac_abs_top_srcdir=$srcdir ;;
1422 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1423 ac_top_srcdir=$ac_top_build_prefix$srcdir
1424 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1426 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1428 cd "$ac_dir" || { ac_status=$?; continue; }
1429 # Check for guested configure.
1430 if test -f "$ac_srcdir/configure.gnu"; then
1432 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1433 elif test -f "$ac_srcdir/configure"; then
1435 $SHELL "$ac_srcdir/configure" --help=recursive
1437 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1439 cd "$ac_pwd" || { ac_status=$?; break; }
1443 test -n "$ac_init_help" && exit $ac_status
1444 if $ac_init_version; then
1447 generated by GNU Autoconf 2.61
1449 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1450 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1451 This configure script is free software; the Free Software Foundation
1452 gives unlimited permission to copy, distribute and modify it.
1456 cat >config.log <<_ACEOF
1457 This file contains any messages produced by compilers while
1458 running configure, to aid debugging if configure makes a mistake.
1460 It was created by $as_me, which was
1461 generated by GNU Autoconf 2.61. Invocation command line was
1473 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1474 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1475 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1476 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1477 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1479 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1480 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1482 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1483 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1485 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1486 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1487 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1488 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1496 test -z "$as_dir" && as_dir=.
1497 echo "PATH: $as_dir"
1513 # Keep a trace of the command line.
1514 # Strip out --no-create and --no-recursion so they do not pile up.
1515 # Strip out --silent because we don't want to record it for future runs.
1516 # Also quote any args containing shell meta-characters.
1517 # Make two passes to allow for proper duplicate-argument suppression.
1521 ac_must_keep_next=false
1527 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1528 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1529 | -silent | --silent | --silen | --sile | --sil)
1532 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1535 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1537 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1538 if test $ac_must_keep_next = true; then
1539 ac_must_keep_next=false # Got value, back to normal.
1542 *=* | --config-cache | -C | -disable-* | --disable-* \
1543 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1544 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1545 | -with-* | --with-* | -without-* | --without-* | --x)
1546 case "$ac_configure_args0 " in
1547 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1550 -* ) ac_must_keep_next=true ;;
1553 ac_configure_args="$ac_configure_args '$ac_arg'"
1558 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1559 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1561 # When interrupted or exit'd, cleanup temporary files, and complete
1562 # config.log. We remove comments because anyway the quotes in there
1563 # would cause problems or look ugly.
1564 # WARNING: Use '\'' to represent an apostrophe within the trap.
1565 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1566 trap 'exit_status=$?
1567 # Save into config.log some information that might help in debugging.
1572 ## ---------------- ##
1573 ## Cache variables. ##
1574 ## ---------------- ##
1577 # The following way of writing the cache mishandles newlines in values,
1579 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1580 eval ac_val=\$$ac_var
1584 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1588 _ | IFS | as_nl) ;; #(
1589 *) $as_unset $ac_var ;;
1594 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1595 *${as_nl}ac_space=\ *)
1597 "s/'\''/'\''\\\\'\'''\''/g;
1598 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1601 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1609 ## ----------------- ##
1610 ## Output variables. ##
1611 ## ----------------- ##
1614 for ac_var in $ac_subst_vars
1616 eval ac_val=\$$ac_var
1618 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1620 echo "$ac_var='\''$ac_val'\''"
1624 if test -n "$ac_subst_files"; then
1626 ## ------------------- ##
1627 ## File substitutions. ##
1628 ## ------------------- ##
1631 for ac_var in $ac_subst_files
1633 eval ac_val=\$$ac_var
1635 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1637 echo "$ac_var='\''$ac_val'\''"
1642 if test -s confdefs.h; then
1652 test "$ac_signal" != 0 &&
1653 echo "$as_me: caught signal $ac_signal"
1654 echo "$as_me: exit $exit_status"
1656 rm -f core *.core core.conftest.* &&
1657 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1660 for ac_signal in 1 2 13 15; do
1661 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1665 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1666 rm -f -r conftest* confdefs.h
1668 # Predefined preprocessor variables.
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_NAME "$PACKAGE_NAME"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_STRING "$PACKAGE_STRING"
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1695 # Let the site file select an alternate cache file if it wants to.
1696 # Prefer explicitly selected file to automatically selected ones.
1697 if test -n "$CONFIG_SITE"; then
1698 set x "$CONFIG_SITE"
1699 elif test "x$prefix" != xNONE; then
1700 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1702 set x "$ac_default_prefix/share/config.site" \
1703 "$ac_default_prefix/etc/config.site"
1708 if test -r "$ac_site_file"; then
1709 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1710 echo "$as_me: loading site script $ac_site_file" >&6;}
1711 sed 's/^/| /' "$ac_site_file" >&5
1716 if test -r "$cache_file"; then
1717 # Some versions of bash will fail to source /dev/null (special
1718 # files actually), so we avoid doing that.
1719 if test -f "$cache_file"; then
1720 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1721 echo "$as_me: loading cache $cache_file" >&6;}
1723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1724 *) . "./$cache_file";;
1728 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1729 echo "$as_me: creating cache $cache_file" >&6;}
1733 # Check that the precious variables saved in the cache have kept the same
1735 ac_cache_corrupted=false
1736 for ac_var in $ac_precious_vars; do
1737 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1738 eval ac_new_set=\$ac_env_${ac_var}_set
1739 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1740 eval ac_new_val=\$ac_env_${ac_var}_value
1741 case $ac_old_set,$ac_new_set in
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1748 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1749 ac_cache_corrupted=: ;;
1752 if test "x$ac_old_val" != "x$ac_new_val"; then
1753 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1754 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1755 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1756 echo "$as_me: former value: $ac_old_val" >&2;}
1757 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1758 echo "$as_me: current value: $ac_new_val" >&2;}
1759 ac_cache_corrupted=:
1762 # Pass precious variables to config.status.
1763 if test "$ac_new_set" = set; then
1765 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 *) ac_arg=$ac_var=$ac_new_val ;;
1768 case " $ac_configure_args " in
1769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1770 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1774 if $ac_cache_corrupted; then
1775 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1776 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1777 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1778 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1779 { (exit 1); exit 1; }; }
1799 ac_cpp='$CPP $CPPFLAGS'
1800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1805 am__api_version="1.7"
1807 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1808 if test -f "$ac_dir/install-sh"; then
1810 ac_install_sh="$ac_aux_dir/install-sh -c"
1812 elif test -f "$ac_dir/install.sh"; then
1814 ac_install_sh="$ac_aux_dir/install.sh -c"
1816 elif test -f "$ac_dir/shtool"; then
1818 ac_install_sh="$ac_aux_dir/shtool install -c"
1822 if test -z "$ac_aux_dir"; then
1823 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1824 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1825 { (exit 1); exit 1; }; }
1828 # These three variables are undocumented and unsupported,
1829 # and are intended to be withdrawn in a future Autoconf release.
1830 # They can cause serious problems if a builder's source tree is in a directory
1831 # whose full name contains unusual characters.
1832 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1833 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1834 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1837 # Find a good install program. We prefer a C program (faster),
1838 # so one script is as good as another. But avoid the broken or
1839 # incompatible versions:
1840 # SysV /etc/install, /usr/sbin/install
1841 # SunOS /usr/etc/install
1842 # IRIX /sbin/install
1844 # AmigaOS /C/install, which installs bootblocks on floppy discs
1845 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1846 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1847 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1848 # OS/2's system install, which has a completely different semantic
1849 # ./install, which can be erroneously created by make from ./install.sh.
1850 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1851 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1852 if test -z "$INSTALL"; then
1853 if test "${ac_cv_path_install+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 test -z "$as_dir" && as_dir=.
1861 # Account for people who put trailing slashes in PATH elements.
1863 ./ | .// | /cC/* | \
1864 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1865 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1868 # OSF1 and SCO ODT 3.0 have their own names for install.
1869 # Don't use installbsd from OSF since it installs stuff as root
1871 for ac_prog in ginstall scoinst install; do
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1874 if test $ac_prog = install &&
1875 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1876 # AIX install. It has an incompatible calling convention.
1878 elif test $ac_prog = install &&
1879 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1880 # program-specific install script used by HP pwplus--don't use.
1883 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1896 if test "${ac_cv_path_install+set}" = set; then
1897 INSTALL=$ac_cv_path_install
1899 # As a last resort, use the slow shell script. Don't cache a
1900 # value for INSTALL within a source directory, because that will
1901 # break other packages using the cache if that directory is
1902 # removed, or if the value is a relative name.
1903 INSTALL=$ac_install_sh
1906 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1907 echo "${ECHO_T}$INSTALL" >&6; }
1909 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1910 # It thinks the first close brace ends the variable substitution.
1911 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1913 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1915 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1917 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1918 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1921 echo timestamp > conftest.file
1922 # Do `set' in a subshell so we don't clobber the current shell's
1923 # arguments. Must try -L first in case configure is actually a
1924 # symlink; some systems play weird games with the mod time of symlinks
1925 # (eg FreeBSD returns the mod time of the symlink's containing
1928 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1929 if test "$*" = "X"; then
1931 set X `ls -t $srcdir/configure conftest.file`
1934 if test "$*" != "X $srcdir/configure conftest.file" \
1935 && test "$*" != "X conftest.file $srcdir/configure"; then
1937 # If neither matched, then we have a broken ls. This can happen
1938 # if, for instance, CONFIG_SHELL is bash and it inherits a
1939 # broken ls alias from the environment. This has actually
1940 # happened. Such a system could not be considered "sane".
1941 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1942 alias in your environment" >&5
1943 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1944 alias in your environment" >&2;}
1945 { (exit 1); exit 1; }; }
1948 test "$2" = conftest.file
1954 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1955 Check your system clock" >&5
1956 echo "$as_me: error: newly created file is older than distributed files!
1957 Check your system clock" >&2;}
1958 { (exit 1); exit 1; }; }
1960 { echo "$as_me:$LINENO: result: yes" >&5
1961 echo "${ECHO_T}yes" >&6; }
1962 test "$program_prefix" != NONE &&
1963 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1964 # Use a double $ so make ignores it.
1965 test "$program_suffix" != NONE &&
1966 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1967 # Double any \ or $. echo might interpret backslashes.
1968 # By default was `s,x,x', remove it if useless.
1969 cat <<\_ACEOF >conftest.sed
1970 s/[\\$]/&&/g;s/;s,x,x,$//
1972 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1976 # expand $ac_aux_dir to an absolute path
1977 am_aux_dir=`cd $ac_aux_dir && pwd`
1979 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1980 # Use eval to expand $SHELL
1981 if eval "$MISSING --run true"; then
1982 am_missing_run="$MISSING --run "
1985 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1986 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1989 for ac_prog in gawk mawk nawk awk
1991 # Extract the first word of "$ac_prog", so it can be a program name with args.
1992 set dummy $ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_prog_AWK+set}" = set; then
1996 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 if test -n "$AWK"; then
1999 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2005 test -z "$as_dir" && as_dir=.
2006 for ac_exec_ext in '' $ac_executable_extensions; do
2007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2008 ac_cv_prog_AWK="$ac_prog"
2009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2019 if test -n "$AWK"; then
2020 { echo "$as_me:$LINENO: result: $AWK" >&5
2021 echo "${ECHO_T}$AWK" >&6; }
2023 { echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6; }
2028 test -n "$AWK" && break
2031 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2032 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2033 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2034 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2035 echo $ECHO_N "(cached) $ECHO_C" >&6
2037 cat >conftest.make <<\_ACEOF
2040 @echo '@@@%%%=$(MAKE)=@@@%%%'
2042 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2043 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2045 eval ac_cv_prog_make_${ac_make}_set=yes;;
2047 eval ac_cv_prog_make_${ac_make}_set=no;;
2051 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2052 { echo "$as_me:$LINENO: result: yes" >&5
2053 echo "${ECHO_T}yes" >&6; }
2056 { echo "$as_me:$LINENO: result: no" >&5
2057 echo "${ECHO_T}no" >&6; }
2058 SET_MAKE="MAKE=${MAKE-make}"
2061 rm -rf .tst 2>/dev/null
2062 mkdir .tst 2>/dev/null
2063 if test -d .tst; then
2068 rmdir .tst 2>/dev/null
2070 # test to see if srcdir already configured
2071 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2072 test -f $srcdir/config.status; then
2073 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2074 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2075 { (exit 1); exit 1; }; }
2078 # test whether we have cygpath
2079 if test -z "$CYGPATH_W"; then
2080 if (cygpath --version) >/dev/null 2>/dev/null; then
2081 CYGPATH_W='cygpath -w'
2088 # Define the identity of the package.
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE "$PACKAGE"
2098 cat >>confdefs.h <<_ACEOF
2099 #define VERSION "$VERSION"
2102 # Some tools Automake needs.
2104 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2107 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2110 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2113 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2116 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2119 AMTAR=${AMTAR-"${am_missing_run}tar"}
2121 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2123 # Installed binaries are usually stripped using `strip' when the user
2124 # run `make install-strip'. However `strip' might not be the right
2125 # tool to use in cross-compilation environments, therefore Automake
2126 # will honor the `STRIP' environment variable to overrule this program.
2127 if test "$cross_compiling" != no; then
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}strip; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_STRIP+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$STRIP"; then
2137 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 STRIP=$ac_cv_prog_STRIP
2157 if test -n "$STRIP"; then
2158 { echo "$as_me:$LINENO: result: $STRIP" >&5
2159 echo "${ECHO_T}$STRIP" >&6; }
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2167 if test -z "$ac_cv_prog_STRIP"; then
2169 # Extract the first word of "strip", so it can be a program name with args.
2170 set dummy strip; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$ac_ct_STRIP"; then
2177 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_ac_ct_STRIP="strip"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2197 if test -n "$ac_ct_STRIP"; then
2198 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2199 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2205 if test "x$ac_ct_STRIP" = x; then
2208 case $cross_compiling:$ac_tool_warned in
2210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet. If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&5
2213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2214 whose name does not start with the host triplet. If you think this
2215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2216 ac_tool_warned=yes ;;
2221 STRIP="$ac_cv_prog_STRIP"
2225 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2227 # We need awk for the "check" target. The system "awk" is bad on
2232 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2233 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2234 # Check whether --enable-maintainer-mode was given.
2235 if test "${enable_maintainer_mode+set}" = set; then
2236 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2238 USE_MAINTAINER_MODE=no
2241 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2242 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2245 if test $USE_MAINTAINER_MODE = yes; then
2246 MAINTAINER_MODE_TRUE=
2247 MAINTAINER_MODE_FALSE='#'
2249 MAINTAINER_MODE_TRUE='#'
2250 MAINTAINER_MODE_FALSE=
2253 MAINT=$MAINTAINER_MODE_TRUE
2256 ac_config_headers="$ac_config_headers config.h"
2259 DEPDIR="${am__leading_dot}deps"
2261 ac_config_commands="$ac_config_commands depfiles"
2264 am_make=${MAKE-make}
2265 cat > confinc << 'END'
2270 # If we don't find an include directive, just comment out the code.
2271 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2272 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2276 # First try GNU make style include.
2277 echo "include confinc" > confmf
2278 # We grep out `Entering directory' and `Leaving directory'
2279 # messages which can occur if `w' ends up in MAKEFLAGS.
2280 # In particular we don't look at `^make:' because GNU make might
2281 # be invoked under some other name (usually "gmake"), in which
2282 # case it prints its new name instead of `make'.
2283 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2288 # Now try BSD make style include.
2289 if test "$am__include" = "#"; then
2290 echo '.include "confinc"' > confmf
2291 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2292 am__include=.include
2299 { echo "$as_me:$LINENO: result: $_am_result" >&5
2300 echo "${ECHO_T}$_am_result" >&6; }
2301 rm -f confinc confmf
2303 # Check whether --enable-dependency-tracking was given.
2304 if test "${enable_dependency_tracking+set}" = set; then
2305 enableval=$enable_dependency_tracking;
2308 if test "x$enable_dependency_tracking" != xno; then
2309 am_depcomp="$ac_aux_dir/depcomp"
2314 if test "x$enable_dependency_tracking" != xno; then
2325 ac_cpp='$CPP $CPPFLAGS'
2326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2329 if test -n "$ac_tool_prefix"; then
2330 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2331 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334 if test "${ac_cv_prog_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$CC"; then
2338 ac_cv_prog_CC="$CC" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 if test -n "$CC"; then
2359 { echo "$as_me:$LINENO: result: $CC" >&5
2360 echo "${ECHO_T}$CC" >&6; }
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2368 if test -z "$ac_cv_prog_CC"; then
2370 # Extract the first word of "gcc", so it can be a program name with args.
2371 set dummy gcc; ac_word=$2
2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2375 echo $ECHO_N "(cached) $ECHO_C" >&6
2377 if test -n "$ac_ct_CC"; then
2378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387 ac_cv_prog_ac_ct_CC="gcc"
2388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2400 echo "${ECHO_T}$ac_ct_CC" >&6; }
2402 { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2406 if test "x$ac_ct_CC" = x; then
2409 case $cross_compiling:$ac_tool_warned in
2411 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2412 whose name does not start with the host triplet. If you think this
2413 configuration is useful to you, please write to autoconf@gnu.org." >&5
2414 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2417 ac_tool_warned=yes ;;
2425 if test -z "$CC"; then
2426 if test -n "$ac_tool_prefix"; then
2427 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2428 set dummy ${ac_tool_prefix}cc; ac_word=$2
2429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_CC+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 if test -n "$CC"; then
2435 ac_cv_prog_CC="$CC" # Let the user override the test.
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2444 ac_cv_prog_CC="${ac_tool_prefix}cc"
2445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2455 if test -n "$CC"; then
2456 { echo "$as_me:$LINENO: result: $CC" >&5
2457 echo "${ECHO_T}$CC" >&6; }
2459 { echo "$as_me:$LINENO: result: no" >&5
2460 echo "${ECHO_T}no" >&6; }
2466 if test -z "$CC"; then
2467 # Extract the first word of "cc", so it can be a program name with args.
2468 set dummy cc; ac_word=$2
2469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2471 if test "${ac_cv_prog_CC+set}" = set; then
2472 echo $ECHO_N "(cached) $ECHO_C" >&6
2474 if test -n "$CC"; then
2475 ac_cv_prog_CC="$CC" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2486 ac_prog_rejected=yes
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 if test $ac_prog_rejected = yes; then
2498 # We found a bogon in the path, so make sure we never use it.
2499 set dummy $ac_cv_prog_CC
2501 if test $# != 0; then
2502 # We chose a different compiler from the bogus one.
2503 # However, it has the same basename, so the bogon will be chosen
2504 # first if we set CC to just the basename; use the full file name.
2506 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2512 if test -n "$CC"; then
2513 { echo "$as_me:$LINENO: result: $CC" >&5
2514 echo "${ECHO_T}$CC" >&6; }
2516 { echo "$as_me:$LINENO: result: no" >&5
2517 echo "${ECHO_T}no" >&6; }
2522 if test -z "$CC"; then
2523 if test -n "$ac_tool_prefix"; then
2524 for ac_prog in cl.exe
2526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2527 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2528 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530 if test "${ac_cv_prog_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2533 if test -n "$CC"; then
2534 ac_cv_prog_CC="$CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2554 if test -n "$CC"; then
2555 { echo "$as_me:$LINENO: result: $CC" >&5
2556 echo "${ECHO_T}$CC" >&6; }
2558 { echo "$as_me:$LINENO: result: no" >&5
2559 echo "${ECHO_T}no" >&6; }
2563 test -n "$CC" && break
2566 if test -z "$CC"; then
2568 for ac_prog in cl.exe
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571 set dummy $ac_prog; ac_word=$2
2572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2575 echo $ECHO_N "(cached) $ECHO_C" >&6
2577 if test -n "$ac_ct_CC"; then
2578 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_ac_ct_CC="$ac_prog"
2588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2598 if test -n "$ac_ct_CC"; then
2599 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2600 echo "${ECHO_T}$ac_ct_CC" >&6; }
2602 { echo "$as_me:$LINENO: result: no" >&5
2603 echo "${ECHO_T}no" >&6; }
2607 test -n "$ac_ct_CC" && break
2610 if test "x$ac_ct_CC" = x; then
2613 case $cross_compiling:$ac_tool_warned in
2615 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2616 whose name does not start with the host triplet. If you think this
2617 configuration is useful to you, please write to autoconf@gnu.org." >&5
2618 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2619 whose name does not start with the host triplet. If you think this
2620 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2621 ac_tool_warned=yes ;;
2630 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2631 See \`config.log' for more details." >&5
2632 echo "$as_me: error: no acceptable C compiler found in \$PATH
2633 See \`config.log' for more details." >&2;}
2634 { (exit 1); exit 1; }; }
2636 # Provide some information about the compiler.
2637 echo "$as_me:$LINENO: checking for C compiler version" >&5
2638 ac_compiler=`set X $ac_compile; echo $2`
2639 { (ac_try="$ac_compiler --version >&5"
2641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642 *) ac_try_echo=$ac_try;;
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645 (eval "$ac_compiler --version >&5") 2>&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }
2649 { (ac_try="$ac_compiler -v >&5"
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compiler -v >&5") 2>&5
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }
2659 { (ac_try="$ac_compiler -V >&5"
2661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2665 (eval "$ac_compiler -V >&5") 2>&5
2667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2668 (exit $ac_status); }
2670 cat >conftest.$ac_ext <<_ACEOF
2673 cat confdefs.h >>conftest.$ac_ext
2674 cat >>conftest.$ac_ext <<_ACEOF
2675 /* end confdefs.h. */
2685 ac_clean_files_save=$ac_clean_files
2686 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2687 # Try to create an executable without -o first, disregard a.out.
2688 # It will help us diagnose broken compilers, and finding out an intuition
2690 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2691 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2692 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2694 # List of possible output files, starting from the most likely.
2695 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2696 # only as a last resort. b.out is created by i960 compilers.
2697 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2699 # The IRIX 6 linker writes into existing files which may not be
2700 # executable, retaining their permissions. Remove them first so a
2701 # subsequent execution test works.
2703 for ac_file in $ac_files
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2707 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2712 if { (ac_try="$ac_link_default"
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_link_default") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; then
2722 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2723 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2724 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2725 # so that the user can short-circuit this test for compilers unknown to
2727 for ac_file in $ac_files ''
2729 test -f "$ac_file" || continue
2731 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2734 # We found the default executable, but exeext='' is most
2738 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2740 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2742 # We set ac_cv_exeext here because the later test for it is not
2743 # safe: cross compilers may not add the suffix if given an `-o'
2744 # argument, so we may need to know it at that point already.
2745 # Even if this section looks crufty: it has the advantage of
2752 test "$ac_cv_exeext" = no && ac_cv_exeext=
2758 { echo "$as_me:$LINENO: result: $ac_file" >&5
2759 echo "${ECHO_T}$ac_file" >&6; }
2760 if test -z "$ac_file"; then
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2765 See \`config.log' for more details." >&5
2766 echo "$as_me: error: C compiler cannot create executables
2767 See \`config.log' for more details." >&2;}
2768 { (exit 77); exit 77; }; }
2771 ac_exeext=$ac_cv_exeext
2773 # Check that the compiler produces executables we can run. If not, either
2774 # the compiler is broken, or we cross compile.
2775 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2776 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2777 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2778 # If not cross compiling, check that we can run a simple program.
2779 if test "$cross_compiling" != yes; then
2780 if { ac_try='./$ac_file'
2781 { (case "(($ac_try" in
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_try") 2>&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2792 if test "$cross_compiling" = maybe; then
2795 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2796 If you meant to cross compile, use \`--host'.
2797 See \`config.log' for more details." >&5
2798 echo "$as_me: error: cannot run C compiled programs.
2799 If you meant to cross compile, use \`--host'.
2800 See \`config.log' for more details." >&2;}
2801 { (exit 1); exit 1; }; }
2805 { echo "$as_me:$LINENO: result: yes" >&5
2806 echo "${ECHO_T}yes" >&6; }
2808 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2809 ac_clean_files=$ac_clean_files_save
2810 # Check that the compiler produces executables we can run. If not, either
2811 # the compiler is broken, or we cross compile.
2812 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2813 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2814 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2815 echo "${ECHO_T}$cross_compiling" >&6; }
2817 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2818 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2819 if { (ac_try="$ac_link"
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_link") 2>&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; then
2829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2830 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2831 # work properly (i.e., refer to `conftest.exe'), while it won't with
2833 for ac_file in conftest.exe conftest conftest.*; do
2834 test -f "$ac_file" || continue
2836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2843 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2844 See \`config.log' for more details." >&5
2845 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2846 See \`config.log' for more details." >&2;}
2847 { (exit 1); exit 1; }; }
2850 rm -f conftest$ac_cv_exeext
2851 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2852 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2854 rm -f conftest.$ac_ext
2855 EXEEXT=$ac_cv_exeext
2857 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2858 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2859 if test "${ac_cv_objext+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 cat >conftest.$ac_ext <<_ACEOF
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2877 rm -f conftest.o conftest.obj
2878 if { (ac_try="$ac_compile"
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_compile") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 for ac_file in conftest.o conftest.obj conftest.*; do
2889 test -f "$ac_file" || continue;
2891 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2892 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2907 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2909 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2910 echo "${ECHO_T}$ac_cv_objext" >&6; }
2911 OBJEXT=$ac_cv_objext
2913 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2914 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2915 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 cat >conftest.$ac_ext <<_ACEOF
2921 cat confdefs.h >>conftest.$ac_ext
2922 cat >>conftest.$ac_ext <<_ACEOF
2923 /* end confdefs.h. */
2936 rm -f conftest.$ac_objext
2937 if { (ac_try="$ac_compile"
2939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>conftest.er1
2945 grep -v '^ *+' conftest.er1 >conftest.err
2947 cat conftest.err >&5
2948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2949 (exit $ac_status); } && {
2950 test -z "$ac_c_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2965 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2966 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2967 GCC=`test $ac_compiler_gnu = yes && echo yes`
2968 ac_test_CFLAGS=${CFLAGS+set}
2969 ac_save_CFLAGS=$CFLAGS
2970 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2971 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2972 if test "${ac_cv_prog_cc_g+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 ac_save_c_werror_flag=$ac_c_werror_flag
2976 ac_c_werror_flag=yes
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } && {
3008 test -z "$ac_c_werror_flag" ||
3009 test ! -s conftest.err
3010 } && test -s conftest.$ac_objext; then
3013 echo "$as_me: failed program was:" >&5
3014 sed 's/^/| /' conftest.$ac_ext >&5
3017 cat >conftest.$ac_ext <<_ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_compile") 2>conftest.er1
3041 grep -v '^ *+' conftest.er1 >conftest.err
3043 cat conftest.err >&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); } && {
3046 test -z "$ac_c_werror_flag" ||
3047 test ! -s conftest.err
3048 } && test -s conftest.$ac_objext; then
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3054 ac_c_werror_flag=$ac_save_c_werror_flag
3056 cat >conftest.$ac_ext <<_ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compile") 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } && {
3085 test -z "$ac_c_werror_flag" ||
3086 test ! -s conftest.err
3087 } && test -s conftest.$ac_objext; then
3090 echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 ac_c_werror_flag=$ac_save_c_werror_flag
3105 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3107 if test "$ac_test_CFLAGS" = set; then
3108 CFLAGS=$ac_save_CFLAGS
3109 elif test $ac_cv_prog_cc_g = yes; then
3110 if test "$GCC" = yes; then
3116 if test "$GCC" = yes; then
3122 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3123 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3124 if test "${ac_cv_prog_cc_c89+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 ac_cv_prog_cc_c89=no
3129 cat >conftest.$ac_ext <<_ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3137 #include <sys/types.h>
3138 #include <sys/stat.h>
3139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3140 struct buf { int x; };
3141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3142 static char *e (p, i)
3148 static char *f (char * (*g) (char **, int), char **p, ...)
3153 s = g (p, va_arg (v,int));
3158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3159 function prototypes and stuff, but not '\xHH' hex character constants.
3160 These don't provoke an error unfortunately, instead are silently treated
3161 as 'x'. The following induces an error, until -std is added to get
3162 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3163 array size at least. It's necessary to write '\x00'==0 to get something
3164 that's true only with -std. */
3165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3168 inside strings and character constants. */
3170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3172 int test (int i, double x);
3173 struct s1 {int (*f) (int a);};
3174 struct s2 {int (*f) (double a);};
3175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3181 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3187 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3189 CC="$ac_save_CC $ac_arg"
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>conftest.er1
3199 grep -v '^ *+' conftest.er1 >conftest.err
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } && {
3204 test -z "$ac_c_werror_flag" ||
3205 test ! -s conftest.err
3206 } && test -s conftest.$ac_objext; then
3207 ac_cv_prog_cc_c89=$ac_arg
3209 echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3215 rm -f core conftest.err conftest.$ac_objext
3216 test "x$ac_cv_prog_cc_c89" != "xno" && break
3218 rm -f conftest.$ac_ext
3223 case "x$ac_cv_prog_cc_c89" in
3225 { echo "$as_me:$LINENO: result: none needed" >&5
3226 echo "${ECHO_T}none needed" >&6; } ;;
3228 { echo "$as_me:$LINENO: result: unsupported" >&5
3229 echo "${ECHO_T}unsupported" >&6; } ;;
3231 CC="$CC $ac_cv_prog_cc_c89"
3232 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 depcc="$CC" am_compiler_list=
3245 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3246 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3247 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3251 # We make a subdir and do the tests there. Otherwise we can end up
3252 # making bogus files that we don't know about and never remove. For
3253 # instance it was reported that on HP-UX the gcc test will end up
3254 # making a dummy file named `D' -- because `-MD' means `put the output
3257 # Copy depcomp to subdir because otherwise we won't find it if we're
3258 # using a relative directory.
3259 cp "$am_depcomp" conftest.dir
3261 # We will build objects and dependencies in a subdirectory because
3262 # it helps to detect inapplicable dependency modes. For instance
3263 # both Tru64's cc and ICC support -MD to output dependencies as a
3264 # side effect of compilation, but ICC will put the dependencies in
3265 # the current directory while Tru64 will put them in the object
3269 am_cv_CC_dependencies_compiler_type=none
3270 if test "$am_compiler_list" = ""; then
3271 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3273 for depmode in $am_compiler_list; do
3274 # Setup a source with many dependencies, because some compilers
3275 # like to wrap large dependency lists on column 80 (with \), and
3276 # we should not choose a depcomp mode which is confused by this.
3278 # We need to recreate these files for each test, as the compiler may
3279 # overwrite some of them when testing with obscure command lines.
3280 # This happens at least with the AIX C compiler.
3282 for i in 1 2 3 4 5 6; do
3283 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3286 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3290 # after this tag, mechanisms are not by side-effect, so they'll
3291 # only be used when explicitly requested
3292 if test "x$enable_dependency_tracking" = xyes; then
3300 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3301 # mode. It turns out that the SunPro C++ compiler does not properly
3302 # handle `-M -o', and we need to detect this.
3303 if depmode=$depmode \
3304 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3305 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3306 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3307 >/dev/null 2>conftest.err &&
3308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3309 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3311 # icc doesn't choke on unknown options, it will just issue warnings
3312 # (even with -Werror). So we grep stderr for any message
3313 # that says an option was ignored.
3314 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3315 am_cv_CC_dependencies_compiler_type=$depmode
3324 am_cv_CC_dependencies_compiler_type=none
3328 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3329 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3330 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3335 test "x$enable_dependency_tracking" != xno \
3336 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3338 am__fastdepCC_FALSE='#'
3340 am__fastdepCC_TRUE='#'
3341 am__fastdepCC_FALSE=
3346 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3347 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3348 if test "${ac_cv_search_strerror+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 ac_func_search_save_LIBS=$LIBS
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3359 /* Override any GCC internal prototype to avoid an error.
3360 Use char because int might match the return type of a GCC
3361 builtin and then its argument prototype would still apply. */
3374 for ac_lib in '' cposix; do
3375 if test -z "$ac_lib"; then
3376 ac_res="none required"
3379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (ac_try="$ac_link"
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388 (eval "$ac_link") 2>conftest.er1
3390 grep -v '^ *+' conftest.er1 >conftest.err
3392 cat conftest.err >&5
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); } && {
3395 test -z "$ac_c_werror_flag" ||
3396 test ! -s conftest.err
3397 } && test -s conftest$ac_exeext &&
3398 $as_test_x conftest$ac_exeext; then
3399 ac_cv_search_strerror=$ac_res
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3409 if test "${ac_cv_search_strerror+set}" = set; then
3413 if test "${ac_cv_search_strerror+set}" = set; then
3416 ac_cv_search_strerror=no
3419 LIBS=$ac_func_search_save_LIBS
3421 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3422 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3423 ac_res=$ac_cv_search_strerror
3424 if test "$ac_res" != no; then
3425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3430 ac_cpp='$CPP $CPPFLAGS'
3431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434 if test -n "$ac_tool_prefix"; then
3435 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3436 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3439 if test "${ac_cv_prog_CC+set}" = set; then
3440 echo $ECHO_N "(cached) $ECHO_C" >&6
3442 if test -n "$CC"; then
3443 ac_cv_prog_CC="$CC" # Let the user override the test.
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3449 test -z "$as_dir" && as_dir=.
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 if test -n "$CC"; then
3464 { echo "$as_me:$LINENO: result: $CC" >&5
3465 echo "${ECHO_T}$CC" >&6; }
3467 { echo "$as_me:$LINENO: result: no" >&5
3468 echo "${ECHO_T}no" >&6; }
3473 if test -z "$ac_cv_prog_CC"; then
3475 # Extract the first word of "gcc", so it can be a program name with args.
3476 set dummy gcc; ac_word=$2
3477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 if test -n "$ac_ct_CC"; then
3483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 test -z "$as_dir" && as_dir=.
3490 for ac_exec_ext in '' $ac_executable_extensions; do
3491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492 ac_cv_prog_ac_ct_CC="gcc"
3493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3503 if test -n "$ac_ct_CC"; then
3504 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3505 echo "${ECHO_T}$ac_ct_CC" >&6; }
3507 { echo "$as_me:$LINENO: result: no" >&5
3508 echo "${ECHO_T}no" >&6; }
3511 if test "x$ac_ct_CC" = x; then
3514 case $cross_compiling:$ac_tool_warned in
3516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3517 whose name does not start with the host triplet. If you think this
3518 configuration is useful to you, please write to autoconf@gnu.org." >&5
3519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3520 whose name does not start with the host triplet. If you think this
3521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3522 ac_tool_warned=yes ;;
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}cc; ac_word=$2
3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_CC+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3539 if test -n "$CC"; then
3540 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_CC="${ac_tool_prefix}cc"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 if test -n "$CC"; then
3561 { echo "$as_me:$LINENO: result: $CC" >&5
3562 echo "${ECHO_T}$CC" >&6; }
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3571 if test -z "$CC"; then
3572 # Extract the first word of "cc", so it can be a program name with args.
3573 set dummy cc; ac_word=$2
3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3591 ac_prog_rejected=yes
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 if test $ac_prog_rejected = yes; then
3603 # We found a bogon in the path, so make sure we never use it.
3604 set dummy $ac_cv_prog_CC
3606 if test $# != 0; then
3607 # We chose a different compiler from the bogus one.
3608 # However, it has the same basename, so the bogon will be chosen
3609 # first if we set CC to just the basename; use the full file name.
3611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3617 if test -n "$CC"; then
3618 { echo "$as_me:$LINENO: result: $CC" >&5
3619 echo "${ECHO_T}$CC" >&6; }
3621 { echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6; }
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 for ac_prog in cl.exe
3631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3659 if test -n "$CC"; then
3660 { echo "$as_me:$LINENO: result: $CC" >&5
3661 echo "${ECHO_T}$CC" >&6; }
3663 { echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6; }
3668 test -n "$CC" && break
3671 if test -z "$CC"; then
3673 for ac_prog in cl.exe
3675 # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 set dummy $ac_prog; ac_word=$2
3677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 if test -n "$ac_ct_CC"; then
3683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_ac_ct_CC="$ac_prog"
3693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703 if test -n "$ac_ct_CC"; then
3704 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3705 echo "${ECHO_T}$ac_ct_CC" >&6; }
3707 { echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6; }
3712 test -n "$ac_ct_CC" && break
3715 if test "x$ac_ct_CC" = x; then
3718 case $cross_compiling:$ac_tool_warned in
3720 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3721 whose name does not start with the host triplet. If you think this
3722 configuration is useful to you, please write to autoconf@gnu.org." >&5
3723 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3724 whose name does not start with the host triplet. If you think this
3725 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3726 ac_tool_warned=yes ;;
3735 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3736 See \`config.log' for more details." >&5
3737 echo "$as_me: error: no acceptable C compiler found in \$PATH
3738 See \`config.log' for more details." >&2;}
3739 { (exit 1); exit 1; }; }
3741 # Provide some information about the compiler.
3742 echo "$as_me:$LINENO: checking for C compiler version" >&5
3743 ac_compiler=`set X $ac_compile; echo $2`
3744 { (ac_try="$ac_compiler --version >&5"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_compiler --version >&5") 2>&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }
3754 { (ac_try="$ac_compiler -v >&5"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3760 (eval "$ac_compiler -v >&5") 2>&5
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); }
3764 { (ac_try="$ac_compiler -V >&5"
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3770 (eval "$ac_compiler -V >&5") 2>&5
3772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773 (exit $ac_status); }
3775 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3776 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3777 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 cat >conftest.$ac_ext <<_ACEOF
3783 cat confdefs.h >>conftest.$ac_ext
3784 cat >>conftest.$ac_ext <<_ACEOF
3785 /* end confdefs.h. */
3798 rm -f conftest.$ac_objext
3799 if { (ac_try="$ac_compile"
3801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802 *) ac_try_echo=$ac_try;;
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805 (eval "$ac_compile") 2>conftest.er1
3807 grep -v '^ *+' conftest.er1 >conftest.err
3809 cat conftest.err >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); } && {
3812 test -z "$ac_c_werror_flag" ||
3813 test ! -s conftest.err
3814 } && test -s conftest.$ac_objext; then
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3827 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3828 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3829 GCC=`test $ac_compiler_gnu = yes && echo yes`
3830 ac_test_CFLAGS=${CFLAGS+set}
3831 ac_save_CFLAGS=$CFLAGS
3832 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3833 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3834 if test "${ac_cv_prog_cc_g+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 ac_save_c_werror_flag=$ac_c_werror_flag
3838 ac_c_werror_flag=yes
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3894 rm -f conftest.$ac_objext
3895 if { (ac_try="$ac_compile"
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3903 grep -v '^ *+' conftest.er1 >conftest.err
3905 cat conftest.err >&5
3906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 ac_c_werror_flag=$ac_save_c_werror_flag
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3933 rm -f conftest.$ac_objext
3934 if { (ac_try="$ac_compile"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_compile") 2>conftest.er1
3942 grep -v '^ *+' conftest.er1 >conftest.err
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3946 (exit $ac_status); } && {
3947 test -z "$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3949 } && test -s conftest.$ac_objext; then
3952 echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_c_werror_flag=$ac_save_c_werror_flag
3967 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3968 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3969 if test "$ac_test_CFLAGS" = set; then
3970 CFLAGS=$ac_save_CFLAGS
3971 elif test $ac_cv_prog_cc_g = yes; then
3972 if test "$GCC" = yes; then
3978 if test "$GCC" = yes; then
3984 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3985 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3986 if test "${ac_cv_prog_cc_c89+set}" = set; then
3987 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 ac_cv_prog_cc_c89=no
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
3999 #include <sys/types.h>
4000 #include <sys/stat.h>
4001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4002 struct buf { int x; };
4003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4004 static char *e (p, i)
4010 static char *f (char * (*g) (char **, int), char **p, ...)
4015 s = g (p, va_arg (v,int));
4020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4021 function prototypes and stuff, but not '\xHH' hex character constants.
4022 These don't provoke an error unfortunately, instead are silently treated
4023 as 'x'. The following induces an error, until -std is added to get
4024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4025 array size at least. It's necessary to write '\x00'==0 to get something
4026 that's true only with -std. */
4027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4030 inside strings and character constants. */
4032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4034 int test (int i, double x);
4035 struct s1 {int (*f) (int a);};
4036 struct s2 {int (*f) (double a);};
4037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4051 CC="$ac_save_CC $ac_arg"
4052 rm -f conftest.$ac_objext
4053 if { (ac_try="$ac_compile"
4055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4056 *) ac_try_echo=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 ac_cv_prog_cc_c89=$ac_arg
4071 echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4077 rm -f core conftest.err conftest.$ac_objext
4078 test "x$ac_cv_prog_cc_c89" != "xno" && break
4080 rm -f conftest.$ac_ext
4085 case "x$ac_cv_prog_cc_c89" in
4087 { echo "$as_me:$LINENO: result: none needed" >&5
4088 echo "${ECHO_T}none needed" >&6; } ;;
4090 { echo "$as_me:$LINENO: result: unsupported" >&5
4091 echo "${ECHO_T}unsupported" >&6; } ;;
4093 CC="$CC $ac_cv_prog_cc_c89"
4094 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4095 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4100 ac_cpp='$CPP $CPPFLAGS'
4101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105 depcc="$CC" am_compiler_list=
4107 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4109 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113 # We make a subdir and do the tests there. Otherwise we can end up
4114 # making bogus files that we don't know about and never remove. For
4115 # instance it was reported that on HP-UX the gcc test will end up
4116 # making a dummy file named `D' -- because `-MD' means `put the output
4119 # Copy depcomp to subdir because otherwise we won't find it if we're
4120 # using a relative directory.
4121 cp "$am_depcomp" conftest.dir
4123 # We will build objects and dependencies in a subdirectory because
4124 # it helps to detect inapplicable dependency modes. For instance
4125 # both Tru64's cc and ICC support -MD to output dependencies as a
4126 # side effect of compilation, but ICC will put the dependencies in
4127 # the current directory while Tru64 will put them in the object
4131 am_cv_CC_dependencies_compiler_type=none
4132 if test "$am_compiler_list" = ""; then
4133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4135 for depmode in $am_compiler_list; do
4136 # Setup a source with many dependencies, because some compilers
4137 # like to wrap large dependency lists on column 80 (with \), and
4138 # we should not choose a depcomp mode which is confused by this.
4140 # We need to recreate these files for each test, as the compiler may
4141 # overwrite some of them when testing with obscure command lines.
4142 # This happens at least with the AIX C compiler.
4144 for i in 1 2 3 4 5 6; do
4145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4152 # after this tag, mechanisms are not by side-effect, so they'll
4153 # only be used when explicitly requested
4154 if test "x$enable_dependency_tracking" = xyes; then
4162 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4163 # mode. It turns out that the SunPro C++ compiler does not properly
4164 # handle `-M -o', and we need to detect this.
4165 if depmode=$depmode \
4166 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4167 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4168 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4169 >/dev/null 2>conftest.err &&
4170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4171 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4173 # icc doesn't choke on unknown options, it will just issue warnings
4174 # (even with -Werror). So we grep stderr for any message
4175 # that says an option was ignored.
4176 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4177 am_cv_CC_dependencies_compiler_type=$depmode
4186 am_cv_CC_dependencies_compiler_type=none
4190 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4191 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4192 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4197 test "x$enable_dependency_tracking" != xno \
4198 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4200 am__fastdepCC_FALSE='#'
4202 am__fastdepCC_TRUE='#'
4203 am__fastdepCC_FALSE=
4210 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4211 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4212 if test "${am_cv_prog_cc_stdc+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4215 am_cv_prog_cc_stdc=no
4217 # Don't try gcc -ansi; that turns off useful extensions and
4218 # breaks some systems' header files.
4219 # AIX -qlanglvl=ansi
4220 # Ultrix and OSF/1 -std1
4221 # HP-UX 10.20 and later -Ae
4222 # HP-UX older versions -Aa -D_HPUX_SOURCE
4223 # SVR4 -Xc -D__EXTENSIONS__
4224 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4226 CC="$ac_save_CC $ac_arg"
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4235 #include <sys/types.h>
4236 #include <sys/stat.h>
4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4238 struct buf { int x; };
4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240 static char *e (p, i)
4246 static char *f (char * (*g) (char **, int), char **p, ...)
4251 s = g (p, va_arg (v,int));
4255 int test (int i, double x);
4256 struct s1 {int (*f) (int a);};
4257 struct s2 {int (*f) (double a);};
4258 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4266 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4272 rm -f conftest.$ac_objext
4273 if { (ac_try="$ac_compile"
4275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_compile") 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } && {
4286 test -z "$ac_c_werror_flag" ||
4287 test ! -s conftest.err
4288 } && test -s conftest.$ac_objext; then
4289 am_cv_prog_cc_stdc="$ac_arg"; break
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 if test -z "$am_cv_prog_cc_stdc"; then
4304 { echo "$as_me:$LINENO: result: none needed" >&5
4305 echo "${ECHO_T}none needed" >&6; }
4307 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4308 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4310 case "x$am_cv_prog_cc_stdc" in
4312 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4315 # By default we simply use the C compiler to build assembly code.
4318 # Set ASFLAGS if not already set.
4319 : ${CCASFLAGS='$(CFLAGS)'}
4323 ac_cpp='$CPP $CPPFLAGS'
4324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4328 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4329 # On Suns, sometimes $CPP names a directory.
4330 if test -n "$CPP" && test -d "$CPP"; then
4333 if test -z "$CPP"; then
4334 if test "${ac_cv_prog_CPP+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 # Double quotes because CPP needs to be expanded
4338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4341 for ac_c_preproc_warn_flag in '' yes
4343 # Use a header file that comes with gcc, so configuring glibc
4344 # with a fresh cross-compiler works.
4345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346 # <limits.h> exists even on freestanding compilers.
4347 # On the NeXT, cc -E runs the code through the compiler's parser,
4348 # not just through cpp. "Syntax error" is here to catch this case.
4349 cat >conftest.$ac_ext <<_ACEOF
4352 cat confdefs.h >>conftest.$ac_ext
4353 cat >>conftest.$ac_ext <<_ACEOF
4354 /* end confdefs.h. */
4356 # include <limits.h>
4358 # include <assert.h>
4362 if { (ac_try="$ac_cpp conftest.$ac_ext"
4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365 *) ac_try_echo=$ac_try;;
4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4370 grep -v '^ *+' conftest.er1 >conftest.err
4372 cat conftest.err >&5
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); } >/dev/null && {
4375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4376 test ! -s conftest.err
4380 echo "$as_me: failed program was:" >&5
4381 sed 's/^/| /' conftest.$ac_ext >&5
4383 # Broken: fails on valid input.
4387 rm -f conftest.err conftest.$ac_ext
4389 # OK, works on sane cases. Now check whether nonexistent headers
4390 # can be detected and how.
4391 cat >conftest.$ac_ext <<_ACEOF
4394 cat confdefs.h >>conftest.$ac_ext
4395 cat >>conftest.$ac_ext <<_ACEOF
4396 /* end confdefs.h. */
4397 #include <ac_nonexistent.h>
4399 if { (ac_try="$ac_cpp conftest.$ac_ext"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } >/dev/null && {
4412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4415 # Broken: success on invalid input.
4418 echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 # Passes both tests.
4426 rm -f conftest.err conftest.$ac_ext
4429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4430 rm -f conftest.err conftest.$ac_ext
4431 if $ac_preproc_ok; then
4443 { echo "$as_me:$LINENO: result: $CPP" >&5
4444 echo "${ECHO_T}$CPP" >&6; }
4446 for ac_c_preproc_warn_flag in '' yes
4448 # Use a header file that comes with gcc, so configuring glibc
4449 # with a fresh cross-compiler works.
4450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4451 # <limits.h> exists even on freestanding compilers.
4452 # On the NeXT, cc -E runs the code through the compiler's parser,
4453 # not just through cpp. "Syntax error" is here to catch this case.
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4461 # include <limits.h>
4463 # include <assert.h>
4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4470 *) ac_try_echo=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1 >conftest.err
4477 cat conftest.err >&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev/null && {
4480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.$ac_ext >&5
4488 # Broken: fails on valid input.
4492 rm -f conftest.err conftest.$ac_ext
4494 # OK, works on sane cases. Now check whether nonexistent headers
4495 # can be detected and how.
4496 cat >conftest.$ac_ext <<_ACEOF
4499 cat confdefs.h >>conftest.$ac_ext
4500 cat >>conftest.$ac_ext <<_ACEOF
4501 /* end confdefs.h. */
4502 #include <ac_nonexistent.h>
4504 if { (ac_try="$ac_cpp conftest.$ac_ext"
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512 grep -v '^ *+' conftest.er1 >conftest.err
4514 cat conftest.err >&5
4515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516 (exit $ac_status); } >/dev/null && {
4517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4518 test ! -s conftest.err
4520 # Broken: success on invalid input.
4523 echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4526 # Passes both tests.
4531 rm -f conftest.err conftest.$ac_ext
4534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4535 rm -f conftest.err conftest.$ac_ext
4536 if $ac_preproc_ok; then
4539 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4540 See \`config.log' for more details." >&5
4541 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4542 See \`config.log' for more details." >&2;}
4543 { (exit 1); exit 1; }; }
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4554 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_GREP+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 # Extract the first word of "grep ggrep" to use in msg output
4559 if test -z "$GREP"; then
4560 set dummy grep ggrep; ac_prog_name=$2
4561 if test "${ac_cv_path_GREP+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 ac_path_GREP_found=false
4565 # Loop through the user's path and test for each of PROGNAME-LIST
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4570 test -z "$as_dir" && as_dir=.
4571 for ac_prog in grep ggrep; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
4573 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4574 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4575 # Check for GNU ac_path_GREP and select it if it is found.
4576 # Check for GNU $ac_path_GREP
4577 case `"$ac_path_GREP" --version 2>&1` in
4579 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4582 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4585 cat "conftest.in" "conftest.in" >"conftest.tmp"
4586 mv "conftest.tmp" "conftest.in"
4587 cp "conftest.in" "conftest.nl"
4588 echo 'GREP' >> "conftest.nl"
4589 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4590 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4591 ac_count=`expr $ac_count + 1`
4592 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4593 # Best one so far, save it but keep looking for a better one
4594 ac_cv_path_GREP="$ac_path_GREP"
4595 ac_path_GREP_max=$ac_count
4597 # 10*(2^10) chars as input seems more than enough
4598 test $ac_count -gt 10 && break
4600 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 $ac_path_GREP_found && break 3
4614 GREP="$ac_cv_path_GREP"
4615 if test -z "$GREP"; then
4616 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4617 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4618 { (exit 1); exit 1; }; }
4622 ac_cv_path_GREP=$GREP
4627 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4628 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4629 GREP="$ac_cv_path_GREP"
4632 { echo "$as_me:$LINENO: checking for egrep" >&5
4633 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4634 if test "${ac_cv_path_EGREP+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4638 then ac_cv_path_EGREP="$GREP -E"
4640 # Extract the first word of "egrep" to use in msg output
4641 if test -z "$EGREP"; then
4642 set dummy egrep; ac_prog_name=$2
4643 if test "${ac_cv_path_EGREP+set}" = set; then
4644 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 ac_path_EGREP_found=false
4647 # Loop through the user's path and test for each of PROGNAME-LIST
4648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4652 test -z "$as_dir" && as_dir=.
4653 for ac_prog in egrep; do
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4656 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4657 # Check for GNU ac_path_EGREP and select it if it is found.
4658 # Check for GNU $ac_path_EGREP
4659 case `"$ac_path_EGREP" --version 2>&1` in
4661 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4664 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4667 cat "conftest.in" "conftest.in" >"conftest.tmp"
4668 mv "conftest.tmp" "conftest.in"
4669 cp "conftest.in" "conftest.nl"
4670 echo 'EGREP' >> "conftest.nl"
4671 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4673 ac_count=`expr $ac_count + 1`
4674 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4675 # Best one so far, save it but keep looking for a better one
4676 ac_cv_path_EGREP="$ac_path_EGREP"
4677 ac_path_EGREP_max=$ac_count
4679 # 10*(2^10) chars as input seems more than enough
4680 test $ac_count -gt 10 && break
4682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 $ac_path_EGREP_found && break 3
4696 EGREP="$ac_cv_path_EGREP"
4697 if test -z "$EGREP"; then
4698 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4699 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4700 { (exit 1); exit 1; }; }
4704 ac_cv_path_EGREP=$EGREP
4710 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4711 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4712 EGREP="$ac_cv_path_EGREP"
4715 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4716 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4717 if test "${ac_cv_header_stdc+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4739 rm -f conftest.$ac_objext
4740 if { (ac_try="$ac_compile"
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_compile") 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } && {
4753 test -z "$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4755 } && test -s conftest.$ac_objext; then
4756 ac_cv_header_stdc=yes
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 ac_cv_header_stdc=no
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 if test $ac_cv_header_stdc = yes; then
4767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4768 cat >conftest.$ac_ext <<_ACEOF
4771 cat confdefs.h >>conftest.$ac_ext
4772 cat >>conftest.$ac_ext <<_ACEOF
4773 /* end confdefs.h. */
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 $EGREP "memchr" >/dev/null 2>&1; then
4781 ac_cv_header_stdc=no
4787 if test $ac_cv_header_stdc = yes; then
4788 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4789 cat >conftest.$ac_ext <<_ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4799 $EGREP "free" >/dev/null 2>&1; then
4802 ac_cv_header_stdc=no
4808 if test $ac_cv_header_stdc = yes; then
4809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4810 if test "$cross_compiling" = yes; then
4813 cat >conftest.$ac_ext <<_ACEOF
4816 cat confdefs.h >>conftest.$ac_ext
4817 cat >>conftest.$ac_ext <<_ACEOF
4818 /* end confdefs.h. */
4821 #if ((' ' & 0x0FF) == 0x020)
4822 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4823 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4825 # define ISLOWER(c) \
4826 (('a' <= (c) && (c) <= 'i') \
4827 || ('j' <= (c) && (c) <= 'r') \
4828 || ('s' <= (c) && (c) <= 'z'))
4829 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4832 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4837 for (i = 0; i < 256; i++)
4838 if (XOR (islower (i), ISLOWER (i))
4839 || toupper (i) != TOUPPER (i))
4844 rm -f conftest$ac_exeext
4845 if { (ac_try="$ac_link"
4847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851 (eval "$ac_link") 2>&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4855 { (case "(($ac_try" in
4856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4857 *) ac_try_echo=$ac_try;;
4859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4860 (eval "$ac_try") 2>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); }; }; then
4866 echo "$as_me: program exited with status $ac_status" >&5
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.$ac_ext >&5
4871 ac_cv_header_stdc=no
4873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4879 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4880 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4881 if test $ac_cv_header_stdc = yes; then
4883 cat >>confdefs.h <<\_ACEOF
4884 #define STDC_HEADERS 1
4889 # Make sure we can run config.sub.
4890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4891 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4892 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4893 { (exit 1); exit 1; }; }
4895 { echo "$as_me:$LINENO: checking build system type" >&5
4896 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4897 if test "${ac_cv_build+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 ac_build_alias=$build_alias
4901 test "x$ac_build_alias" = x &&
4902 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4903 test "x$ac_build_alias" = x &&
4904 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4905 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4906 { (exit 1); exit 1; }; }
4907 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4908 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4909 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4910 { (exit 1); exit 1; }; }
4913 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4914 echo "${ECHO_T}$ac_cv_build" >&6; }
4915 case $ac_cv_build in
4917 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4918 echo "$as_me: error: invalid value of canonical build" >&2;}
4919 { (exit 1); exit 1; }; };;
4922 ac_save_IFS=$IFS; IFS='-'
4928 # Remember, the first character of IFS is used to create $*,
4929 # except with old shells:
4932 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4935 { echo "$as_me:$LINENO: checking host system type" >&5
4936 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4937 if test "${ac_cv_host+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test "x$host_alias" = x; then
4941 ac_cv_host=$ac_cv_build
4943 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4946 { (exit 1); exit 1; }; }
4950 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4951 echo "${ECHO_T}$ac_cv_host" >&6; }
4954 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4955 echo "$as_me: error: invalid value of canonical host" >&2;}
4956 { (exit 1); exit 1; }; };;
4959 ac_save_IFS=$IFS; IFS='-'
4965 # Remember, the first character of IFS is used to create $*,
4966 # except with old shells:
4969 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4972 # Check whether --enable-trace was given.
4973 if test "${enable_trace+set}" = set; then
4974 enableval=$enable_trace; if test "$enableval" == "yes"; then
4976 cat >>confdefs.h <<\_ACEOF
4977 #define ENABLE_TRACE_IO 1
4983 # Check whether --enable-watch was given.
4984 if test "${enable_watch+set}" = set; then
4985 enableval=$enable_watch; if test "$enableval" == "yes"; then
4987 cat >>confdefs.h <<\_ACEOF
4988 #define ENABLE_WATCH 1
4994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5005 inttypes.h stdint.h unistd.h
5007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 cat >conftest.$ac_ext <<_ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5021 #include <$ac_header>
5023 rm -f conftest.$ac_objext
5024 if { (ac_try="$ac_compile"
5026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5027 *) ac_try_echo=$ac_try;;
5029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5030 (eval "$ac_compile") 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest.$ac_objext; then
5040 eval "$as_ac_Header=yes"
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 eval "$as_ac_Header=no"
5048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 ac_res=`eval echo '${'$as_ac_Header'}'`
5051 { echo "$as_me:$LINENO: result: $ac_res" >&5
5052 echo "${ECHO_T}$ac_res" >&6; }
5053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5054 cat >>confdefs.h <<_ACEOF
5055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5063 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5064 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5065 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5066 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5070 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5072 # Is the header compilable?
5073 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
5074 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
5075 cat >conftest.$ac_ext <<_ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h. */
5081 $ac_includes_default
5082 #include <Carbon/Carbon.h>
5084 rm -f conftest.$ac_objext
5085 if { (ac_try="$ac_compile"
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091 (eval "$ac_compile") 2>conftest.er1
5093 grep -v '^ *+' conftest.er1 >conftest.err
5095 cat conftest.err >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } && {
5098 test -z "$ac_c_werror_flag" ||
5099 test ! -s conftest.err
5100 } && test -s conftest.$ac_objext; then
5101 ac_header_compiler=yes
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 ac_header_compiler=no
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5111 echo "${ECHO_T}$ac_header_compiler" >&6; }
5113 # Is the header present?
5114 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
5115 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
5116 cat >conftest.$ac_ext <<_ACEOF
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #include <Carbon/Carbon.h>
5124 if { (ac_try="$ac_cpp conftest.$ac_ext"
5126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5127 *) ac_try_echo=$ac_try;;
5129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5132 grep -v '^ *+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null && {
5137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5138 test ! -s conftest.err
5140 ac_header_preproc=yes
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 ac_header_preproc=no
5148 rm -f conftest.err conftest.$ac_ext
5149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5150 echo "${ECHO_T}$ac_header_preproc" >&6; }
5152 # So? What about this header?
5153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5155 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
5156 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
5158 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
5159 ac_header_preproc=yes
5162 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
5163 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
5164 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
5165 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
5166 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
5167 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
5169 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
5171 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
5173 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
5177 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
5178 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
5179 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
5184 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
5185 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
5188 if test $ac_cv_header_Carbon_Carbon_h = yes; then
5192 LIBS="$LIBS -framework OpenGL -framework AGL -framework Carbon -L/usr/X11R6/lib -lGL"
5194 cat >>confdefs.h <<\_ACEOF
5195 #define HAVE_CARBON 1
5199 cat >>confdefs.h <<\_ACEOF
5200 #define APPLE_BUILD 1
5210 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5211 if test -n "$ac_tool_prefix"; then
5212 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5213 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5216 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 test -z "$as_dir" && as_dir=.
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5231 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5243 if test -n "$PKG_CONFIG"; then
5244 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5245 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5247 { echo "$as_me:$LINENO: result: no" >&5
5248 echo "${ECHO_T}no" >&6; }
5253 if test -z "$ac_cv_path_PKG_CONFIG"; then
5254 ac_pt_PKG_CONFIG=$PKG_CONFIG
5255 # Extract the first word of "pkg-config", so it can be a program name with args.
5256 set dummy pkg-config; ac_word=$2
5257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5259 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 case $ac_pt_PKG_CONFIG in
5264 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 test -z "$as_dir" && as_dir=.
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5286 if test -n "$ac_pt_PKG_CONFIG"; then
5287 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5288 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5290 { echo "$as_me:$LINENO: result: no" >&5
5291 echo "${ECHO_T}no" >&6; }
5294 if test "x$ac_pt_PKG_CONFIG" = x; then
5297 case $cross_compiling:$ac_tool_warned in
5299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5300 whose name does not start with the host triplet. If you think this
5301 configuration is useful to you, please write to autoconf@gnu.org." >&5
5302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5303 whose name does not start with the host triplet. If you think this
5304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5305 ac_tool_warned=yes ;;
5307 PKG_CONFIG=$ac_pt_PKG_CONFIG
5310 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5314 if test -n "$PKG_CONFIG"; then
5315 _pkg_min_version=0.9.0
5316 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5317 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5318 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5319 { echo "$as_me:$LINENO: result: yes" >&5
5320 echo "${ECHO_T}yes" >&6; }
5322 { echo "$as_me:$LINENO: result: no" >&5
5323 echo "${ECHO_T}no" >&6; }
5330 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
5331 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
5333 if test -n "$PKG_CONFIG"; then
5334 if test -n "$LIBPNG_CFLAGS"; then
5335 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
5337 if test -n "$PKG_CONFIG" && \
5338 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5339 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; then
5343 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
5351 if test -n "$PKG_CONFIG"; then
5352 if test -n "$LIBPNG_LIBS"; then
5353 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
5355 if test -n "$PKG_CONFIG" && \
5356 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5357 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); }; then
5361 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
5372 if test $pkg_failed = yes; then
5374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5375 _pkg_short_errors_supported=yes
5377 _pkg_short_errors_supported=no
5379 if test $_pkg_short_errors_supported = yes; then
5380 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
5382 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
5384 # Put the nasty error message in config.log where it belongs
5385 echo "$LIBPNG_PKG_ERRORS" >&5
5387 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
5391 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5392 installed software in a non-standard prefix.
5394 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5395 and LIBPNG_LIBS to avoid the need to call pkg-config.
5396 See the pkg-config man page for more details.
5398 echo "$as_me: error: Package requirements (libpng ) were not met:
5402 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5403 installed software in a non-standard prefix.
5405 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5406 and LIBPNG_LIBS to avoid the need to call pkg-config.
5407 See the pkg-config man page for more details.
5409 { (exit 1); exit 1; }; }
5410 elif test $pkg_failed = untried; then
5411 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5412 is in your PATH or set the PKG_CONFIG environment variable to the full
5415 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5416 and LIBPNG_LIBS to avoid the need to call pkg-config.
5417 See the pkg-config man page for more details.
5419 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5420 See \`config.log' for more details." >&5
5421 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5422 is in your PATH or set the PKG_CONFIG environment variable to the full
5425 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5426 and LIBPNG_LIBS to avoid the need to call pkg-config.
5427 See the pkg-config man page for more details.
5429 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5430 See \`config.log' for more details." >&2;}
5431 { (exit 1); exit 1; }; }
5433 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
5434 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
5435 { echo "$as_me:$LINENO: result: yes" >&5
5436 echo "${ECHO_T}yes" >&6; }
5441 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5442 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5443 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 ac_check_lib_save_LIBS=$LIBS
5448 cat >conftest.$ac_ext <<_ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5455 /* Override any GCC internal prototype to avoid an error.
5456 Use char because int might match the return type of a GCC
5457 builtin and then its argument prototype would still apply. */
5465 return uncompress ();
5470 rm -f conftest.$ac_objext conftest$ac_exeext
5471 if { (ac_try="$ac_link"
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_link") 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest$ac_exeext &&
5487 $as_test_x conftest$ac_exeext; then
5488 ac_cv_lib_z_uncompress=yes
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_cv_lib_z_uncompress=no
5496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5497 conftest$ac_exeext conftest.$ac_ext
5498 LIBS=$ac_check_lib_save_LIBS
5500 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5501 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5502 if test $ac_cv_lib_z_uncompress = yes; then
5503 cat >>confdefs.h <<_ACEOF
5511 echo "Zlib (libz.so) could not be found, but is required."
5516 if test "$APPLE_BUILD" != 'yes'; then
5518 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5519 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5520 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5521 echo $ECHO_N "(cached) $ECHO_C" >&6
5523 ac_check_lib_save_LIBS=$LIBS
5525 cat >conftest.$ac_ext <<_ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h. */
5532 /* Override any GCC internal prototype to avoid an error.
5533 Use char because int might match the return type of a GCC
5534 builtin and then its argument prototype would still apply. */
5538 char glXQueryVersion ();
5542 return glXQueryVersion ();
5547 rm -f conftest.$ac_objext conftest$ac_exeext
5548 if { (ac_try="$ac_link"
5550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551 *) ac_try_echo=$ac_try;;
5553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554 (eval "$ac_link") 2>conftest.er1
5556 grep -v '^ *+' conftest.er1 >conftest.err
5558 cat conftest.err >&5
5559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560 (exit $ac_status); } && {
5561 test -z "$ac_c_werror_flag" ||
5562 test ! -s conftest.err
5563 } && test -s conftest$ac_exeext &&
5564 $as_test_x conftest$ac_exeext; then
5565 ac_cv_lib_GL_glXQueryVersion=yes
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 ac_cv_lib_GL_glXQueryVersion=no
5573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5574 conftest$ac_exeext conftest.$ac_ext
5575 LIBS=$ac_check_lib_save_LIBS
5577 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5578 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5579 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5580 cat >>confdefs.h <<_ACEOF
5581 #define HAVE_LIBGL 1
5588 echo "The OpenGL library (libGL.so) could not be found, but is required."
5592 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5593 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5594 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5595 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5599 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5601 # Is the header compilable?
5602 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
5603 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
5604 cat >conftest.$ac_ext <<_ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 $ac_includes_default
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 ac_header_compiler=yes
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5635 ac_header_compiler=no
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5640 echo "${ECHO_T}$ac_header_compiler" >&6; }
5642 # Is the header present?
5643 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
5644 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
5645 cat >conftest.$ac_ext <<_ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h. */
5653 if { (ac_try="$ac_cpp conftest.$ac_ext"
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1 >conftest.err
5663 cat conftest.err >&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } >/dev/null && {
5666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5669 ac_header_preproc=yes
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5674 ac_header_preproc=no
5677 rm -f conftest.err conftest.$ac_ext
5678 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5679 echo "${ECHO_T}$ac_header_preproc" >&6; }
5681 # So? What about this header?
5682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5684 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5685 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5686 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
5687 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
5688 ac_header_preproc=yes
5691 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
5692 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
5694 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
5695 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
5696 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
5698 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
5700 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
5702 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
5706 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5707 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5708 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5711 ac_cv_header_GL_gl_h=$ac_header_preproc
5713 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5714 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5717 if test $ac_cv_header_GL_gl_h = yes; then
5721 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
5730 { echo "$as_me:$LINENO: checking for GTK" >&5
5731 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
5733 if test -n "$PKG_CONFIG"; then
5734 if test -n "$GTK_CFLAGS"; then
5735 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
5737 if test -n "$PKG_CONFIG" && \
5738 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5739 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; then
5743 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
5751 if test -n "$PKG_CONFIG"; then
5752 if test -n "$GTK_LIBS"; then
5753 pkg_cv_GTK_LIBS="$GTK_LIBS"
5755 if test -n "$PKG_CONFIG" && \
5756 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5757 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760 (exit $ac_status); }; then
5761 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
5772 if test $pkg_failed = yes; then
5774 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5775 _pkg_short_errors_supported=yes
5777 _pkg_short_errors_supported=no
5779 if test $_pkg_short_errors_supported = yes; then
5780 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
5782 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
5784 # Put the nasty error message in config.log where it belongs
5785 echo "$GTK_PKG_ERRORS" >&5
5787 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
5791 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5792 installed software in a non-standard prefix.
5794 Alternatively, you may set the environment variables GTK_CFLAGS
5795 and GTK_LIBS to avoid the need to call pkg-config.
5796 See the pkg-config man page for more details.
5798 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
5802 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5803 installed software in a non-standard prefix.
5805 Alternatively, you may set the environment variables GTK_CFLAGS
5806 and GTK_LIBS to avoid the need to call pkg-config.
5807 See the pkg-config man page for more details.
5809 { (exit 1); exit 1; }; }
5810 elif test $pkg_failed = untried; then
5811 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5812 is in your PATH or set the PKG_CONFIG environment variable to the full
5815 Alternatively, you may set the environment variables GTK_CFLAGS
5816 and GTK_LIBS to avoid the need to call pkg-config.
5817 See the pkg-config man page for more details.
5819 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5820 See \`config.log' for more details." >&5
5821 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5822 is in your PATH or set the PKG_CONFIG environment variable to the full
5825 Alternatively, you may set the environment variables GTK_CFLAGS
5826 and GTK_LIBS to avoid the need to call pkg-config.
5827 See the pkg-config man page for more details.
5829 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5830 See \`config.log' for more details." >&2;}
5831 { (exit 1); exit 1; }; }
5833 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
5834 GTK_LIBS=$pkg_cv_GTK_LIBS
5835 { echo "$as_me:$LINENO: result: yes" >&5
5836 echo "${ECHO_T}yes" >&6; }
5840 cat >>confdefs.h <<\_ACEOF
5849 if test "$HAVE_CARBON" = 'yes'; then
5851 GUI_CARBON_FALSE='#'
5859 if test "$HAVE_GTK" = 'yes'; then
5869 i386|i486|i586|i686)
5870 SH4_TRANSLATOR="x86"
5872 cat >>confdefs.h <<_ACEOF
5873 #define SH4_TRANSLATOR TARGET_X86
5877 SH4_TRANSLATOR="x86_64"
5879 cat >>confdefs.h <<_ACEOF
5880 #define SH4_TRANSLATOR TARGET_X86_64
5884 echo "Warning: No translator available for $host. Building emulation core only";;
5888 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
5890 BUILD_SH4X86_FALSE='#'
5892 BUILD_SH4X86_TRUE='#'
5898 if test "$SH4_TRANSLATOR" = "x86_64"; then
5900 BUILD_X86_64_FALSE='#'
5902 BUILD_X86_64_TRUE='#'
5909 { echo "$as_me:$LINENO: checking for ESOUND" >&5
5910 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
5912 if test -n "$PKG_CONFIG"; then
5913 if test -n "$ESOUND_CFLAGS"; then
5914 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
5916 if test -n "$PKG_CONFIG" && \
5917 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
5918 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; then
5922 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
5930 if test -n "$PKG_CONFIG"; then
5931 if test -n "$ESOUND_LIBS"; then
5932 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
5934 if test -n "$PKG_CONFIG" && \
5935 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
5936 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }; then
5940 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
5951 if test $pkg_failed = yes; then
5953 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5954 _pkg_short_errors_supported=yes
5956 _pkg_short_errors_supported=no
5958 if test $_pkg_short_errors_supported = yes; then
5959 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
5961 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
5963 # Put the nasty error message in config.log where it belongs
5964 echo "$ESOUND_PKG_ERRORS" >&5
5966 { echo "$as_me:$LINENO: result: no" >&5
5967 echo "${ECHO_T}no" >&6; }
5968 echo "Warning: esound not found - building without esd audio support"
5969 elif test $pkg_failed = untried; then
5970 echo "Warning: esound not found - building without esd audio support"
5972 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
5973 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
5974 { echo "$as_me:$LINENO: result: yes" >&5
5975 echo "${ECHO_T}yes" >&6; }
5979 cat >>confdefs.h <<\_ACEOF
5980 #define HAVE_ESOUND 1
5986 if test "$HAVE_ESOUND" = 'yes' ; then
5988 AUDIO_ESOUND_FALSE='#'
5990 AUDIO_ESOUND_TRUE='#'
5997 { echo "$as_me:$LINENO: checking for ALSA" >&5
5998 echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
6000 if test -n "$PKG_CONFIG"; then
6001 if test -n "$ALSA_CFLAGS"; then
6002 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
6004 if test -n "$PKG_CONFIG" && \
6005 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
6006 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
6008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 (exit $ac_status); }; then
6010 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
6018 if test -n "$PKG_CONFIG"; then
6019 if test -n "$ALSA_LIBS"; then
6020 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
6022 if test -n "$PKG_CONFIG" && \
6023 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
6024 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; then
6028 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
6039 if test $pkg_failed = yes; then
6041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6042 _pkg_short_errors_supported=yes
6044 _pkg_short_errors_supported=no
6046 if test $_pkg_short_errors_supported = yes; then
6047 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
6049 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
6051 # Put the nasty error message in config.log where it belongs
6052 echo "$ALSA_PKG_ERRORS" >&5
6054 { echo "$as_me:$LINENO: result: no" >&5
6055 echo "${ECHO_T}no" >&6; }
6056 echo "Warning: alsa not found - building without alsa audio support"
6057 elif test $pkg_failed = untried; then
6058 echo "Warning: alsa not found - building without alsa audio support"
6060 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
6061 ALSA_LIBS=$pkg_cv_ALSA_LIBS
6062 { echo "$as_me:$LINENO: result: yes" >&5
6063 echo "${ECHO_T}yes" >&6; }
6067 cat >>confdefs.h <<\_ACEOF
6074 if test "$HAVE_ALSA" = 'yes' ; then
6076 AUDIO_ALSA_FALSE='#'
6083 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6084 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
6085 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
6086 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
6090 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
6092 # Is the header compilable?
6093 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
6094 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
6095 cat >conftest.$ac_ext <<_ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 $ac_includes_default
6102 #include <linux/cdrom.h>
6104 rm -f conftest.$ac_objext
6105 if { (ac_try="$ac_compile"
6107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6108 *) ac_try_echo=$ac_try;;
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_compile") 2>conftest.er1
6113 grep -v '^ *+' conftest.er1 >conftest.err
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && {
6118 test -z "$ac_c_werror_flag" ||
6119 test ! -s conftest.err
6120 } && test -s conftest.$ac_objext; then
6121 ac_header_compiler=yes
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6126 ac_header_compiler=no
6129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6131 echo "${ECHO_T}$ac_header_compiler" >&6; }
6133 # Is the header present?
6134 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
6135 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
6136 cat >conftest.$ac_ext <<_ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <linux/cdrom.h>
6144 if { (ac_try="$ac_cpp conftest.$ac_ext"
6146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6152 grep -v '^ *+' conftest.er1 >conftest.err
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null && {
6157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6158 test ! -s conftest.err
6160 ac_header_preproc=yes
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 ac_header_preproc=no
6168 rm -f conftest.err conftest.$ac_ext
6169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6170 echo "${ECHO_T}$ac_header_preproc" >&6; }
6172 # So? What about this header?
6173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6175 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
6176 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6177 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
6178 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
6179 ac_header_preproc=yes
6182 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
6183 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
6185 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
6187 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
6189 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
6191 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
6193 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
6197 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
6198 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
6199 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 ac_cv_header_linux_cdrom_h=$ac_header_preproc
6204 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
6205 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
6208 if test $ac_cv_header_linux_cdrom_h = yes; then
6209 HAVE_LINUX_CDROM_H=yes
6212 echo "Linux CDROM support not found, building without it."
6218 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
6220 CDROM_LINUX_FALSE='#'
6222 CDROM_LINUX_TRUE='#'
6227 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
6228 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
6229 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
6230 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
6234 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
6236 # Is the header compilable?
6237 { echo "$as_me:$LINENO: checking linux/joystick.h usability" >&5
6238 echo $ECHO_N "checking linux/joystick.h usability... $ECHO_C" >&6; }
6239 cat >conftest.$ac_ext <<_ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6246 #include <linux/joystick.h>
6248 rm -f conftest.$ac_objext
6249 if { (ac_try="$ac_compile"
6251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6252 *) ac_try_echo=$ac_try;;
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_compile") 2>conftest.er1
6257 grep -v '^ *+' conftest.er1 >conftest.err
6259 cat conftest.err >&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && {
6262 test -z "$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 } && test -s conftest.$ac_objext; then
6265 ac_header_compiler=yes
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6270 ac_header_compiler=no
6273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6275 echo "${ECHO_T}$ac_header_compiler" >&6; }
6277 # Is the header present?
6278 { echo "$as_me:$LINENO: checking linux/joystick.h presence" >&5
6279 echo $ECHO_N "checking linux/joystick.h presence... $ECHO_C" >&6; }
6280 cat >conftest.$ac_ext <<_ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 #include <linux/joystick.h>
6288 if { (ac_try="$ac_cpp conftest.$ac_ext"
6290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291 *) ac_try_echo=$ac_try;;
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6296 grep -v '^ *+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null && {
6301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6302 test ! -s conftest.err
6304 ac_header_preproc=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 ac_header_preproc=no
6312 rm -f conftest.err conftest.$ac_ext
6313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6314 echo "${ECHO_T}$ac_header_preproc" >&6; }
6316 # So? What about this header?
6317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6319 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&5
6320 echo "$as_me: WARNING: linux/joystick.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6321 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the compiler's result" >&5
6322 echo "$as_me: WARNING: linux/joystick.h: proceeding with the compiler's result" >&2;}
6323 ac_header_preproc=yes
6326 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: present but cannot be compiled" >&5
6327 echo "$as_me: WARNING: linux/joystick.h: present but cannot be compiled" >&2;}
6328 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&5
6329 echo "$as_me: WARNING: linux/joystick.h: check for missing prerequisite headers?" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: see the Autoconf documentation" >&5
6331 echo "$as_me: WARNING: linux/joystick.h: see the Autoconf documentation" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&5
6333 echo "$as_me: WARNING: linux/joystick.h: section \"Present But Cannot Be Compiled\"" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&5
6335 echo "$as_me: WARNING: linux/joystick.h: proceeding with the preprocessor's result" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&5
6337 echo "$as_me: WARNING: linux/joystick.h: in the future, the compiler will take precedence" >&2;}
6341 { echo "$as_me:$LINENO: checking for linux/joystick.h" >&5
6342 echo $ECHO_N "checking for linux/joystick.h... $ECHO_C" >&6; }
6343 if test "${ac_cv_header_linux_joystick_h+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6346 ac_cv_header_linux_joystick_h=$ac_header_preproc
6348 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_joystick_h" >&5
6349 echo "${ECHO_T}$ac_cv_header_linux_joystick_h" >&6; }
6352 if test $ac_cv_header_linux_joystick_h = yes; then
6354 HAVE_LINUX_JOYSTICK_H=yes
6356 cat >>confdefs.h <<\_ACEOF
6357 #define HAVE_LINUX_JOYSTICK 1
6361 echo "Linux Joystick support not found, building without it."
6367 if test "$HAVE_LINUX_JOYSTICK_H" = "yes"; then
6376 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
6377 set dummy sh-elf-gcc; ac_word=$2
6378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6380 if test "${ac_cv_path_SHCC+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
6388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 test -z "$as_dir" && as_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6395 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
6396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 SHCC=$ac_cv_path_SHCC
6407 if test -n "$SHCC"; then
6408 { echo "$as_me:$LINENO: result: $SHCC" >&5
6409 echo "${ECHO_T}$SHCC" >&6; }
6411 { echo "$as_me:$LINENO: result: no" >&5
6412 echo "${ECHO_T}no" >&6; }
6416 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
6417 set dummy sh-elf-ld; ac_word=$2
6418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6420 if test "${ac_cv_path_SHLD+set}" = set; then
6421 echo $ECHO_N "(cached) $ECHO_C" >&6
6425 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
6428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 test -z "$as_dir" && as_dir=.
6433 for ac_exec_ext in '' $ac_executable_extensions; do
6434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6435 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
6436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6446 SHLD=$ac_cv_path_SHLD
6447 if test -n "$SHLD"; then
6448 { echo "$as_me:$LINENO: result: $SHLD" >&5
6449 echo "${ECHO_T}$SHLD" >&6; }
6451 { echo "$as_me:$LINENO: result: no" >&5
6452 echo "${ECHO_T}no" >&6; }
6456 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
6457 set dummy sh-elf-objcopy; ac_word=$2
6458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6460 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6465 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
6468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472 test -z "$as_dir" && as_dir=.
6473 for ac_exec_ext in '' $ac_executable_extensions; do
6474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6475 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
6476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
6487 if test -n "$SHOBJCOPY"; then
6488 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
6489 echo "${ECHO_T}$SHOBJCOPY" >&6; }
6491 { echo "$as_me:$LINENO: result: no" >&5
6492 echo "${ECHO_T}no" >&6; }
6496 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
6497 set dummy arm-elf-gcc; ac_word=$2
6498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6500 if test "${ac_cv_path_ARMCC+set}" = set; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 ARMCC=$ac_cv_path_ARMCC
6527 if test -n "$ARMCC"; then
6528 { echo "$as_me:$LINENO: result: $ARMCC" >&5
6529 echo "${ECHO_T}$ARMCC" >&6; }
6531 { echo "$as_me:$LINENO: result: no" >&5
6532 echo "${ECHO_T}no" >&6; }
6536 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
6537 set dummy arm-elf-ld; ac_word=$2
6538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6540 if test "${ac_cv_path_ARMLD+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6566 ARMLD=$ac_cv_path_ARMLD
6567 if test -n "$ARMLD"; then
6568 { echo "$as_me:$LINENO: result: $ARMLD" >&5
6569 echo "${ECHO_T}$ARMLD" >&6; }
6571 { echo "$as_me:$LINENO: result: no" >&5
6572 echo "${ECHO_T}no" >&6; }
6576 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
6577 set dummy arm-elf-objcopy; ac_word=$2
6578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6580 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
6588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6592 test -z "$as_dir" && as_dir=.
6593 for ac_exec_ext in '' $ac_executable_extensions; do
6594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6595 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
6596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
6607 if test -n "$ARMOBJCOPY"; then
6608 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
6609 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
6611 { echo "$as_me:$LINENO: result: no" >&5
6612 echo "${ECHO_T}no" >&6; }
6617 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
6619 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
6623 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
6625 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
6631 if test "$BUILD_SH" = "yes"; then
6633 BUILD_SYSTEST_FALSE='#'
6635 BUILD_SYSTEST_TRUE='#'
6636 BUILD_SYSTEST_FALSE=
6641 if test "$BUILD_ARM" = "yes"; then
6643 BUILD_ARMTEST_FALSE='#'
6645 BUILD_ARMTEST_TRUE='#'
6646 BUILD_ARMTEST_FALSE=
6651 GETTEXT_PACKAGE=lxdream
6654 cat >>confdefs.h <<_ACEOF
6655 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6659 ALL_LINGUAS="de pt_BR"
6662 for ac_header in locale.h
6664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6671 ac_res=`eval echo '${'$as_ac_Header'}'`
6672 { echo "$as_me:$LINENO: result: $ac_res" >&5
6673 echo "${ECHO_T}$ac_res" >&6; }
6675 # Is the header compilable?
6676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6678 cat >conftest.$ac_ext <<_ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 $ac_includes_default
6685 #include <$ac_header>
6687 rm -f conftest.$ac_objext
6688 if { (ac_try="$ac_compile"
6690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6691 *) ac_try_echo=$ac_try;;
6693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6694 (eval "$ac_compile") 2>conftest.er1
6696 grep -v '^ *+' conftest.er1 >conftest.err
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } && {
6701 test -z "$ac_c_werror_flag" ||
6702 test ! -s conftest.err
6703 } && test -s conftest.$ac_objext; then
6704 ac_header_compiler=yes
6706 echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6709 ac_header_compiler=no
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6714 echo "${ECHO_T}$ac_header_compiler" >&6; }
6716 # Is the header present?
6717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6725 #include <$ac_header>
6727 if { (ac_try="$ac_cpp conftest.$ac_ext"
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6735 grep -v '^ *+' conftest.er1 >conftest.err
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } >/dev/null && {
6740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6743 ac_header_preproc=yes
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6748 ac_header_preproc=no
6751 rm -f conftest.err conftest.$ac_ext
6752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6753 echo "${ECHO_T}$ac_header_preproc" >&6; }
6755 # So? What about this header?
6756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in