2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="configure.in"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
667 INSTALL_STRIP_PROGRAM
672 MAINTAINER_MODE_FALSE
737 ac_precious_vars='build_alias
751 # Initialize some variables set by options.
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name=s,x,x,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE}'
788 infodir='${datarootdir}/info'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
892 -help | --help | --hel | --he | -h)
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
952 # Obsolete; use --without-fp.
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1041 -site=* | --site=* | --sit=*)
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1086 # Obsolete; use --with-x.
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures this package to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314 --build=BUILD configure for building on BUILD [guessed]
1315 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1319 if test -n "$ac_init_help"; then
1324 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1325 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1326 --enable-maintainer-mode enable make rules and dependencies not useful
1327 (and sometimes confusing) to the casual installer
1328 --disable-dependency-tracking Speeds up one-time builds
1329 --enable-dependency-tracking Do not reject slow dependency extractors
1331 Some influential environment variables:
1332 CC C compiler command
1333 CFLAGS C compiler flags
1334 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1335 nonstandard directory <lib dir>
1336 LIBS libraries to pass to the linker, e.g. -l<library>
1337 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1338 you have headers in a nonstandard directory <include dir>
1340 PKG_CONFIG path to pkg-config utility
1342 C compiler flags for PACKAGE, overriding pkg-config
1344 linker flags for PACKAGE, overriding pkg-config
1346 Use these variables to override the choices made by `configure' or to help
1347 it to find libraries and programs with nonstandard names/locations.
1353 if test "$ac_init_help" = "recursive"; then
1354 # If there are subdirs, report their specific --help.
1355 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1356 test -d "$ac_dir" || continue
1360 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1362 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1363 # A ".." for each directory in $ac_dir_suffix.
1364 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1365 case $ac_top_builddir_sub in
1366 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1370 ac_abs_top_builddir=$ac_pwd
1371 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1372 # for backward compatibility:
1373 ac_top_builddir=$ac_top_build_prefix
1376 .) # We are building in place.
1378 ac_top_srcdir=$ac_top_builddir_sub
1379 ac_abs_top_srcdir=$ac_pwd ;;
1380 [\\/]* | ?:[\\/]* ) # Absolute name.
1381 ac_srcdir=$srcdir$ac_dir_suffix;
1382 ac_top_srcdir=$srcdir
1383 ac_abs_top_srcdir=$srcdir ;;
1385 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1386 ac_top_srcdir=$ac_top_build_prefix$srcdir
1387 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1389 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1391 cd "$ac_dir" || { ac_status=$?; continue; }
1392 # Check for guested configure.
1393 if test -f "$ac_srcdir/configure.gnu"; then
1395 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1396 elif test -f "$ac_srcdir/configure"; then
1398 $SHELL "$ac_srcdir/configure" --help=recursive
1400 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1402 cd "$ac_pwd" || { ac_status=$?; break; }
1406 test -n "$ac_init_help" && exit $ac_status
1407 if $ac_init_version; then
1410 generated by GNU Autoconf 2.61
1412 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1413 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1414 This configure script is free software; the Free Software Foundation
1415 gives unlimited permission to copy, distribute and modify it.
1419 cat >config.log <<_ACEOF
1420 This file contains any messages produced by compilers while
1421 running configure, to aid debugging if configure makes a mistake.
1423 It was created by $as_me, which was
1424 generated by GNU Autoconf 2.61. Invocation command line was
1436 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1437 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1438 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1439 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1440 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1442 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1443 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1445 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1446 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1447 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1448 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1449 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1450 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1451 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1459 test -z "$as_dir" && as_dir=.
1460 echo "PATH: $as_dir"
1476 # Keep a trace of the command line.
1477 # Strip out --no-create and --no-recursion so they do not pile up.
1478 # Strip out --silent because we don't want to record it for future runs.
1479 # Also quote any args containing shell meta-characters.
1480 # Make two passes to allow for proper duplicate-argument suppression.
1484 ac_must_keep_next=false
1490 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1492 | -silent | --silent | --silen | --sile | --sil)
1495 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1498 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1500 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1501 if test $ac_must_keep_next = true; then
1502 ac_must_keep_next=false # Got value, back to normal.
1505 *=* | --config-cache | -C | -disable-* | --disable-* \
1506 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1507 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1508 | -with-* | --with-* | -without-* | --without-* | --x)
1509 case "$ac_configure_args0 " in
1510 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1513 -* ) ac_must_keep_next=true ;;
1516 ac_configure_args="$ac_configure_args '$ac_arg'"
1521 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1522 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1524 # When interrupted or exit'd, cleanup temporary files, and complete
1525 # config.log. We remove comments because anyway the quotes in there
1526 # would cause problems or look ugly.
1527 # WARNING: Use '\'' to represent an apostrophe within the trap.
1528 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1529 trap 'exit_status=$?
1530 # Save into config.log some information that might help in debugging.
1535 ## ---------------- ##
1536 ## Cache variables. ##
1537 ## ---------------- ##
1540 # The following way of writing the cache mishandles newlines in values,
1542 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1543 eval ac_val=\$$ac_var
1547 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1548 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1551 _ | IFS | as_nl) ;; #(
1552 *) $as_unset $ac_var ;;
1557 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1558 *${as_nl}ac_space=\ *)
1560 "s/'\''/'\''\\\\'\'''\''/g;
1561 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1564 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1572 ## ----------------- ##
1573 ## Output variables. ##
1574 ## ----------------- ##
1577 for ac_var in $ac_subst_vars
1579 eval ac_val=\$$ac_var
1581 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1583 echo "$ac_var='\''$ac_val'\''"
1587 if test -n "$ac_subst_files"; then
1589 ## ------------------- ##
1590 ## File substitutions. ##
1591 ## ------------------- ##
1594 for ac_var in $ac_subst_files
1596 eval ac_val=\$$ac_var
1598 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 echo "$ac_var='\''$ac_val'\''"
1605 if test -s confdefs.h; then
1615 test "$ac_signal" != 0 &&
1616 echo "$as_me: caught signal $ac_signal"
1617 echo "$as_me: exit $exit_status"
1619 rm -f core *.core core.conftest.* &&
1620 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1623 for ac_signal in 1 2 13 15; do
1624 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1628 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1629 rm -f -r conftest* confdefs.h
1631 # Predefined preprocessor variables.
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_NAME "$PACKAGE_NAME"
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_STRING "$PACKAGE_STRING"
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1658 # Let the site file select an alternate cache file if it wants to.
1659 # Prefer explicitly selected file to automatically selected ones.
1660 if test -n "$CONFIG_SITE"; then
1661 set x "$CONFIG_SITE"
1662 elif test "x$prefix" != xNONE; then
1663 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1665 set x "$ac_default_prefix/share/config.site" \
1666 "$ac_default_prefix/etc/config.site"
1671 if test -r "$ac_site_file"; then
1672 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1673 echo "$as_me: loading site script $ac_site_file" >&6;}
1674 sed 's/^/| /' "$ac_site_file" >&5
1679 if test -r "$cache_file"; then
1680 # Some versions of bash will fail to source /dev/null (special
1681 # files actually), so we avoid doing that.
1682 if test -f "$cache_file"; then
1683 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1684 echo "$as_me: loading cache $cache_file" >&6;}
1686 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1687 *) . "./$cache_file";;
1691 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1692 echo "$as_me: creating cache $cache_file" >&6;}
1696 # Check that the precious variables saved in the cache have kept the same
1698 ac_cache_corrupted=false
1699 for ac_var in $ac_precious_vars; do
1700 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1701 eval ac_new_set=\$ac_env_${ac_var}_set
1702 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1703 eval ac_new_val=\$ac_env_${ac_var}_value
1704 case $ac_old_set,$ac_new_set in
1706 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1707 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1708 ac_cache_corrupted=: ;;
1710 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1711 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1712 ac_cache_corrupted=: ;;
1715 if test "x$ac_old_val" != "x$ac_new_val"; then
1716 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1717 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1718 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1719 echo "$as_me: former value: $ac_old_val" >&2;}
1720 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1721 echo "$as_me: current value: $ac_new_val" >&2;}
1722 ac_cache_corrupted=:
1725 # Pass precious variables to config.status.
1726 if test "$ac_new_set" = set; then
1728 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 *) ac_arg=$ac_var=$ac_new_val ;;
1731 case " $ac_configure_args " in
1732 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1733 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1737 if $ac_cache_corrupted; then
1738 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1739 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1740 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1741 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1742 { (exit 1); exit 1; }; }
1762 ac_cpp='$CPP $CPPFLAGS'
1763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1768 am__api_version="1.7"
1770 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1771 if test -f "$ac_dir/install-sh"; then
1773 ac_install_sh="$ac_aux_dir/install-sh -c"
1775 elif test -f "$ac_dir/install.sh"; then
1777 ac_install_sh="$ac_aux_dir/install.sh -c"
1779 elif test -f "$ac_dir/shtool"; then
1781 ac_install_sh="$ac_aux_dir/shtool install -c"
1785 if test -z "$ac_aux_dir"; then
1786 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1787 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1788 { (exit 1); exit 1; }; }
1791 # These three variables are undocumented and unsupported,
1792 # and are intended to be withdrawn in a future Autoconf release.
1793 # They can cause serious problems if a builder's source tree is in a directory
1794 # whose full name contains unusual characters.
1795 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1796 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1797 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1800 # Find a good install program. We prefer a C program (faster),
1801 # so one script is as good as another. But avoid the broken or
1802 # incompatible versions:
1803 # SysV /etc/install, /usr/sbin/install
1804 # SunOS /usr/etc/install
1805 # IRIX /sbin/install
1807 # AmigaOS /C/install, which installs bootblocks on floppy discs
1808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1811 # OS/2's system install, which has a completely different semantic
1812 # ./install, which can be erroneously created by make from ./install.sh.
1813 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1814 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1815 if test -z "$INSTALL"; then
1816 if test "${ac_cv_path_install+set}" = set; then
1817 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1823 test -z "$as_dir" && as_dir=.
1824 # Account for people who put trailing slashes in PATH elements.
1826 ./ | .// | /cC/* | \
1827 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1828 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1831 # OSF1 and SCO ODT 3.0 have their own names for install.
1832 # Don't use installbsd from OSF since it installs stuff as root
1834 for ac_prog in ginstall scoinst install; do
1835 for ac_exec_ext in '' $ac_executable_extensions; do
1836 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1837 if test $ac_prog = install &&
1838 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1839 # AIX install. It has an incompatible calling convention.
1841 elif test $ac_prog = install &&
1842 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1843 # program-specific install script used by HP pwplus--don't use.
1846 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1859 if test "${ac_cv_path_install+set}" = set; then
1860 INSTALL=$ac_cv_path_install
1862 # As a last resort, use the slow shell script. Don't cache a
1863 # value for INSTALL within a source directory, because that will
1864 # break other packages using the cache if that directory is
1865 # removed, or if the value is a relative name.
1866 INSTALL=$ac_install_sh
1869 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1870 echo "${ECHO_T}$INSTALL" >&6; }
1872 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1873 # It thinks the first close brace ends the variable substitution.
1874 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1876 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1878 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1880 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1881 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1884 echo timestamp > conftest.file
1885 # Do `set' in a subshell so we don't clobber the current shell's
1886 # arguments. Must try -L first in case configure is actually a
1887 # symlink; some systems play weird games with the mod time of symlinks
1888 # (eg FreeBSD returns the mod time of the symlink's containing
1891 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1892 if test "$*" = "X"; then
1894 set X `ls -t $srcdir/configure conftest.file`
1897 if test "$*" != "X $srcdir/configure conftest.file" \
1898 && test "$*" != "X conftest.file $srcdir/configure"; then
1900 # If neither matched, then we have a broken ls. This can happen
1901 # if, for instance, CONFIG_SHELL is bash and it inherits a
1902 # broken ls alias from the environment. This has actually
1903 # happened. Such a system could not be considered "sane".
1904 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1905 alias in your environment" >&5
1906 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1907 alias in your environment" >&2;}
1908 { (exit 1); exit 1; }; }
1911 test "$2" = conftest.file
1917 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1918 Check your system clock" >&5
1919 echo "$as_me: error: newly created file is older than distributed files!
1920 Check your system clock" >&2;}
1921 { (exit 1); exit 1; }; }
1923 { echo "$as_me:$LINENO: result: yes" >&5
1924 echo "${ECHO_T}yes" >&6; }
1925 test "$program_prefix" != NONE &&
1926 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1927 # Use a double $ so make ignores it.
1928 test "$program_suffix" != NONE &&
1929 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1930 # Double any \ or $. echo might interpret backslashes.
1931 # By default was `s,x,x', remove it if useless.
1932 cat <<\_ACEOF >conftest.sed
1933 s/[\\$]/&&/g;s/;s,x,x,$//
1935 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1939 # expand $ac_aux_dir to an absolute path
1940 am_aux_dir=`cd $ac_aux_dir && pwd`
1942 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1943 # Use eval to expand $SHELL
1944 if eval "$MISSING --run true"; then
1945 am_missing_run="$MISSING --run "
1948 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1949 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1952 for ac_prog in gawk mawk nawk awk
1954 # Extract the first word of "$ac_prog", so it can be a program name with args.
1955 set dummy $ac_prog; ac_word=$2
1956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1958 if test "${ac_cv_prog_AWK+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 if test -n "$AWK"; then
1962 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968 test -z "$as_dir" && as_dir=.
1969 for ac_exec_ext in '' $ac_executable_extensions; do
1970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1971 ac_cv_prog_AWK="$ac_prog"
1972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1982 if test -n "$AWK"; then
1983 { echo "$as_me:$LINENO: result: $AWK" >&5
1984 echo "${ECHO_T}$AWK" >&6; }
1986 { echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6; }
1991 test -n "$AWK" && break
1994 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1995 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
1996 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
1997 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 cat >conftest.make <<\_ACEOF
2003 @echo '@@@%%%=$(MAKE)=@@@%%%'
2005 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2006 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2008 eval ac_cv_prog_make_${ac_make}_set=yes;;
2010 eval ac_cv_prog_make_${ac_make}_set=no;;
2014 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2015 { echo "$as_me:$LINENO: result: yes" >&5
2016 echo "${ECHO_T}yes" >&6; }
2019 { echo "$as_me:$LINENO: result: no" >&5
2020 echo "${ECHO_T}no" >&6; }
2021 SET_MAKE="MAKE=${MAKE-make}"
2024 rm -rf .tst 2>/dev/null
2025 mkdir .tst 2>/dev/null
2026 if test -d .tst; then
2031 rmdir .tst 2>/dev/null
2033 # test to see if srcdir already configured
2034 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2035 test -f $srcdir/config.status; then
2036 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2037 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2038 { (exit 1); exit 1; }; }
2041 # test whether we have cygpath
2042 if test -z "$CYGPATH_W"; then
2043 if (cygpath --version) >/dev/null 2>/dev/null; then
2044 CYGPATH_W='cygpath -w'
2051 # Define the identity of the package.
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE "$PACKAGE"
2061 cat >>confdefs.h <<_ACEOF
2062 #define VERSION "$VERSION"
2065 # Some tools Automake needs.
2067 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2070 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2073 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2076 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2079 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2082 AMTAR=${AMTAR-"${am_missing_run}tar"}
2084 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2086 # Installed binaries are usually stripped using `strip' when the user
2087 # run `make install-strip'. However `strip' might not be the right
2088 # tool to use in cross-compilation environments, therefore Automake
2089 # will honor the `STRIP' environment variable to overrule this program.
2090 if test "$cross_compiling" != no; then
2091 if test -n "$ac_tool_prefix"; then
2092 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2093 set dummy ${ac_tool_prefix}strip; ac_word=$2
2094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2096 if test "${ac_cv_prog_STRIP+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 if test -n "$STRIP"; then
2100 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2109 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 STRIP=$ac_cv_prog_STRIP
2120 if test -n "$STRIP"; then
2121 { echo "$as_me:$LINENO: result: $STRIP" >&5
2122 echo "${ECHO_T}$STRIP" >&6; }
2124 { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2130 if test -z "$ac_cv_prog_STRIP"; then
2132 # Extract the first word of "strip", so it can be a program name with args.
2133 set dummy strip; ac_word=$2
2134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2136 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test -n "$ac_ct_STRIP"; then
2140 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
2148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2149 ac_cv_prog_ac_ct_STRIP="strip"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2160 if test -n "$ac_ct_STRIP"; then
2161 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2162 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2164 { echo "$as_me:$LINENO: result: no" >&5
2165 echo "${ECHO_T}no" >&6; }
2168 if test "x$ac_ct_STRIP" = x; then
2171 case $cross_compiling:$ac_tool_warned in
2173 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2174 whose name does not start with the host triplet. If you think this
2175 configuration is useful to you, please write to autoconf@gnu.org." >&5
2176 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2177 whose name does not start with the host triplet. If you think this
2178 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2179 ac_tool_warned=yes ;;
2184 STRIP="$ac_cv_prog_STRIP"
2188 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2190 # We need awk for the "check" target. The system "awk" is bad on
2195 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2196 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2197 # Check whether --enable-maintainer-mode was given.
2198 if test "${enable_maintainer_mode+set}" = set; then
2199 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2201 USE_MAINTAINER_MODE=no
2204 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2205 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2208 if test $USE_MAINTAINER_MODE = yes; then
2209 MAINTAINER_MODE_TRUE=
2210 MAINTAINER_MODE_FALSE='#'
2212 MAINTAINER_MODE_TRUE='#'
2213 MAINTAINER_MODE_FALSE=
2216 MAINT=$MAINTAINER_MODE_TRUE
2219 ac_config_headers="$ac_config_headers config.h"
2222 DEPDIR="${am__leading_dot}deps"
2224 ac_config_commands="$ac_config_commands depfiles"
2227 am_make=${MAKE-make}
2228 cat > confinc << 'END'
2233 # If we don't find an include directive, just comment out the code.
2234 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2235 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2239 # First try GNU make style include.
2240 echo "include confinc" > confmf
2241 # We grep out `Entering directory' and `Leaving directory'
2242 # messages which can occur if `w' ends up in MAKEFLAGS.
2243 # In particular we don't look at `^make:' because GNU make might
2244 # be invoked under some other name (usually "gmake"), in which
2245 # case it prints its new name instead of `make'.
2246 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2251 # Now try BSD make style include.
2252 if test "$am__include" = "#"; then
2253 echo '.include "confinc"' > confmf
2254 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2255 am__include=.include
2262 { echo "$as_me:$LINENO: result: $_am_result" >&5
2263 echo "${ECHO_T}$_am_result" >&6; }
2264 rm -f confinc confmf
2266 # Check whether --enable-dependency-tracking was given.
2267 if test "${enable_dependency_tracking+set}" = set; then
2268 enableval=$enable_dependency_tracking;
2271 if test "x$enable_dependency_tracking" != xno; then
2272 am_depcomp="$ac_aux_dir/depcomp"
2277 if test "x$enable_dependency_tracking" != xno; then
2288 ac_cpp='$CPP $CPPFLAGS'
2289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2292 if test -n "$ac_tool_prefix"; then
2293 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2294 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 if test -n "$CC"; then
2301 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2307 test -z "$as_dir" && as_dir=.
2308 for ac_exec_ext in '' $ac_executable_extensions; do
2309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 if test -n "$CC"; then
2322 { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2325 { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2331 if test -z "$ac_cv_prog_CC"; then
2333 # Extract the first word of "gcc", so it can be a program name with args.
2334 set dummy gcc; ac_word=$2
2335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2338 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 if test -n "$ac_ct_CC"; then
2341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2350 ac_cv_prog_ac_ct_CC="gcc"
2351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2361 if test -n "$ac_ct_CC"; then
2362 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2363 echo "${ECHO_T}$ac_ct_CC" >&6; }
2365 { echo "$as_me:$LINENO: result: no" >&5
2366 echo "${ECHO_T}no" >&6; }
2369 if test "x$ac_ct_CC" = x; then
2372 case $cross_compiling:$ac_tool_warned in
2374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2375 whose name does not start with the host triplet. If you think this
2376 configuration is useful to you, please write to autoconf@gnu.org." >&5
2377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2378 whose name does not start with the host triplet. If you think this
2379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2380 ac_tool_warned=yes ;;
2388 if test -z "$CC"; then
2389 if test -n "$ac_tool_prefix"; then
2390 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2391 set dummy ${ac_tool_prefix}cc; ac_word=$2
2392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394 if test "${ac_cv_prog_CC+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$CC"; then
2398 ac_cv_prog_CC="$CC" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407 ac_cv_prog_CC="${ac_tool_prefix}cc"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 if test -n "$CC"; then
2419 { echo "$as_me:$LINENO: result: $CC" >&5
2420 echo "${ECHO_T}$CC" >&6; }
2422 { echo "$as_me:$LINENO: result: no" >&5
2423 echo "${ECHO_T}no" >&6; }
2429 if test -z "$CC"; then
2430 # Extract the first word of "cc", so it can be a program name with args.
2431 set dummy cc; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_CC+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2449 ac_prog_rejected=yes
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 if test $ac_prog_rejected = yes; then
2461 # We found a bogon in the path, so make sure we never use it.
2462 set dummy $ac_cv_prog_CC
2464 if test $# != 0; then
2465 # We chose a different compiler from the bogus one.
2466 # However, it has the same basename, so the bogon will be chosen
2467 # first if we set CC to just the basename; use the full file name.
2469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2475 if test -n "$CC"; then
2476 { echo "$as_me:$LINENO: result: $CC" >&5
2477 echo "${ECHO_T}$CC" >&6; }
2479 { echo "$as_me:$LINENO: result: no" >&5
2480 echo "${ECHO_T}no" >&6; }
2485 if test -z "$CC"; then
2486 if test -n "$ac_tool_prefix"; then
2487 for ac_prog in cl.exe
2489 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2490 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2526 test -n "$CC" && break
2529 if test -z "$CC"; then
2531 for ac_prog in cl.exe
2533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2534 set dummy $ac_prog; ac_word=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_ac_ct_CC="$ac_prog"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2561 if test -n "$ac_ct_CC"; then
2562 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2563 echo "${ECHO_T}$ac_ct_CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2570 test -n "$ac_ct_CC" && break
2573 if test "x$ac_ct_CC" = x; then
2576 case $cross_compiling:$ac_tool_warned in
2578 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2579 whose name does not start with the host triplet. If you think this
2580 configuration is useful to you, please write to autoconf@gnu.org." >&5
2581 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2582 whose name does not start with the host triplet. If you think this
2583 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2584 ac_tool_warned=yes ;;
2593 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2594 See \`config.log' for more details." >&5
2595 echo "$as_me: error: no acceptable C compiler found in \$PATH
2596 See \`config.log' for more details." >&2;}
2597 { (exit 1); exit 1; }; }
2599 # Provide some information about the compiler.
2600 echo "$as_me:$LINENO: checking for C compiler version" >&5
2601 ac_compiler=`set X $ac_compile; echo $2`
2602 { (ac_try="$ac_compiler --version >&5"
2604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2605 *) ac_try_echo=$ac_try;;
2607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2608 (eval "$ac_compiler --version >&5") 2>&5
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612 { (ac_try="$ac_compiler -v >&5"
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_compiler -v >&5") 2>&5
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2622 { (ac_try="$ac_compiler -V >&5"
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2628 (eval "$ac_compiler -V >&5") 2>&5
2630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631 (exit $ac_status); }
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2648 ac_clean_files_save=$ac_clean_files
2649 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2650 # Try to create an executable without -o first, disregard a.out.
2651 # It will help us diagnose broken compilers, and finding out an intuition
2653 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2654 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2655 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2657 # List of possible output files, starting from the most likely.
2658 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2659 # only as a last resort. b.out is created by i960 compilers.
2660 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2662 # The IRIX 6 linker writes into existing files which may not be
2663 # executable, retaining their permissions. Remove them first so a
2664 # subsequent execution test works.
2666 for ac_file in $ac_files
2669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2670 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2675 if { (ac_try="$ac_link_default"
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_link_default") 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; then
2685 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2686 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2687 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2688 # so that the user can short-circuit this test for compilers unknown to
2690 for ac_file in $ac_files ''
2692 test -f "$ac_file" || continue
2694 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2697 # We found the default executable, but exeext='' is most
2701 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2703 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2705 # We set ac_cv_exeext here because the later test for it is not
2706 # safe: cross compilers may not add the suffix if given an `-o'
2707 # argument, so we may need to know it at that point already.
2708 # Even if this section looks crufty: it has the advantage of
2715 test "$ac_cv_exeext" = no && ac_cv_exeext=
2721 { echo "$as_me:$LINENO: result: $ac_file" >&5
2722 echo "${ECHO_T}$ac_file" >&6; }
2723 if test -z "$ac_file"; then
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2727 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2728 See \`config.log' for more details." >&5
2729 echo "$as_me: error: C compiler cannot create executables
2730 See \`config.log' for more details." >&2;}
2731 { (exit 77); exit 77; }; }
2734 ac_exeext=$ac_cv_exeext
2736 # Check that the compiler produces executables we can run. If not, either
2737 # the compiler is broken, or we cross compile.
2738 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2739 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2740 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2741 # If not cross compiling, check that we can run a simple program.
2742 if test "$cross_compiling" != yes; then
2743 if { ac_try='./$ac_file'
2744 { (case "(($ac_try" in
2745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2746 *) ac_try_echo=$ac_try;;
2748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2749 (eval "$ac_try") 2>&5
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2755 if test "$cross_compiling" = maybe; then
2758 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2759 If you meant to cross compile, use \`--host'.
2760 See \`config.log' for more details." >&5
2761 echo "$as_me: error: cannot run C compiled programs.
2762 If you meant to cross compile, use \`--host'.
2763 See \`config.log' for more details." >&2;}
2764 { (exit 1); exit 1; }; }
2768 { echo "$as_me:$LINENO: result: yes" >&5
2769 echo "${ECHO_T}yes" >&6; }
2771 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2772 ac_clean_files=$ac_clean_files_save
2773 # Check that the compiler produces executables we can run. If not, either
2774 # the compiler is broken, or we cross compile.
2775 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2776 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2777 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2778 echo "${ECHO_T}$cross_compiling" >&6; }
2780 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2781 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2782 if { (ac_try="$ac_link"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_link") 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }; then
2792 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2793 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2794 # work properly (i.e., refer to `conftest.exe'), while it won't with
2796 for ac_file in conftest.exe conftest conftest.*; do
2797 test -f "$ac_file" || continue
2799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2800 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2807 See \`config.log' for more details." >&5
2808 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2809 See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }
2813 rm -f conftest$ac_cv_exeext
2814 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2815 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2817 rm -f conftest.$ac_ext
2818 EXEEXT=$ac_cv_exeext
2820 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2821 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2822 if test "${ac_cv_objext+set}" = set; then
2823 echo $ECHO_N "(cached) $ECHO_C" >&6
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2840 rm -f conftest.o conftest.obj
2841 if { (ac_try="$ac_compile"
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_compile") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; then
2851 for ac_file in conftest.o conftest.obj conftest.*; do
2852 test -f "$ac_file" || continue;
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2864 See \`config.log' for more details." >&5
2865 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2866 See \`config.log' for more details." >&2;}
2867 { (exit 1); exit 1; }; }
2870 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2872 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2873 echo "${ECHO_T}$ac_cv_objext" >&6; }
2874 OBJEXT=$ac_cv_objext
2876 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2877 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2878 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2881 cat >conftest.$ac_ext <<_ACEOF
2884 cat confdefs.h >>conftest.$ac_ext
2885 cat >>conftest.$ac_ext <<_ACEOF
2886 /* end confdefs.h. */
2899 rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903 *) ac_try_echo=$ac_try;;
2905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2906 (eval "$ac_compile") 2>conftest.er1
2908 grep -v '^ *+' conftest.er1 >conftest.err
2910 cat conftest.err >&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); } && {
2913 test -z "$ac_c_werror_flag" ||
2914 test ! -s conftest.err
2915 } && test -s conftest.$ac_objext; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2928 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2929 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2930 GCC=`test $ac_compiler_gnu = yes && echo yes`
2931 ac_test_CFLAGS=${CFLAGS+set}
2932 ac_save_CFLAGS=$CFLAGS
2933 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2934 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2935 if test "${ac_cv_prog_cc_g+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 ac_save_c_werror_flag=$ac_c_werror_flag
2939 ac_c_werror_flag=yes
2942 cat >conftest.$ac_ext <<_ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h. */
2957 rm -f conftest.$ac_objext
2958 if { (ac_try="$ac_compile"
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2964 (eval "$ac_compile") 2>conftest.er1
2966 grep -v '^ *+' conftest.er1 >conftest.err
2968 cat conftest.err >&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && {
2971 test -z "$ac_c_werror_flag" ||
2972 test ! -s conftest.err
2973 } && test -s conftest.$ac_objext; then
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2980 cat >conftest.$ac_ext <<_ACEOF
2983 cat confdefs.h >>conftest.$ac_ext
2984 cat >>conftest.$ac_ext <<_ACEOF
2985 /* end confdefs.h. */
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } && {
3009 test -z "$ac_c_werror_flag" ||
3010 test ! -s conftest.err
3011 } && test -s conftest.$ac_objext; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 ac_c_werror_flag=$ac_save_c_werror_flag
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } && {
3048 test -z "$ac_c_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3066 ac_c_werror_flag=$ac_save_c_werror_flag
3068 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3069 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3070 if test "$ac_test_CFLAGS" = set; then
3071 CFLAGS=$ac_save_CFLAGS
3072 elif test $ac_cv_prog_cc_g = yes; then
3073 if test "$GCC" = yes; then
3079 if test "$GCC" = yes; then
3085 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3086 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_cc_c89+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 ac_cv_prog_cc_c89=no
3092 cat >conftest.$ac_ext <<_ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h. */
3100 #include <sys/types.h>
3101 #include <sys/stat.h>
3102 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3103 struct buf { int x; };
3104 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3105 static char *e (p, i)
3111 static char *f (char * (*g) (char **, int), char **p, ...)
3116 s = g (p, va_arg (v,int));
3121 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3122 function prototypes and stuff, but not '\xHH' hex character constants.
3123 These don't provoke an error unfortunately, instead are silently treated
3124 as 'x'. The following induces an error, until -std is added to get
3125 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3126 array size at least. It's necessary to write '\x00'==0 to get something
3127 that's true only with -std. */
3128 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3130 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3131 inside strings and character constants. */
3133 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3135 int test (int i, double x);
3136 struct s1 {int (*f) (int a);};
3137 struct s2 {int (*f) (double a);};
3138 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3144 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3149 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3150 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3152 CC="$ac_save_CC $ac_arg"
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compile") 2>conftest.er1
3162 grep -v '^ *+' conftest.er1 >conftest.err
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } && {
3167 test -z "$ac_c_werror_flag" ||
3168 test ! -s conftest.err
3169 } && test -s conftest.$ac_objext; then
3170 ac_cv_prog_cc_c89=$ac_arg
3172 echo "$as_me: failed program was:" >&5
3173 sed 's/^/| /' conftest.$ac_ext >&5
3178 rm -f core conftest.err conftest.$ac_objext
3179 test "x$ac_cv_prog_cc_c89" != "xno" && break
3181 rm -f conftest.$ac_ext
3186 case "x$ac_cv_prog_cc_c89" in
3188 { echo "$as_me:$LINENO: result: none needed" >&5
3189 echo "${ECHO_T}none needed" >&6; } ;;
3191 { echo "$as_me:$LINENO: result: unsupported" >&5
3192 echo "${ECHO_T}unsupported" >&6; } ;;
3194 CC="$CC $ac_cv_prog_cc_c89"
3195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3196 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 depcc="$CC" am_compiler_list=
3208 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3209 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3210 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3214 # We make a subdir and do the tests there. Otherwise we can end up
3215 # making bogus files that we don't know about and never remove. For
3216 # instance it was reported that on HP-UX the gcc test will end up
3217 # making a dummy file named `D' -- because `-MD' means `put the output
3220 # Copy depcomp to subdir because otherwise we won't find it if we're
3221 # using a relative directory.
3222 cp "$am_depcomp" conftest.dir
3224 # We will build objects and dependencies in a subdirectory because
3225 # it helps to detect inapplicable dependency modes. For instance
3226 # both Tru64's cc and ICC support -MD to output dependencies as a
3227 # side effect of compilation, but ICC will put the dependencies in
3228 # the current directory while Tru64 will put them in the object
3232 am_cv_CC_dependencies_compiler_type=none
3233 if test "$am_compiler_list" = ""; then
3234 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3236 for depmode in $am_compiler_list; do
3237 # Setup a source with many dependencies, because some compilers
3238 # like to wrap large dependency lists on column 80 (with \), and
3239 # we should not choose a depcomp mode which is confused by this.
3241 # We need to recreate these files for each test, as the compiler may
3242 # overwrite some of them when testing with obscure command lines.
3243 # This happens at least with the AIX C compiler.
3245 for i in 1 2 3 4 5 6; do
3246 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3249 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3253 # after this tag, mechanisms are not by side-effect, so they'll
3254 # only be used when explicitly requested
3255 if test "x$enable_dependency_tracking" = xyes; then
3263 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3264 # mode. It turns out that the SunPro C++ compiler does not properly
3265 # handle `-M -o', and we need to detect this.
3266 if depmode=$depmode \
3267 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3268 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3269 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3270 >/dev/null 2>conftest.err &&
3271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3272 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3274 # icc doesn't choke on unknown options, it will just issue warnings
3275 # (even with -Werror). So we grep stderr for any message
3276 # that says an option was ignored.
3277 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3278 am_cv_CC_dependencies_compiler_type=$depmode
3287 am_cv_CC_dependencies_compiler_type=none
3291 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3292 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3293 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3298 test "x$enable_dependency_tracking" != xno \
3299 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3301 am__fastdepCC_FALSE='#'
3303 am__fastdepCC_TRUE='#'
3304 am__fastdepCC_FALSE=
3309 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3310 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3311 if test "${ac_cv_search_strerror+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 ac_func_search_save_LIBS=$LIBS
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3322 /* Override any GCC internal prototype to avoid an error.
3323 Use char because int might match the return type of a GCC
3324 builtin and then its argument prototype would still apply. */
3337 for ac_lib in '' cposix; do
3338 if test -z "$ac_lib"; then
3339 ac_res="none required"
3342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3344 rm -f conftest.$ac_objext conftest$ac_exeext
3345 if { (ac_try="$ac_link"
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_link") 2>conftest.er1
3353 grep -v '^ *+' conftest.er1 >conftest.err
3355 cat conftest.err >&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } && {
3358 test -z "$ac_c_werror_flag" ||
3359 test ! -s conftest.err
3360 } && test -s conftest$ac_exeext &&
3361 $as_test_x conftest$ac_exeext; then
3362 ac_cv_search_strerror=$ac_res
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3372 if test "${ac_cv_search_strerror+set}" = set; then
3376 if test "${ac_cv_search_strerror+set}" = set; then
3379 ac_cv_search_strerror=no
3382 LIBS=$ac_func_search_save_LIBS
3384 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3385 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3386 ac_res=$ac_cv_search_strerror
3387 if test "$ac_res" != no; then
3388 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3402 if test "${ac_cv_prog_CC+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC="$CC" # Let the user override the test.
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3426 if test -n "$CC"; then
3427 { echo "$as_me:$LINENO: result: $CC" >&5
3428 echo "${ECHO_T}$CC" >&6; }
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3436 if test -z "$ac_cv_prog_CC"; then
3438 # Extract the first word of "gcc", so it can be a program name with args.
3439 set dummy gcc; ac_word=$2
3440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 if test -n "$ac_ct_CC"; then
3446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_ac_ct_CC="gcc"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3466 if test -n "$ac_ct_CC"; then
3467 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3468 echo "${ECHO_T}$ac_ct_CC" >&6; }
3470 { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3474 if test "x$ac_ct_CC" = x; then
3477 case $cross_compiling:$ac_tool_warned in
3479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3480 whose name does not start with the host triplet. If you think this
3481 configuration is useful to you, please write to autoconf@gnu.org." >&5
3482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3483 whose name does not start with the host triplet. If you think this
3484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3485 ac_tool_warned=yes ;;
3493 if test -z "$CC"; then
3494 if test -n "$ac_tool_prefix"; then
3495 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3496 set dummy ${ac_tool_prefix}cc; ac_word=$2
3497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 test -z "$as_dir" && as_dir=.
3510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512 ac_cv_prog_CC="${ac_tool_prefix}cc"
3513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 if test -n "$CC"; then
3524 { echo "$as_me:$LINENO: result: $CC" >&5
3525 echo "${ECHO_T}$CC" >&6; }
3527 { echo "$as_me:$LINENO: result: no" >&5
3528 echo "${ECHO_T}no" >&6; }
3534 if test -z "$CC"; then
3535 # Extract the first word of "cc", so it can be a program name with args.
3536 set dummy cc; ac_word=$2
3537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3539 if test "${ac_cv_prog_CC+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3554 ac_prog_rejected=yes
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3565 if test $ac_prog_rejected = yes; then
3566 # We found a bogon in the path, so make sure we never use it.
3567 set dummy $ac_cv_prog_CC
3569 if test $# != 0; then
3570 # We chose a different compiler from the bogus one.
3571 # However, it has the same basename, so the bogon will be chosen
3572 # first if we set CC to just the basename; use the full file name.
3574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3580 if test -n "$CC"; then
3581 { echo "$as_me:$LINENO: result: $CC" >&5
3582 echo "${ECHO_T}$CC" >&6; }
3584 { echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6; }
3590 if test -z "$CC"; then
3591 if test -n "$ac_tool_prefix"; then
3592 for ac_prog in cl.exe
3594 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3595 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3598 if test "${ac_cv_prog_CC+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 if test -n "$CC"; then
3602 ac_cv_prog_CC="$CC" # Let the user override the test.
3604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 if test -n "$CC"; then
3623 { echo "$as_me:$LINENO: result: $CC" >&5
3624 echo "${ECHO_T}$CC" >&6; }
3626 { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3631 test -n "$CC" && break
3634 if test -z "$CC"; then
3636 for ac_prog in cl.exe
3638 # Extract the first word of "$ac_prog", so it can be a program name with args.
3639 set dummy $ac_prog; ac_word=$2
3640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3642 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 if test -n "$ac_ct_CC"; then
3646 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3655 ac_cv_prog_ac_ct_CC="$ac_prog"
3656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3665 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3666 if test -n "$ac_ct_CC"; then
3667 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3668 echo "${ECHO_T}$ac_ct_CC" >&6; }
3670 { echo "$as_me:$LINENO: result: no" >&5
3671 echo "${ECHO_T}no" >&6; }
3675 test -n "$ac_ct_CC" && break
3678 if test "x$ac_ct_CC" = x; then
3681 case $cross_compiling:$ac_tool_warned in
3683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3684 whose name does not start with the host triplet. If you think this
3685 configuration is useful to you, please write to autoconf@gnu.org." >&5
3686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3687 whose name does not start with the host triplet. If you think this
3688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3689 ac_tool_warned=yes ;;
3698 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3699 See \`config.log' for more details." >&5
3700 echo "$as_me: error: no acceptable C compiler found in \$PATH
3701 See \`config.log' for more details." >&2;}
3702 { (exit 1); exit 1; }; }
3704 # Provide some information about the compiler.
3705 echo "$as_me:$LINENO: checking for C compiler version" >&5
3706 ac_compiler=`set X $ac_compile; echo $2`
3707 { (ac_try="$ac_compiler --version >&5"
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_compiler --version >&5") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); }
3717 { (ac_try="$ac_compiler -v >&5"
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720 *) ac_try_echo=$ac_try;;
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723 (eval "$ac_compiler -v >&5") 2>&5
3725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726 (exit $ac_status); }
3727 { (ac_try="$ac_compiler -V >&5"
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_compiler -V >&5") 2>&5
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }
3738 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3739 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3740 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 cat >conftest.$ac_ext <<_ACEOF
3746 cat confdefs.h >>conftest.$ac_ext
3747 cat >>conftest.$ac_ext <<_ACEOF
3748 /* end confdefs.h. */
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_compile") 2>conftest.er1
3770 grep -v '^ *+' conftest.er1 >conftest.err
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && {
3775 test -z "$ac_c_werror_flag" ||
3776 test ! -s conftest.err
3777 } && test -s conftest.$ac_objext; then
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3790 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3791 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3792 GCC=`test $ac_compiler_gnu = yes && echo yes`
3793 ac_test_CFLAGS=${CFLAGS+set}
3794 ac_save_CFLAGS=$CFLAGS
3795 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3797 if test "${ac_cv_prog_cc_g+set}" = set; then
3798 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 ac_save_c_werror_flag=$ac_c_werror_flag
3801 ac_c_werror_flag=yes
3804 cat >conftest.$ac_ext <<_ACEOF
3807 cat confdefs.h >>conftest.$ac_ext
3808 cat >>conftest.$ac_ext <<_ACEOF
3809 /* end confdefs.h. */
3819 rm -f conftest.$ac_objext
3820 if { (ac_try="$ac_compile"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_compile") 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } && {
3833 test -z "$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3835 } && test -s conftest.$ac_objext; then
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3866 grep -v '^ *+' conftest.er1 >conftest.err
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest.$ac_objext; then
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 ac_c_werror_flag=$ac_save_c_werror_flag
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3896 rm -f conftest.$ac_objext
3897 if { (ac_try="$ac_compile"
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3903 (eval "$ac_compile") 2>conftest.er1
3905 grep -v '^ *+' conftest.er1 >conftest.err
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } && {
3910 test -z "$ac_c_werror_flag" ||
3911 test ! -s conftest.err
3912 } && test -s conftest.$ac_objext; then
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 ac_c_werror_flag=$ac_save_c_werror_flag
3930 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3931 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3932 if test "$ac_test_CFLAGS" = set; then
3933 CFLAGS=$ac_save_CFLAGS
3934 elif test $ac_cv_prog_cc_g = yes; then
3935 if test "$GCC" = yes; then
3941 if test "$GCC" = yes; then
3947 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3948 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3949 if test "${ac_cv_prog_cc_c89+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3952 ac_cv_prog_cc_c89=no
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3962 #include <sys/types.h>
3963 #include <sys/stat.h>
3964 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3965 struct buf { int x; };
3966 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3967 static char *e (p, i)
3973 static char *f (char * (*g) (char **, int), char **p, ...)
3978 s = g (p, va_arg (v,int));
3983 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3984 function prototypes and stuff, but not '\xHH' hex character constants.
3985 These don't provoke an error unfortunately, instead are silently treated
3986 as 'x'. The following induces an error, until -std is added to get
3987 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3988 array size at least. It's necessary to write '\x00'==0 to get something
3989 that's true only with -std. */
3990 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3992 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3993 inside strings and character constants. */
3995 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3997 int test (int i, double x);
3998 struct s1 {int (*f) (int a);};
3999 struct s2 {int (*f) (double a);};
4000 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4006 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4011 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4012 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4014 CC="$ac_save_CC $ac_arg"
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4024 grep -v '^ *+' conftest.er1 >conftest.err
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4032 ac_cv_prog_cc_c89=$ac_arg
4034 echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4040 rm -f core conftest.err conftest.$ac_objext
4041 test "x$ac_cv_prog_cc_c89" != "xno" && break
4043 rm -f conftest.$ac_ext
4048 case "x$ac_cv_prog_cc_c89" in
4050 { echo "$as_me:$LINENO: result: none needed" >&5
4051 echo "${ECHO_T}none needed" >&6; } ;;
4053 { echo "$as_me:$LINENO: result: unsupported" >&5
4054 echo "${ECHO_T}unsupported" >&6; } ;;
4056 CC="$CC $ac_cv_prog_cc_c89"
4057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4058 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4063 ac_cpp='$CPP $CPPFLAGS'
4064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4068 depcc="$CC" am_compiler_list=
4070 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4071 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4072 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4075 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4076 # We make a subdir and do the tests there. Otherwise we can end up
4077 # making bogus files that we don't know about and never remove. For
4078 # instance it was reported that on HP-UX the gcc test will end up
4079 # making a dummy file named `D' -- because `-MD' means `put the output
4082 # Copy depcomp to subdir because otherwise we won't find it if we're
4083 # using a relative directory.
4084 cp "$am_depcomp" conftest.dir
4086 # We will build objects and dependencies in a subdirectory because
4087 # it helps to detect inapplicable dependency modes. For instance
4088 # both Tru64's cc and ICC support -MD to output dependencies as a
4089 # side effect of compilation, but ICC will put the dependencies in
4090 # the current directory while Tru64 will put them in the object
4094 am_cv_CC_dependencies_compiler_type=none
4095 if test "$am_compiler_list" = ""; then
4096 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4098 for depmode in $am_compiler_list; do
4099 # Setup a source with many dependencies, because some compilers
4100 # like to wrap large dependency lists on column 80 (with \), and
4101 # we should not choose a depcomp mode which is confused by this.
4103 # We need to recreate these files for each test, as the compiler may
4104 # overwrite some of them when testing with obscure command lines.
4105 # This happens at least with the AIX C compiler.
4107 for i in 1 2 3 4 5 6; do
4108 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4115 # after this tag, mechanisms are not by side-effect, so they'll
4116 # only be used when explicitly requested
4117 if test "x$enable_dependency_tracking" = xyes; then
4125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4126 # mode. It turns out that the SunPro C++ compiler does not properly
4127 # handle `-M -o', and we need to detect this.
4128 if depmode=$depmode \
4129 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4131 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4132 >/dev/null 2>conftest.err &&
4133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4134 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4136 # icc doesn't choke on unknown options, it will just issue warnings
4137 # (even with -Werror). So we grep stderr for any message
4138 # that says an option was ignored.
4139 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4140 am_cv_CC_dependencies_compiler_type=$depmode
4149 am_cv_CC_dependencies_compiler_type=none
4153 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4154 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4155 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4160 test "x$enable_dependency_tracking" != xno \
4161 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4163 am__fastdepCC_FALSE='#'
4165 am__fastdepCC_TRUE='#'
4166 am__fastdepCC_FALSE=
4173 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4174 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4175 if test "${am_cv_prog_cc_stdc+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 am_cv_prog_cc_stdc=no
4180 # Don't try gcc -ansi; that turns off useful extensions and
4181 # breaks some systems' header files.
4182 # AIX -qlanglvl=ansi
4183 # Ultrix and OSF/1 -std1
4184 # HP-UX 10.20 and later -Ae
4185 # HP-UX older versions -Aa -D_HPUX_SOURCE
4186 # SVR4 -Xc -D__EXTENSIONS__
4187 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4189 CC="$ac_save_CC $ac_arg"
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4198 #include <sys/types.h>
4199 #include <sys/stat.h>
4200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4201 struct buf { int x; };
4202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4203 static char *e (p, i)
4209 static char *f (char * (*g) (char **, int), char **p, ...)
4214 s = g (p, va_arg (v,int));
4218 int test (int i, double x);
4219 struct s1 {int (*f) (int a);};
4220 struct s2 {int (*f) (double a);};
4221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4229 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4235 rm -f conftest.$ac_objext
4236 if { (ac_try="$ac_compile"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_compile") 2>conftest.er1
4244 grep -v '^ *+' conftest.er1 >conftest.err
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } && {
4249 test -z "$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4251 } && test -s conftest.$ac_objext; then
4252 am_cv_prog_cc_stdc="$ac_arg"; break
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.$ac_ext >&5
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266 if test -z "$am_cv_prog_cc_stdc"; then
4267 { echo "$as_me:$LINENO: result: none needed" >&5
4268 echo "${ECHO_T}none needed" >&6; }
4270 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4271 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4273 case "x$am_cv_prog_cc_stdc" in
4275 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4279 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4284 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4285 # On Suns, sometimes $CPP names a directory.
4286 if test -n "$CPP" && test -d "$CPP"; then
4289 if test -z "$CPP"; then
4290 if test "${ac_cv_prog_CPP+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4293 # Double quotes because CPP needs to be expanded
4294 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4297 for ac_c_preproc_warn_flag in '' yes
4299 # Use a header file that comes with gcc, so configuring glibc
4300 # with a fresh cross-compiler works.
4301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4302 # <limits.h> exists even on freestanding compilers.
4303 # On the NeXT, cc -E runs the code through the compiler's parser,
4304 # not just through cpp. "Syntax error" is here to catch this case.
4305 cat >conftest.$ac_ext <<_ACEOF
4308 cat confdefs.h >>conftest.$ac_ext
4309 cat >>conftest.$ac_ext <<_ACEOF
4310 /* end confdefs.h. */
4312 # include <limits.h>
4314 # include <assert.h>
4318 if { (ac_try="$ac_cpp conftest.$ac_ext"
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4326 grep -v '^ *+' conftest.er1 >conftest.err
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } >/dev/null && {
4331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4332 test ! -s conftest.err
4336 echo "$as_me: failed program was:" >&5
4337 sed 's/^/| /' conftest.$ac_ext >&5
4339 # Broken: fails on valid input.
4343 rm -f conftest.err conftest.$ac_ext
4345 # OK, works on sane cases. Now check whether nonexistent headers
4346 # can be detected and how.
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 #include <ac_nonexistent.h>
4355 if { (ac_try="$ac_cpp conftest.$ac_ext"
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4363 grep -v '^ *+' conftest.er1 >conftest.err
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } >/dev/null && {
4368 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4371 # Broken: success on invalid input.
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 # Passes both tests.
4382 rm -f conftest.err conftest.$ac_ext
4385 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4386 rm -f conftest.err conftest.$ac_ext
4387 if $ac_preproc_ok; then
4399 { echo "$as_me:$LINENO: result: $CPP" >&5
4400 echo "${ECHO_T}$CPP" >&6; }
4402 for ac_c_preproc_warn_flag in '' yes
4404 # Use a header file that comes with gcc, so configuring glibc
4405 # with a fresh cross-compiler works.
4406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4407 # <limits.h> exists even on freestanding compilers.
4408 # On the NeXT, cc -E runs the code through the compiler's parser,
4409 # not just through cpp. "Syntax error" is here to catch this case.
4410 cat >conftest.$ac_ext <<_ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4417 # include <limits.h>
4419 # include <assert.h>
4423 if { (ac_try="$ac_cpp conftest.$ac_ext"
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4431 grep -v '^ *+' conftest.er1 >conftest.err
4433 cat conftest.err >&5
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); } >/dev/null && {
4436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4437 test ! -s conftest.err
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4444 # Broken: fails on valid input.
4448 rm -f conftest.err conftest.$ac_ext
4450 # OK, works on sane cases. Now check whether nonexistent headers
4451 # can be detected and how.
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <ac_nonexistent.h>
4460 if { (ac_try="$ac_cpp conftest.$ac_ext"
4462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4463 *) ac_try_echo=$ac_try;;
4465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4468 grep -v '^ *+' conftest.er1 >conftest.err
4470 cat conftest.err >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); } >/dev/null && {
4473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4474 test ! -s conftest.err
4476 # Broken: success on invalid input.
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 # Passes both tests.
4487 rm -f conftest.err conftest.$ac_ext
4490 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4491 rm -f conftest.err conftest.$ac_ext
4492 if $ac_preproc_ok; then
4495 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4496 See \`config.log' for more details." >&5
4497 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4498 See \`config.log' for more details." >&2;}
4499 { (exit 1); exit 1; }; }
4503 ac_cpp='$CPP $CPPFLAGS'
4504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4509 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4510 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4511 if test "${ac_cv_path_GREP+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 # Extract the first word of "grep ggrep" to use in msg output
4515 if test -z "$GREP"; then
4516 set dummy grep ggrep; ac_prog_name=$2
4517 if test "${ac_cv_path_GREP+set}" = set; then
4518 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 ac_path_GREP_found=false
4521 # Loop through the user's path and test for each of PROGNAME-LIST
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526 test -z "$as_dir" && as_dir=.
4527 for ac_prog in grep ggrep; do
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4530 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4531 # Check for GNU ac_path_GREP and select it if it is found.
4532 # Check for GNU $ac_path_GREP
4533 case `"$ac_path_GREP" --version 2>&1` in
4535 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4538 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4541 cat "conftest.in" "conftest.in" >"conftest.tmp"
4542 mv "conftest.tmp" "conftest.in"
4543 cp "conftest.in" "conftest.nl"
4544 echo 'GREP' >> "conftest.nl"
4545 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547 ac_count=`expr $ac_count + 1`
4548 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4549 # Best one so far, save it but keep looking for a better one
4550 ac_cv_path_GREP="$ac_path_GREP"
4551 ac_path_GREP_max=$ac_count
4553 # 10*(2^10) chars as input seems more than enough
4554 test $ac_count -gt 10 && break
4556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560 $ac_path_GREP_found && break 3
4570 GREP="$ac_cv_path_GREP"
4571 if test -z "$GREP"; then
4572 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4573 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4574 { (exit 1); exit 1; }; }
4578 ac_cv_path_GREP=$GREP
4583 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4584 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4585 GREP="$ac_cv_path_GREP"
4588 { echo "$as_me:$LINENO: checking for egrep" >&5
4589 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4590 if test "${ac_cv_path_EGREP+set}" = set; then
4591 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4594 then ac_cv_path_EGREP="$GREP -E"
4596 # Extract the first word of "egrep" to use in msg output
4597 if test -z "$EGREP"; then
4598 set dummy egrep; ac_prog_name=$2
4599 if test "${ac_cv_path_EGREP+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 ac_path_EGREP_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in egrep; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4612 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4613 # Check for GNU ac_path_EGREP and select it if it is found.
4614 # Check for GNU $ac_path_EGREP
4615 case `"$ac_path_EGREP" --version 2>&1` in
4617 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4620 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 echo 'EGREP' >> "conftest.nl"
4627 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 ac_count=`expr $ac_count + 1`
4630 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_EGREP="$ac_path_EGREP"
4633 ac_path_EGREP_max=$ac_count
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642 $ac_path_EGREP_found && break 3
4652 EGREP="$ac_cv_path_EGREP"
4653 if test -z "$EGREP"; then
4654 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4655 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4656 { (exit 1); exit 1; }; }
4660 ac_cv_path_EGREP=$EGREP
4666 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4667 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4668 EGREP="$ac_cv_path_EGREP"
4671 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4672 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4673 if test "${ac_cv_header_stdc+set}" = set; then
4674 echo $ECHO_N "(cached) $ECHO_C" >&6
4676 cat >conftest.$ac_ext <<_ACEOF
4679 cat confdefs.h >>conftest.$ac_ext
4680 cat >>conftest.$ac_ext <<_ACEOF
4681 /* end confdefs.h. */
4695 rm -f conftest.$ac_objext
4696 if { (ac_try="$ac_compile"
4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4702 (eval "$ac_compile") 2>conftest.er1
4704 grep -v '^ *+' conftest.er1 >conftest.err
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } && {
4709 test -z "$ac_c_werror_flag" ||
4710 test ! -s conftest.err
4711 } && test -s conftest.$ac_objext; then
4712 ac_cv_header_stdc=yes
4714 echo "$as_me: failed program was:" >&5
4715 sed 's/^/| /' conftest.$ac_ext >&5
4717 ac_cv_header_stdc=no
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 if test $ac_cv_header_stdc = yes; then
4723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4724 cat >conftest.$ac_ext <<_ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4734 $EGREP "memchr" >/dev/null 2>&1; then
4737 ac_cv_header_stdc=no
4743 if test $ac_cv_header_stdc = yes; then
4744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4745 cat >conftest.$ac_ext <<_ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "free" >/dev/null 2>&1; then
4758 ac_cv_header_stdc=no
4764 if test $ac_cv_header_stdc = yes; then
4765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4766 if test "$cross_compiling" = yes; then
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4777 #if ((' ' & 0x0FF) == 0x020)
4778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4781 # define ISLOWER(c) \
4782 (('a' <= (c) && (c) <= 'i') \
4783 || ('j' <= (c) && (c) <= 'r') \
4784 || ('s' <= (c) && (c) <= 'z'))
4785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4793 for (i = 0; i < 256; i++)
4794 if (XOR (islower (i), ISLOWER (i))
4795 || toupper (i) != TOUPPER (i))
4800 rm -f conftest$ac_exeext
4801 if { (ac_try="$ac_link"
4803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804 *) ac_try_echo=$ac_try;;
4806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807 (eval "$ac_link") 2>&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4811 { (case "(($ac_try" in
4812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4813 *) ac_try_echo=$ac_try;;
4815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4816 (eval "$ac_try") 2>&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4822 echo "$as_me: program exited with status $ac_status" >&5
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_cv_header_stdc=no
4829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4835 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4836 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4837 if test $ac_cv_header_stdc = yes; then
4839 cat >>confdefs.h <<\_ACEOF
4840 #define STDC_HEADERS 1
4845 # Make sure we can run config.sub.
4846 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4847 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4848 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4849 { (exit 1); exit 1; }; }
4851 { echo "$as_me:$LINENO: checking build system type" >&5
4852 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4853 if test "${ac_cv_build+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4856 ac_build_alias=$build_alias
4857 test "x$ac_build_alias" = x &&
4858 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4859 test "x$ac_build_alias" = x &&
4860 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4861 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4862 { (exit 1); exit 1; }; }
4863 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4864 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4865 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4866 { (exit 1); exit 1; }; }
4869 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4870 echo "${ECHO_T}$ac_cv_build" >&6; }
4871 case $ac_cv_build in
4873 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4874 echo "$as_me: error: invalid value of canonical build" >&2;}
4875 { (exit 1); exit 1; }; };;
4878 ac_save_IFS=$IFS; IFS='-'
4884 # Remember, the first character of IFS is used to create $*,
4885 # except with old shells:
4888 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4891 { echo "$as_me:$LINENO: checking host system type" >&5
4892 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4893 if test "${ac_cv_host+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4896 if test "x$host_alias" = x; then
4897 ac_cv_host=$ac_cv_build
4899 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4900 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4901 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4902 { (exit 1); exit 1; }; }
4906 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4907 echo "${ECHO_T}$ac_cv_host" >&6; }
4910 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4911 echo "$as_me: error: invalid value of canonical host" >&2;}
4912 { (exit 1); exit 1; }; };;
4915 ac_save_IFS=$IFS; IFS='-'
4921 # Remember, the first character of IFS is used to create $*,
4922 # except with old shells:
4925 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4931 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4934 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4964 if test -n "$PKG_CONFIG"; then
4965 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4966 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4968 { echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6; }
4974 if test -z "$ac_cv_path_PKG_CONFIG"; then
4975 ac_pt_PKG_CONFIG=$PKG_CONFIG
4976 # Extract the first word of "pkg-config", so it can be a program name with args.
4977 set dummy pkg-config; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4983 case $ac_pt_PKG_CONFIG in
4985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5007 if test -n "$ac_pt_PKG_CONFIG"; then
5008 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5009 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5011 { echo "$as_me:$LINENO: result: no" >&5
5012 echo "${ECHO_T}no" >&6; }
5015 if test "x$ac_pt_PKG_CONFIG" = x; then
5018 case $cross_compiling:$ac_tool_warned in
5020 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5021 whose name does not start with the host triplet. If you think this
5022 configuration is useful to you, please write to autoconf@gnu.org." >&5
5023 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5024 whose name does not start with the host triplet. If you think this
5025 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5026 ac_tool_warned=yes ;;
5028 PKG_CONFIG=$ac_pt_PKG_CONFIG
5031 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5035 if test -n "$PKG_CONFIG"; then
5036 _pkg_min_version=0.9.0
5037 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5038 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5039 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5040 { echo "$as_me:$LINENO: result: yes" >&5
5041 echo "${ECHO_T}yes" >&6; }
5043 { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5051 { echo "$as_me:$LINENO: checking for PACKAGE" >&5
5052 echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; }
5054 if test -n "$PKG_CONFIG"; then
5055 if test -n "$PACKAGE_CFLAGS"; then
5056 pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS"
5058 if test -n "$PKG_CONFIG" && \
5059 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 esound libpng \"") >&5
5060 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 esound libpng ") 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; then
5064 pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags " gtk+-2.0 esound libpng " 2>/dev/null`
5072 if test -n "$PKG_CONFIG"; then
5073 if test -n "$PACKAGE_LIBS"; then
5074 pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS"
5076 if test -n "$PKG_CONFIG" && \
5077 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \" gtk+-2.0 esound libpng \"") >&5
5078 ($PKG_CONFIG --exists --print-errors " gtk+-2.0 esound libpng ") 2>&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }; then
5082 pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs " gtk+-2.0 esound libpng " 2>/dev/null`
5093 if test $pkg_failed = yes; then
5095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5096 _pkg_short_errors_supported=yes
5098 _pkg_short_errors_supported=no
5100 if test $_pkg_short_errors_supported = yes; then
5101 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors " gtk+-2.0 esound libpng "`
5103 PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors " gtk+-2.0 esound libpng "`
5105 # Put the nasty error message in config.log where it belongs
5106 echo "$PACKAGE_PKG_ERRORS" >&5
5108 { { echo "$as_me:$LINENO: error: Package requirements ( gtk+-2.0 esound libpng ) were not met:
5112 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5113 installed software in a non-standard prefix.
5115 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5116 and PACKAGE_LIBS to avoid the need to call pkg-config.
5117 See the pkg-config man page for more details.
5119 echo "$as_me: error: Package requirements ( gtk+-2.0 esound libpng ) were not met:
5123 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5124 installed software in a non-standard prefix.
5126 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5127 and PACKAGE_LIBS to avoid the need to call pkg-config.
5128 See the pkg-config man page for more details.
5130 { (exit 1); exit 1; }; }
5131 elif test $pkg_failed = untried; then
5132 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5133 is in your PATH or set the PKG_CONFIG environment variable to the full
5136 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5137 and PACKAGE_LIBS to avoid the need to call pkg-config.
5138 See the pkg-config man page for more details.
5140 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5141 See \`config.log' for more details." >&5
5142 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5143 is in your PATH or set the PKG_CONFIG environment variable to the full
5146 Alternatively, you may set the environment variables PACKAGE_CFLAGS
5147 and PACKAGE_LIBS to avoid the need to call pkg-config.
5148 See the pkg-config man page for more details.
5150 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5151 See \`config.log' for more details." >&2;}
5152 { (exit 1); exit 1; }; }
5154 PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS
5155 PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS
5156 { echo "$as_me:$LINENO: result: yes" >&5
5157 echo "${ECHO_T}yes" >&6; }
5161 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5162 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5163 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 ac_check_lib_save_LIBS=$LIBS
5168 cat >conftest.$ac_ext <<_ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h. */
5175 /* Override any GCC internal prototype to avoid an error.
5176 Use char because int might match the return type of a GCC
5177 builtin and then its argument prototype would still apply. */
5185 return uncompress ();
5190 rm -f conftest.$ac_objext conftest$ac_exeext
5191 if { (ac_try="$ac_link"
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_link") 2>conftest.er1
5199 grep -v '^ *+' conftest.er1 >conftest.err
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && {
5204 test -z "$ac_c_werror_flag" ||
5205 test ! -s conftest.err
5206 } && test -s conftest$ac_exeext &&
5207 $as_test_x conftest$ac_exeext; then
5208 ac_cv_lib_z_uncompress=yes
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5213 ac_cv_lib_z_uncompress=no
5216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5217 conftest$ac_exeext conftest.$ac_ext
5218 LIBS=$ac_check_lib_save_LIBS
5220 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5221 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5222 if test $ac_cv_lib_z_uncompress = yes; then
5223 cat >>confdefs.h <<_ACEOF
5231 echo "Zlib (libz.so) could not be found, but is required."
5236 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5237 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5238 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 ac_check_lib_save_LIBS=$LIBS
5243 cat >conftest.$ac_ext <<_ACEOF
5246 cat confdefs.h >>conftest.$ac_ext
5247 cat >>conftest.$ac_ext <<_ACEOF
5248 /* end confdefs.h. */
5250 /* Override any GCC internal prototype to avoid an error.
5251 Use char because int might match the return type of a GCC
5252 builtin and then its argument prototype would still apply. */
5256 char glXQueryVersion ();
5260 return glXQueryVersion ();
5265 rm -f conftest.$ac_objext conftest$ac_exeext
5266 if { (ac_try="$ac_link"
5268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269 *) ac_try_echo=$ac_try;;
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272 (eval "$ac_link") 2>conftest.er1
5274 grep -v '^ *+' conftest.er1 >conftest.err
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } && {
5279 test -z "$ac_c_werror_flag" ||
5280 test ! -s conftest.err
5281 } && test -s conftest$ac_exeext &&
5282 $as_test_x conftest$ac_exeext; then
5283 ac_cv_lib_GL_glXQueryVersion=yes
5285 echo "$as_me: failed program was:" >&5
5286 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_cv_lib_GL_glXQueryVersion=no
5291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5292 conftest$ac_exeext conftest.$ac_ext
5293 LIBS=$ac_check_lib_save_LIBS
5295 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5296 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5297 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5298 cat >>confdefs.h <<_ACEOF
5299 #define HAVE_LIBGL 1
5306 echo "The OpenGL library (libGL.so) could not be found, but is required."
5310 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5320 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5321 inttypes.h stdint.h unistd.h
5323 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 cat >conftest.$ac_ext <<_ACEOF
5332 cat confdefs.h >>conftest.$ac_ext
5333 cat >>conftest.$ac_ext <<_ACEOF
5334 /* end confdefs.h. */
5335 $ac_includes_default
5337 #include <$ac_header>
5339 rm -f conftest.$ac_objext
5340 if { (ac_try="$ac_compile"
5342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5343 *) ac_try_echo=$ac_try;;
5345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5346 (eval "$ac_compile") 2>conftest.er1
5348 grep -v '^ *+' conftest.er1 >conftest.err
5350 cat conftest.err >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } && {
5353 test -z "$ac_c_werror_flag" ||
5354 test ! -s conftest.err
5355 } && test -s conftest.$ac_objext; then
5356 eval "$as_ac_Header=yes"
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 eval "$as_ac_Header=no"
5364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 ac_res=`eval echo '${'$as_ac_Header'}'`
5367 { echo "$as_me:$LINENO: result: $ac_res" >&5
5368 echo "${ECHO_T}$ac_res" >&6; }
5369 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5370 cat >>confdefs.h <<_ACEOF
5371 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5379 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5380 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5381 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5382 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5386 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5388 # Is the header compilable?
5389 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
5390 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
5391 cat >conftest.$ac_ext <<_ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5400 rm -f conftest.$ac_objext
5401 if { (ac_try="$ac_compile"
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compile") 2>conftest.er1
5409 grep -v '^ *+' conftest.er1 >conftest.err
5411 cat conftest.err >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); } && {
5414 test -z "$ac_c_werror_flag" ||
5415 test ! -s conftest.err
5416 } && test -s conftest.$ac_objext; then
5417 ac_header_compiler=yes
5419 echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5422 ac_header_compiler=no
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5427 echo "${ECHO_T}$ac_header_compiler" >&6; }
5429 # Is the header present?
5430 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
5431 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5440 if { (ac_try="$ac_cpp conftest.$ac_ext"
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } >/dev/null && {
5453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5456 ac_header_preproc=yes
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 ac_header_preproc=no
5464 rm -f conftest.err conftest.$ac_ext
5465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5466 echo "${ECHO_T}$ac_header_preproc" >&6; }
5468 # So? What about this header?
5469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5471 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5472 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
5474 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
5475 ac_header_preproc=yes
5478 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
5479 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
5481 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
5483 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
5484 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
5485 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5486 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
5487 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
5488 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
5489 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
5493 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5494 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5495 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 ac_cv_header_GL_gl_h=$ac_header_preproc
5500 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5501 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5504 if test $ac_cv_header_GL_gl_h = yes; then
5508 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
5515 i386|i486|i586|i686)
5516 SH4_TRANSLATOR="x86"
5518 cat >>confdefs.h <<_ACEOF
5519 #define SH4_TRANSLATOR "x86"
5523 SH4_TRANSLATOR="x86_64"
5525 cat >>confdefs.h <<_ACEOF
5526 #define SH4_TRANSLATOR "x86_64"
5530 echo "Warning: No translator available for $host. Building emulation core only";;
5534 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
5536 BUILD_SH4X86_FALSE='#'
5538 BUILD_SH4X86_TRUE='#'
5543 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5544 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5545 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5546 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5550 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5552 # Is the header compilable?
5553 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
5554 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
5555 cat >conftest.$ac_ext <<_ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 $ac_includes_default
5562 #include <linux/cdrom.h>
5564 rm -f conftest.$ac_objext
5565 if { (ac_try="$ac_compile"
5567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5568 *) ac_try_echo=$ac_try;;
5570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5571 (eval "$ac_compile") 2>conftest.er1
5573 grep -v '^ *+' conftest.er1 >conftest.err
5575 cat conftest.err >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); } && {
5578 test -z "$ac_c_werror_flag" ||
5579 test ! -s conftest.err
5580 } && test -s conftest.$ac_objext; then
5581 ac_header_compiler=yes
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 ac_header_compiler=no
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5591 echo "${ECHO_T}$ac_header_compiler" >&6; }
5593 # Is the header present?
5594 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
5595 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
5596 cat >conftest.$ac_ext <<_ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 #include <linux/cdrom.h>
5604 if { (ac_try="$ac_cpp conftest.$ac_ext"
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5612 grep -v '^ *+' conftest.er1 >conftest.err
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } >/dev/null && {
5617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5618 test ! -s conftest.err
5620 ac_header_preproc=yes
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5625 ac_header_preproc=no
5628 rm -f conftest.err conftest.$ac_ext
5629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5630 echo "${ECHO_T}$ac_header_preproc" >&6; }
5632 # So? What about this header?
5633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5635 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
5636 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5637 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
5638 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
5639 ac_header_preproc=yes
5642 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
5643 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
5644 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
5645 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
5646 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
5647 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
5649 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
5651 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
5652 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
5653 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
5657 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5658 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5659 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 ac_cv_header_linux_cdrom_h=$ac_header_preproc
5664 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5665 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5668 if test $ac_cv_header_linux_cdrom_h = yes; then
5669 HAVE_LINUX_CDROM_H=yes
5672 echo "Linux CDROM support not found, building without it."
5678 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
5680 CDROM_LINUX_FALSE='#'
5682 CDROM_LINUX_TRUE='#'
5687 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
5688 set dummy sh-elf-gcc; ac_word=$2
5689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5691 if test "${ac_cv_path_SHCC+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5703 test -z "$as_dir" && as_dir=.
5704 for ac_exec_ext in '' $ac_executable_extensions; do
5705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
5707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5717 SHCC=$ac_cv_path_SHCC
5718 if test -n "$SHCC"; then
5719 { echo "$as_me:$LINENO: result: $SHCC" >&5
5720 echo "${ECHO_T}$SHCC" >&6; }
5722 { echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6; }
5727 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
5728 set dummy sh-elf-ld; ac_word=$2
5729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5731 if test "${ac_cv_path_SHLD+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 test -z "$as_dir" && as_dir=.
5744 for ac_exec_ext in '' $ac_executable_extensions; do
5745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5746 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
5747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 SHLD=$ac_cv_path_SHLD
5758 if test -n "$SHLD"; then
5759 { echo "$as_me:$LINENO: result: $SHLD" >&5
5760 echo "${ECHO_T}$SHLD" >&6; }
5762 { echo "$as_me:$LINENO: result: no" >&5
5763 echo "${ECHO_T}no" >&6; }
5767 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
5768 set dummy sh-elf-objcopy; ac_word=$2
5769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5771 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
5798 if test -n "$SHOBJCOPY"; then
5799 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
5800 echo "${ECHO_T}$SHOBJCOPY" >&6; }
5802 { echo "$as_me:$LINENO: result: no" >&5
5803 echo "${ECHO_T}no" >&6; }
5807 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
5808 set dummy arm-elf-gcc; ac_word=$2
5809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5811 if test "${ac_cv_path_ARMCC+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
5827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5837 ARMCC=$ac_cv_path_ARMCC
5838 if test -n "$ARMCC"; then
5839 { echo "$as_me:$LINENO: result: $ARMCC" >&5
5840 echo "${ECHO_T}$ARMCC" >&6; }
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5847 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
5848 set dummy arm-elf-ld; ac_word=$2
5849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5851 if test "${ac_cv_path_ARMLD+set}" = set; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5856 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
5867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5877 ARMLD=$ac_cv_path_ARMLD
5878 if test -n "$ARMLD"; then
5879 { echo "$as_me:$LINENO: result: $ARMLD" >&5
5880 echo "${ECHO_T}$ARMLD" >&6; }
5882 { echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6; }
5887 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
5888 set dummy arm-elf-objcopy; ac_word=$2
5889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5891 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
5892 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
5907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
5918 if test -n "$ARMOBJCOPY"; then
5919 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
5920 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
5922 { echo "$as_me:$LINENO: result: no" >&5
5923 echo "${ECHO_T}no" >&6; }
5928 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
5930 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
5934 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
5936 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
5942 if test "$BUILD_SH" = "yes"; then
5944 BUILD_SYSTEST_FALSE='#'
5946 BUILD_SYSTEST_TRUE='#'
5947 BUILD_SYSTEST_FALSE=
5952 if test "$BUILD_ARM" = "yes"; then
5954 BUILD_ARMTEST_FALSE='#'
5956 BUILD_ARMTEST_TRUE='#'
5957 BUILD_ARMTEST_FALSE=
5961 GETTEXT_PACKAGE=lxdream
5963 cat >>confdefs.h <<_ACEOF
5964 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
5971 ALL_LINGUAS="de pt_BR"
5974 for ac_header in locale.h
5976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 ac_res=`eval echo '${'$as_ac_Header'}'`
5984 { echo "$as_me:$LINENO: result: $ac_res" >&5
5985 echo "${ECHO_T}$ac_res" >&6; }
5987 # Is the header compilable?
5988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5990 cat >conftest.$ac_ext <<_ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 $ac_includes_default
5997 #include <$ac_header>
5999 rm -f conftest.$ac_objext
6000 if { (ac_try="$ac_compile"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6006 (eval "$ac_compile") 2>conftest.er1
6008 grep -v '^ *+' conftest.er1 >conftest.err
6010 cat conftest.err >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } && {
6013 test -z "$ac_c_werror_flag" ||
6014 test ! -s conftest.err
6015 } && test -s conftest.$ac_objext; then
6016 ac_header_compiler=yes
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6021 ac_header_compiler=no
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6026 echo "${ECHO_T}$ac_header_compiler" >&6; }
6028 # Is the header present?
6029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6031 cat >conftest.$ac_ext <<_ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #include <$ac_header>
6039 if { (ac_try="$ac_cpp conftest.$ac_ext"
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6047 grep -v '^ *+' conftest.er1 >conftest.err
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } >/dev/null && {
6052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6055 ac_header_preproc=yes
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 ac_header_preproc=no
6063 rm -f conftest.err conftest.$ac_ext
6064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6065 echo "${ECHO_T}$ac_header_preproc" >&6; }
6067 # So? What about this header?
6068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6070 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6074 ac_header_preproc=yes
6077 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6079 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6080 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6081 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6083 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6084 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6087 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 eval "$as_ac_Header=\$ac_header_preproc"
6099 ac_res=`eval echo '${'$as_ac_Header'}'`
6100 { echo "$as_me:$LINENO: result: $ac_res" >&5
6101 echo "${ECHO_T}$ac_res" >&6; }
6104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6105 cat >>confdefs.h <<_ACEOF
6106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6113 if test $ac_cv_header_locale_h = yes; then
6114 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6115 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
6116 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 cat >conftest.$ac_ext <<_ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6134 rm -f conftest.$ac_objext conftest$ac_exeext
6135 if { (ac_try="$ac_link"
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_link") 2>conftest.er1
6143 grep -v '^ *+' conftest.er1 >conftest.err
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest$ac_exeext &&
6151 $as_test_x conftest$ac_exeext; then
6152 am_cv_val_LC_MESSAGES=yes
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6157 am_cv_val_LC_MESSAGES=no
6160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6161 conftest$ac_exeext conftest.$ac_ext
6163 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6164 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
6165 if test $am_cv_val_LC_MESSAGES = yes; then
6167 cat >>confdefs.h <<\_ACEOF
6168 #define HAVE_LC_MESSAGES 1
6176 gt_cv_have_gettext=no
6182 if test "${ac_cv_header_libintl_h+set}" = set; then
6183 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6184 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6185 if test "${ac_cv_header_libintl_h+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6189 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6191 # Is the header compilable?
6192 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
6193 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
6194 cat >conftest.$ac_ext <<_ACEOF
6197 cat confdefs.h >>conftest.$ac_ext
6198 cat >>conftest.$ac_ext <<_ACEOF
6199 /* end confdefs.h. */
6200 $ac_includes_default
6201 #include <libintl.h>
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6212 grep -v '^ *+' conftest.er1 >conftest.err
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_header_compiler=yes
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ac_header_compiler=no
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6230 echo "${ECHO_T}$ac_header_compiler" >&6; }
6232 # Is the header present?
6233 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
6234 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
6235 cat >conftest.$ac_ext <<_ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #include <libintl.h>
6243 if { (ac_try="$ac_cpp conftest.$ac_ext"
6245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6246 *) ac_try_echo=$ac_try;;
6248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6249 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6251 grep -v '^ *+' conftest.er1 >conftest.err
6253 cat conftest.err >&5
6254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255 (exit $ac_status); } >/dev/null && {
6256 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6257 test ! -s conftest.err
6259 ac_header_preproc=yes
6261 echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6264 ac_header_preproc=no
6267 rm -f conftest.err conftest.$ac_ext
6268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6269 echo "${ECHO_T}$ac_header_preproc" >&6; }
6271 # So? What about this header?
6272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6274 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6275 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6276 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6277 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6278 ac_header_preproc=yes
6281 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6282 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6284 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6286 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6288 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6290 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6291 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6292 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6296 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6297 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6298 if test "${ac_cv_header_libintl_h+set}" = set; then
6299 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 ac_cv_header_libintl_h=$ac_header_preproc
6303 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6304 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6307 if test $ac_cv_header_libintl_h = yes; then
6308 gt_cv_func_dgettext_libintl="no"
6309 libintl_extra_libs=""
6312 # First check in libc
6314 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6315 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
6316 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6317 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6326 #include <libintl.h>
6331 return !ngettext ("","", 1)
6336 rm -f conftest.$ac_objext conftest$ac_exeext
6337 if { (ac_try="$ac_link"
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_link") 2>conftest.er1
6345 grep -v '^ *+' conftest.er1 >conftest.err
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } && {
6350 test -z "$ac_c_werror_flag" ||
6351 test ! -s conftest.err
6352 } && test -s conftest$ac_exeext &&
6353 $as_test_x conftest$ac_exeext; then
6354 gt_cv_func_ngettext_libc=yes
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6359 gt_cv_func_ngettext_libc=no
6362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6363 conftest$ac_exeext conftest.$ac_ext
6366 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6367 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
6369 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6370 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6371 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
6372 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6382 #include <libintl.h>
6387 return !dgettext ("","")
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (ac_try="$ac_link"
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6399 (eval "$ac_link") 2>conftest.er1
6401 grep -v '^ *+' conftest.er1 >conftest.err
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest$ac_exeext &&
6409 $as_test_x conftest$ac_exeext; then
6410 gt_cv_func_dgettext_libc=yes
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 gt_cv_func_dgettext_libc=no
6418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6419 conftest$ac_exeext conftest.$ac_ext
6422 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6423 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6426 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6428 for ac_func in bind_textdomain_codeset
6430 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6431 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6432 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6433 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 cat >conftest.$ac_ext <<_ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6444 #define $ac_func innocuous_$ac_func
6446 /* System header to define __stub macros and hopefully few prototypes,
6447 which can conflict with char $ac_func (); below.
6448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6449 <limits.h> exists even on freestanding compilers. */
6452 # include <limits.h>
6454 # include <assert.h>
6459 /* Override any GCC internal prototype to avoid an error.
6460 Use char because int might match the return type of a GCC
6461 builtin and then its argument prototype would still apply. */
6466 /* The GNU C library defines this for functions which it implements
6467 to always fail with ENOSYS. Some functions are actually named
6468 something starting with __ and the normal name is an alias. */
6469 #if defined __stub_$ac_func || defined __stub___$ac_func
6481 rm -f conftest.$ac_objext conftest$ac_exeext
6482 if { (ac_try="$ac_link"
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_link") 2>conftest.er1
6490 grep -v '^ *+' conftest.er1 >conftest.err
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } && {
6495 test -z "$ac_c_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest$ac_exeext &&
6498 $as_test_x conftest$ac_exeext; then
6499 eval "$as_ac_var=yes"
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 eval "$as_ac_var=no"
6507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6508 conftest$ac_exeext conftest.$ac_ext
6510 ac_res=`eval echo '${'$as_ac_var'}'`
6511 { echo "$as_me:$LINENO: result: $ac_res" >&5
6512 echo "${ECHO_T}$ac_res" >&6; }
6513 if test `eval echo '${'$as_ac_var'}'` = yes; then
6514 cat >>confdefs.h <<_ACEOF
6515 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6524 # If we don't have everything we want, check in libintl
6526 if test "$gt_cv_func_dgettext_libc" != "yes" \
6527 || test "$gt_cv_func_ngettext_libc" != "yes" \
6528 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6530 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
6531 echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6; }
6532 if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 ac_check_lib_save_LIBS=$LIBS
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6544 /* Override any GCC internal prototype to avoid an error.
6545 Use char because int might match the return type of a GCC
6546 builtin and then its argument prototype would still apply. */
6550 char bindtextdomain ();
6554 return bindtextdomain ();
6559 rm -f conftest.$ac_objext conftest$ac_exeext
6560 if { (ac_try="$ac_link"
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6566 (eval "$ac_link") 2>conftest.er1
6568 grep -v '^ *+' conftest.er1 >conftest.err
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && {
6573 test -z "$ac_c_werror_flag" ||
6574 test ! -s conftest.err
6575 } && test -s conftest$ac_exeext &&
6576 $as_test_x conftest$ac_exeext; then
6577 ac_cv_lib_intl_bindtextdomain=yes
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_cv_lib_intl_bindtextdomain=no
6585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6586 conftest$ac_exeext conftest.$ac_ext
6587 LIBS=$ac_check_lib_save_LIBS
6589 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
6590 echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6; }
6591 if test $ac_cv_lib_intl_bindtextdomain = yes; then
6592 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6593 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6594 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 ac_check_lib_save_LIBS=$LIBS
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6606 /* Override any GCC internal prototype to avoid an error.
6607 Use char because int might match the return type of a GCC
6608 builtin and then its argument prototype would still apply. */
6621 rm -f conftest.$ac_objext conftest$ac_exeext
6622 if { (ac_try="$ac_link"
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_link") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest$ac_exeext &&
6638 $as_test_x conftest$ac_exeext; then
6639 ac_cv_lib_intl_ngettext=yes
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 ac_cv_lib_intl_ngettext=no
6647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6648 conftest$ac_exeext conftest.$ac_ext
6649 LIBS=$ac_check_lib_save_LIBS
6651 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
6652 echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6; }
6653 if test $ac_cv_lib_intl_ngettext = yes; then
6654 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
6655 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
6656 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 ac_check_lib_save_LIBS=$LIBS
6661 cat >conftest.$ac_ext <<_ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6668 /* Override any GCC internal prototype to avoid an error.
6669 Use char because int might match the return type of a GCC
6670 builtin and then its argument prototype would still apply. */
6683 rm -f conftest.$ac_objext conftest$ac_exeext
6684 if { (ac_try="$ac_link"
6686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6687 *) ac_try_echo=$ac_try;;
6689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6690 (eval "$ac_link") 2>conftest.er1
6692 grep -v '^ *+' conftest.er1 >conftest.err
6694 cat conftest.err >&5
6695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6696 (exit $ac_status); } && {
6697 test -z "$ac_c_werror_flag" ||
6698 test ! -s conftest.err
6699 } && test -s conftest$ac_exeext &&
6700 $as_test_x conftest$ac_exeext; then
6701 ac_cv_lib_intl_dgettext=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 ac_cv_lib_intl_dgettext=no
6709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6710 conftest$ac_exeext conftest.$ac_ext
6711 LIBS=$ac_check_lib_save_LIBS
6713 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
6714 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
6715 if test $ac_cv_lib_intl_dgettext = yes; then
6716 gt_cv_func_dgettext_libintl=yes
6724 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
6725 { echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
6726 echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6; }
6727 { echo "$as_me:$LINENO: result: " >&5
6728 echo "${ECHO_T}" >&6; }
6729 { echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
6730 echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6; }
6731 if test "${ac_cv_lib_intl_ngettext+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 ac_check_lib_save_LIBS=$LIBS
6735 LIBS="-lintl -liconv $LIBS"
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6743 /* Override any GCC internal prototype to avoid an error.
6744 Use char because int might match the return type of a GCC
6745 builtin and then its argument prototype would still apply. */