2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
564 ac_unique_file="configure.in"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
652 INSTALL_STRIP_PROGRAM
657 MAINTAINER_MODE_FALSE
700 ac_precious_vars='build_alias
713 # Initialize some variables set by options.
715 ac_init_version=false
716 # The variables have the same names as the options, with
717 # dashes changed to underlines.
725 program_transform_name=s,x,x,
733 # Installation directory options.
734 # These are left unexpanded so users can "make install exec_prefix=/foo"
735 # and all the variables that are supposed to be based on exec_prefix
736 # by default will actually change.
737 # Use braces instead of parens because sh, perl, etc. also accept them.
738 # (The list follows the same order as the GNU Coding Standards.)
739 bindir='${exec_prefix}/bin'
740 sbindir='${exec_prefix}/sbin'
741 libexecdir='${exec_prefix}/libexec'
742 datarootdir='${prefix}/share'
743 datadir='${datarootdir}'
744 sysconfdir='${prefix}/etc'
745 sharedstatedir='${prefix}/com'
746 localstatedir='${prefix}/var'
747 includedir='${prefix}/include'
748 oldincludedir='/usr/include'
749 docdir='${datarootdir}/doc/${PACKAGE}'
750 infodir='${datarootdir}/info'
755 libdir='${exec_prefix}/lib'
756 localedir='${datarootdir}/locale'
757 mandir='${datarootdir}/man'
763 # If the previous option needs an argument, assign it.
764 if test -n "$ac_prev"; then
765 eval $ac_prev=\$ac_option
771 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
775 # Accept the important Cygnus configure options, so we can diagnose typos.
777 case $ac_dashdash$ac_option in
781 -bindir | --bindir | --bindi | --bind | --bin | --bi)
783 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
786 -build | --build | --buil | --bui | --bu)
787 ac_prev=build_alias ;;
788 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
789 build_alias=$ac_optarg ;;
791 -cache-file | --cache-file | --cache-fil | --cache-fi \
792 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
793 ac_prev=cache_file ;;
794 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
795 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
796 cache_file=$ac_optarg ;;
799 cache_file=config.cache ;;
801 -datadir | --datadir | --datadi | --datad)
803 -datadir=* | --datadir=* | --datadi=* | --datad=*)
804 datadir=$ac_optarg ;;
806 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
807 | --dataroo | --dataro | --datar)
808 ac_prev=datarootdir ;;
809 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
810 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
811 datarootdir=$ac_optarg ;;
813 -disable-* | --disable-*)
814 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
815 # Reject names that are not valid shell variable names.
816 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
817 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
818 { (exit 1); exit 1; }; }
819 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
820 eval enable_$ac_feature=no ;;
822 -docdir | --docdir | --docdi | --doc | --do)
824 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
829 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832 -enable-* | --enable-*)
833 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
834 # Reject names that are not valid shell variable names.
835 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
836 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
837 { (exit 1); exit 1; }; }
838 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
839 eval enable_$ac_feature=\$ac_optarg ;;
841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843 | --exec | --exe | --ex)
844 ac_prev=exec_prefix ;;
845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847 | --exec=* | --exe=* | --ex=*)
848 exec_prefix=$ac_optarg ;;
850 -gas | --gas | --ga | --g)
851 # Obsolete; use --with-gas.
854 -help | --help | --hel | --he | -h)
856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857 ac_init_help=recursive ;;
858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859 ac_init_help=short ;;
861 -host | --host | --hos | --ho)
862 ac_prev=host_alias ;;
863 -host=* | --host=* | --hos=* | --ho=*)
864 host_alias=$ac_optarg ;;
866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
870 htmldir=$ac_optarg ;;
872 -includedir | --includedir | --includedi | --included | --include \
873 | --includ | --inclu | --incl | --inc)
874 ac_prev=includedir ;;
875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876 | --includ=* | --inclu=* | --incl=* | --inc=*)
877 includedir=$ac_optarg ;;
879 -infodir | --infodir | --infodi | --infod | --info | --inf)
881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882 infodir=$ac_optarg ;;
884 -libdir | --libdir | --libdi | --libd)
886 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890 | --libexe | --libex | --libe)
891 ac_prev=libexecdir ;;
892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893 | --libexe=* | --libex=* | --libe=*)
894 libexecdir=$ac_optarg ;;
896 -localedir | --localedir | --localedi | --localed | --locale)
898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899 localedir=$ac_optarg ;;
901 -localstatedir | --localstatedir | --localstatedi | --localstated \
902 | --localstate | --localstat | --localsta | --localst | --locals)
903 ac_prev=localstatedir ;;
904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906 localstatedir=$ac_optarg ;;
908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 # Obsolete; use --without-fp.
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c | -n)
921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927 | --oldin | --oldi | --old | --ol | --o)
928 ac_prev=oldincludedir ;;
929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932 oldincludedir=$ac_optarg ;;
934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 -program-prefix | --program-prefix | --program-prefi | --program-pref \
940 | --program-pre | --program-pr | --program-p)
941 ac_prev=program_prefix ;;
942 -program-prefix=* | --program-prefix=* | --program-prefi=* \
943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944 program_prefix=$ac_optarg ;;
946 -program-suffix | --program-suffix | --program-suffi | --program-suff \
947 | --program-suf | --program-su | --program-s)
948 ac_prev=program_suffix ;;
949 -program-suffix=* | --program-suffix=* | --program-suffi=* \
950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951 program_suffix=$ac_optarg ;;
953 -program-transform-name | --program-transform-name \
954 | --program-transform-nam | --program-transform-na \
955 | --program-transform-n | --program-transform- \
956 | --program-transform | --program-transfor \
957 | --program-transfo | --program-transf \
958 | --program-trans | --program-tran \
959 | --progr-tra | --program-tr | --program-t)
960 ac_prev=program_transform_name ;;
961 -program-transform-name=* | --program-transform-name=* \
962 | --program-transform-nam=* | --program-transform-na=* \
963 | --program-transform-n=* | --program-transform-=* \
964 | --program-transform=* | --program-transfor=* \
965 | --program-transfo=* | --program-transf=* \
966 | --program-trans=* | --program-tran=* \
967 | --progr-tra=* | --program-tr=* | --program-t=*)
968 program_transform_name=$ac_optarg ;;
970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 -psdir | --psdir | --psdi | --psd | --ps)
977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981 | -silent | --silent | --silen | --sile | --sil)
984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
988 sbindir=$ac_optarg ;;
990 -sharedstatedir | --sharedstatedir | --sharedstatedi \
991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992 | --sharedst | --shareds | --shared | --share | --shar \
994 ac_prev=sharedstatedir ;;
995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
999 sharedstatedir=$ac_optarg ;;
1001 -site | --site | --sit)
1003 -site=* | --site=* | --sit=*)
1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009 srcdir=$ac_optarg ;;
1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012 | --syscon | --sysco | --sysc | --sys | --sy)
1013 ac_prev=sysconfdir ;;
1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016 sysconfdir=$ac_optarg ;;
1018 -target | --target | --targe | --targ | --tar | --ta | --t)
1019 ac_prev=target_alias ;;
1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021 target_alias=$ac_optarg ;;
1023 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 -version | --version | --versio | --versi | --vers | -V)
1027 ac_init_version=: ;;
1030 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid package name: $ac_package" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_package=`echo $ac_package| sed 's/-/_/g'`
1036 eval with_$ac_package=\$ac_optarg ;;
1038 -without-* | --without-*)
1039 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1042 { echo "$as_me: error: invalid package name: $ac_package" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_package=`echo $ac_package | sed 's/-/_/g'`
1045 eval with_$ac_package=no ;;
1048 # Obsolete; use --with-x.
1051 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1052 | --x-incl | --x-inc | --x-in | --x-i)
1053 ac_prev=x_includes ;;
1054 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1055 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1056 x_includes=$ac_optarg ;;
1058 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1059 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1060 ac_prev=x_libraries ;;
1061 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1062 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1063 x_libraries=$ac_optarg ;;
1065 -*) { echo "$as_me: error: unrecognized option: $ac_option
1066 Try \`$0 --help' for more information." >&2
1067 { (exit 1); exit 1; }; }
1071 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1075 { (exit 1); exit 1; }; }
1076 eval $ac_envvar=\$ac_optarg
1077 export $ac_envvar ;;
1080 # FIXME: should be removed in autoconf 3.0.
1081 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1082 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1084 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1090 if test -n "$ac_prev"; then
1091 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1092 { echo "$as_me: error: missing argument to $ac_option" >&2
1093 { (exit 1); exit 1; }; }
1096 # Be sure to have absolute directory names.
1097 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1098 datadir sysconfdir sharedstatedir localstatedir includedir \
1099 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1100 libdir localedir mandir
1102 eval ac_val=\$$ac_var
1104 [\\/$]* | ?:[\\/]* ) continue;;
1105 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1107 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1108 { (exit 1); exit 1; }; }
1111 # There might be people who depend on the old broken behavior: `$host'
1112 # used to hold the argument of --host etc.
1113 # FIXME: To remove some day.
1116 target=$target_alias
1118 # FIXME: To remove some day.
1119 if test "x$host_alias" != x; then
1120 if test "x$build_alias" = x; then
1121 cross_compiling=maybe
1122 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1123 If a cross compiler is detected then cross compile mode will be used." >&2
1124 elif test "x$build_alias" != "x$host_alias"; then
1130 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1132 test "$silent" = yes && exec 6>/dev/null
1135 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1136 ac_ls_di=`ls -di .` &&
1137 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1138 { echo "$as_me: error: Working directory cannot be determined" >&2
1139 { (exit 1); exit 1; }; }
1140 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1141 { echo "$as_me: error: pwd does not report name of working directory" >&2
1142 { (exit 1); exit 1; }; }
1145 # Find the source files, if location was not specified.
1146 if test -z "$srcdir"; then
1147 ac_srcdir_defaulted=yes
1148 # Try the directory containing this script, then the parent directory.
1149 ac_confdir=`$as_dirname -- "$0" ||
1150 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1151 X"$0" : 'X\(//\)[^/]' \| \
1152 X"$0" : 'X\(//\)$' \| \
1153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1173 if test ! -r "$srcdir/$ac_unique_file"; then
1177 ac_srcdir_defaulted=no
1179 if test ! -r "$srcdir/$ac_unique_file"; then
1180 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1181 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1182 { (exit 1); exit 1; }; }
1184 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1186 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1187 { (exit 1); exit 1; }; }
1189 # When building in place, set srcdir=.
1190 if test "$ac_abs_confdir" = "$ac_pwd"; then
1193 # Remove unnecessary trailing slashes from srcdir.
1194 # Double slashes in file names in object file debugging info
1195 # mess up M-x gdb in Emacs.
1197 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1199 for ac_var in $ac_precious_vars; do
1200 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1201 eval ac_env_${ac_var}_value=\$${ac_var}
1202 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1203 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 # Report the --help message.
1209 if test "$ac_init_help" = "long"; then
1210 # Omit some internal or obsolete options to make the list less imposing.
1211 # This message is too long to be a string in the A/UX 3.1 sh.
1213 \`configure' configures this package to adapt to many kinds of systems.
1215 Usage: $0 [OPTION]... [VAR=VALUE]...
1217 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1218 VAR=VALUE. See below for descriptions of some of the useful variables.
1220 Defaults for the options are specified in brackets.
1223 -h, --help display this help and exit
1224 --help=short display options specific to this package
1225 --help=recursive display the short help of all the included packages
1226 -V, --version display version information and exit
1227 -q, --quiet, --silent do not print \`checking...' messages
1228 --cache-file=FILE cache test results in FILE [disabled]
1229 -C, --config-cache alias for \`--cache-file=config.cache'
1230 -n, --no-create do not create output files
1231 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1233 Installation directories:
1234 --prefix=PREFIX install architecture-independent files in PREFIX
1235 [$ac_default_prefix]
1236 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1239 By default, \`make install' will install all the files in
1240 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1241 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1242 for instance \`--prefix=\$HOME'.
1244 For better control, use the options below.
1246 Fine tuning of the installation directories:
1247 --bindir=DIR user executables [EPREFIX/bin]
1248 --sbindir=DIR system admin executables [EPREFIX/sbin]
1249 --libexecdir=DIR program executables [EPREFIX/libexec]
1250 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1251 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1252 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1253 --libdir=DIR object code libraries [EPREFIX/lib]
1254 --includedir=DIR C header files [PREFIX/include]
1255 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1256 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1257 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1258 --infodir=DIR info documentation [DATAROOTDIR/info]
1259 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1260 --mandir=DIR man documentation [DATAROOTDIR/man]
1261 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1262 --htmldir=DIR html documentation [DOCDIR]
1263 --dvidir=DIR dvi documentation [DOCDIR]
1264 --pdfdir=DIR pdf documentation [DOCDIR]
1265 --psdir=DIR ps documentation [DOCDIR]
1271 --program-prefix=PREFIX prepend PREFIX to installed program names
1272 --program-suffix=SUFFIX append SUFFIX to installed program names
1273 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1277 if test -n "$ac_init_help"; then
1282 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1283 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1284 --enable-maintainer-mode enable make rules and dependencies not useful
1285 (and sometimes confusing) to the casual installer
1286 --disable-dependency-tracking Speeds up one-time builds
1287 --enable-dependency-tracking Do not reject slow dependency extractors
1289 Some influential environment variables:
1290 CC C compiler command
1291 CFLAGS C compiler flags
1292 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1293 nonstandard directory <lib dir>
1294 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1295 you have headers in a nonstandard directory <include dir>
1297 PKG_CONFIG path to pkg-config utility
1299 C compiler flags for PACKAGE, overriding pkg-config
1301 linker flags for PACKAGE, overriding pkg-config
1303 Use these variables to override the choices made by `configure' or to help
1304 it to find libraries and programs with nonstandard names/locations.
1310 if test "$ac_init_help" = "recursive"; then
1311 # If there are subdirs, report their specific --help.
1312 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1313 test -d "$ac_dir" || continue
1317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1319 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1320 # A ".." for each directory in $ac_dir_suffix.
1321 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1322 case $ac_top_builddir_sub in
1323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1327 ac_abs_top_builddir=$ac_pwd
1328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1329 # for backward compatibility:
1330 ac_top_builddir=$ac_top_build_prefix
1333 .) # We are building in place.
1335 ac_top_srcdir=$ac_top_builddir_sub
1336 ac_abs_top_srcdir=$ac_pwd ;;
1337 [\\/]* | ?:[\\/]* ) # Absolute name.
1338 ac_srcdir=$srcdir$ac_dir_suffix;
1339 ac_top_srcdir=$srcdir
1340 ac_abs_top_srcdir=$srcdir ;;
1342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1343 ac_top_srcdir=$ac_top_build_prefix$srcdir
1344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1348 cd "$ac_dir" || { ac_status=$?; continue; }
1349 # Check for guested configure.
1350 if test -f "$ac_srcdir/configure.gnu"; then
1352 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1353 elif test -f "$ac_srcdir/configure"; then
1355 $SHELL "$ac_srcdir/configure" --help=recursive
1357 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1359 cd "$ac_pwd" || { ac_status=$?; break; }
1363 test -n "$ac_init_help" && exit $ac_status
1364 if $ac_init_version; then
1367 generated by GNU Autoconf 2.60
1369 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1370 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1371 This configure script is free software; the Free Software Foundation
1372 gives unlimited permission to copy, distribute and modify it.
1376 cat >config.log <<_ACEOF
1377 This file contains any messages produced by compilers while
1378 running configure, to aid debugging if configure makes a mistake.
1380 It was created by $as_me, which was
1381 generated by GNU Autoconf 2.60. Invocation command line was
1393 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1394 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1395 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1396 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1397 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1399 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1400 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1402 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1403 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1404 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1405 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1406 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1407 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1408 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416 test -z "$as_dir" && as_dir=.
1417 echo "PATH: $as_dir"
1433 # Keep a trace of the command line.
1434 # Strip out --no-create and --no-recursion so they do not pile up.
1435 # Strip out --silent because we don't want to record it for future runs.
1436 # Also quote any args containing shell meta-characters.
1437 # Make two passes to allow for proper duplicate-argument suppression.
1441 ac_must_keep_next=false
1447 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1449 | -silent | --silent | --silen | --sile | --sil)
1452 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1455 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1457 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1458 if test $ac_must_keep_next = true; then
1459 ac_must_keep_next=false # Got value, back to normal.
1462 *=* | --config-cache | -C | -disable-* | --disable-* \
1463 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1464 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1465 | -with-* | --with-* | -without-* | --without-* | --x)
1466 case "$ac_configure_args0 " in
1467 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1470 -* ) ac_must_keep_next=true ;;
1473 ac_configure_args="$ac_configure_args '$ac_arg'"
1478 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1479 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1481 # When interrupted or exit'd, cleanup temporary files, and complete
1482 # config.log. We remove comments because anyway the quotes in there
1483 # would cause problems or look ugly.
1484 # WARNING: Use '\'' to represent an apostrophe within the trap.
1485 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1486 trap 'exit_status=$?
1487 # Save into config.log some information that might help in debugging.
1492 ## ---------------- ##
1493 ## Cache variables. ##
1494 ## ---------------- ##
1497 # The following way of writing the cache mishandles newlines in values,
1499 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1500 eval ac_val=\$$ac_var
1504 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1505 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1508 _ | IFS | as_nl) ;; #(
1509 *) $as_unset $ac_var ;;
1514 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1515 *${as_nl}ac_space=\ *)
1517 "s/'\''/'\''\\\\'\'''\''/g;
1518 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1521 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1529 ## ----------------- ##
1530 ## Output variables. ##
1531 ## ----------------- ##
1534 for ac_var in $ac_subst_vars
1536 eval ac_val=\$$ac_var
1538 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1540 echo "$ac_var='\''$ac_val'\''"
1544 if test -n "$ac_subst_files"; then
1546 ## ------------------- ##
1547 ## File substitutions. ##
1548 ## ------------------- ##
1551 for ac_var in $ac_subst_files
1553 eval ac_val=\$$ac_var
1555 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557 echo "$ac_var='\''$ac_val'\''"
1562 if test -s confdefs.h; then
1572 test "$ac_signal" != 0 &&
1573 echo "$as_me: caught signal $ac_signal"
1574 echo "$as_me: exit $exit_status"
1576 rm -f core *.core core.conftest.* &&
1577 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1580 for ac_signal in 1 2 13 15; do
1581 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1585 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1586 rm -f -r conftest* confdefs.h
1588 # Predefined preprocessor variables.
1590 cat >>confdefs.h <<_ACEOF
1591 #define PACKAGE_NAME "$PACKAGE_NAME"
1595 cat >>confdefs.h <<_ACEOF
1596 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1600 cat >>confdefs.h <<_ACEOF
1601 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1605 cat >>confdefs.h <<_ACEOF
1606 #define PACKAGE_STRING "$PACKAGE_STRING"
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1615 # Let the site file select an alternate cache file if it wants to.
1616 # Prefer explicitly selected file to automatically selected ones.
1617 if test -n "$CONFIG_SITE"; then
1618 set x "$CONFIG_SITE"
1619 elif test "x$prefix" != xNONE; then
1620 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1622 set x "$ac_default_prefix/share/config.site" \
1623 "$ac_default_prefix/etc/config.site"
1628 if test -r "$ac_site_file"; then
1629 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1630 echo "$as_me: loading site script $ac_site_file" >&6;}
1631 sed 's/^/| /' "$ac_site_file" >&5
1636 if test -r "$cache_file"; then
1637 # Some versions of bash will fail to source /dev/null (special
1638 # files actually), so we avoid doing that.
1639 if test -f "$cache_file"; then
1640 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1641 echo "$as_me: loading cache $cache_file" >&6;}
1643 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1644 *) . "./$cache_file";;
1648 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1649 echo "$as_me: creating cache $cache_file" >&6;}
1653 # Check that the precious variables saved in the cache have kept the same
1655 ac_cache_corrupted=false
1656 for ac_var in $ac_precious_vars; do
1657 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1658 eval ac_new_set=\$ac_env_${ac_var}_set
1659 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1660 eval ac_new_val=\$ac_env_${ac_var}_value
1661 case $ac_old_set,$ac_new_set in
1663 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1664 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1665 ac_cache_corrupted=: ;;
1667 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1668 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1669 ac_cache_corrupted=: ;;
1672 if test "x$ac_old_val" != "x$ac_new_val"; then
1673 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1674 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1675 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1676 echo "$as_me: former value: $ac_old_val" >&2;}
1677 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1678 echo "$as_me: current value: $ac_new_val" >&2;}
1679 ac_cache_corrupted=:
1682 # Pass precious variables to config.status.
1683 if test "$ac_new_set" = set; then
1685 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1686 *) ac_arg=$ac_var=$ac_new_val ;;
1688 case " $ac_configure_args " in
1689 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1690 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1694 if $ac_cache_corrupted; then
1695 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1696 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1697 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1698 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1699 { (exit 1); exit 1; }; }
1719 ac_cpp='$CPP $CPPFLAGS'
1720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1725 am__api_version="1.7"
1727 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1728 if test -f "$ac_dir/install-sh"; then
1730 ac_install_sh="$ac_aux_dir/install-sh -c"
1732 elif test -f "$ac_dir/install.sh"; then
1734 ac_install_sh="$ac_aux_dir/install.sh -c"
1736 elif test -f "$ac_dir/shtool"; then
1738 ac_install_sh="$ac_aux_dir/shtool install -c"
1742 if test -z "$ac_aux_dir"; then
1743 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1744 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1745 { (exit 1); exit 1; }; }
1748 # These three variables are undocumented and unsupported,
1749 # and are intended to be withdrawn in a future Autoconf release.
1750 # They can cause serious problems if a builder's source tree is in a directory
1751 # whose full name contains unusual characters.
1752 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1753 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1754 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1757 # Find a good install program. We prefer a C program (faster),
1758 # so one script is as good as another. But avoid the broken or
1759 # incompatible versions:
1760 # SysV /etc/install, /usr/sbin/install
1761 # SunOS /usr/etc/install
1762 # IRIX /sbin/install
1764 # AmigaOS /C/install, which installs bootblocks on floppy discs
1765 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1766 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1767 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1768 # OS/2's system install, which has a completely different semantic
1769 # ./install, which can be erroneously created by make from ./install.sh.
1770 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1771 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1772 if test -z "$INSTALL"; then
1773 if test "${ac_cv_path_install+set}" = set; then
1774 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780 test -z "$as_dir" && as_dir=.
1781 # Account for people who put trailing slashes in PATH elements.
1783 ./ | .// | /cC/* | \
1784 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1785 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1788 # OSF1 and SCO ODT 3.0 have their own names for install.
1789 # Don't use installbsd from OSF since it installs stuff as root
1791 for ac_prog in ginstall scoinst install; do
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1794 if test $ac_prog = install &&
1795 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1796 # AIX install. It has an incompatible calling convention.
1798 elif test $ac_prog = install &&
1799 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1800 # program-specific install script used by HP pwplus--don't use.
1803 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1816 if test "${ac_cv_path_install+set}" = set; then
1817 INSTALL=$ac_cv_path_install
1819 # As a last resort, use the slow shell script. Don't cache a
1820 # value for INSTALL within a source directory, because that will
1821 # break other packages using the cache if that directory is
1822 # removed, or if the value is a relative name.
1823 INSTALL=$ac_install_sh
1826 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1827 echo "${ECHO_T}$INSTALL" >&6; }
1829 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1830 # It thinks the first close brace ends the variable substitution.
1831 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1833 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1835 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1837 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1838 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1841 echo timestamp > conftest.file
1842 # Do `set' in a subshell so we don't clobber the current shell's
1843 # arguments. Must try -L first in case configure is actually a
1844 # symlink; some systems play weird games with the mod time of symlinks
1845 # (eg FreeBSD returns the mod time of the symlink's containing
1848 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1849 if test "$*" = "X"; then
1851 set X `ls -t $srcdir/configure conftest.file`
1854 if test "$*" != "X $srcdir/configure conftest.file" \
1855 && test "$*" != "X conftest.file $srcdir/configure"; then
1857 # If neither matched, then we have a broken ls. This can happen
1858 # if, for instance, CONFIG_SHELL is bash and it inherits a
1859 # broken ls alias from the environment. This has actually
1860 # happened. Such a system could not be considered "sane".
1861 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1862 alias in your environment" >&5
1863 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1864 alias in your environment" >&2;}
1865 { (exit 1); exit 1; }; }
1868 test "$2" = conftest.file
1874 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1875 Check your system clock" >&5
1876 echo "$as_me: error: newly created file is older than distributed files!
1877 Check your system clock" >&2;}
1878 { (exit 1); exit 1; }; }
1880 { echo "$as_me:$LINENO: result: yes" >&5
1881 echo "${ECHO_T}yes" >&6; }
1882 test "$program_prefix" != NONE &&
1883 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1884 # Use a double $ so make ignores it.
1885 test "$program_suffix" != NONE &&
1886 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1887 # Double any \ or $. echo might interpret backslashes.
1888 # By default was `s,x,x', remove it if useless.
1889 cat <<\_ACEOF >conftest.sed
1890 s/[\\$]/&&/g;s/;s,x,x,$//
1892 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1896 # expand $ac_aux_dir to an absolute path
1897 am_aux_dir=`cd $ac_aux_dir && pwd`
1899 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1900 # Use eval to expand $SHELL
1901 if eval "$MISSING --run true"; then
1902 am_missing_run="$MISSING --run "
1905 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1906 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1909 for ac_prog in gawk mawk nawk awk
1911 # Extract the first word of "$ac_prog", so it can be a program name with args.
1912 set dummy $ac_prog; ac_word=$2
1913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915 if test "${ac_cv_prog_AWK+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1918 if test -n "$AWK"; then
1919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925 test -z "$as_dir" && as_dir=.
1926 for ac_exec_ext in '' $ac_executable_extensions; do
1927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1928 ac_cv_prog_AWK="$ac_prog"
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 if test -n "$AWK"; then
1940 { echo "$as_me:$LINENO: result: $AWK" >&5
1941 echo "${ECHO_T}$AWK" >&6; }
1943 { echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6; }
1948 test -n "$AWK" && break
1951 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1952 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1953 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1954 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 cat >conftest.make <<\_ACEOF
1960 @echo '@@@%%%=$(MAKE)=@@@%%%'
1962 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
1965 eval ac_cv_prog_make_${ac_make}_set=yes;;
1967 eval ac_cv_prog_make_${ac_make}_set=no;;
1971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
1972 { echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6; }
1976 { echo "$as_me:$LINENO: result: no" >&5
1977 echo "${ECHO_T}no" >&6; }
1978 SET_MAKE="MAKE=${MAKE-make}"
1981 rm -rf .tst 2>/dev/null
1982 mkdir .tst 2>/dev/null
1983 if test -d .tst; then
1988 rmdir .tst 2>/dev/null
1990 # test to see if srcdir already configured
1991 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1992 test -f $srcdir/config.status; then
1993 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1994 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1995 { (exit 1); exit 1; }; }
1998 # test whether we have cygpath
1999 if test -z "$CYGPATH_W"; then
2000 if (cygpath --version) >/dev/null 2>/dev/null; then
2001 CYGPATH_W='cygpath -w'
2008 # Define the identity of the package.
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE "$PACKAGE"
2018 cat >>confdefs.h <<_ACEOF
2019 #define VERSION "$VERSION"
2022 # Some tools Automake needs.
2024 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2027 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2030 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2033 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2036 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2039 AMTAR=${AMTAR-"${am_missing_run}tar"}
2041 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2043 # Installed binaries are usually stripped using `strip' when the user
2044 # run `make install-strip'. However `strip' might not be the right
2045 # tool to use in cross-compilation environments, therefore Automake
2046 # will honor the `STRIP' environment variable to overrule this program.
2047 if test "$cross_compiling" != no; then
2048 if test -n "$ac_tool_prefix"; then
2049 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2050 set dummy ${ac_tool_prefix}strip; ac_word=$2
2051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2053 if test "${ac_cv_prog_STRIP+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$STRIP"; then
2057 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2066 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 STRIP=$ac_cv_prog_STRIP
2077 if test -n "$STRIP"; then
2078 { echo "$as_me:$LINENO: result: $STRIP" >&5
2079 echo "${ECHO_T}$STRIP" >&6; }
2081 { echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6; }
2087 if test -z "$ac_cv_prog_STRIP"; then
2089 # Extract the first word of "strip", so it can be a program name with args.
2090 set dummy strip; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 if test -n "$ac_ct_STRIP"; then
2097 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 test -z "$as_dir" && as_dir=.
2104 for ac_exec_ext in '' $ac_executable_extensions; do
2105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2106 ac_cv_prog_ac_ct_STRIP="strip"
2107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2117 if test -n "$ac_ct_STRIP"; then
2118 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2119 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2121 { echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6; }
2125 if test "x$ac_ct_STRIP" = x; then
2128 case $cross_compiling:$ac_tool_warned in
2130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2131 whose name does not start with the host triplet. If you think this
2132 configuration is useful to you, please write to autoconf@gnu.org." >&5
2133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2134 whose name does not start with the host triplet. If you think this
2135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2136 ac_tool_warned=yes ;;
2141 STRIP="$ac_cv_prog_STRIP"
2145 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2147 # We need awk for the "check" target. The system "awk" is bad on
2152 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2153 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2154 # Check whether --enable-maintainer-mode was given.
2155 if test "${enable_maintainer_mode+set}" = set; then
2156 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2158 USE_MAINTAINER_MODE=no
2161 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2162 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2165 if test $USE_MAINTAINER_MODE = yes; then
2166 MAINTAINER_MODE_TRUE=
2167 MAINTAINER_MODE_FALSE='#'
2169 MAINTAINER_MODE_TRUE='#'
2170 MAINTAINER_MODE_FALSE=
2173 MAINT=$MAINTAINER_MODE_TRUE
2176 ac_config_headers="$ac_config_headers config.h"
2179 DEPDIR="${am__leading_dot}deps"
2181 ac_config_commands="$ac_config_commands depfiles"
2184 am_make=${MAKE-make}
2185 cat > confinc << 'END'
2190 # If we don't find an include directive, just comment out the code.
2191 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2192 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2196 # First try GNU make style include.
2197 echo "include confinc" > confmf
2198 # We grep out `Entering directory' and `Leaving directory'
2199 # messages which can occur if `w' ends up in MAKEFLAGS.
2200 # In particular we don't look at `^make:' because GNU make might
2201 # be invoked under some other name (usually "gmake"), in which
2202 # case it prints its new name instead of `make'.
2203 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2208 # Now try BSD make style include.
2209 if test "$am__include" = "#"; then
2210 echo '.include "confinc"' > confmf
2211 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2212 am__include=.include
2219 { echo "$as_me:$LINENO: result: $_am_result" >&5
2220 echo "${ECHO_T}$_am_result" >&6; }
2221 rm -f confinc confmf
2223 # Check whether --enable-dependency-tracking was given.
2224 if test "${enable_dependency_tracking+set}" = set; then
2225 enableval=$enable_dependency_tracking;
2228 if test "x$enable_dependency_tracking" != xno; then
2229 am_depcomp="$ac_aux_dir/depcomp"
2234 if test "x$enable_dependency_tracking" != xno; then
2245 ac_cpp='$CPP $CPPFLAGS'
2246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2249 if test -n "$ac_tool_prefix"; then
2250 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2254 if test "${ac_cv_prog_CC+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2267 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2278 if test -n "$CC"; then
2279 { echo "$as_me:$LINENO: result: $CC" >&5
2280 echo "${ECHO_T}$CC" >&6; }
2282 { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2288 if test -z "$ac_cv_prog_CC"; then
2290 # Extract the first word of "gcc", so it can be a program name with args.
2291 set dummy gcc; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 if test -n "$ac_ct_CC"; then
2298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_ac_ct_CC="gcc"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2318 if test -n "$ac_ct_CC"; then
2319 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2320 echo "${ECHO_T}$ac_ct_CC" >&6; }
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2326 if test "x$ac_ct_CC" = x; then
2329 case $cross_compiling:$ac_tool_warned in
2331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2332 whose name does not start with the host triplet. If you think this
2333 configuration is useful to you, please write to autoconf@gnu.org." >&5
2334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2335 whose name does not start with the host triplet. If you think this
2336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2337 ac_tool_warned=yes ;;
2345 if test -z "$CC"; then
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}cc; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$CC"; then
2355 ac_cv_prog_CC="$CC" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_CC="${ac_tool_prefix}cc"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 if test -n "$CC"; then
2376 { echo "$as_me:$LINENO: result: $CC" >&5
2377 echo "${ECHO_T}$CC" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2386 if test -z "$CC"; then
2387 # Extract the first word of "cc", so it can be a program name with args.
2388 set dummy cc; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_CC+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$CC"; then
2395 ac_cv_prog_CC="$CC" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2406 ac_prog_rejected=yes
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417 if test $ac_prog_rejected = yes; then
2418 # We found a bogon in the path, so make sure we never use it.
2419 set dummy $ac_cv_prog_CC
2421 if test $# != 0; then
2422 # We chose a different compiler from the bogus one.
2423 # However, it has the same basename, so the bogon will be chosen
2424 # first if we set CC to just the basename; use the full file name.
2426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2432 if test -n "$CC"; then
2433 { echo "$as_me:$LINENO: result: $CC" >&5
2434 echo "${ECHO_T}$CC" >&6; }
2436 { echo "$as_me:$LINENO: result: no" >&5
2437 echo "${ECHO_T}no" >&6; }
2442 if test -z "$CC"; then
2443 if test -n "$ac_tool_prefix"; then
2444 for ac_prog in cl.exe
2446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2474 if test -n "$CC"; then
2475 { echo "$as_me:$LINENO: result: $CC" >&5
2476 echo "${ECHO_T}$CC" >&6; }
2478 { echo "$as_me:$LINENO: result: no" >&5
2479 echo "${ECHO_T}no" >&6; }
2483 test -n "$CC" && break
2486 if test -z "$CC"; then
2488 for ac_prog in cl.exe
2490 # Extract the first word of "$ac_prog", so it can be a program name with args.
2491 set dummy $ac_prog; ac_word=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test -n "$ac_ct_CC"; then
2498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_ac_ct_CC="$ac_prog"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2518 if test -n "$ac_ct_CC"; then
2519 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2520 echo "${ECHO_T}$ac_ct_CC" >&6; }
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2527 test -n "$ac_ct_CC" && break
2530 if test "x$ac_ct_CC" = x; then
2533 case $cross_compiling:$ac_tool_warned in
2535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2536 whose name does not start with the host triplet. If you think this
2537 configuration is useful to you, please write to autoconf@gnu.org." >&5
2538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2539 whose name does not start with the host triplet. If you think this
2540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2541 ac_tool_warned=yes ;;
2550 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2551 See \`config.log' for more details." >&5
2552 echo "$as_me: error: no acceptable C compiler found in \$PATH
2553 See \`config.log' for more details." >&2;}
2554 { (exit 1); exit 1; }; }
2556 # Provide some information about the compiler.
2557 echo "$as_me:$LINENO: checking for C compiler version" >&5
2558 ac_compiler=`set X $ac_compile; echo $2`
2559 { (ac_try="$ac_compiler --version >&5"
2561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562 *) ac_try_echo=$ac_try;;
2564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565 (eval "$ac_compiler --version >&5") 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569 { (ac_try="$ac_compiler -v >&5"
2571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572 *) ac_try_echo=$ac_try;;
2574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575 (eval "$ac_compiler -v >&5") 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }
2579 { (ac_try="$ac_compiler -V >&5"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_compiler -V >&5") 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }
2590 cat >conftest.$ac_ext <<_ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h. */
2605 ac_clean_files_save=$ac_clean_files
2606 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2607 # Try to create an executable without -o first, disregard a.out.
2608 # It will help us diagnose broken compilers, and finding out an intuition
2610 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2611 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2612 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2614 # List of possible output files, starting from the most likely.
2615 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2616 # only as a last resort. b.out is created by i960 compilers.
2617 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2619 # The IRIX 6 linker writes into existing files which may not be
2620 # executable, retaining their permissions. Remove them first so a
2621 # subsequent execution test works.
2623 for ac_file in $ac_files
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2627 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2632 if { (ac_try="$ac_link_default"
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638 (eval "$ac_link_default") 2>&5
2640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641 (exit $ac_status); }; then
2642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2643 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2644 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2645 # so that the user can short-circuit this test for compilers unknown to
2647 for ac_file in $ac_files
2649 test -f "$ac_file" || continue
2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2654 # We found the default executable, but exeext='' is most
2658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2662 # We set ac_cv_exeext here because the later test for it is not
2663 # safe: cross compilers may not add the suffix if given an `-o'
2664 # argument, so we may need to know it at that point already.
2665 # Even if this section looks crufty: it has the advantage of
2672 test "$ac_cv_exeext" = no && ac_cv_exeext=
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2678 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: C compiler cannot create executables
2681 See \`config.log' for more details." >&2;}
2682 { (exit 77); exit 77; }; }
2685 ac_exeext=$ac_cv_exeext
2686 { echo "$as_me:$LINENO: result: $ac_file" >&5
2687 echo "${ECHO_T}$ac_file" >&6; }
2689 # Check that the compiler produces executables we can run. If not, either
2690 # the compiler is broken, or we cross compile.
2691 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2692 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2693 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2694 # If not cross compiling, check that we can run a simple program.
2695 if test "$cross_compiling" != yes; then
2696 if { ac_try='./$ac_file'
2697 { (case "(($ac_try" in
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_try") 2>&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2708 if test "$cross_compiling" = maybe; then
2711 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2712 If you meant to cross compile, use \`--host'.
2713 See \`config.log' for more details." >&5
2714 echo "$as_me: error: cannot run C compiled programs.
2715 If you meant to cross compile, use \`--host'.
2716 See \`config.log' for more details." >&2;}
2717 { (exit 1); exit 1; }; }
2721 { echo "$as_me:$LINENO: result: yes" >&5
2722 echo "${ECHO_T}yes" >&6; }
2724 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2725 ac_clean_files=$ac_clean_files_save
2726 # Check that the compiler produces executables we can run. If not, either
2727 # the compiler is broken, or we cross compile.
2728 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2729 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2730 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2731 echo "${ECHO_T}$cross_compiling" >&6; }
2733 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2734 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2735 if { (ac_try="$ac_link"
2737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738 *) ac_try_echo=$ac_try;;
2740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741 (eval "$ac_link") 2>&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; then
2745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2746 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2747 # work properly (i.e., refer to `conftest.exe'), while it won't with
2749 for ac_file in conftest.exe conftest conftest.*; do
2750 test -f "$ac_file" || continue
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2759 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2760 See \`config.log' for more details." >&5
2761 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2762 See \`config.log' for more details." >&2;}
2763 { (exit 1); exit 1; }; }
2766 rm -f conftest$ac_cv_exeext
2767 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2768 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2770 rm -f conftest.$ac_ext
2771 EXEEXT=$ac_cv_exeext
2773 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2774 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2775 if test "${ac_cv_objext+set}" = set; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 rm -f conftest.o conftest.obj
2794 if { (ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compile") 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; then
2804 for ac_file in conftest.o conftest.obj conftest.*; do
2805 test -f "$ac_file" || continue;
2807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2808 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2816 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2817 See \`config.log' for more details." >&5
2818 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2819 See \`config.log' for more details." >&2;}
2820 { (exit 1); exit 1; }; }
2823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2825 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2826 echo "${ECHO_T}$ac_cv_objext" >&6; }
2827 OBJEXT=$ac_cv_objext
2829 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2830 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2831 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 cat >conftest.$ac_ext <<_ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2852 rm -f conftest.$ac_objext
2853 if { (ac_try="$ac_compile"
2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856 *) ac_try_echo=$ac_try;;
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859 (eval "$ac_compile") 2>conftest.er1
2861 grep -v '^ *+' conftest.er1 >conftest.err
2863 cat conftest.err >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); } &&
2866 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2867 { (case "(($ac_try" in
2868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869 *) ac_try_echo=$ac_try;;
2871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872 (eval "$ac_try") 2>&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (case "(($ac_try" in
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_try") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; }; then
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2898 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2899 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2900 GCC=`test $ac_compiler_gnu = yes && echo yes`
2901 ac_test_CFLAGS=${CFLAGS+set}
2902 ac_save_CFLAGS=$CFLAGS
2903 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2904 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2905 if test "${ac_cv_prog_cc_g+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 ac_save_c_werror_flag=$ac_c_werror_flag
2909 ac_c_werror_flag=yes
2912 cat >conftest.$ac_ext <<_ACEOF
2915 cat confdefs.h >>conftest.$ac_ext
2916 cat >>conftest.$ac_ext <<_ACEOF
2917 /* end confdefs.h. */
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2936 grep -v '^ *+' conftest.er1 >conftest.err
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2942 { (case "(($ac_try" in
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_try") 2>&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2997 { (case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_try") 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_try") 2>&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 ac_c_werror_flag=$ac_save_c_werror_flag
3023 cat >conftest.$ac_ext <<_ACEOF
3026 cat confdefs.h >>conftest.$ac_ext
3027 cat >>conftest.$ac_ext <<_ACEOF
3028 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3087 ac_c_werror_flag=$ac_save_c_werror_flag
3089 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3090 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3091 if test "$ac_test_CFLAGS" = set; then
3092 CFLAGS=$ac_save_CFLAGS
3093 elif test $ac_cv_prog_cc_g = yes; then
3094 if test "$GCC" = yes; then
3100 if test "$GCC" = yes; then
3106 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3107 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3108 if test "${ac_cv_prog_cc_c89+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 ac_cv_prog_cc_c89=no
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3121 #include <sys/types.h>
3122 #include <sys/stat.h>
3123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3124 struct buf { int x; };
3125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3126 static char *e (p, i)
3132 static char *f (char * (*g) (char **, int), char **p, ...)
3137 s = g (p, va_arg (v,int));
3142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3143 function prototypes and stuff, but not '\xHH' hex character constants.
3144 These don't provoke an error unfortunately, instead are silently treated
3145 as 'x'. The following induces an error, until -std is added to get
3146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3147 array size at least. It's necessary to write '\x00'==0 to get something
3148 that's true only with -std. */
3149 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3152 inside strings and character constants. */
3154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3156 int test (int i, double x);
3157 struct s1 {int (*f) (int a);};
3158 struct s2 {int (*f) (double a);};
3159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3170 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3173 CC="$ac_save_CC $ac_arg"
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } &&
3188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3189 { (case "(($ac_try" in
3190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3191 *) ac_try_echo=$ac_try;;
3193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3194 (eval "$ac_try") 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; } &&
3198 { ac_try='test -s conftest.$ac_objext'
3199 { (case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_try") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; }; then
3208 ac_cv_prog_cc_c89=$ac_arg
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3216 rm -f core conftest.err conftest.$ac_objext
3217 test "x$ac_cv_prog_cc_c89" != "xno" && break
3219 rm -f conftest.$ac_ext
3224 case "x$ac_cv_prog_cc_c89" in
3226 { echo "$as_me:$LINENO: result: none needed" >&5
3227 echo "${ECHO_T}none needed" >&6; } ;;
3229 { echo "$as_me:$LINENO: result: unsupported" >&5
3230 echo "${ECHO_T}unsupported" >&6; } ;;
3232 CC="$CC $ac_cv_prog_cc_c89"
3233 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3234 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244 depcc="$CC" am_compiler_list=
3246 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3247 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3248 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3252 # We make a subdir and do the tests there. Otherwise we can end up
3253 # making bogus files that we don't know about and never remove. For
3254 # instance it was reported that on HP-UX the gcc test will end up
3255 # making a dummy file named `D' -- because `-MD' means `put the output
3258 # Copy depcomp to subdir because otherwise we won't find it if we're
3259 # using a relative directory.
3260 cp "$am_depcomp" conftest.dir
3262 # We will build objects and dependencies in a subdirectory because
3263 # it helps to detect inapplicable dependency modes. For instance
3264 # both Tru64's cc and ICC support -MD to output dependencies as a
3265 # side effect of compilation, but ICC will put the dependencies in
3266 # the current directory while Tru64 will put them in the object
3270 am_cv_CC_dependencies_compiler_type=none
3271 if test "$am_compiler_list" = ""; then
3272 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3274 for depmode in $am_compiler_list; do
3275 # Setup a source with many dependencies, because some compilers
3276 # like to wrap large dependency lists on column 80 (with \), and
3277 # we should not choose a depcomp mode which is confused by this.
3279 # We need to recreate these files for each test, as the compiler may
3280 # overwrite some of them when testing with obscure command lines.
3281 # This happens at least with the AIX C compiler.
3283 for i in 1 2 3 4 5 6; do
3284 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3287 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3291 # after this tag, mechanisms are not by side-effect, so they'll
3292 # only be used when explicitly requested
3293 if test "x$enable_dependency_tracking" = xyes; then
3301 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3302 # mode. It turns out that the SunPro C++ compiler does not properly
3303 # handle `-M -o', and we need to detect this.
3304 if depmode=$depmode \
3305 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3306 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3307 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3308 >/dev/null 2>conftest.err &&
3309 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3310 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3311 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3312 # icc doesn't choke on unknown options, it will just issue warnings
3313 # (even with -Werror). So we grep stderr for any message
3314 # that says an option was ignored.
3315 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3316 am_cv_CC_dependencies_compiler_type=$depmode
3325 am_cv_CC_dependencies_compiler_type=none
3329 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3330 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3331 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3336 test "x$enable_dependency_tracking" != xno \
3337 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3339 am__fastdepCC_FALSE='#'
3341 am__fastdepCC_TRUE='#'
3342 am__fastdepCC_FALSE=
3347 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3348 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3349 if test "${ac_cv_search_strerror+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 ac_func_search_save_LIBS=$LIBS
3353 cat >conftest.$ac_ext <<_ACEOF
3356 cat confdefs.h >>conftest.$ac_ext
3357 cat >>conftest.$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3360 /* Override any GCC internal prototype to avoid an error.
3361 Use char because int might match the return type of a GCC
3362 builtin and then its argument prototype would still apply. */
3375 for ac_lib in '' cposix; do
3376 if test -z "$ac_lib"; then
3377 ac_res="none required"
3380 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3382 rm -f conftest.$ac_objext conftest$ac_exeext
3383 if { (ac_try="$ac_link"
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3389 (eval "$ac_link") 2>conftest.er1
3391 grep -v '^ *+' conftest.er1 >conftest.err
3393 cat conftest.err >&5
3394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395 (exit $ac_status); } &&
3396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3397 { (case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_try") 2>&5
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; } &&
3406 { ac_try='test -s conftest$ac_exeext'
3407 { (case "(($ac_try" in
3408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409 *) ac_try_echo=$ac_try;;
3411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3412 (eval "$ac_try") 2>&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); }; }; then
3416 ac_cv_search_strerror=$ac_res
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3424 rm -f core conftest.err conftest.$ac_objext \
3426 if test "${ac_cv_search_strerror+set}" = set; then
3430 if test "${ac_cv_search_strerror+set}" = set; then
3433 ac_cv_search_strerror=no
3436 LIBS=$ac_func_search_save_LIBS
3438 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3439 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3440 ac_res=$ac_cv_search_strerror
3441 if test "$ac_res" != no; then
3442 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3447 ac_cpp='$CPP $CPPFLAGS'
3448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451 if test -n "$ac_tool_prefix"; then
3452 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3453 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then
3457 echo $ECHO_N "(cached) $ECHO_C" >&6
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test -n "$CC"; then
3481 { echo "$as_me:$LINENO: result: $CC" >&5
3482 echo "${ECHO_T}$CC" >&6; }
3484 { echo "$as_me:$LINENO: result: no" >&5
3485 echo "${ECHO_T}no" >&6; }
3490 if test -z "$ac_cv_prog_CC"; then
3492 # Extract the first word of "gcc", so it can be a program name with args.
3493 set dummy gcc; ac_word=$2
3494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3497 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 if test -n "$ac_ct_CC"; then
3500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 ac_cv_prog_ac_ct_CC="gcc"
3510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3522 echo "${ECHO_T}$ac_ct_CC" >&6; }
3524 { echo "$as_me:$LINENO: result: no" >&5
3525 echo "${ECHO_T}no" >&6; }
3528 if test "x$ac_ct_CC" = x; then
3531 case $cross_compiling:$ac_tool_warned in
3533 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3534 whose name does not start with the host triplet. If you think this
3535 configuration is useful to you, please write to autoconf@gnu.org." >&5
3536 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3537 whose name does not start with the host triplet. If you think this
3538 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3539 ac_tool_warned=yes ;;
3547 if test -z "$CC"; then
3548 if test -n "$ac_tool_prefix"; then
3549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3550 set dummy ${ac_tool_prefix}cc; ac_word=$2
3551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3553 if test "${ac_cv_prog_CC+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 if test -n "$CC"; then
3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 test -z "$as_dir" && as_dir=.
3564 for ac_exec_ext in '' $ac_executable_extensions; do
3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3566 ac_cv_prog_CC="${ac_tool_prefix}cc"
3567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3577 if test -n "$CC"; then
3578 { echo "$as_me:$LINENO: result: $CC" >&5
3579 echo "${ECHO_T}$CC" >&6; }
3581 { echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6; }
3588 if test -z "$CC"; then
3589 # Extract the first word of "cc", so it can be a program name with args.
3590 set dummy cc; ac_word=$2
3591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3593 if test "${ac_cv_prog_CC+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test -n "$CC"; then
3597 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3608 ac_prog_rejected=yes
3612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3619 if test $ac_prog_rejected = yes; then
3620 # We found a bogon in the path, so make sure we never use it.
3621 set dummy $ac_cv_prog_CC
3623 if test $# != 0; then
3624 # We chose a different compiler from the bogus one.
3625 # However, it has the same basename, so the bogon will be chosen
3626 # first if we set CC to just the basename; use the full file name.
3628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3634 if test -n "$CC"; then
3635 { echo "$as_me:$LINENO: result: $CC" >&5
3636 echo "${ECHO_T}$CC" >&6; }
3638 { echo "$as_me:$LINENO: result: no" >&5
3639 echo "${ECHO_T}no" >&6; }
3644 if test -z "$CC"; then
3645 if test -n "$ac_tool_prefix"; then
3646 for ac_prog in cl.exe
3648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3652 if test "${ac_cv_prog_CC+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 if test -n "$CC"; then
3677 { echo "$as_me:$LINENO: result: $CC" >&5
3678 echo "${ECHO_T}$CC" >&6; }
3680 { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3685 test -n "$CC" && break
3688 if test -z "$CC"; then
3690 for ac_prog in cl.exe
3692 # Extract the first word of "$ac_prog", so it can be a program name with args.
3693 set dummy $ac_prog; ac_word=$2
3694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3696 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3697 echo $ECHO_N "(cached) $ECHO_C" >&6
3699 if test -n "$ac_ct_CC"; then
3700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 test -z "$as_dir" && as_dir=.
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3709 ac_cv_prog_ac_ct_CC="$ac_prog"
3710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3720 if test -n "$ac_ct_CC"; then
3721 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3722 echo "${ECHO_T}$ac_ct_CC" >&6; }
3724 { echo "$as_me:$LINENO: result: no" >&5
3725 echo "${ECHO_T}no" >&6; }
3729 test -n "$ac_ct_CC" && break
3732 if test "x$ac_ct_CC" = x; then
3735 case $cross_compiling:$ac_tool_warned in
3737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3738 whose name does not start with the host triplet. If you think this
3739 configuration is useful to you, please write to autoconf@gnu.org." >&5
3740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3741 whose name does not start with the host triplet. If you think this
3742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3743 ac_tool_warned=yes ;;
3752 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3753 See \`config.log' for more details." >&5
3754 echo "$as_me: error: no acceptable C compiler found in \$PATH
3755 See \`config.log' for more details." >&2;}
3756 { (exit 1); exit 1; }; }
3758 # Provide some information about the compiler.
3759 echo "$as_me:$LINENO: checking for C compiler version" >&5
3760 ac_compiler=`set X $ac_compile; echo $2`
3761 { (ac_try="$ac_compiler --version >&5"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compiler --version >&5") 2>&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }
3771 { (ac_try="$ac_compiler -v >&5"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_compiler -v >&5") 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }
3781 { (ac_try="$ac_compiler -V >&5"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_compiler -V >&5") 2>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }
3792 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3793 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3794 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3815 rm -f conftest.$ac_objext
3816 if { (ac_try="$ac_compile"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_compile") 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3830 { (case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3835 (eval "$ac_try") 2>&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; } &&
3839 { ac_try='test -s conftest.$ac_objext'
3840 { (case "(($ac_try" in
3841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842 *) ac_try_echo=$ac_try;;
3844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3845 (eval "$ac_try") 2>&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }; }; then
3851 echo "$as_me: failed program was:" >&5
3852 sed 's/^/| /' conftest.$ac_ext >&5
3857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3861 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3862 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3863 GCC=`test $ac_compiler_gnu = yes && echo yes`
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3867 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3868 if test "${ac_cv_prog_cc_g+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 ac_save_c_werror_flag=$ac_c_werror_flag
3872 ac_c_werror_flag=yes
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3897 (eval "$ac_compile") 2>conftest.er1
3899 grep -v '^ *+' conftest.er1 >conftest.err
3901 cat conftest.err >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); } &&
3904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3905 { (case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3910 (eval "$ac_try") 2>&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; } &&
3914 { ac_try='test -s conftest.$ac_objext'
3915 { (case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3920 (eval "$ac_try") 2>&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3945 rm -f conftest.$ac_objext
3946 if { (ac_try="$ac_compile"
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_compile") 2>conftest.er1
3954 grep -v '^ *+' conftest.er1 >conftest.err
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } &&
3959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3960 { (case "(($ac_try" in
3961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3962 *) ac_try_echo=$ac_try;;
3964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3965 (eval "$ac_try") 2>&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); }; } &&
3969 { ac_try='test -s conftest.$ac_objext'
3970 { (case "(($ac_try" in
3971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3972 *) ac_try_echo=$ac_try;;
3974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3975 (eval "$ac_try") 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; }; then
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 ac_c_werror_flag=$ac_save_c_werror_flag
3986 cat >conftest.$ac_ext <<_ACEOF
3989 cat confdefs.h >>conftest.$ac_ext
3990 cat >>conftest.$ac_ext <<_ACEOF
3991 /* end confdefs.h. */
4001 rm -f conftest.$ac_objext
4002 if { (ac_try="$ac_compile"
4004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4005 *) ac_try_echo=$ac_try;;
4007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4008 (eval "$ac_compile") 2>conftest.er1
4010 grep -v '^ *+' conftest.er1 >conftest.err
4012 cat conftest.err >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); } &&
4015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4016 { (case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_try") 2>&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); }; } &&
4025 { ac_try='test -s conftest.$ac_objext'
4026 { (case "(($ac_try" in
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_try") 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; }; then
4037 echo "$as_me: failed program was:" >&5
4038 sed 's/^/| /' conftest.$ac_ext >&5
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 ac_c_werror_flag=$ac_save_c_werror_flag
4052 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4053 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4054 if test "$ac_test_CFLAGS" = set; then
4055 CFLAGS=$ac_save_CFLAGS
4056 elif test $ac_cv_prog_cc_g = yes; then
4057 if test "$GCC" = yes; then
4063 if test "$GCC" = yes; then
4069 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4070 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4071 if test "${ac_cv_prog_cc_c89+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 ac_cv_prog_cc_c89=no
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4084 #include <sys/types.h>
4085 #include <sys/stat.h>
4086 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4087 struct buf { int x; };
4088 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4089 static char *e (p, i)
4095 static char *f (char * (*g) (char **, int), char **p, ...)
4100 s = g (p, va_arg (v,int));
4105 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4106 function prototypes and stuff, but not '\xHH' hex character constants.
4107 These don't provoke an error unfortunately, instead are silently treated
4108 as 'x'. The following induces an error, until -std is added to get
4109 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4110 array size at least. It's necessary to write '\x00'==0 to get something
4111 that's true only with -std. */
4112 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4114 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4115 inside strings and character constants. */
4117 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4119 int test (int i, double x);
4120 struct s1 {int (*f) (int a);};
4121 struct s2 {int (*f) (double a);};
4122 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4128 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4133 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4134 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4136 CC="$ac_save_CC $ac_arg"
4137 rm -f conftest.$ac_objext
4138 if { (ac_try="$ac_compile"
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_compile") 2>conftest.er1
4146 grep -v '^ *+' conftest.er1 >conftest.err
4148 cat conftest.err >&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4152 { (case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_try") 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; } &&
4161 { ac_try='test -s conftest.$ac_objext'
4162 { (case "(($ac_try" in
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_try") 2>&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; }; then
4171 ac_cv_prog_cc_c89=$ac_arg
4173 echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4179 rm -f core conftest.err conftest.$ac_objext
4180 test "x$ac_cv_prog_cc_c89" != "xno" && break
4182 rm -f conftest.$ac_ext
4187 case "x$ac_cv_prog_cc_c89" in
4189 { echo "$as_me:$LINENO: result: none needed" >&5
4190 echo "${ECHO_T}none needed" >&6; } ;;
4192 { echo "$as_me:$LINENO: result: unsupported" >&5
4193 echo "${ECHO_T}unsupported" >&6; } ;;
4195 CC="$CC $ac_cv_prog_cc_c89"
4196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4197 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 depcc="$CC" am_compiler_list=
4209 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4210 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4211 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4212 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4215 # We make a subdir and do the tests there. Otherwise we can end up
4216 # making bogus files that we don't know about and never remove. For
4217 # instance it was reported that on HP-UX the gcc test will end up
4218 # making a dummy file named `D' -- because `-MD' means `put the output
4221 # Copy depcomp to subdir because otherwise we won't find it if we're
4222 # using a relative directory.
4223 cp "$am_depcomp" conftest.dir
4225 # We will build objects and dependencies in a subdirectory because
4226 # it helps to detect inapplicable dependency modes. For instance
4227 # both Tru64's cc and ICC support -MD to output dependencies as a
4228 # side effect of compilation, but ICC will put the dependencies in
4229 # the current directory while Tru64 will put them in the object
4233 am_cv_CC_dependencies_compiler_type=none
4234 if test "$am_compiler_list" = ""; then
4235 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4237 for depmode in $am_compiler_list; do
4238 # Setup a source with many dependencies, because some compilers
4239 # like to wrap large dependency lists on column 80 (with \), and
4240 # we should not choose a depcomp mode which is confused by this.
4242 # We need to recreate these files for each test, as the compiler may
4243 # overwrite some of them when testing with obscure command lines.
4244 # This happens at least with the AIX C compiler.
4246 for i in 1 2 3 4 5 6; do
4247 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4250 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4254 # after this tag, mechanisms are not by side-effect, so they'll
4255 # only be used when explicitly requested
4256 if test "x$enable_dependency_tracking" = xyes; then
4264 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4265 # mode. It turns out that the SunPro C++ compiler does not properly
4266 # handle `-M -o', and we need to detect this.
4267 if depmode=$depmode \
4268 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4269 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4270 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4271 >/dev/null 2>conftest.err &&
4272 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4273 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4274 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4275 # icc doesn't choke on unknown options, it will just issue warnings
4276 # (even with -Werror). So we grep stderr for any message
4277 # that says an option was ignored.
4278 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4279 am_cv_CC_dependencies_compiler_type=$depmode
4288 am_cv_CC_dependencies_compiler_type=none
4292 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4293 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4294 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4299 test "x$enable_dependency_tracking" != xno \
4300 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4302 am__fastdepCC_FALSE='#'
4304 am__fastdepCC_TRUE='#'
4305 am__fastdepCC_FALSE=
4312 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4313 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4314 if test "${am_cv_prog_cc_stdc+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4317 am_cv_prog_cc_stdc=no
4319 # Don't try gcc -ansi; that turns off useful extensions and
4320 # breaks some systems' header files.
4321 # AIX -qlanglvl=ansi
4322 # Ultrix and OSF/1 -std1
4323 # HP-UX 10.20 and later -Ae
4324 # HP-UX older versions -Aa -D_HPUX_SOURCE
4325 # SVR4 -Xc -D__EXTENSIONS__
4326 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4328 CC="$ac_save_CC $ac_arg"
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4337 #include <sys/types.h>
4338 #include <sys/stat.h>
4339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4340 struct buf { int x; };
4341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4342 static char *e (p, i)
4348 static char *f (char * (*g) (char **, int), char **p, ...)
4353 s = g (p, va_arg (v,int));
4357 int test (int i, double x);
4358 struct s1 {int (*f) (int a);};
4359 struct s2 {int (*f) (double a);};
4360 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4368 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4374 rm -f conftest.$ac_objext
4375 if { (ac_try="$ac_compile"
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_compile") 2>conftest.er1
4383 grep -v '^ *+' conftest.er1 >conftest.err
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } &&
4388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4389 { (case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4394 (eval "$ac_try") 2>&5
4396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); }; } &&
4398 { ac_try='test -s conftest.$ac_objext'
4399 { (case "(($ac_try" in
4400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404 (eval "$ac_try") 2>&5
4406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407 (exit $ac_status); }; }; then
4408 am_cv_prog_cc_stdc="$ac_arg"; break
4410 echo "$as_me: failed program was:" >&5
4411 sed 's/^/| /' conftest.$ac_ext >&5
4416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4422 if test -z "$am_cv_prog_cc_stdc"; then
4423 { echo "$as_me:$LINENO: result: none needed" >&5
4424 echo "${ECHO_T}none needed" >&6; }
4426 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4427 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4429 case "x$am_cv_prog_cc_stdc" in
4431 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4435 ac_cpp='$CPP $CPPFLAGS'
4436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4439 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4440 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4441 # On Suns, sometimes $CPP names a directory.
4442 if test -n "$CPP" && test -d "$CPP"; then
4445 if test -z "$CPP"; then
4446 if test "${ac_cv_prog_CPP+set}" = set; then
4447 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 # Double quotes because CPP needs to be expanded
4450 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4453 for ac_c_preproc_warn_flag in '' yes
4455 # Use a header file that comes with gcc, so configuring glibc
4456 # with a fresh cross-compiler works.
4457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4458 # <limits.h> exists even on freestanding compilers.
4459 # On the NeXT, cc -E runs the code through the compiler's parser,
4460 # not just through cpp. "Syntax error" is here to catch this case.
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4468 # include <limits.h>
4470 # include <assert.h>
4474 if { (ac_try="$ac_cpp conftest.$ac_ext"
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4482 grep -v '^ *+' conftest.er1 >conftest.err
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } >/dev/null; then
4487 if test -s conftest.err; then
4488 ac_cpp_err=$ac_c_preproc_warn_flag
4489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4496 if test -z "$ac_cpp_err"; then
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 # Broken: fails on valid input.
4506 rm -f conftest.err conftest.$ac_ext
4508 # OK, works on sane cases. Now check whether nonexistent headers
4509 # can be detected and how.
4510 cat >conftest.$ac_ext <<_ACEOF
4513 cat confdefs.h >>conftest.$ac_ext
4514 cat >>conftest.$ac_ext <<_ACEOF
4515 /* end confdefs.h. */
4516 #include <ac_nonexistent.h>
4518 if { (ac_try="$ac_cpp conftest.$ac_ext"
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4526 grep -v '^ *+' conftest.er1 >conftest.err
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } >/dev/null; then
4531 if test -s conftest.err; then
4532 ac_cpp_err=$ac_c_preproc_warn_flag
4533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4540 if test -z "$ac_cpp_err"; then
4541 # Broken: success on invalid input.
4544 echo "$as_me: failed program was:" >&5
4545 sed 's/^/| /' conftest.$ac_ext >&5
4547 # Passes both tests.
4552 rm -f conftest.err conftest.$ac_ext
4555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4556 rm -f conftest.err conftest.$ac_ext
4557 if $ac_preproc_ok; then
4569 { echo "$as_me:$LINENO: result: $CPP" >&5
4570 echo "${ECHO_T}$CPP" >&6; }
4572 for ac_c_preproc_warn_flag in '' yes
4574 # Use a header file that comes with gcc, so configuring glibc
4575 # with a fresh cross-compiler works.
4576 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4577 # <limits.h> exists even on freestanding compilers.
4578 # On the NeXT, cc -E runs the code through the compiler's parser,
4579 # not just through cpp. "Syntax error" is here to catch this case.
4580 cat >conftest.$ac_ext <<_ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */
4587 # include <limits.h>
4589 # include <assert.h>
4593 if { (ac_try="$ac_cpp conftest.$ac_ext"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } >/dev/null; then
4606 if test -s conftest.err; then
4607 ac_cpp_err=$ac_c_preproc_warn_flag
4608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4615 if test -z "$ac_cpp_err"; then
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 # Broken: fails on valid input.
4625 rm -f conftest.err conftest.$ac_ext
4627 # OK, works on sane cases. Now check whether nonexistent headers
4628 # can be detected and how.
4629 cat >conftest.$ac_ext <<_ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 #include <ac_nonexistent.h>
4637 if { (ac_try="$ac_cpp conftest.$ac_ext"
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } >/dev/null; then
4650 if test -s conftest.err; then
4651 ac_cpp_err=$ac_c_preproc_warn_flag
4652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4659 if test -z "$ac_cpp_err"; then
4660 # Broken: success on invalid input.
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4666 # Passes both tests.
4671 rm -f conftest.err conftest.$ac_ext
4674 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4675 rm -f conftest.err conftest.$ac_ext
4676 if $ac_preproc_ok; then
4679 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4680 See \`config.log' for more details." >&5
4681 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4682 See \`config.log' for more details." >&2;}
4683 { (exit 1); exit 1; }; }
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4694 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4695 if test "${ac_cv_path_GREP+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 # Extract the first word of "grep ggrep" to use in msg output
4699 if test -z "$GREP"; then
4700 set dummy grep ggrep; ac_prog_name=$2
4701 if test "${ac_cv_path_GREP+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 ac_path_GREP_found=false
4705 # Loop through the user's path and test for each of PROGNAME-LIST
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4710 test -z "$as_dir" && as_dir=.
4711 for ac_prog in grep ggrep; do
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4714 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4715 # Check for GNU ac_path_GREP and select it if it is found.
4716 # Check for GNU $ac_path_GREP
4717 case `"$ac_path_GREP" --version 2>&1` in
4719 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4722 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4725 cat "conftest.in" "conftest.in" >"conftest.tmp"
4726 mv "conftest.tmp" "conftest.in"
4727 cp "conftest.in" "conftest.nl"
4728 echo 'GREP' >> "conftest.nl"
4729 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4731 ac_count=`expr $ac_count + 1`
4732 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4733 # Best one so far, save it but keep looking for a better one
4734 ac_cv_path_GREP="$ac_path_GREP"
4735 ac_path_GREP_max=$ac_count
4737 # 10*(2^10) chars as input seems more than enough
4738 test $ac_count -gt 10 && break
4740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744 $ac_path_GREP_found && break 3
4754 GREP="$ac_cv_path_GREP"
4755 if test -z "$GREP"; then
4756 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4757 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4758 { (exit 1); exit 1; }; }
4762 ac_cv_path_GREP=$GREP
4767 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4768 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4769 GREP="$ac_cv_path_GREP"
4772 { echo "$as_me:$LINENO: checking for egrep" >&5
4773 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4774 if test "${ac_cv_path_EGREP+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4777 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4778 then ac_cv_path_EGREP="$GREP -E"
4780 # Extract the first word of "egrep" to use in msg output
4781 if test -z "$EGREP"; then
4782 set dummy egrep; ac_prog_name=$2
4783 if test "${ac_cv_path_EGREP+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 ac_path_EGREP_found=false
4787 # Loop through the user's path and test for each of PROGNAME-LIST
4788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4792 test -z "$as_dir" && as_dir=.
4793 for ac_prog in egrep; do
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4796 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4797 # Check for GNU ac_path_EGREP and select it if it is found.
4798 # Check for GNU $ac_path_EGREP
4799 case `"$ac_path_EGREP" --version 2>&1` in
4801 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4804 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4807 cat "conftest.in" "conftest.in" >"conftest.tmp"
4808 mv "conftest.tmp" "conftest.in"
4809 cp "conftest.in" "conftest.nl"
4810 echo 'EGREP' >> "conftest.nl"
4811 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4813 ac_count=`expr $ac_count + 1`
4814 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4815 # Best one so far, save it but keep looking for a better one
4816 ac_cv_path_EGREP="$ac_path_EGREP"
4817 ac_path_EGREP_max=$ac_count
4819 # 10*(2^10) chars as input seems more than enough
4820 test $ac_count -gt 10 && break
4822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4826 $ac_path_EGREP_found && break 3
4836 EGREP="$ac_cv_path_EGREP"
4837 if test -z "$EGREP"; then
4838 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4839 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4840 { (exit 1); exit 1; }; }
4844 ac_cv_path_EGREP=$EGREP
4850 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4851 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4852 EGREP="$ac_cv_path_EGREP"
4855 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4856 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4857 if test "${ac_cv_header_stdc+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4879 rm -f conftest.$ac_objext
4880 if { (ac_try="$ac_compile"
4882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4883 *) ac_try_echo=$ac_try;;
4885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4886 (eval "$ac_compile") 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4894 { (case "(($ac_try" in
4895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896 *) ac_try_echo=$ac_try;;
4898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4899 (eval "$ac_try") 2>&5
4901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4902 (exit $ac_status); }; } &&
4903 { ac_try='test -s conftest.$ac_objext'
4904 { (case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4909 (eval "$ac_try") 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; }; then
4913 ac_cv_header_stdc=yes
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4918 ac_cv_header_stdc=no
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 if test $ac_cv_header_stdc = yes; then
4924 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4925 cat >conftest.$ac_ext <<_ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4935 $EGREP "memchr" >/dev/null 2>&1; then
4938 ac_cv_header_stdc=no
4944 if test $ac_cv_header_stdc = yes; then
4945 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "free" >/dev/null 2>&1; then
4959 ac_cv_header_stdc=no
4965 if test $ac_cv_header_stdc = yes; then
4966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4967 if test "$cross_compiling" = yes; then
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4978 #if ((' ' & 0x0FF) == 0x020)
4979 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4980 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4982 # define ISLOWER(c) \
4983 (('a' <= (c) && (c) <= 'i') \
4984 || ('j' <= (c) && (c) <= 'r') \
4985 || ('s' <= (c) && (c) <= 'z'))
4986 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4989 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4994 for (i = 0; i < 256; i++)
4995 if (XOR (islower (i), ISLOWER (i))
4996 || toupper (i) != TOUPPER (i))
5001 rm -f conftest$ac_exeext
5002 if { (ac_try="$ac_link"
5004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5005 *) ac_try_echo=$ac_try;;
5007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5008 (eval "$ac_link") 2>&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5012 { (case "(($ac_try" in
5013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5014 *) ac_try_echo=$ac_try;;
5016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5017 (eval "$ac_try") 2>&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); }; }; then
5023 echo "$as_me: program exited with status $ac_status" >&5
5024 echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5028 ac_cv_header_stdc=no
5030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5036 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5037 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5038 if test $ac_cv_header_stdc = yes; then
5040 cat >>confdefs.h <<\_ACEOF
5041 #define STDC_HEADERS 1
5049 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5050 if test -n "$ac_tool_prefix"; then
5051 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5052 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5053 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5055 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5060 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 test -z "$as_dir" && as_dir=.
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5070 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5082 if test -n "$PKG_CONFIG"; then
5083 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5084 echo "${ECHO_T}$PKG_CONFIG" >&6; }
5086 { echo "$as_me:$LINENO: result: no" >&5
5087 echo "${ECHO_T}no" >&6; }
5092 if test -z "$ac_cv_path_PKG_CONFIG"; then
5093 ac_pt_PKG_CONFIG=$PKG_CONFIG
5094 # Extract the first word of "pkg-config", so it can be a program name with args.
5095 set dummy pkg-config; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 case $ac_pt_PKG_CONFIG in
5103 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5125 if test -n "$ac_pt_PKG_CONFIG"; then
5126 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5127 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5129 { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5133 if test "x$ac_pt_PKG_CONFIG" = x; then
5136 case $cross_compiling:$ac_tool_warned in
5138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5139 whose name does not start with the host triplet. If you think this
5140 configuration is useful to you, please write to autoconf@gnu.org." >&5
5141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5142 whose name does not start with the host triplet. If you think this
5143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5144 ac_tool_warned=yes ;;
5146 PKG_CONFIG=$ac_pt_PKG_CONFIG
5149 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5153 if test -n "$PKG_CONFIG"; then
5154 _pkg_min_version=0.9.0
5155 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5156 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5157 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5158 { echo "$as_me:$LINENO: result: yes" >&5
5159 echo "${ECHO_T}yes" >&6; }
5161 { echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6; }
5169 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
5170 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
5172 if test -n "$PKG_CONFIG"; then
5173 if test -n "$PACKAGE_CFLAGS"; then
5174 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
5176 if test -n "$PKG_CONFIG" && \
5177 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libgnomeui-2.0 esound \"") >&5
5178 ($PKG_CONFIG --exists --print-errors " libgnomeui-2.0 esound ") 2>&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; then
5182 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " libgnomeui-2.0 esound " 2>/dev/null`
5190 if test -n "$PKG_CONFIG"; then
5191 if test -n "$PACKAGE_LIBS"; then
5192 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
5194 if test -n "$PKG_CONFIG" && \
5195 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" libgnomeui-2.0 esound \"") >&5
5196 ($PKG_CONFIG --exists --print-errors " libgnomeui-2.0 esound ") 2>&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; then
5200 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs " libgnomeui-2.0 esound " 2>/dev/null`
5211 if test $pkg_failed = yes; then
5213 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5214 _pkg_short_errors_supported=yes
5216 _pkg_short_errors_supported=no
5218 if test $_pkg_short_errors_supported = yes; then
5219 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " libgnomeui-2.0 esound "`
5221 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " libgnomeui-2.0 esound "`
5223 # Put the nasty error message in config.log where it belongs
5224 echo "$PACKAGE_PKG_ERRORS" >&5
5226 { { echo "$as_me:$LINENO: error: Package requirements ( libgnomeui-2.0 esound ) were not met:
5230 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5231 installed software in a non-standard prefix.
5233 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5234 and PACKAGE_LIBS to avoid the need to call pkg-config.
5235 See the pkg-config man page for more details.
5237 echo "$as_me: error: Package requirements ( libgnomeui-2.0 esound ) were not met:
5241 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5242 installed software in a non-standard prefix.
5244 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5245 and PACKAGE_LIBS to avoid the need to call pkg-config.
5246 See the pkg-config man page for more details.
5248 { (exit 1); exit 1; }; }
5249 elif test $pkg_failed = untried; then
5250 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5251 is in your PATH or set the PKG_CONFIG environment variable to the full
5254 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5255 and PACKAGE_LIBS to avoid the need to call pkg-config.
5256 See the pkg-config man page for more details.
5258 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5259 See \`config.log' for more details." >&5
5260 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5261 is in your PATH or set the PKG_CONFIG environment variable to the full
5264 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5265 and PACKAGE_LIBS to avoid the need to call pkg-config.
5266 See the pkg-config man page for more details.
5268 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5269 See \`config.log' for more details." >&2;}
5270 { (exit 1); exit 1; }; }
5272 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
5273 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
5274 { echo "$as_me:$LINENO: result: yes" >&5
5275 echo "${ECHO_T}yes" >&6; }
5282 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5283 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5284 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 ac_check_lib_save_LIBS=$LIBS
5289 cat >conftest.$ac_ext <<_ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5296 /* Override any GCC internal prototype to avoid an error.
5297 Use char because int might match the return type of a GCC
5298 builtin and then its argument prototype would still apply. */
5302 char glXQueryVersion ();
5306 return glXQueryVersion ();
5311 rm -f conftest.$ac_objext conftest$ac_exeext
5312 if { (ac_try="$ac_link"
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_link") 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } &&
5325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5326 { (case "(($ac_try" in
5327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5328 *) ac_try_echo=$ac_try;;
5330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5331 (eval "$ac_try") 2>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; } &&
5335 { ac_try='test -s conftest$ac_exeext'
5336 { (case "(($ac_try" in
5337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5338 *) ac_try_echo=$ac_try;;
5340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5341 (eval "$ac_try") 2>&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; }; then
5345 ac_cv_lib_GL_glXQueryVersion=yes
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 ac_cv_lib_GL_glXQueryVersion=no
5353 rm -f core conftest.err conftest.$ac_objext \
5354 conftest$ac_exeext conftest.$ac_ext
5355 LIBS=$ac_check_lib_save_LIBS
5357 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5358 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5359 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define HAVE_LIBGL 1
5369 GETTEXT_PACKAGE=dream
5371 cat >>confdefs.h <<_ACEOF
5372 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5377 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5387 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5388 inttypes.h stdint.h unistd.h
5390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5391 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5393 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5394 echo $ECHO_N "(cached) $ECHO_C" >&6
5396 cat >conftest.$ac_ext <<_ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h. */
5402 $ac_includes_default
5404 #include <$ac_header>
5406 rm -f conftest.$ac_objext
5407 if { (ac_try="$ac_compile"
5409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5410 *) ac_try_echo=$ac_try;;
5412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5413 (eval "$ac_compile") 2>conftest.er1
5415 grep -v '^ *+' conftest.er1 >conftest.err
5417 cat conftest.err >&5
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); } &&
5420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5421 { (case "(($ac_try" in
5422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5423 *) ac_try_echo=$ac_try;;
5425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5426 (eval "$ac_try") 2>&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); }; } &&
5430 { ac_try='test -s conftest.$ac_objext'
5431 { (case "(($ac_try" in
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436 (eval "$ac_try") 2>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 eval "$as_ac_Header=yes"
5442 echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5445 eval "$as_ac_Header=no"
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_res=`eval echo '${'$as_ac_Header'}'`
5451 { echo "$as_me:$LINENO: result: $ac_res" >&5
5452 echo "${ECHO_T}$ac_res" >&6; }
5453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5454 cat >>confdefs.h <<_ACEOF
5455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5465 for ac_header in locale.h
5467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 ac_res=`eval echo '${'$as_ac_Header'}'`
5475 { echo "$as_me:$LINENO: result: $ac_res" >&5
5476 echo "${ECHO_T}$ac_res" >&6; }
5478 # Is the header compilable?
5479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5481 cat >conftest.$ac_ext <<_ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5488 #include <$ac_header>
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_compile") 2>conftest.er1
5499 grep -v '^ *+' conftest.er1 >conftest.err
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } &&
5504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5505 { (case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_try") 2>&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; } &&
5514 { ac_try='test -s conftest.$ac_objext'
5515 { (case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_try") 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; }; then
5524 ac_header_compiler=yes
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.$ac_ext >&5
5529 ac_header_compiler=no
5532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5534 echo "${ECHO_T}$ac_header_compiler" >&6; }
5536 # Is the header present?
5537 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5539 cat >conftest.$ac_ext <<_ACEOF
5542 cat confdefs.h >>conftest.$ac_ext
5543 cat >>conftest.$ac_ext <<_ACEOF
5544 /* end confdefs.h. */
5545 #include <$ac_header>
5547 if { (ac_try="$ac_cpp conftest.$ac_ext"
5549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5550 *) ac_try_echo=$ac_try;;
5552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5555 grep -v '^ *+' conftest.er1 >conftest.err
5557 cat conftest.err >&5
5558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5559 (exit $ac_status); } >/dev/null; then
5560 if test -s conftest.err; then
5561 ac_cpp_err=$ac_c_preproc_warn_flag
5562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5569 if test -z "$ac_cpp_err"; then
5570 ac_header_preproc=yes
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 ac_header_preproc=no
5578 rm -f conftest.err conftest.$ac_ext
5579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5580 echo "${ECHO_T}$ac_header_preproc" >&6; }
5582 # So? What about this header?
5583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5589 ac_header_preproc=yes
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 eval "$as_ac_Header=\$ac_header_preproc"
5614 ac_res=`eval echo '${'$as_ac_Header'}'`
5615 { echo "$as_me:$LINENO: result: $ac_res" >&5
5616 echo "${ECHO_T}$ac_res" >&6; }
5619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5620 cat >>confdefs.h <<_ACEOF
5621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5628 if test $ac_cv_header_locale_h = yes; then
5629 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
5630 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
5631 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 cat >conftest.$ac_ext <<_ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h. */
5649 rm -f conftest.$ac_objext conftest$ac_exeext
5650 if { (ac_try="$ac_link"
5652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_link") 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } &&
5663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5664 { (case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_try") 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest$ac_exeext'
5674 { (case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5679 (eval "$ac_try") 2>&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); }; }; then
5683 am_cv_val_LC_MESSAGES=yes
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5688 am_cv_val_LC_MESSAGES=no
5691 rm -f core conftest.err conftest.$ac_objext \
5692 conftest$ac_exeext conftest.$ac_ext
5694 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
5695 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
5696 if test $am_cv_val_LC_MESSAGES = yes; then
5698 cat >>confdefs.h <<\_ACEOF
5699 #define HAVE_LC_MESSAGES 1
5707 gt_cv_have_gettext=no
5713 if test "${ac_cv_header_libintl_h+set}" = set; then
5714 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5715 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5716 if test "${ac_cv_header_libintl_h+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5720 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5722 # Is the header compilable?
5723 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
5724 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 $ac_includes_default
5732 #include <libintl.h>
5734 rm -f conftest.$ac_objext
5735 if { (ac_try="$ac_compile"
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5749 { (case "(($ac_try" in
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_try") 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_try") 2>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }; }; then
5768 ac_header_compiler=yes
5770 echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5773 ac_header_compiler=no
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5778 echo "${ECHO_T}$ac_header_compiler" >&6; }
5780 # Is the header present?
5781 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
5782 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
5783 cat >conftest.$ac_ext <<_ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 #include <libintl.h>
5791 if { (ac_try="$ac_cpp conftest.$ac_ext"
5793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794 *) ac_try_echo=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } >/dev/null; then
5804 if test -s conftest.err; then
5805 ac_cpp_err=$ac_c_preproc_warn_flag
5806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5813 if test -z "$ac_cpp_err"; then
5814 ac_header_preproc=yes
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 ac_header_preproc=no
5822 rm -f conftest.err conftest.$ac_ext
5823 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5824 echo "${ECHO_T}$ac_header_preproc" >&6; }
5826 # So? What about this header?
5827 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5829 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5830 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5831 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
5832 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
5833 ac_header_preproc=yes
5836 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
5837 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
5838 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
5839 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
5840 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
5841 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
5842 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
5843 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5844 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
5845 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
5846 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
5847 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
5851 { echo "$as_me:$LINENO: checking for libintl.h" >&5
5852 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
5853 if test "${ac_cv_header_libintl_h+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 ac_cv_header_libintl_h=$ac_header_preproc
5858 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
5859 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
5862 if test $ac_cv_header_libintl_h = yes; then
5863 gt_cv_func_dgettext_libintl="no"
5864 libintl_extra_libs=""
5867 # First check in libc
5869 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
5870 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
5871 if test "${gt_cv_func_ngettext_libc+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5881 #include <libintl.h>
5886 return !ngettext ("","", 1)
5891 rm -f conftest.$ac_objext conftest$ac_exeext
5892 if { (ac_try="$ac_link"
5894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5895 *) ac_try_echo=$ac_try;;
5897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5898 (eval "$ac_link") 2>conftest.er1
5900 grep -v '^ *+' conftest.er1 >conftest.err
5902 cat conftest.err >&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } &&
5905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5906 { (case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_try") 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest$ac_exeext'
5916 { (case "(($ac_try" in
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_try") 2>&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 gt_cv_func_ngettext_libc=yes
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 gt_cv_func_ngettext_libc=no
5933 rm -f core conftest.err conftest.$ac_objext \
5934 conftest$ac_exeext conftest.$ac_ext
5937 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
5938 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
5940 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
5941 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
5942 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
5943 if test "${gt_cv_func_dgettext_libc+set}" = set; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 cat >conftest.$ac_ext <<_ACEOF
5949 cat confdefs.h >>conftest.$ac_ext
5950 cat >>conftest.$ac_ext <<_ACEOF
5951 /* end confdefs.h. */
5953 #include <libintl.h>
5958 return !dgettext ("","")
5963 rm -f conftest.$ac_objext conftest$ac_exeext
5964 if { (ac_try="$ac_link"
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_link") 2>conftest.er1
5972 grep -v '^ *+' conftest.er1 >conftest.err
5974 cat conftest.err >&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5978 { (case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_try") 2>&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; } &&
5987 { ac_try='test -s conftest$ac_exeext'
5988 { (case "(($ac_try" in
5989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5990 *) ac_try_echo=$ac_try;;
5992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5993 (eval "$ac_try") 2>&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; }; then
5997 gt_cv_func_dgettext_libc=yes
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 gt_cv_func_dgettext_libc=no
6005 rm -f core conftest.err conftest.$ac_objext \
6006 conftest$ac_exeext conftest.$ac_ext
6009 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6010 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6013 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6015 for ac_func in bind_textdomain_codeset
6017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6031 #define $ac_func innocuous_$ac_func
6033 /* System header to define __stub macros and hopefully few prototypes,
6034 which can conflict with char $ac_func (); below.
6035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6036 <limits.h> exists even on freestanding compilers. */
6039 # include <limits.h>
6041 # include <assert.h>
6046 /* Override any GCC internal prototype to avoid an error.
6047 Use char because int might match the return type of a GCC
6048 builtin and then its argument prototype would still apply. */
6053 /* The GNU C library defines this for functions which it implements
6054 to always fail with ENOSYS. Some functions are actually named
6055 something starting with __ and the normal name is an alias. */
6056 #if defined __stub_$ac_func || defined __stub___$ac_func
6068 rm -f conftest.$ac_objext conftest$ac_exeext
6069 if { (ac_try="$ac_link"
6071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6072 *) ac_try_echo=$ac_try;;
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_link") 2>conftest.er1
6077 grep -v '^ *+' conftest.er1 >conftest.err
6079 cat conftest.err >&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } &&
6082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6083 { (case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_try") 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; } &&
6092 { ac_try='test -s conftest$ac_exeext'
6093 { (case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_try") 2>&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; }; then
6102 eval "$as_ac_var=yes"
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6107 eval "$as_ac_var=no"
6110 rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6113 ac_res=`eval echo '${'$as_ac_var'}'`
6114 { echo "$as_me:$LINENO: result: $ac_res" >&5
6115 echo "${ECHO_T}$ac_res" >&6; }
6116 if test `eval echo '${'$as_ac_var'}'` = yes; then
6117 cat >>confdefs.h <<_ACEOF
6118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6127 # If we don't have everything we want, check in libintl
6129 if test "$gt_cv_func_dgettext_libc" != "yes" \
6130 || test "$gt_cv_func_ngettext_libc" != "yes" \
6131 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6133 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6134 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
6135 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6138 ac_check_lib_save_LIBS=$LIBS
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6147 /* Override any GCC internal prototype to avoid an error.
6148 Use char because int might match the return type of a GCC
6149 builtin and then its argument prototype would still apply. */
6153 char bindtextdomain ();
6157 return bindtextdomain ();
6162 rm -f conftest.$ac_objext conftest$ac_exeext
6163 if { (ac_try="$ac_link"
6165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166 *) ac_try_echo=$ac_try;;
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_link") 2>conftest.er1
6171 grep -v '^ *+' conftest.er1 >conftest.err
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6177 { (case "(($ac_try" in
6178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_try") 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest$ac_exeext'
6187 { (case "(($ac_try" in
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_try") 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_lib_intl_bindtextdomain=yes
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6201 ac_cv_lib_intl_bindtextdomain=no
6204 rm -f core conftest.err conftest.$ac_objext \
6205 conftest$ac_exeext conftest.$ac_ext
6206 LIBS=$ac_check_lib_save_LIBS
6208 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6209 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
6210 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6211 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6212 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6213 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 ac_check_lib_save_LIBS=$LIBS
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6225 /* Override any GCC internal prototype to avoid an error.
6226 Use char because int might match the return type of a GCC
6227 builtin and then its argument prototype would still apply. */
6240 rm -f conftest.$ac_objext conftest$ac_exeext
6241 if { (ac_try="$ac_link"
6243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_link") 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6255 { (case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_try") 2>&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); }; } &&
6264 { ac_try='test -s conftest$ac_exeext'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6274 ac_cv_lib_intl_ngettext=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6279 ac_cv_lib_intl_ngettext=no
6282 rm -f core conftest.err conftest.$ac_objext \
6283 conftest$ac_exeext conftest.$ac_ext
6284 LIBS=$ac_check_lib_save_LIBS
6286 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6287 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6288 if test $ac_cv_lib_intl_ngettext = yes; then
6289 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6290 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
6291 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 ac_check_lib_save_LIBS=$LIBS
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6303 /* Override any GCC internal prototype to avoid an error.
6304 Use char because int might match the return type of a GCC
6305 builtin and then its argument prototype would still apply. */
6318 rm -f conftest.$ac_objext conftest$ac_exeext
6319 if { (ac_try="$ac_link"
6321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6322 *) ac_try_echo=$ac_try;;
6324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6325 (eval "$ac_link") 2>conftest.er1
6327 grep -v '^ *+' conftest.er1 >conftest.err
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } &&
6332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6333 { (case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_try") 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; } &&
6342 { ac_try='test -s conftest$ac_exeext'
6343 { (case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_try") 2>&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); }; }; then
6352 ac_cv_lib_intl_dgettext=yes
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_lib_intl_dgettext=no
6360 rm -f core conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext
6362 LIBS=$ac_check_lib_save_LIBS
6364 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6365 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6366 if test $ac_cv_lib_intl_dgettext = yes; then
6367 gt_cv_func_dgettext_libintl=yes
6375 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6376 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6377 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6378 { echo "$as_me:$LINENO: result: " >&5
6379 echo "${ECHO_T}" >&6; }
6380 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6381 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6382 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 ac_check_lib_save_LIBS=$LIBS
6386 LIBS="-lintl -liconv $LIBS"
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6394 /* Override any GCC internal prototype to avoid an error.
6395 Use char because int might match the return type of a GCC
6396 builtin and then its argument prototype would still apply. */
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_link") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } &&
6423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6424 { (case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_try") 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); }; } &&
6433 { ac_try='test -s conftest$ac_exeext'
6434 { (case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_try") 2>&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); }; }; then
6443 ac_cv_lib_intl_ngettext=yes
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.$ac_ext >&5
6448 ac_cv_lib_intl_ngettext=no
6451 rm -f core conftest.err conftest.$ac_objext \
6452 conftest$ac_exeext conftest.$ac_ext
6453 LIBS=$ac_check_lib_save_LIBS
6455 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6456 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6457 if test $ac_cv_lib_intl_ngettext = yes; then
6458 { echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
6459 echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6; }
6460 if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6463 ac_check_lib_save_LIBS=$LIBS
6464 LIBS="-lintl -liconv $LIBS"
6465 cat >conftest.$ac_ext <<_ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6472 /* Override any GCC internal prototype to avoid an error.
6473 Use char because int might match the return type of a GCC
6474 builtin and then its argument prototype would still apply. */
6482 return dcgettext ();
6487 rm -f conftest.$ac_objext conftest$ac_exeext
6488 if { (ac_try="$ac_link"
6490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6491 *) ac_try_echo=$ac_try;;
6493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6494 (eval "$ac_link") 2>conftest.er1
6496 grep -v '^ *+' conftest.er1 >conftest.err
6498 cat conftest.err >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); } &&
6501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6502 { (case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_try") 2>&5
6509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6510 (exit $ac_status); }; } &&
6511 { ac_try='test -s conftest$ac_exeext'
6512 { (case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_try") 2>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_lib_intl_dcgettext=yes
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 ac_cv_lib_intl_dcgettext=no
6529 rm -f core conftest.err conftest.$ac_objext \
6530 conftest$ac_exeext conftest.$ac_ext
6531 LIBS=$ac_check_lib_save_LIBS
6533 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
6534 echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6; }
6535 if test $ac_cv_lib_intl_dcgettext = yes; then
6536 gt_cv_func_dgettext_libintl=yes
6537 libintl_extra_libs=-liconv
6549 # If we found libintl, then check in it for bind_textdomain_codeset();
6550 # we'll prefer libc if neither have bind_textdomain_codeset(),
6551 # and both have dgettext and ngettext
6553 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
6554 glib_save_LIBS="$LIBS"
6555 LIBS="$LIBS -lintl $libintl_extra_libs"
6556 unset ac_cv_func_bind_textdomain_codeset
6558 for ac_func in bind_textdomain_codeset
6560 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6561 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6563 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 cat >conftest.$ac_ext <<_ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6574 #define $ac_func innocuous_$ac_func
6576 /* System header to define __stub macros and hopefully few prototypes,
6577 which can conflict with char $ac_func (); below.
6578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6579 <limits.h> exists even on freestanding compilers. */
6582 # include <limits.h>
6584 # include <assert.h>
6589 /* Override any GCC internal prototype to avoid an error.
6590 Use char because int might match the return type of a GCC
6591 builtin and then its argument prototype would still apply. */
6596 /* The GNU C library defines this for functions which it implements
6597 to always fail with ENOSYS. Some functions are actually named
6598 something starting with __ and the normal name is an alias. */
6599 #if defined __stub_$ac_func || defined __stub___$ac_func
6611 rm -f conftest.$ac_objext conftest$ac_exeext
6612 if { (ac_try="$ac_link"
6614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615 *) ac_try_echo=$ac_try;;
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618 (eval "$ac_link") 2>conftest.er1
6620 grep -v '^ *+' conftest.er1 >conftest.err
6622 cat conftest.err >&5
6623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624 (exit $ac_status); } &&
6625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6626 { (case "(($ac_try" in
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_try") 2>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest$ac_exeext'
6636 { (case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6641 (eval "$ac_try") 2>&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6645 eval "$as_ac_var=yes"
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 eval "$as_ac_var=no"
6653 rm -f core conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6656 ac_res=`eval echo '${'$as_ac_var'}'`
6657 { echo "$as_me:$LINENO: result: $ac_res" >&5
6658 echo "${ECHO_T}$ac_res" >&6; }
6659 if test `eval echo '${'$as_ac_var'}'` = yes; then
6660 cat >>confdefs.h <<_ACEOF
6661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6667 LIBS="$glib_save_LIBS"
6669 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
6670 gt_cv_func_dgettext_libc=no
6672 if test "$gt_cv_func_dgettext_libc" = "yes" \
6673 && test "$gt_cv_func_ngettext_libc" = "yes"; then
6674 gt_cv_func_dgettext_libintl=no
6680 if test "$gt_cv_func_dgettext_libc" = "yes" \
6681 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
6682 gt_cv_have_gettext=yes
6685 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
6686 INTLLIBS="-lintl $libintl_extra_libs"
6689 if test "$gt_cv_have_gettext" = "yes"; then
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_GETTEXT 1
6695 # Extract the first word of "msgfmt", so it can be a program name with args.
6696 set dummy msgfmt; ac_word=$2
6697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6699 if test "${ac_cv_path_MSGFMT+set}" = set; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6707 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
6708 for ac_dir in $PATH; do
6709 test -z "$ac_dir" && ac_dir=.
6710 if test -f $ac_dir/$ac_word; then
6711 if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
6712 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
6718 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
6722 MSGFMT="$ac_cv_path_MSGFMT"
6723 if test "$MSGFMT" != "no"; then
6724 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
6725 echo "${ECHO_T}$MSGFMT" >&6; }
6727 { echo "$as_me:$LINENO: result: no" >&5
6728 echo "${ECHO_T}no" >&6; }
6730 if test "$MSGFMT" != "no"; then
6731 glib_save_LIBS="$LIBS"
6732 LIBS="$LIBS $INTLLIBS"
6734 for ac_func in dcgettext
6736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6742 cat >conftest.$ac_ext <<_ACEOF