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
745 ac_precious_vars='build_alias
763 # Initialize some variables set by options.
765 ac_init_version=false
766 # The variables have the same names as the options, with
767 # dashes changed to underlines.
775 program_transform_name=s,x,x,
783 # Installation directory options.
784 # These are left unexpanded so users can "make install exec_prefix=/foo"
785 # and all the variables that are supposed to be based on exec_prefix
786 # by default will actually change.
787 # Use braces instead of parens because sh, perl, etc. also accept them.
788 # (The list follows the same order as the GNU Coding Standards.)
789 bindir='${exec_prefix}/bin'
790 sbindir='${exec_prefix}/sbin'
791 libexecdir='${exec_prefix}/libexec'
792 datarootdir='${prefix}/share'
793 datadir='${datarootdir}'
794 sysconfdir='${prefix}/etc'
795 sharedstatedir='${prefix}/com'
796 localstatedir='${prefix}/var'
797 includedir='${prefix}/include'
798 oldincludedir='/usr/include'
799 docdir='${datarootdir}/doc/${PACKAGE}'
800 infodir='${datarootdir}/info'
805 libdir='${exec_prefix}/lib'
806 localedir='${datarootdir}/locale'
807 mandir='${datarootdir}/man'
813 # If the previous option needs an argument, assign it.
814 if test -n "$ac_prev"; then
815 eval $ac_prev=\$ac_option
821 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825 # Accept the important Cygnus configure options, so we can diagnose typos.
827 case $ac_dashdash$ac_option in
831 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 -build | --build | --buil | --bui | --bu)
837 ac_prev=build_alias ;;
838 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839 build_alias=$ac_optarg ;;
841 -cache-file | --cache-file | --cache-fil | --cache-fi \
842 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843 ac_prev=cache_file ;;
844 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846 cache_file=$ac_optarg ;;
849 cache_file=config.cache ;;
851 -datadir | --datadir | --datadi | --datad)
853 -datadir=* | --datadir=* | --datadi=* | --datad=*)
854 datadir=$ac_optarg ;;
856 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857 | --dataroo | --dataro | --datar)
858 ac_prev=datarootdir ;;
859 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861 datarootdir=$ac_optarg ;;
863 -disable-* | --disable-*)
864 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865 # Reject names that are not valid shell variable names.
866 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
867 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
868 { (exit 1); exit 1; }; }
869 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
870 eval enable_$ac_feature=no ;;
872 -docdir | --docdir | --docdi | --doc | --do)
874 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882 -enable-* | --enable-*)
883 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
886 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
887 { (exit 1); exit 1; }; }
888 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
889 eval enable_$ac_feature=\$ac_optarg ;;
891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
893 | --exec | --exe | --ex)
894 ac_prev=exec_prefix ;;
895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
897 | --exec=* | --exe=* | --ex=*)
898 exec_prefix=$ac_optarg ;;
900 -gas | --gas | --ga | --g)
901 # Obsolete; use --with-gas.
904 -help | --help | --hel | --he | -h)
906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
907 ac_init_help=recursive ;;
908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
909 ac_init_help=short ;;
911 -host | --host | --hos | --ho)
912 ac_prev=host_alias ;;
913 -host=* | --host=* | --hos=* | --ho=*)
914 host_alias=$ac_optarg ;;
916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
920 htmldir=$ac_optarg ;;
922 -includedir | --includedir | --includedi | --included | --include \
923 | --includ | --inclu | --incl | --inc)
924 ac_prev=includedir ;;
925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
926 | --includ=* | --inclu=* | --incl=* | --inc=*)
927 includedir=$ac_optarg ;;
929 -infodir | --infodir | --infodi | --infod | --info | --inf)
931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
932 infodir=$ac_optarg ;;
934 -libdir | --libdir | --libdi | --libd)
936 -libdir=* | --libdir=* | --libdi=* | --libd=*)
939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
940 | --libexe | --libex | --libe)
941 ac_prev=libexecdir ;;
942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
943 | --libexe=* | --libex=* | --libe=*)
944 libexecdir=$ac_optarg ;;
946 -localedir | --localedir | --localedi | --localed | --locale)
948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
949 localedir=$ac_optarg ;;
951 -localstatedir | --localstatedir | --localstatedi | --localstated \
952 | --localstate | --localstat | --localsta | --localst | --locals)
953 ac_prev=localstatedir ;;
954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
956 localstatedir=$ac_optarg ;;
958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
964 # Obsolete; use --without-fp.
967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
968 | --no-cr | --no-c | -n)
971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
977 | --oldin | --oldi | --old | --ol | --o)
978 ac_prev=oldincludedir ;;
979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
982 oldincludedir=$ac_optarg ;;
984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
989 -program-prefix | --program-prefix | --program-prefi | --program-pref \
990 | --program-pre | --program-pr | --program-p)
991 ac_prev=program_prefix ;;
992 -program-prefix=* | --program-prefix=* | --program-prefi=* \
993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
994 program_prefix=$ac_optarg ;;
996 -program-suffix | --program-suffix | --program-suffi | --program-suff \
997 | --program-suf | --program-su | --program-s)
998 ac_prev=program_suffix ;;
999 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1001 program_suffix=$ac_optarg ;;
1003 -program-transform-name | --program-transform-name \
1004 | --program-transform-nam | --program-transform-na \
1005 | --program-transform-n | --program-transform- \
1006 | --program-transform | --program-transfor \
1007 | --program-transfo | --program-transf \
1008 | --program-trans | --program-tran \
1009 | --progr-tra | --program-tr | --program-t)
1010 ac_prev=program_transform_name ;;
1011 -program-transform-name=* | --program-transform-name=* \
1012 | --program-transform-nam=* | --program-transform-na=* \
1013 | --program-transform-n=* | --program-transform-=* \
1014 | --program-transform=* | --program-transfor=* \
1015 | --program-transfo=* | --program-transf=* \
1016 | --program-trans=* | --program-tran=* \
1017 | --progr-tra=* | --program-tr=* | --program-t=*)
1018 program_transform_name=$ac_optarg ;;
1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1023 pdfdir=$ac_optarg ;;
1025 -psdir | --psdir | --psdi | --psd | --ps)
1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1031 | -silent | --silent | --silen | --sile | --sil)
1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1038 sbindir=$ac_optarg ;;
1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1042 | --sharedst | --shareds | --shared | --share | --shar \
1044 ac_prev=sharedstatedir ;;
1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1049 sharedstatedir=$ac_optarg ;;
1051 -site | --site | --sit)
1053 -site=* | --site=* | --sit=*)
1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1059 srcdir=$ac_optarg ;;
1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1062 | --syscon | --sysco | --sysc | --sys | --sy)
1063 ac_prev=sysconfdir ;;
1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1066 sysconfdir=$ac_optarg ;;
1068 -target | --target | --targe | --targ | --tar | --ta | --t)
1069 ac_prev=target_alias ;;
1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1071 target_alias=$ac_optarg ;;
1073 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1076 -version | --version | --versio | --versi | --vers | -V)
1077 ac_init_version=: ;;
1080 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1083 { echo "$as_me: error: invalid package name: $ac_package" >&2
1084 { (exit 1); exit 1; }; }
1085 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1086 eval with_$ac_package=\$ac_optarg ;;
1088 -without-* | --without-*)
1089 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092 { echo "$as_me: error: invalid package name: $ac_package" >&2
1093 { (exit 1); exit 1; }; }
1094 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1095 eval with_$ac_package=no ;;
1098 # Obsolete; use --with-x.
1101 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102 | --x-incl | --x-inc | --x-in | --x-i)
1103 ac_prev=x_includes ;;
1104 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106 x_includes=$ac_optarg ;;
1108 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110 ac_prev=x_libraries ;;
1111 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113 x_libraries=$ac_optarg ;;
1115 -*) { echo "$as_me: error: unrecognized option: $ac_option
1116 Try \`$0 --help' for more information." >&2
1117 { (exit 1); exit 1; }; }
1121 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1124 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1125 { (exit 1); exit 1; }; }
1126 eval $ac_envvar=\$ac_optarg
1127 export $ac_envvar ;;
1130 # FIXME: should be removed in autoconf 3.0.
1131 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1140 if test -n "$ac_prev"; then
1141 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142 { echo "$as_me: error: missing argument to $ac_option" >&2
1143 { (exit 1); exit 1; }; }
1146 # Be sure to have absolute directory names.
1147 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1148 datadir sysconfdir sharedstatedir localstatedir includedir \
1149 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1150 libdir localedir mandir
1152 eval ac_val=\$$ac_var
1154 [\\/$]* | ?:[\\/]* ) continue;;
1155 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1157 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1158 { (exit 1); exit 1; }; }
1161 # There might be people who depend on the old broken behavior: `$host'
1162 # used to hold the argument of --host etc.
1163 # FIXME: To remove some day.
1166 target=$target_alias
1168 # FIXME: To remove some day.
1169 if test "x$host_alias" != x; then
1170 if test "x$build_alias" = x; then
1171 cross_compiling=maybe
1172 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1173 If a cross compiler is detected then cross compile mode will be used." >&2
1174 elif test "x$build_alias" != "x$host_alias"; then
1180 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182 test "$silent" = yes && exec 6>/dev/null
1185 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1186 ac_ls_di=`ls -di .` &&
1187 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1188 { echo "$as_me: error: Working directory cannot be determined" >&2
1189 { (exit 1); exit 1; }; }
1190 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191 { echo "$as_me: error: pwd does not report name of working directory" >&2
1192 { (exit 1); exit 1; }; }
1195 # Find the source files, if location was not specified.
1196 if test -z "$srcdir"; then
1197 ac_srcdir_defaulted=yes
1198 # Try the directory containing this script, then the parent directory.
1199 ac_confdir=`$as_dirname -- "$0" ||
1200 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1201 X"$0" : 'X\(//\)[^/]' \| \
1202 X"$0" : 'X\(//\)$' \| \
1203 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1227 ac_srcdir_defaulted=no
1229 if test ! -r "$srcdir/$ac_unique_file"; then
1230 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1231 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1232 { (exit 1); exit 1; }; }
1234 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1236 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1237 { (exit 1); exit 1; }; }
1239 # When building in place, set srcdir=.
1240 if test "$ac_abs_confdir" = "$ac_pwd"; then
1243 # Remove unnecessary trailing slashes from srcdir.
1244 # Double slashes in file names in object file debugging info
1245 # mess up M-x gdb in Emacs.
1247 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1249 for ac_var in $ac_precious_vars; do
1250 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1251 eval ac_env_${ac_var}_value=\$${ac_var}
1252 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1253 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1257 # Report the --help message.
1259 if test "$ac_init_help" = "long"; then
1260 # Omit some internal or obsolete options to make the list less imposing.
1261 # This message is too long to be a string in the A/UX 3.1 sh.
1263 \`configure' configures this package to adapt to many kinds of systems.
1265 Usage: $0 [OPTION]... [VAR=VALUE]...
1267 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1268 VAR=VALUE. See below for descriptions of some of the useful variables.
1270 Defaults for the options are specified in brackets.
1273 -h, --help display this help and exit
1274 --help=short display options specific to this package
1275 --help=recursive display the short help of all the included packages
1276 -V, --version display version information and exit
1277 -q, --quiet, --silent do not print \`checking...' messages
1278 --cache-file=FILE cache test results in FILE [disabled]
1279 -C, --config-cache alias for \`--cache-file=config.cache'
1280 -n, --no-create do not create output files
1281 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1283 Installation directories:
1284 --prefix=PREFIX install architecture-independent files in PREFIX
1285 [$ac_default_prefix]
1286 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1289 By default, \`make install' will install all the files in
1290 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1291 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1292 for instance \`--prefix=\$HOME'.
1294 For better control, use the options below.
1296 Fine tuning of the installation directories:
1297 --bindir=DIR user executables [EPREFIX/bin]
1298 --sbindir=DIR system admin executables [EPREFIX/sbin]
1299 --libexecdir=DIR program executables [EPREFIX/libexec]
1300 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1301 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1302 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1303 --libdir=DIR object code libraries [EPREFIX/lib]
1304 --includedir=DIR C header files [PREFIX/include]
1305 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1306 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1307 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1308 --infodir=DIR info documentation [DATAROOTDIR/info]
1309 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1310 --mandir=DIR man documentation [DATAROOTDIR/man]
1311 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1312 --htmldir=DIR html documentation [DOCDIR]
1313 --dvidir=DIR dvi documentation [DOCDIR]
1314 --pdfdir=DIR pdf documentation [DOCDIR]
1315 --psdir=DIR ps documentation [DOCDIR]
1321 --program-prefix=PREFIX prepend PREFIX to installed program names
1322 --program-suffix=SUFFIX append SUFFIX to installed program names
1323 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1331 if test -n "$ac_init_help"; then
1336 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1337 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1338 --enable-maintainer-mode enable make rules and dependencies not useful
1339 (and sometimes confusing) to the casual installer
1340 --disable-dependency-tracking Speeds up one-time builds
1341 --enable-dependency-tracking Do not reject slow dependency extractors
1343 Some influential environment variables:
1344 CC C compiler command
1345 CFLAGS C compiler flags
1346 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1347 nonstandard directory <lib dir>
1348 LIBS libraries to pass to the linker, e.g. -l<library>
1349 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1350 you have headers in a nonstandard directory <include dir>
1352 PKG_CONFIG path to pkg-config utility
1354 C compiler flags for LIBPNG, overriding pkg-config
1355 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1356 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1357 GTK_LIBS linker flags for GTK, overriding pkg-config
1359 C compiler flags for ESOUND, overriding pkg-config
1360 ESOUND_LIBS linker flags for ESOUND, overriding pkg-config
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 # Check that the precious variables saved in the cache have kept the same
1714 ac_cache_corrupted=false
1715 for ac_var in $ac_precious_vars; do
1716 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1717 eval ac_new_set=\$ac_env_${ac_var}_set
1718 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1719 eval ac_new_val=\$ac_env_${ac_var}_value
1720 case $ac_old_set,$ac_new_set in
1722 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1723 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1724 ac_cache_corrupted=: ;;
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1727 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1731 if test "x$ac_old_val" != "x$ac_new_val"; then
1732 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1733 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1734 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1735 echo "$as_me: former value: $ac_old_val" >&2;}
1736 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1737 echo "$as_me: current value: $ac_new_val" >&2;}
1738 ac_cache_corrupted=:
1741 # Pass precious variables to config.status.
1742 if test "$ac_new_set" = set; then
1744 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1745 *) ac_arg=$ac_var=$ac_new_val ;;
1747 case " $ac_configure_args " in
1748 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1749 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 if $ac_cache_corrupted; then
1754 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1755 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1756 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1757 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1758 { (exit 1); exit 1; }; }
1778 ac_cpp='$CPP $CPPFLAGS'
1779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1784 am__api_version="1.7"
1786 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1787 if test -f "$ac_dir/install-sh"; then
1789 ac_install_sh="$ac_aux_dir/install-sh -c"
1791 elif test -f "$ac_dir/install.sh"; then
1793 ac_install_sh="$ac_aux_dir/install.sh -c"
1795 elif test -f "$ac_dir/shtool"; then
1797 ac_install_sh="$ac_aux_dir/shtool install -c"
1801 if test -z "$ac_aux_dir"; then
1802 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1803 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1804 { (exit 1); exit 1; }; }
1807 # These three variables are undocumented and unsupported,
1808 # and are intended to be withdrawn in a future Autoconf release.
1809 # They can cause serious problems if a builder's source tree is in a directory
1810 # whose full name contains unusual characters.
1811 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1812 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1813 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1816 # Find a good install program. We prefer a C program (faster),
1817 # so one script is as good as another. But avoid the broken or
1818 # incompatible versions:
1819 # SysV /etc/install, /usr/sbin/install
1820 # SunOS /usr/etc/install
1821 # IRIX /sbin/install
1823 # AmigaOS /C/install, which installs bootblocks on floppy discs
1824 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1825 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1826 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1827 # OS/2's system install, which has a completely different semantic
1828 # ./install, which can be erroneously created by make from ./install.sh.
1829 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1830 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1831 if test -z "$INSTALL"; then
1832 if test "${ac_cv_path_install+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 test -z "$as_dir" && as_dir=.
1840 # Account for people who put trailing slashes in PATH elements.
1842 ./ | .// | /cC/* | \
1843 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1844 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1847 # OSF1 and SCO ODT 3.0 have their own names for install.
1848 # Don't use installbsd from OSF since it installs stuff as root
1850 for ac_prog in ginstall scoinst install; do
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1853 if test $ac_prog = install &&
1854 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1855 # AIX install. It has an incompatible calling convention.
1857 elif test $ac_prog = install &&
1858 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1859 # program-specific install script used by HP pwplus--don't use.
1862 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1875 if test "${ac_cv_path_install+set}" = set; then
1876 INSTALL=$ac_cv_path_install
1878 # As a last resort, use the slow shell script. Don't cache a
1879 # value for INSTALL within a source directory, because that will
1880 # break other packages using the cache if that directory is
1881 # removed, or if the value is a relative name.
1882 INSTALL=$ac_install_sh
1885 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1886 echo "${ECHO_T}$INSTALL" >&6; }
1888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1889 # It thinks the first close brace ends the variable substitution.
1890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1896 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1897 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1900 echo timestamp > conftest.file
1901 # Do `set' in a subshell so we don't clobber the current shell's
1902 # arguments. Must try -L first in case configure is actually a
1903 # symlink; some systems play weird games with the mod time of symlinks
1904 # (eg FreeBSD returns the mod time of the symlink's containing
1907 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1908 if test "$*" = "X"; then
1910 set X `ls -t $srcdir/configure conftest.file`
1913 if test "$*" != "X $srcdir/configure conftest.file" \
1914 && test "$*" != "X conftest.file $srcdir/configure"; then
1916 # If neither matched, then we have a broken ls. This can happen
1917 # if, for instance, CONFIG_SHELL is bash and it inherits a
1918 # broken ls alias from the environment. This has actually
1919 # happened. Such a system could not be considered "sane".
1920 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1921 alias in your environment" >&5
1922 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1923 alias in your environment" >&2;}
1924 { (exit 1); exit 1; }; }
1927 test "$2" = conftest.file
1933 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1934 Check your system clock" >&5
1935 echo "$as_me: error: newly created file is older than distributed files!
1936 Check your system clock" >&2;}
1937 { (exit 1); exit 1; }; }
1939 { echo "$as_me:$LINENO: result: yes" >&5
1940 echo "${ECHO_T}yes" >&6; }
1941 test "$program_prefix" != NONE &&
1942 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1943 # Use a double $ so make ignores it.
1944 test "$program_suffix" != NONE &&
1945 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1946 # Double any \ or $. echo might interpret backslashes.
1947 # By default was `s,x,x', remove it if useless.
1948 cat <<\_ACEOF >conftest.sed
1949 s/[\\$]/&&/g;s/;s,x,x,$//
1951 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1955 # expand $ac_aux_dir to an absolute path
1956 am_aux_dir=`cd $ac_aux_dir && pwd`
1958 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1959 # Use eval to expand $SHELL
1960 if eval "$MISSING --run true"; then
1961 am_missing_run="$MISSING --run "
1964 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1965 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1968 for ac_prog in gawk mawk nawk awk
1970 # Extract the first word of "$ac_prog", so it can be a program name with args.
1971 set dummy $ac_prog; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_AWK+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 if test -n "$AWK"; then
1978 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987 ac_cv_prog_AWK="$ac_prog"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1998 if test -n "$AWK"; then
1999 { echo "$as_me:$LINENO: result: $AWK" >&5
2000 echo "${ECHO_T}$AWK" >&6; }
2002 { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2007 test -n "$AWK" && break
2010 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2011 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2012 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2013 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 cat >conftest.make <<\_ACEOF
2019 @echo '@@@%%%=$(MAKE)=@@@%%%'
2021 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2022 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2024 eval ac_cv_prog_make_${ac_make}_set=yes;;
2026 eval ac_cv_prog_make_${ac_make}_set=no;;
2030 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2031 { echo "$as_me:$LINENO: result: yes" >&5
2032 echo "${ECHO_T}yes" >&6; }
2035 { echo "$as_me:$LINENO: result: no" >&5
2036 echo "${ECHO_T}no" >&6; }
2037 SET_MAKE="MAKE=${MAKE-make}"
2040 rm -rf .tst 2>/dev/null
2041 mkdir .tst 2>/dev/null
2042 if test -d .tst; then
2047 rmdir .tst 2>/dev/null
2049 # test to see if srcdir already configured
2050 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2051 test -f $srcdir/config.status; then
2052 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2053 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2054 { (exit 1); exit 1; }; }
2057 # test whether we have cygpath
2058 if test -z "$CYGPATH_W"; then
2059 if (cygpath --version) >/dev/null 2>/dev/null; then
2060 CYGPATH_W='cygpath -w'
2067 # Define the identity of the package.
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE "$PACKAGE"
2077 cat >>confdefs.h <<_ACEOF
2078 #define VERSION "$VERSION"
2081 # Some tools Automake needs.
2083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2089 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2092 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2095 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2098 AMTAR=${AMTAR-"${am_missing_run}tar"}
2100 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2102 # Installed binaries are usually stripped using `strip' when the user
2103 # run `make install-strip'. However `strip' might not be the right
2104 # tool to use in cross-compilation environments, therefore Automake
2105 # will honor the `STRIP' environment variable to overrule this program.
2106 if test "$cross_compiling" != no; then
2107 if test -n "$ac_tool_prefix"; then
2108 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2109 set dummy ${ac_tool_prefix}strip; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_STRIP+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 if test -n "$STRIP"; then
2116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 test -z "$as_dir" && as_dir=.
2123 for ac_exec_ext in '' $ac_executable_extensions; do
2124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2135 STRIP=$ac_cv_prog_STRIP
2136 if test -n "$STRIP"; then
2137 { echo "$as_me:$LINENO: result: $STRIP" >&5
2138 echo "${ECHO_T}$STRIP" >&6; }
2140 { echo "$as_me:$LINENO: result: no" >&5
2141 echo "${ECHO_T}no" >&6; }
2146 if test -z "$ac_cv_prog_STRIP"; then
2148 # Extract the first word of "strip", so it can be a program name with args.
2149 set dummy strip; ac_word=$2
2150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2152 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 if test -n "$ac_ct_STRIP"; then
2156 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 test -z "$as_dir" && as_dir=.
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2165 ac_cv_prog_ac_ct_STRIP="strip"
2166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2176 if test -n "$ac_ct_STRIP"; then
2177 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2178 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2180 { echo "$as_me:$LINENO: result: no" >&5
2181 echo "${ECHO_T}no" >&6; }
2184 if test "x$ac_ct_STRIP" = x; then
2187 case $cross_compiling:$ac_tool_warned in
2189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet. If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&5
2192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2193 whose name does not start with the host triplet. If you think this
2194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2195 ac_tool_warned=yes ;;
2200 STRIP="$ac_cv_prog_STRIP"
2204 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2206 # We need awk for the "check" target. The system "awk" is bad on
2211 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2212 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2213 # Check whether --enable-maintainer-mode was given.
2214 if test "${enable_maintainer_mode+set}" = set; then
2215 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2217 USE_MAINTAINER_MODE=no
2220 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2221 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2224 if test $USE_MAINTAINER_MODE = yes; then
2225 MAINTAINER_MODE_TRUE=
2226 MAINTAINER_MODE_FALSE='#'
2228 MAINTAINER_MODE_TRUE='#'
2229 MAINTAINER_MODE_FALSE=
2232 MAINT=$MAINTAINER_MODE_TRUE
2235 ac_config_headers="$ac_config_headers config.h"
2238 DEPDIR="${am__leading_dot}deps"
2240 ac_config_commands="$ac_config_commands depfiles"
2243 am_make=${MAKE-make}
2244 cat > confinc << 'END'
2249 # If we don't find an include directive, just comment out the code.
2250 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2251 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2255 # First try GNU make style include.
2256 echo "include confinc" > confmf
2257 # We grep out `Entering directory' and `Leaving directory'
2258 # messages which can occur if `w' ends up in MAKEFLAGS.
2259 # In particular we don't look at `^make:' because GNU make might
2260 # be invoked under some other name (usually "gmake"), in which
2261 # case it prints its new name instead of `make'.
2262 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2267 # Now try BSD make style include.
2268 if test "$am__include" = "#"; then
2269 echo '.include "confinc"' > confmf
2270 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2271 am__include=.include
2278 { echo "$as_me:$LINENO: result: $_am_result" >&5
2279 echo "${ECHO_T}$_am_result" >&6; }
2280 rm -f confinc confmf
2282 # Check whether --enable-dependency-tracking was given.
2283 if test "${enable_dependency_tracking+set}" = set; then
2284 enableval=$enable_dependency_tracking;
2287 if test "x$enable_dependency_tracking" != xno; then
2288 am_depcomp="$ac_aux_dir/depcomp"
2293 if test "x$enable_dependency_tracking" != xno; then
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 if test -n "$CC"; then
2338 { echo "$as_me:$LINENO: result: $CC" >&5
2339 echo "${ECHO_T}$CC" >&6; }
2341 { echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6; }
2347 if test -z "$ac_cv_prog_CC"; then
2349 # Extract the first word of "gcc", so it can be a program name with args.
2350 set dummy gcc; ac_word=$2
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 if test -n "$ac_ct_CC"; then
2357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366 ac_cv_prog_ac_ct_CC="gcc"
2367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377 if test -n "$ac_ct_CC"; then
2378 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2379 echo "${ECHO_T}$ac_ct_CC" >&6; }
2381 { echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6; }
2385 if test "x$ac_ct_CC" = x; then
2388 case $cross_compiling:$ac_tool_warned in
2390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet. If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&5
2393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet. If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2396 ac_tool_warned=yes ;;
2404 if test -z "$CC"; then
2405 if test -n "$ac_tool_prefix"; then
2406 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2407 set dummy ${ac_tool_prefix}cc; ac_word=$2
2408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2410 if test "${ac_cv_prog_CC+set}" = set; then
2411 echo $ECHO_N "(cached) $ECHO_C" >&6
2413 if test -n "$CC"; then
2414 ac_cv_prog_CC="$CC" # Let the user override the test.
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420 test -z "$as_dir" && as_dir=.
2421 for ac_exec_ext in '' $ac_executable_extensions; do
2422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2423 ac_cv_prog_CC="${ac_tool_prefix}cc"
2424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 if test -n "$CC"; then
2435 { echo "$as_me:$LINENO: result: $CC" >&5
2436 echo "${ECHO_T}$CC" >&6; }
2438 { echo "$as_me:$LINENO: result: no" >&5
2439 echo "${ECHO_T}no" >&6; }
2445 if test -z "$CC"; then
2446 # Extract the first word of "cc", so it can be a program name with args.
2447 set dummy cc; ac_word=$2
2448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 test -z "$as_dir" && as_dir=.
2462 for ac_exec_ext in '' $ac_executable_extensions; do
2463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2465 ac_prog_rejected=yes
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 if test $ac_prog_rejected = yes; then
2477 # We found a bogon in the path, so make sure we never use it.
2478 set dummy $ac_cv_prog_CC
2480 if test $# != 0; then
2481 # We chose a different compiler from the bogus one.
2482 # However, it has the same basename, so the bogon will be chosen
2483 # first if we set CC to just the basename; use the full file name.
2485 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2491 if test -n "$CC"; then
2492 { echo "$as_me:$LINENO: result: $CC" >&5
2493 echo "${ECHO_T}$CC" >&6; }
2495 { echo "$as_me:$LINENO: result: no" >&5
2496 echo "${ECHO_T}no" >&6; }
2501 if test -z "$CC"; then
2502 if test -n "$ac_tool_prefix"; then
2503 for ac_prog in cl.exe
2505 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2509 if test "${ac_cv_prog_CC+set}" = set; then
2510 echo $ECHO_N "(cached) $ECHO_C" >&6
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 if test -n "$CC"; then
2534 { echo "$as_me:$LINENO: result: $CC" >&5
2535 echo "${ECHO_T}$CC" >&6; }
2537 { echo "$as_me:$LINENO: result: no" >&5
2538 echo "${ECHO_T}no" >&6; }
2542 test -n "$CC" && break
2545 if test -z "$CC"; then
2547 for ac_prog in cl.exe
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2554 echo $ECHO_N "(cached) $ECHO_C" >&6
2556 if test -n "$ac_ct_CC"; then
2557 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_ac_ct_CC="$ac_prog"
2567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2577 if test -n "$ac_ct_CC"; then
2578 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2579 echo "${ECHO_T}$ac_ct_CC" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2586 test -n "$ac_ct_CC" && break
2589 if test "x$ac_ct_CC" = x; then
2592 case $cross_compiling:$ac_tool_warned in
2594 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2595 whose name does not start with the host triplet. If you think this
2596 configuration is useful to you, please write to autoconf@gnu.org." >&5
2597 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2598 whose name does not start with the host triplet. If you think this
2599 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2600 ac_tool_warned=yes ;;
2609 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2610 See \`config.log' for more details." >&5
2611 echo "$as_me: error: no acceptable C compiler found in \$PATH
2612 See \`config.log' for more details." >&2;}
2613 { (exit 1); exit 1; }; }
2615 # Provide some information about the compiler.
2616 echo "$as_me:$LINENO: checking for C compiler version" >&5
2617 ac_compiler=`set X $ac_compile; echo $2`
2618 { (ac_try="$ac_compiler --version >&5"
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_compiler --version >&5") 2>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }
2628 { (ac_try="$ac_compiler -v >&5"
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634 (eval "$ac_compiler -v >&5") 2>&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); }
2638 { (ac_try="$ac_compiler -V >&5"
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2644 (eval "$ac_compiler -V >&5") 2>&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); }
2649 cat >conftest.$ac_ext <<_ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2664 ac_clean_files_save=$ac_clean_files
2665 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2666 # Try to create an executable without -o first, disregard a.out.
2667 # It will help us diagnose broken compilers, and finding out an intuition
2669 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2670 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2671 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2673 # List of possible output files, starting from the most likely.
2674 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2675 # only as a last resort. b.out is created by i960 compilers.
2676 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2678 # The IRIX 6 linker writes into existing files which may not be
2679 # executable, retaining their permissions. Remove them first so a
2680 # subsequent execution test works.
2682 for ac_file in $ac_files
2685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2686 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2691 if { (ac_try="$ac_link_default"
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_link_default") 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }; then
2701 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2702 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2703 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2704 # so that the user can short-circuit this test for compilers unknown to
2706 for ac_file in $ac_files ''
2708 test -f "$ac_file" || continue
2710 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2713 # We found the default executable, but exeext='' is most
2717 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2719 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2721 # We set ac_cv_exeext here because the later test for it is not
2722 # safe: cross compilers may not add the suffix if given an `-o'
2723 # argument, so we may need to know it at that point already.
2724 # Even if this section looks crufty: it has the advantage of
2731 test "$ac_cv_exeext" = no && ac_cv_exeext=
2737 { echo "$as_me:$LINENO: result: $ac_file" >&5
2738 echo "${ECHO_T}$ac_file" >&6; }
2739 if test -z "$ac_file"; then
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2743 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2744 See \`config.log' for more details." >&5
2745 echo "$as_me: error: C compiler cannot create executables
2746 See \`config.log' for more details." >&2;}
2747 { (exit 77); exit 77; }; }
2750 ac_exeext=$ac_cv_exeext
2752 # Check that the compiler produces executables we can run. If not, either
2753 # the compiler is broken, or we cross compile.
2754 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2755 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2756 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2757 # If not cross compiling, check that we can run a simple program.
2758 if test "$cross_compiling" != yes; then
2759 if { ac_try='./$ac_file'
2760 { (case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_try") 2>&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); }; }; then
2771 if test "$cross_compiling" = maybe; then
2774 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2775 If you meant to cross compile, use \`--host'.
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot run C compiled programs.
2778 If you meant to cross compile, use \`--host'.
2779 See \`config.log' for more details." >&2;}
2780 { (exit 1); exit 1; }; }
2784 { echo "$as_me:$LINENO: result: yes" >&5
2785 echo "${ECHO_T}yes" >&6; }
2787 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2788 ac_clean_files=$ac_clean_files_save
2789 # Check that the compiler produces executables we can run. If not, either
2790 # the compiler is broken, or we cross compile.
2791 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2792 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2793 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2794 echo "${ECHO_T}$cross_compiling" >&6; }
2796 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2797 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2798 if { (ac_try="$ac_link"
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804 (eval "$ac_link") 2>&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; then
2808 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2809 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2810 # work properly (i.e., refer to `conftest.exe'), while it won't with
2812 for ac_file in conftest.exe conftest conftest.*; do
2813 test -f "$ac_file" || continue
2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2816 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2822 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2825 See \`config.log' for more details." >&2;}
2826 { (exit 1); exit 1; }; }
2829 rm -f conftest$ac_cv_exeext
2830 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2831 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2833 rm -f conftest.$ac_ext
2834 EXEEXT=$ac_cv_exeext
2836 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2837 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2838 if test "${ac_cv_objext+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2841 cat >conftest.$ac_ext <<_ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2856 rm -f conftest.o conftest.obj
2857 if { (ac_try="$ac_compile"
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863 (eval "$ac_compile") 2>&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); }; then
2867 for ac_file in conftest.o conftest.obj conftest.*; do
2868 test -f "$ac_file" || continue;
2870 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2871 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2879 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2880 See \`config.log' for more details." >&5
2881 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2882 See \`config.log' for more details." >&2;}
2883 { (exit 1); exit 1; }; }
2886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2888 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2889 echo "${ECHO_T}$ac_cv_objext" >&6; }
2890 OBJEXT=$ac_cv_objext
2892 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2893 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2894 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2915 rm -f conftest.$ac_objext
2916 if { (ac_try="$ac_compile"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compile") 2>conftest.er1
2924 grep -v '^ *+' conftest.er1 >conftest.err
2926 cat conftest.err >&5
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); } && {
2929 test -z "$ac_c_werror_flag" ||
2930 test ! -s conftest.err
2931 } && test -s conftest.$ac_objext; then
2934 echo "$as_me: failed program was:" >&5
2935 sed 's/^/| /' conftest.$ac_ext >&5
2940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2944 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2945 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2946 GCC=`test $ac_compiler_gnu = yes && echo yes`
2947 ac_test_CFLAGS=${CFLAGS+set}
2948 ac_save_CFLAGS=$CFLAGS
2949 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2950 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2951 if test "${ac_cv_prog_cc_g+set}" = set; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2954 ac_save_c_werror_flag=$ac_c_werror_flag
2955 ac_c_werror_flag=yes
2958 cat >conftest.$ac_ext <<_ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h. */
2973 rm -f conftest.$ac_objext
2974 if { (ac_try="$ac_compile"
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2980 (eval "$ac_compile") 2>conftest.er1
2982 grep -v '^ *+' conftest.er1 >conftest.err
2984 cat conftest.err >&5
2985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986 (exit $ac_status); } && {
2987 test -z "$ac_c_werror_flag" ||
2988 test ! -s conftest.err
2989 } && test -s conftest.$ac_objext; then
2992 echo "$as_me: failed program was:" >&5
2993 sed 's/^/| /' conftest.$ac_ext >&5
2996 cat >conftest.$ac_ext <<_ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3011 rm -f conftest.$ac_objext
3012 if { (ac_try="$ac_compile"
3014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_compile") 2>conftest.er1
3020 grep -v '^ *+' conftest.er1 >conftest.err
3022 cat conftest.err >&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } && {
3025 test -z "$ac_c_werror_flag" ||
3026 test ! -s conftest.err
3027 } && test -s conftest.$ac_objext; then
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 ac_c_werror_flag=$ac_save_c_werror_flag
3035 cat >conftest.$ac_ext <<_ACEOF
3038 cat confdefs.h >>conftest.$ac_ext
3039 cat >>conftest.$ac_ext <<_ACEOF
3040 /* end confdefs.h. */
3050 rm -f conftest.$ac_objext
3051 if { (ac_try="$ac_compile"
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_compile") 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } && {
3064 test -z "$ac_c_werror_flag" ||
3065 test ! -s conftest.err
3066 } && test -s conftest.$ac_objext; then
3069 echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_c_werror_flag=$ac_save_c_werror_flag
3084 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3085 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3086 if test "$ac_test_CFLAGS" = set; then
3087 CFLAGS=$ac_save_CFLAGS
3088 elif test $ac_cv_prog_cc_g = yes; then
3089 if test "$GCC" = yes; then
3095 if test "$GCC" = yes; then
3101 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3102 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_cc_c89+set}" = set; then
3104 echo $ECHO_N "(cached) $ECHO_C" >&6
3106 ac_cv_prog_cc_c89=no
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3116 #include <sys/types.h>
3117 #include <sys/stat.h>
3118 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3119 struct buf { int x; };
3120 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3121 static char *e (p, i)
3127 static char *f (char * (*g) (char **, int), char **p, ...)
3132 s = g (p, va_arg (v,int));
3137 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3138 function prototypes and stuff, but not '\xHH' hex character constants.
3139 These don't provoke an error unfortunately, instead are silently treated
3140 as 'x'. The following induces an error, until -std is added to get
3141 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3142 array size at least. It's necessary to write '\x00'==0 to get something
3143 that's true only with -std. */
3144 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3146 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3147 inside strings and character constants. */
3149 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3151 int test (int i, double x);
3152 struct s1 {int (*f) (int a);};
3153 struct s2 {int (*f) (double a);};
3154 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3160 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3165 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3166 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3168 CC="$ac_save_CC $ac_arg"
3169 rm -f conftest.$ac_objext
3170 if { (ac_try="$ac_compile"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3178 grep -v '^ *+' conftest.er1 >conftest.err
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && {
3183 test -z "$ac_c_werror_flag" ||
3184 test ! -s conftest.err
3185 } && test -s conftest.$ac_objext; then
3186 ac_cv_prog_cc_c89=$ac_arg
3188 echo "$as_me: failed program was:" >&5
3189 sed 's/^/| /' conftest.$ac_ext >&5
3194 rm -f core conftest.err conftest.$ac_objext
3195 test "x$ac_cv_prog_cc_c89" != "xno" && break
3197 rm -f conftest.$ac_ext
3202 case "x$ac_cv_prog_cc_c89" in
3204 { echo "$as_me:$LINENO: result: none needed" >&5
3205 echo "${ECHO_T}none needed" >&6; } ;;
3207 { echo "$as_me:$LINENO: result: unsupported" >&5
3208 echo "${ECHO_T}unsupported" >&6; } ;;
3210 CC="$CC $ac_cv_prog_cc_c89"
3211 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3212 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3222 depcc="$CC" am_compiler_list=
3224 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3225 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3226 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3229 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3230 # We make a subdir and do the tests there. Otherwise we can end up
3231 # making bogus files that we don't know about and never remove. For
3232 # instance it was reported that on HP-UX the gcc test will end up
3233 # making a dummy file named `D' -- because `-MD' means `put the output
3236 # Copy depcomp to subdir because otherwise we won't find it if we're
3237 # using a relative directory.
3238 cp "$am_depcomp" conftest.dir
3240 # We will build objects and dependencies in a subdirectory because
3241 # it helps to detect inapplicable dependency modes. For instance
3242 # both Tru64's cc and ICC support -MD to output dependencies as a
3243 # side effect of compilation, but ICC will put the dependencies in
3244 # the current directory while Tru64 will put them in the object
3248 am_cv_CC_dependencies_compiler_type=none
3249 if test "$am_compiler_list" = ""; then
3250 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3252 for depmode in $am_compiler_list; do
3253 # Setup a source with many dependencies, because some compilers
3254 # like to wrap large dependency lists on column 80 (with \), and
3255 # we should not choose a depcomp mode which is confused by this.
3257 # We need to recreate these files for each test, as the compiler may
3258 # overwrite some of them when testing with obscure command lines.
3259 # This happens at least with the AIX C compiler.
3261 for i in 1 2 3 4 5 6; do
3262 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3265 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3269 # after this tag, mechanisms are not by side-effect, so they'll
3270 # only be used when explicitly requested
3271 if test "x$enable_dependency_tracking" = xyes; then
3279 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3280 # mode. It turns out that the SunPro C++ compiler does not properly
3281 # handle `-M -o', and we need to detect this.
3282 if depmode=$depmode \
3283 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3284 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3285 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3286 >/dev/null 2>conftest.err &&
3287 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3288 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3289 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3290 # icc doesn't choke on unknown options, it will just issue warnings
3291 # (even with -Werror). So we grep stderr for any message
3292 # that says an option was ignored.
3293 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3294 am_cv_CC_dependencies_compiler_type=$depmode
3303 am_cv_CC_dependencies_compiler_type=none
3307 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3308 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3309 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3314 test "x$enable_dependency_tracking" != xno \
3315 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3317 am__fastdepCC_FALSE='#'
3319 am__fastdepCC_TRUE='#'
3320 am__fastdepCC_FALSE=
3325 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
3326 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
3327 if test "${ac_cv_search_strerror+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 ac_func_search_save_LIBS=$LIBS
3331 cat >conftest.$ac_ext <<_ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h. */
3338 /* Override any GCC internal prototype to avoid an error.
3339 Use char because int might match the return type of a GCC
3340 builtin and then its argument prototype would still apply. */
3353 for ac_lib in '' cposix; do
3354 if test -z "$ac_lib"; then
3355 ac_res="none required"
3358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3360 rm -f conftest.$ac_objext conftest$ac_exeext
3361 if { (ac_try="$ac_link"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_link") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest$ac_exeext &&
3377 $as_test_x conftest$ac_exeext; then
3378 ac_cv_search_strerror=$ac_res
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3388 if test "${ac_cv_search_strerror+set}" = set; then
3392 if test "${ac_cv_search_strerror+set}" = set; then
3395 ac_cv_search_strerror=no
3398 LIBS=$ac_func_search_save_LIBS
3400 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3401 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
3402 ac_res=$ac_cv_search_strerror
3403 if test "$ac_res" != no; then
3404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413 if test -n "$ac_tool_prefix"; then
3414 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3415 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3418 if test "${ac_cv_prog_CC+set}" = set; then
3419 echo $ECHO_N "(cached) $ECHO_C" >&6
3421 if test -n "$CC"; then
3422 ac_cv_prog_CC="$CC" # Let the user override the test.
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3442 if test -n "$CC"; then
3443 { echo "$as_me:$LINENO: result: $CC" >&5
3444 echo "${ECHO_T}$CC" >&6; }
3446 { echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6; }
3452 if test -z "$ac_cv_prog_CC"; then
3454 # Extract the first word of "gcc", so it can be a program name with args.
3455 set dummy gcc; ac_word=$2
3456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 if test -n "$ac_ct_CC"; then
3462 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 test -z "$as_dir" && as_dir=.
3469 for ac_exec_ext in '' $ac_executable_extensions; do
3470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3471 ac_cv_prog_ac_ct_CC="gcc"
3472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3482 if test -n "$ac_ct_CC"; then
3483 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3484 echo "${ECHO_T}$ac_ct_CC" >&6; }
3486 { echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6; }
3490 if test "x$ac_ct_CC" = x; then
3493 case $cross_compiling:$ac_tool_warned in
3495 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3496 whose name does not start with the host triplet. If you think this
3497 configuration is useful to you, please write to autoconf@gnu.org." >&5
3498 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3499 whose name does not start with the host triplet. If you think this
3500 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3501 ac_tool_warned=yes ;;
3509 if test -z "$CC"; then
3510 if test -n "$ac_tool_prefix"; then
3511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3512 set dummy ${ac_tool_prefix}cc; ac_word=$2
3513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3515 if test "${ac_cv_prog_CC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 if test -n "$CC"; then
3519 ac_cv_prog_CC="$CC" # Let the user override the test.
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_CC="${ac_tool_prefix}cc"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3539 if test -n "$CC"; then
3540 { echo "$as_me:$LINENO: result: $CC" >&5
3541 echo "${ECHO_T}$CC" >&6; }
3543 { echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6; }
3550 if test -z "$CC"; then
3551 # Extract the first word of "cc", so it can be a program name with args.
3552 set dummy cc; ac_word=$2
3553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3570 ac_prog_rejected=yes
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 if test $ac_prog_rejected = yes; then
3582 # We found a bogon in the path, so make sure we never use it.
3583 set dummy $ac_cv_prog_CC
3585 if test $# != 0; then
3586 # We chose a different compiler from the bogus one.
3587 # However, it has the same basename, so the bogon will be chosen
3588 # first if we set CC to just the basename; use the full file name.
3590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3596 if test -n "$CC"; then
3597 { echo "$as_me:$LINENO: result: $CC" >&5
3598 echo "${ECHO_T}$CC" >&6; }
3600 { echo "$as_me:$LINENO: result: no" >&5
3601 echo "${ECHO_T}no" >&6; }
3606 if test -z "$CC"; then
3607 if test -n "$ac_tool_prefix"; then
3608 for ac_prog in cl.exe
3610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3614 if test "${ac_cv_prog_CC+set}" = set; then
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3617 if test -n "$CC"; then
3618 ac_cv_prog_CC="$CC" # Let the user override the test.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 if test -n "$CC"; then
3639 { echo "$as_me:$LINENO: result: $CC" >&5
3640 echo "${ECHO_T}$CC" >&6; }
3642 { echo "$as_me:$LINENO: result: no" >&5
3643 echo "${ECHO_T}no" >&6; }
3647 test -n "$CC" && break
3650 if test -z "$CC"; then
3652 for ac_prog in cl.exe
3654 # Extract the first word of "$ac_prog", so it can be a program name with args.
3655 set dummy $ac_prog; ac_word=$2
3656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3661 if test -n "$ac_ct_CC"; then
3662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668 test -z "$as_dir" && as_dir=.
3669 for ac_exec_ext in '' $ac_executable_extensions; do
3670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3671 ac_cv_prog_ac_ct_CC="$ac_prog"
3672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3682 if test -n "$ac_ct_CC"; then
3683 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3684 echo "${ECHO_T}$ac_ct_CC" >&6; }
3686 { echo "$as_me:$LINENO: result: no" >&5
3687 echo "${ECHO_T}no" >&6; }
3691 test -n "$ac_ct_CC" && break
3694 if test "x$ac_ct_CC" = x; then
3697 case $cross_compiling:$ac_tool_warned in
3699 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3700 whose name does not start with the host triplet. If you think this
3701 configuration is useful to you, please write to autoconf@gnu.org." >&5
3702 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3703 whose name does not start with the host triplet. If you think this
3704 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3705 ac_tool_warned=yes ;;
3714 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3715 See \`config.log' for more details." >&5
3716 echo "$as_me: error: no acceptable C compiler found in \$PATH
3717 See \`config.log' for more details." >&2;}
3718 { (exit 1); exit 1; }; }
3720 # Provide some information about the compiler.
3721 echo "$as_me:$LINENO: checking for C compiler version" >&5
3722 ac_compiler=`set X $ac_compile; echo $2`
3723 { (ac_try="$ac_compiler --version >&5"
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_compiler --version >&5") 2>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }
3733 { (ac_try="$ac_compiler -v >&5"
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_compiler -v >&5") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }
3743 { (ac_try="$ac_compiler -V >&5"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_compiler -V >&5") 2>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); }
3754 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3755 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3756 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3759 cat >conftest.$ac_ext <<_ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3777 rm -f conftest.$ac_objext
3778 if { (ac_try="$ac_compile"
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_compile") 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } && {
3791 test -z "$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3793 } && test -s conftest.$ac_objext; then
3796 echo "$as_me: failed program was:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3806 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3807 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3808 GCC=`test $ac_compiler_gnu = yes && echo yes`
3809 ac_test_CFLAGS=${CFLAGS+set}
3810 ac_save_CFLAGS=$CFLAGS
3811 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3812 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3813 if test "${ac_cv_prog_cc_g+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 ac_save_c_werror_flag=$ac_c_werror_flag
3817 ac_c_werror_flag=yes
3820 cat >conftest.$ac_ext <<_ACEOF
3823 cat confdefs.h >>conftest.$ac_ext
3824 cat >>conftest.$ac_ext <<_ACEOF
3825 /* end confdefs.h. */
3835 rm -f conftest.$ac_objext
3836 if { (ac_try="$ac_compile"
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } && {
3849 test -z "$ac_c_werror_flag" ||
3850 test ! -s conftest.err
3851 } && test -s conftest.$ac_objext; then
3854 echo "$as_me: failed program was:" >&5
3855 sed 's/^/| /' conftest.$ac_ext >&5
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3873 rm -f conftest.$ac_objext
3874 if { (ac_try="$ac_compile"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_compile") 2>conftest.er1
3882 grep -v '^ *+' conftest.er1 >conftest.err
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } && {
3887 test -z "$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3889 } && test -s conftest.$ac_objext; then
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 ac_c_werror_flag=$ac_save_c_werror_flag
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3912 rm -f conftest.$ac_objext
3913 if { (ac_try="$ac_compile"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_compile") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925 (exit $ac_status); } && {
3926 test -z "$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3928 } && test -s conftest.$ac_objext; then
3931 echo "$as_me: failed program was:" >&5
3932 sed 's/^/| /' conftest.$ac_ext >&5
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 ac_c_werror_flag=$ac_save_c_werror_flag
3946 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3947 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3948 if test "$ac_test_CFLAGS" = set; then
3949 CFLAGS=$ac_save_CFLAGS
3950 elif test $ac_cv_prog_cc_g = yes; then
3951 if test "$GCC" = yes; then
3957 if test "$GCC" = yes; then
3963 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3964 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3965 if test "${ac_cv_prog_cc_c89+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 ac_cv_prog_cc_c89=no
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3978 #include <sys/types.h>
3979 #include <sys/stat.h>
3980 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3981 struct buf { int x; };
3982 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3983 static char *e (p, i)
3989 static char *f (char * (*g) (char **, int), char **p, ...)
3994 s = g (p, va_arg (v,int));
3999 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4000 function prototypes and stuff, but not '\xHH' hex character constants.
4001 These don't provoke an error unfortunately, instead are silently treated
4002 as 'x'. The following induces an error, until -std is added to get
4003 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4004 array size at least. It's necessary to write '\x00'==0 to get something
4005 that's true only with -std. */
4006 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4008 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4009 inside strings and character constants. */
4011 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4013 int test (int i, double x);
4014 struct s1 {int (*f) (int a);};
4015 struct s2 {int (*f) (double a);};
4016 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4022 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4027 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4028 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4030 CC="$ac_save_CC $ac_arg"
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1 >conftest.err
4042 cat conftest.err >&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } && {
4045 test -z "$ac_c_werror_flag" ||
4046 test ! -s conftest.err
4047 } && test -s conftest.$ac_objext; then
4048 ac_cv_prog_cc_c89=$ac_arg
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4056 rm -f core conftest.err conftest.$ac_objext
4057 test "x$ac_cv_prog_cc_c89" != "xno" && break
4059 rm -f conftest.$ac_ext
4064 case "x$ac_cv_prog_cc_c89" in
4066 { echo "$as_me:$LINENO: result: none needed" >&5
4067 echo "${ECHO_T}none needed" >&6; } ;;
4069 { echo "$as_me:$LINENO: result: unsupported" >&5
4070 echo "${ECHO_T}unsupported" >&6; } ;;
4072 CC="$CC $ac_cv_prog_cc_c89"
4073 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4074 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4084 depcc="$CC" am_compiler_list=
4086 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4087 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4088 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4092 # We make a subdir and do the tests there. Otherwise we can end up
4093 # making bogus files that we don't know about and never remove. For
4094 # instance it was reported that on HP-UX the gcc test will end up
4095 # making a dummy file named `D' -- because `-MD' means `put the output
4098 # Copy depcomp to subdir because otherwise we won't find it if we're
4099 # using a relative directory.
4100 cp "$am_depcomp" conftest.dir
4102 # We will build objects and dependencies in a subdirectory because
4103 # it helps to detect inapplicable dependency modes. For instance
4104 # both Tru64's cc and ICC support -MD to output dependencies as a
4105 # side effect of compilation, but ICC will put the dependencies in
4106 # the current directory while Tru64 will put them in the object
4110 am_cv_CC_dependencies_compiler_type=none
4111 if test "$am_compiler_list" = ""; then
4112 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4114 for depmode in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4123 for i in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4127 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4131 # after this tag, mechanisms are not by side-effect, so they'll
4132 # only be used when explicitly requested
4133 if test "x$enable_dependency_tracking" = xyes; then
4141 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4142 # mode. It turns out that the SunPro C++ compiler does not properly
4143 # handle `-M -o', and we need to detect this.
4144 if depmode=$depmode \
4145 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4146 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4147 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4148 >/dev/null 2>conftest.err &&
4149 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4150 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4151 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4152 # icc doesn't choke on unknown options, it will just issue warnings
4153 # (even with -Werror). So we grep stderr for any message
4154 # that says an option was ignored.
4155 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4156 am_cv_CC_dependencies_compiler_type=$depmode
4165 am_cv_CC_dependencies_compiler_type=none
4169 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4170 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4171 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4176 test "x$enable_dependency_tracking" != xno \
4177 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4179 am__fastdepCC_FALSE='#'
4181 am__fastdepCC_TRUE='#'
4182 am__fastdepCC_FALSE=
4189 { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
4190 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; }
4191 if test "${am_cv_prog_cc_stdc+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 am_cv_prog_cc_stdc=no
4196 # Don't try gcc -ansi; that turns off useful extensions and
4197 # breaks some systems' header files.
4198 # AIX -qlanglvl=ansi
4199 # Ultrix and OSF/1 -std1
4200 # HP-UX 10.20 and later -Ae
4201 # HP-UX older versions -Aa -D_HPUX_SOURCE
4202 # SVR4 -Xc -D__EXTENSIONS__
4203 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4205 CC="$ac_save_CC $ac_arg"
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4214 #include <sys/types.h>
4215 #include <sys/stat.h>
4216 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4217 struct buf { int x; };
4218 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4219 static char *e (p, i)
4225 static char *f (char * (*g) (char **, int), char **p, ...)
4230 s = g (p, va_arg (v,int));
4234 int test (int i, double x);
4235 struct s1 {int (*f) (int a);};
4236 struct s2 {int (*f) (double a);};
4237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4245 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4251 rm -f conftest.$ac_objext
4252 if { (ac_try="$ac_compile"
4254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255 *) ac_try_echo=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_compile") 2>conftest.er1
4260 grep -v '^ *+' conftest.er1 >conftest.err
4262 cat conftest.err >&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); } && {
4265 test -z "$ac_c_werror_flag" ||
4266 test ! -s conftest.err
4267 } && test -s conftest.$ac_objext; then
4268 am_cv_prog_cc_stdc="$ac_arg"; break
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4282 if test -z "$am_cv_prog_cc_stdc"; then
4283 { echo "$as_me:$LINENO: result: none needed" >&5
4284 echo "${ECHO_T}none needed" >&6; }
4286 { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
4287 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; }
4289 case "x$am_cv_prog_cc_stdc" in
4291 *) CC="$CC $am_cv_prog_cc_stdc" ;;
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4300 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4301 # On Suns, sometimes $CPP names a directory.
4302 if test -n "$CPP" && test -d "$CPP"; then
4305 if test -z "$CPP"; then
4306 if test "${ac_cv_prog_CPP+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 # Double quotes because CPP needs to be expanded
4310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4313 for ac_c_preproc_warn_flag in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error" is here to catch this case.
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4328 # include <limits.h>
4330 # include <assert.h>
4334 if { (ac_try="$ac_cpp conftest.$ac_ext"
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4342 grep -v '^ *+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); } >/dev/null && {
4347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4348 test ! -s conftest.err
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 # Broken: fails on valid input.
4359 rm -f conftest.err conftest.$ac_ext
4361 # OK, works on sane cases. Now check whether nonexistent headers
4362 # can be detected and how.
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <ac_nonexistent.h>
4371 if { (ac_try="$ac_cpp conftest.$ac_ext"
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); } >/dev/null && {
4384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4387 # Broken: success on invalid input.
4390 echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 # Passes both tests.
4398 rm -f conftest.err conftest.$ac_ext
4401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4402 rm -f conftest.err conftest.$ac_ext
4403 if $ac_preproc_ok; then
4415 { echo "$as_me:$LINENO: result: $CPP" >&5
4416 echo "${ECHO_T}$CPP" >&6; }
4418 for ac_c_preproc_warn_flag in '' yes
4420 # Use a header file that comes with gcc, so configuring glibc
4421 # with a fresh cross-compiler works.
4422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 # <limits.h> exists even on freestanding compilers.
4424 # On the NeXT, cc -E runs the code through the compiler's parser,
4425 # not just through cpp. "Syntax error" is here to catch this case.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4433 # include <limits.h>
4435 # include <assert.h>
4439 if { (ac_try="$ac_cpp conftest.$ac_ext"
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4447 grep -v '^ *+' conftest.er1 >conftest.err
4449 cat conftest.err >&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } >/dev/null && {
4452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4453 test ! -s conftest.err
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 # Broken: fails on valid input.
4464 rm -f conftest.err conftest.$ac_ext
4466 # OK, works on sane cases. Now check whether nonexistent headers
4467 # can be detected and how.
4468 cat >conftest.$ac_ext <<_ACEOF
4471 cat confdefs.h >>conftest.$ac_ext
4472 cat >>conftest.$ac_ext <<_ACEOF
4473 /* end confdefs.h. */
4474 #include <ac_nonexistent.h>
4476 if { (ac_try="$ac_cpp conftest.$ac_ext"
4478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479 *) ac_try_echo=$ac_try;;
4481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4484 grep -v '^ *+' conftest.er1 >conftest.err
4486 cat conftest.err >&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); } >/dev/null && {
4489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4490 test ! -s conftest.err
4492 # Broken: success on invalid input.
4495 echo "$as_me: failed program was:" >&5
4496 sed 's/^/| /' conftest.$ac_ext >&5
4498 # Passes both tests.
4503 rm -f conftest.err conftest.$ac_ext
4506 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4507 rm -f conftest.err conftest.$ac_ext
4508 if $ac_preproc_ok; then
4511 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4512 See \`config.log' for more details." >&5
4513 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4514 See \`config.log' for more details." >&2;}
4515 { (exit 1); exit 1; }; }
4519 ac_cpp='$CPP $CPPFLAGS'
4520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4526 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4527 if test "${ac_cv_path_GREP+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 # Extract the first word of "grep ggrep" to use in msg output
4531 if test -z "$GREP"; then
4532 set dummy grep ggrep; ac_prog_name=$2
4533 if test "${ac_cv_path_GREP+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4536 ac_path_GREP_found=false
4537 # Loop through the user's path and test for each of PROGNAME-LIST
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4542 test -z "$as_dir" && as_dir=.
4543 for ac_prog in grep ggrep; do
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4546 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4547 # Check for GNU ac_path_GREP and select it if it is found.
4548 # Check for GNU $ac_path_GREP
4549 case `"$ac_path_GREP" --version 2>&1` in
4551 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4554 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4557 cat "conftest.in" "conftest.in" >"conftest.tmp"
4558 mv "conftest.tmp" "conftest.in"
4559 cp "conftest.in" "conftest.nl"
4560 echo 'GREP' >> "conftest.nl"
4561 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4563 ac_count=`expr $ac_count + 1`
4564 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4565 # Best one so far, save it but keep looking for a better one
4566 ac_cv_path_GREP="$ac_path_GREP"
4567 ac_path_GREP_max=$ac_count
4569 # 10*(2^10) chars as input seems more than enough
4570 test $ac_count -gt 10 && break
4572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4576 $ac_path_GREP_found && break 3
4586 GREP="$ac_cv_path_GREP"
4587 if test -z "$GREP"; then
4588 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4589 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4590 { (exit 1); exit 1; }; }
4594 ac_cv_path_GREP=$GREP
4599 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4600 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4601 GREP="$ac_cv_path_GREP"
4604 { echo "$as_me:$LINENO: checking for egrep" >&5
4605 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4606 if test "${ac_cv_path_EGREP+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4610 then ac_cv_path_EGREP="$GREP -E"
4612 # Extract the first word of "egrep" to use in msg output
4613 if test -z "$EGREP"; then
4614 set dummy egrep; ac_prog_name=$2
4615 if test "${ac_cv_path_EGREP+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 ac_path_EGREP_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4624 test -z "$as_dir" && as_dir=.
4625 for ac_prog in egrep; do
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4628 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4629 # Check for GNU ac_path_EGREP and select it if it is found.
4630 # Check for GNU $ac_path_EGREP
4631 case `"$ac_path_EGREP" --version 2>&1` in
4633 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4636 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 echo 'EGREP' >> "conftest.nl"
4643 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 ac_count=`expr $ac_count + 1`
4646 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_EGREP="$ac_path_EGREP"
4649 ac_path_EGREP_max=$ac_count
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4658 $ac_path_EGREP_found && break 3
4668 EGREP="$ac_cv_path_EGREP"
4669 if test -z "$EGREP"; then
4670 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4671 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4672 { (exit 1); exit 1; }; }
4676 ac_cv_path_EGREP=$EGREP
4682 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4683 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4684 EGREP="$ac_cv_path_EGREP"
4687 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4688 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4689 if test "${ac_cv_header_stdc+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 cat >conftest.$ac_ext <<_ACEOF
4695 cat confdefs.h >>conftest.$ac_ext
4696 cat >>conftest.$ac_ext <<_ACEOF
4697 /* end confdefs.h. */
4711 rm -f conftest.$ac_objext
4712 if { (ac_try="$ac_compile"
4714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715 *) ac_try_echo=$ac_try;;
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718 (eval "$ac_compile") 2>conftest.er1
4720 grep -v '^ *+' conftest.er1 >conftest.err
4722 cat conftest.err >&5
4723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } && {
4725 test -z "$ac_c_werror_flag" ||
4726 test ! -s conftest.err
4727 } && test -s conftest.$ac_objext; then
4728 ac_cv_header_stdc=yes
4730 echo "$as_me: failed program was:" >&5
4731 sed 's/^/| /' conftest.$ac_ext >&5
4733 ac_cv_header_stdc=no
4736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 if test $ac_cv_header_stdc = yes; then
4739 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4750 $EGREP "memchr" >/dev/null 2>&1; then
4753 ac_cv_header_stdc=no
4759 if test $ac_cv_header_stdc = yes; then
4760 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4761 cat >conftest.$ac_ext <<_ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 $EGREP "free" >/dev/null 2>&1; then
4774 ac_cv_header_stdc=no
4780 if test $ac_cv_header_stdc = yes; then
4781 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4782 if test "$cross_compiling" = yes; then
4785 cat >conftest.$ac_ext <<_ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4793 #if ((' ' & 0x0FF) == 0x020)
4794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4797 # define ISLOWER(c) \
4798 (('a' <= (c) && (c) <= 'i') \
4799 || ('j' <= (c) && (c) <= 'r') \
4800 || ('s' <= (c) && (c) <= 'z'))
4801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4809 for (i = 0; i < 256; i++)
4810 if (XOR (islower (i), ISLOWER (i))
4811 || toupper (i) != TOUPPER (i))
4816 rm -f conftest$ac_exeext
4817 if { (ac_try="$ac_link"
4819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820 *) ac_try_echo=$ac_try;;
4822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4823 (eval "$ac_link") 2>&5
4825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4827 { (case "(($ac_try" in
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_try") 2>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; }; then
4838 echo "$as_me: program exited with status $ac_status" >&5
4839 echo "$as_me: failed program was:" >&5
4840 sed 's/^/| /' conftest.$ac_ext >&5
4843 ac_cv_header_stdc=no
4845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4851 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4852 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4853 if test $ac_cv_header_stdc = yes; then
4855 cat >>confdefs.h <<\_ACEOF
4856 #define STDC_HEADERS 1
4861 # Make sure we can run config.sub.
4862 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4863 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4864 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4865 { (exit 1); exit 1; }; }
4867 { echo "$as_me:$LINENO: checking build system type" >&5
4868 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4869 if test "${ac_cv_build+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4872 ac_build_alias=$build_alias
4873 test "x$ac_build_alias" = x &&
4874 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4875 test "x$ac_build_alias" = x &&
4876 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4877 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4878 { (exit 1); exit 1; }; }
4879 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4880 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4881 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4882 { (exit 1); exit 1; }; }
4885 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4886 echo "${ECHO_T}$ac_cv_build" >&6; }
4887 case $ac_cv_build in
4889 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4890 echo "$as_me: error: invalid value of canonical build" >&2;}
4891 { (exit 1); exit 1; }; };;
4894 ac_save_IFS=$IFS; IFS='-'
4900 # Remember, the first character of IFS is used to create $*,
4901 # except with old shells:
4904 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4907 { echo "$as_me:$LINENO: checking host system type" >&5
4908 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4909 if test "${ac_cv_host+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4912 if test "x$host_alias" = x; then
4913 ac_cv_host=$ac_cv_build
4915 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4916 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4917 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4918 { (exit 1); exit 1; }; }
4922 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4923 echo "${ECHO_T}$ac_cv_host" >&6; }
4926 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4927 echo "$as_me: error: invalid value of canonical host" >&2;}
4928 { (exit 1); exit 1; }; };;
4931 ac_save_IFS=$IFS; IFS='-'
4937 # Remember, the first character of IFS is used to create $*,
4938 # except with old shells:
4941 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4947 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4948 if test -n "$ac_tool_prefix"; then
4949 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4950 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4958 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4980 if test -n "$PKG_CONFIG"; then
4981 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4982 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4984 { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4990 if test -z "$ac_cv_path_PKG_CONFIG"; then
4991 ac_pt_PKG_CONFIG=$PKG_CONFIG
4992 # Extract the first word of "pkg-config", so it can be a program name with args.
4993 set dummy pkg-config; ac_word=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
4999 case $ac_pt_PKG_CONFIG in
5001 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5011 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5023 if test -n "$ac_pt_PKG_CONFIG"; then
5024 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5025 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
5027 { echo "$as_me:$LINENO: result: no" >&5
5028 echo "${ECHO_T}no" >&6; }
5031 if test "x$ac_pt_PKG_CONFIG" = x; then
5034 case $cross_compiling:$ac_tool_warned in
5036 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5037 whose name does not start with the host triplet. If you think this
5038 configuration is useful to you, please write to autoconf@gnu.org." >&5
5039 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5040 whose name does not start with the host triplet. If you think this
5041 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5042 ac_tool_warned=yes ;;
5044 PKG_CONFIG=$ac_pt_PKG_CONFIG
5047 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5051 if test -n "$PKG_CONFIG"; then
5052 _pkg_min_version=0.9.0
5053 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5054 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
5055 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5056 { echo "$as_me:$LINENO: result: yes" >&5
5057 echo "${ECHO_T}yes" >&6; }
5059 { echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6; }
5067 { echo "$as_me:$LINENO: checking for LIBPNG" >&5
5068 echo $ECHO_N "checking for LIBPNG... $ECHO_C" >&6; }
5070 if test -n "$PKG_CONFIG"; then
5071 if test -n "$LIBPNG_CFLAGS"; then
5072 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
5074 if test -n "$PKG_CONFIG" && \
5075 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5076 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; then
5080 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng " 2>/dev/null`
5088 if test -n "$PKG_CONFIG"; then
5089 if test -n "$LIBPNG_LIBS"; then
5090 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
5092 if test -n "$PKG_CONFIG" && \
5093 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpng \"") >&5
5094 ($PKG_CONFIG --exists --print-errors "libpng ") 2>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; then
5098 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng " 2>/dev/null`
5109 if test $pkg_failed = yes; then
5111 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5112 _pkg_short_errors_supported=yes
5114 _pkg_short_errors_supported=no
5116 if test $_pkg_short_errors_supported = yes; then
5117 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpng "`
5119 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpng "`
5121 # Put the nasty error message in config.log where it belongs
5122 echo "$LIBPNG_PKG_ERRORS" >&5
5124 { { echo "$as_me:$LINENO: error: Package requirements (libpng ) were not met:
5128 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5129 installed software in a non-standard prefix.
5131 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5132 and LIBPNG_LIBS to avoid the need to call pkg-config.
5133 See the pkg-config man page for more details.
5135 echo "$as_me: error: Package requirements (libpng ) were not met:
5139 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5140 installed software in a non-standard prefix.
5142 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5143 and LIBPNG_LIBS to avoid the need to call pkg-config.
5144 See the pkg-config man page for more details.
5146 { (exit 1); exit 1; }; }
5147 elif test $pkg_failed = untried; then
5148 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5149 is in your PATH or set the PKG_CONFIG environment variable to the full
5152 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5153 and LIBPNG_LIBS to avoid the need to call pkg-config.
5154 See the pkg-config man page for more details.
5156 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5157 See \`config.log' for more details." >&5
5158 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5159 is in your PATH or set the PKG_CONFIG environment variable to the full
5162 Alternatively, you may set the environment variables LIBPNG_CFLAGS
5163 and LIBPNG_LIBS to avoid the need to call pkg-config.
5164 See the pkg-config man page for more details.
5166 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5167 See \`config.log' for more details." >&2;}
5168 { (exit 1); exit 1; }; }
5170 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
5171 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
5172 { echo "$as_me:$LINENO: result: yes" >&5
5173 echo "${ECHO_T}yes" >&6; }
5178 { echo "$as_me:$LINENO: checking for glXQueryVersion in -lGL" >&5
5179 echo $ECHO_N "checking for glXQueryVersion in -lGL... $ECHO_C" >&6; }
5180 if test "${ac_cv_lib_GL_glXQueryVersion+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 ac_check_lib_save_LIBS=$LIBS
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5192 /* Override any GCC internal prototype to avoid an error.
5193 Use char because int might match the return type of a GCC
5194 builtin and then its argument prototype would still apply. */
5198 char glXQueryVersion ();
5202 return glXQueryVersion ();
5207 rm -f conftest.$ac_objext conftest$ac_exeext
5208 if { (ac_try="$ac_link"
5210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211 *) ac_try_echo=$ac_try;;
5213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214 (eval "$ac_link") 2>conftest.er1
5216 grep -v '^ *+' conftest.er1 >conftest.err
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } && {
5221 test -z "$ac_c_werror_flag" ||
5222 test ! -s conftest.err
5223 } && test -s conftest$ac_exeext &&
5224 $as_test_x conftest$ac_exeext; then
5225 ac_cv_lib_GL_glXQueryVersion=yes
5227 echo "$as_me: failed program was:" >&5
5228 sed 's/^/| /' conftest.$ac_ext >&5
5230 ac_cv_lib_GL_glXQueryVersion=no
5233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5234 conftest$ac_exeext conftest.$ac_ext
5235 LIBS=$ac_check_lib_save_LIBS
5237 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXQueryVersion" >&5
5238 echo "${ECHO_T}$ac_cv_lib_GL_glXQueryVersion" >&6; }
5239 if test $ac_cv_lib_GL_glXQueryVersion = yes; then
5240 cat >>confdefs.h <<_ACEOF
5241 #define HAVE_LIBGL 1
5248 echo "The OpenGL library (libGL.so) could not be found, but is required."
5252 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5262 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5263 inttypes.h stdint.h unistd.h
5265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5274 cat confdefs.h >>conftest.$ac_ext
5275 cat >>conftest.$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5277 $ac_includes_default
5279 #include <$ac_header>
5281 rm -f conftest.$ac_objext
5282 if { (ac_try="$ac_compile"
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_compile") 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && {
5295 test -z "$ac_c_werror_flag" ||
5296 test ! -s conftest.err
5297 } && test -s conftest.$ac_objext; then
5298 eval "$as_ac_Header=yes"
5300 echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5303 eval "$as_ac_Header=no"
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5308 ac_res=`eval echo '${'$as_ac_Header'}'`
5309 { echo "$as_me:$LINENO: result: $ac_res" >&5
5310 echo "${ECHO_T}$ac_res" >&6; }
5311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5312 cat >>confdefs.h <<_ACEOF
5313 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5321 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5322 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5323 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5324 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5328 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5330 # Is the header compilable?
5331 { echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
5332 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6; }
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5339 $ac_includes_default
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1 >conftest.err
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
5359 ac_header_compiler=yes
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 ac_header_compiler=no
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5369 echo "${ECHO_T}$ac_header_compiler" >&6; }
5371 # Is the header present?
5372 { echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
5373 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6; }
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5382 if { (ac_try="$ac_cpp conftest.$ac_ext"
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5390 grep -v '^ *+' conftest.er1 >conftest.err
5392 cat conftest.err >&5
5393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); } >/dev/null && {
5395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5396 test ! -s conftest.err
5398 ac_header_preproc=yes
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5403 ac_header_preproc=no
5406 rm -f conftest.err conftest.$ac_ext
5407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5408 echo "${ECHO_T}$ac_header_preproc" >&6; }
5410 # So? What about this header?
5411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5413 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
5414 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
5416 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
5417 ac_header_preproc=yes
5420 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
5421 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
5422 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
5423 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
5424 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
5425 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
5427 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
5428 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
5429 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
5430 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
5431 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
5435 { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
5436 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
5437 if test "${ac_cv_header_GL_gl_h+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 ac_cv_header_GL_gl_h=$ac_header_preproc
5442 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
5443 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
5446 if test $ac_cv_header_GL_gl_h = yes; then
5450 echo "The OpenGL header files (eg GL/gl.h) could not be found, but are required."
5456 { echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
5457 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6; }
5458 if test "${ac_cv_lib_z_uncompress+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 ac_check_lib_save_LIBS=$LIBS
5463 cat >conftest.$ac_ext <<_ACEOF
5466 cat confdefs.h >>conftest.$ac_ext
5467 cat >>conftest.$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5470 /* Override any GCC internal prototype to avoid an error.
5471 Use char because int might match the return type of a GCC
5472 builtin and then its argument prototype would still apply. */
5480 return uncompress ();
5485 rm -f conftest.$ac_objext conftest$ac_exeext
5486 if { (ac_try="$ac_link"
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_link") 2>conftest.er1
5494 grep -v '^ *+' conftest.er1 >conftest.err
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest$ac_exeext &&
5502 $as_test_x conftest$ac_exeext; then
5503 ac_cv_lib_z_uncompress=yes
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5508 ac_cv_lib_z_uncompress=no
5511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5512 conftest$ac_exeext conftest.$ac_ext
5513 LIBS=$ac_check_lib_save_LIBS
5515 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
5516 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6; }
5517 if test $ac_cv_lib_z_uncompress = yes; then
5518 cat >>confdefs.h <<_ACEOF
5526 echo "Zlib (libz.so) could not be found, but is required."
5533 { echo "$as_me:$LINENO: checking for GTK" >&5
5534 echo $ECHO_N "checking for GTK... $ECHO_C" >&6; }
5536 if test -n "$PKG_CONFIG"; then
5537 if test -n "$GTK_CFLAGS"; then
5538 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
5540 if test -n "$PKG_CONFIG" && \
5541 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5542 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; then
5546 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
5554 if test -n "$PKG_CONFIG"; then
5555 if test -n "$GTK_LIBS"; then
5556 pkg_cv_GTK_LIBS="$GTK_LIBS"
5558 if test -n "$PKG_CONFIG" && \
5559 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\"") >&5
5560 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
5562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); }; then
5564 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
5575 if test $pkg_failed = yes; then
5577 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5578 _pkg_short_errors_supported=yes
5580 _pkg_short_errors_supported=no
5582 if test $_pkg_short_errors_supported = yes; then
5583 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-2.0"`
5585 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
5587 # Put the nasty error message in config.log where it belongs
5588 echo "$GTK_PKG_ERRORS" >&5
5590 { { echo "$as_me:$LINENO: error: Package requirements (gtk+-2.0) were not met:
5594 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5595 installed software in a non-standard prefix.
5597 Alternatively, you may set the environment variables GTK_CFLAGS
5598 and GTK_LIBS to avoid the need to call pkg-config.
5599 See the pkg-config man page for more details.
5601 echo "$as_me: error: Package requirements (gtk+-2.0) were not met:
5605 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5606 installed software in a non-standard prefix.
5608 Alternatively, you may set the environment variables GTK_CFLAGS
5609 and GTK_LIBS to avoid the need to call pkg-config.
5610 See the pkg-config man page for more details.
5612 { (exit 1); exit 1; }; }
5613 elif test $pkg_failed = untried; then
5614 { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
5615 is in your PATH or set the PKG_CONFIG environment variable to the full
5618 Alternatively, you may set the environment variables GTK_CFLAGS
5619 and GTK_LIBS to avoid the need to call pkg-config.
5620 See the pkg-config man page for more details.
5622 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5623 See \`config.log' for more details." >&5
5624 echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
5625 is in your PATH or set the PKG_CONFIG environment variable to the full
5628 Alternatively, you may set the environment variables GTK_CFLAGS
5629 and GTK_LIBS to avoid the need to call pkg-config.
5630 See the pkg-config man page for more details.
5632 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
5633 See \`config.log' for more details." >&2;}
5634 { (exit 1); exit 1; }; }
5636 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
5637 GTK_LIBS=$pkg_cv_GTK_LIBS
5638 { echo "$as_me:$LINENO: result: yes" >&5
5639 echo "${ECHO_T}yes" >&6; }
5644 if test "$HAVE_GTK" = 'yes'; then
5654 i386|i486|i586|i686)
5655 SH4_TRANSLATOR="x86"
5657 cat >>confdefs.h <<_ACEOF
5658 #define SH4_TRANSLATOR TARGET_X86
5662 SH4_TRANSLATOR="x86_64"
5664 cat >>confdefs.h <<_ACEOF
5665 #define SH4_TRANSLATOR TARGET_X86_64
5669 echo "Warning: No translator available for $host. Building emulation core only";;
5673 if test "$SH4_TRANSLATOR" = "x86" -o "$SH4_TRANSLATOR" = "x86_64"; then
5675 BUILD_SH4X86_FALSE='#'
5677 BUILD_SH4X86_TRUE='#'
5684 { echo "$as_me:$LINENO: checking for ESOUND" >&5
5685 echo $ECHO_N "checking for ESOUND... $ECHO_C" >&6; }
5687 if test -n "$PKG_CONFIG"; then
5688 if test -n "$ESOUND_CFLAGS"; then
5689 pkg_cv_ESOUND_CFLAGS="$ESOUND_CFLAGS"
5691 if test -n "$PKG_CONFIG" && \
5692 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
5693 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; then
5697 pkg_cv_ESOUND_CFLAGS=`$PKG_CONFIG --cflags "esound" 2>/dev/null`
5705 if test -n "$PKG_CONFIG"; then
5706 if test -n "$ESOUND_LIBS"; then
5707 pkg_cv_ESOUND_LIBS="$ESOUND_LIBS"
5709 if test -n "$PKG_CONFIG" && \
5710 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"esound\"") >&5
5711 ($PKG_CONFIG --exists --print-errors "esound") 2>&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; then
5715 pkg_cv_ESOUND_LIBS=`$PKG_CONFIG --libs "esound" 2>/dev/null`
5726 if test $pkg_failed = yes; then
5728 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5729 _pkg_short_errors_supported=yes
5731 _pkg_short_errors_supported=no
5733 if test $_pkg_short_errors_supported = yes; then
5734 ESOUND_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "esound"`
5736 ESOUND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "esound"`
5738 # Put the nasty error message in config.log where it belongs
5739 echo "$ESOUND_PKG_ERRORS" >&5
5741 echo "Warning: esound not found - building without audio support"
5742 elif test $pkg_failed = untried; then
5743 echo "Warning: esound not found - building without audio support"
5745 ESOUND_CFLAGS=$pkg_cv_ESOUND_CFLAGS
5746 ESOUND_LIBS=$pkg_cv_ESOUND_LIBS
5747 { echo "$as_me:$LINENO: result: yes" >&5
5748 echo "${ECHO_T}yes" >&6; }
5752 cat >>confdefs.h <<\_ACEOF
5753 #define HAVE_ESOUND 1
5759 if test "$HAVE_ESOUND" = 'yes' ; then
5761 AUDIO_ESOUND_FALSE='#'
5763 AUDIO_ESOUND_TRUE='#'
5768 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5769 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5770 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5771 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5775 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5777 # Is the header compilable?
5778 { echo "$as_me:$LINENO: checking linux/cdrom.h usability" >&5
5779 echo $ECHO_N "checking linux/cdrom.h usability... $ECHO_C" >&6; }
5780 cat >conftest.$ac_ext <<_ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786 $ac_includes_default
5787 #include <linux/cdrom.h>
5789 rm -f conftest.$ac_objext
5790 if { (ac_try="$ac_compile"
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_compile") 2>conftest.er1
5798 grep -v '^ *+' conftest.er1 >conftest.err
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } && {
5803 test -z "$ac_c_werror_flag" ||
5804 test ! -s conftest.err
5805 } && test -s conftest.$ac_objext; then
5806 ac_header_compiler=yes
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5811 ac_header_compiler=no
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5816 echo "${ECHO_T}$ac_header_compiler" >&6; }
5818 # Is the header present?
5819 { echo "$as_me:$LINENO: checking linux/cdrom.h presence" >&5
5820 echo $ECHO_N "checking linux/cdrom.h presence... $ECHO_C" >&6; }
5821 cat >conftest.$ac_ext <<_ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #include <linux/cdrom.h>
5829 if { (ac_try="$ac_cpp conftest.$ac_ext"
5831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5832 *) ac_try_echo=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1 >conftest.err
5839 cat conftest.err >&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } >/dev/null && {
5842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5845 ac_header_preproc=yes
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.$ac_ext >&5
5850 ac_header_preproc=no
5853 rm -f conftest.err conftest.$ac_ext
5854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5855 echo "${ECHO_T}$ac_header_preproc" >&6; }
5857 # So? What about this header?
5858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5860 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&5
5861 echo "$as_me: WARNING: linux/cdrom.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5862 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&5
5863 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the compiler's result" >&2;}
5864 ac_header_preproc=yes
5867 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: present but cannot be compiled" >&5
5868 echo "$as_me: WARNING: linux/cdrom.h: present but cannot be compiled" >&2;}
5869 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&5
5870 echo "$as_me: WARNING: linux/cdrom.h: check for missing prerequisite headers?" >&2;}
5871 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: see the Autoconf documentation" >&5
5872 echo "$as_me: WARNING: linux/cdrom.h: see the Autoconf documentation" >&2;}
5873 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&5
5874 echo "$as_me: WARNING: linux/cdrom.h: section \"Present But Cannot Be Compiled\"" >&2;}
5875 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&5
5876 echo "$as_me: WARNING: linux/cdrom.h: proceeding with the preprocessor's result" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&5
5878 echo "$as_me: WARNING: linux/cdrom.h: in the future, the compiler will take precedence" >&2;}
5882 { echo "$as_me:$LINENO: checking for linux/cdrom.h" >&5
5883 echo $ECHO_N "checking for linux/cdrom.h... $ECHO_C" >&6; }
5884 if test "${ac_cv_header_linux_cdrom_h+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 ac_cv_header_linux_cdrom_h=$ac_header_preproc
5889 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_cdrom_h" >&5
5890 echo "${ECHO_T}$ac_cv_header_linux_cdrom_h" >&6; }
5893 if test $ac_cv_header_linux_cdrom_h = yes; then
5894 HAVE_LINUX_CDROM_H=yes
5897 echo "Linux CDROM support not found, building without it."
5903 if test "$HAVE_LINUX_CDROM_H" = "yes"; then
5905 CDROM_LINUX_FALSE='#'
5907 CDROM_LINUX_TRUE='#'
5912 # Extract the first word of "sh-elf-gcc", so it can be a program name with args.
5913 set dummy sh-elf-gcc; ac_word=$2
5914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5916 if test "${ac_cv_path_SHCC+set}" = set; then
5917 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 ac_cv_path_SHCC="$SHCC" # Let the user override the test with a path.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5931 ac_cv_path_SHCC="$as_dir/$ac_word$ac_exec_ext"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 SHCC=$ac_cv_path_SHCC
5943 if test -n "$SHCC"; then
5944 { echo "$as_me:$LINENO: result: $SHCC" >&5
5945 echo "${ECHO_T}$SHCC" >&6; }
5947 { echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6; }
5952 # Extract the first word of "sh-elf-ld", so it can be a program name with args.
5953 set dummy sh-elf-ld; ac_word=$2
5954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5956 if test "${ac_cv_path_SHLD+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 ac_cv_path_SHLD="$SHLD" # Let the user override the test with a path.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5971 ac_cv_path_SHLD="$as_dir/$ac_word$ac_exec_ext"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 SHLD=$ac_cv_path_SHLD
5983 if test -n "$SHLD"; then
5984 { echo "$as_me:$LINENO: result: $SHLD" >&5
5985 echo "${ECHO_T}$SHLD" >&6; }
5987 { echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6; }
5992 # Extract the first word of "sh-elf-objcopy", so it can be a program name with args.
5993 set dummy sh-elf-objcopy; ac_word=$2
5994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5996 if test "${ac_cv_path_SHOBJCOPY+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 ac_cv_path_SHOBJCOPY="$SHOBJCOPY" # Let the user override the test with a path.
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6011 ac_cv_path_SHOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
6012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022 SHOBJCOPY=$ac_cv_path_SHOBJCOPY
6023 if test -n "$SHOBJCOPY"; then
6024 { echo "$as_me:$LINENO: result: $SHOBJCOPY" >&5
6025 echo "${ECHO_T}$SHOBJCOPY" >&6; }
6027 { echo "$as_me:$LINENO: result: no" >&5
6028 echo "${ECHO_T}no" >&6; }
6032 # Extract the first word of "arm-elf-gcc", so it can be a program name with args.
6033 set dummy arm-elf-gcc; ac_word=$2
6034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6036 if test "${ac_cv_path_ARMCC+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 ac_cv_path_ARMCC="$ARMCC" # Let the user override the test with a path.
6044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 test -z "$as_dir" && as_dir=.
6049 for ac_exec_ext in '' $ac_executable_extensions; do
6050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6051 ac_cv_path_ARMCC="$as_dir/$ac_word$ac_exec_ext"
6052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 ARMCC=$ac_cv_path_ARMCC
6063 if test -n "$ARMCC"; then
6064 { echo "$as_me:$LINENO: result: $ARMCC" >&5
6065 echo "${ECHO_T}$ARMCC" >&6; }
6067 { echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6; }
6072 # Extract the first word of "arm-elf-ld", so it can be a program name with args.
6073 set dummy arm-elf-ld; ac_word=$2
6074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6076 if test "${ac_cv_path_ARMLD+set}" = set; then
6077 echo $ECHO_N "(cached) $ECHO_C" >&6
6081 ac_cv_path_ARMLD="$ARMLD" # Let the user override the test with a path.
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6091 ac_cv_path_ARMLD="$as_dir/$ac_word$ac_exec_ext"
6092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102 ARMLD=$ac_cv_path_ARMLD
6103 if test -n "$ARMLD"; then
6104 { echo "$as_me:$LINENO: result: $ARMLD" >&5
6105 echo "${ECHO_T}$ARMLD" >&6; }
6107 { echo "$as_me:$LINENO: result: no" >&5
6108 echo "${ECHO_T}no" >&6; }
6112 # Extract the first word of "arm-elf-objcopy", so it can be a program name with args.
6113 set dummy arm-elf-objcopy; ac_word=$2
6114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6116 if test "${ac_cv_path_ARMOBJCOPY+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6121 ac_cv_path_ARMOBJCOPY="$ARMOBJCOPY" # Let the user override the test with a path.
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6131 ac_cv_path_ARMOBJCOPY="$as_dir/$ac_word$ac_exec_ext"
6132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 ARMOBJCOPY=$ac_cv_path_ARMOBJCOPY
6143 if test -n "$ARMOBJCOPY"; then
6144 { echo "$as_me:$LINENO: result: $ARMOBJCOPY" >&5
6145 echo "${ECHO_T}$ARMOBJCOPY" >&6; }
6147 { echo "$as_me:$LINENO: result: no" >&5
6148 echo "${ECHO_T}no" >&6; }
6153 if test "x$SHCC" = "x" -o "x$SHLD" = "x" -o "x$SHOBJCOPY" = "x"; then
6155 echo "Warning: SH4 cross-compiler not found, system tests will be disabled."
6159 if test "x$ARMCC" = "x" -o "x$ARMLD" = "x" -o "x$ARMOBJCOPY" = "x"; then
6161 echo "Warning: ARM cross-compiler not found, AICA tests will be disabled."
6167 if test "$BUILD_SH" = "yes"; then
6169 BUILD_SYSTEST_FALSE='#'
6171 BUILD_SYSTEST_TRUE='#'
6172 BUILD_SYSTEST_FALSE=
6177 if test "$BUILD_ARM" = "yes"; then
6179 BUILD_ARMTEST_FALSE='#'
6181 BUILD_ARMTEST_TRUE='#'
6182 BUILD_ARMTEST_FALSE=
6187 GETTEXT_PACKAGE=lxdream
6190 cat >>confdefs.h <<_ACEOF
6191 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
6195 ALL_LINGUAS="de pt_BR"
6198 for ac_header in locale.h
6200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6207 ac_res=`eval echo '${'$as_ac_Header'}'`
6208 { echo "$as_me:$LINENO: result: $ac_res" >&5
6209 echo "${ECHO_T}$ac_res" >&6; }
6211 # Is the header compilable?
6212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 $ac_includes_default
6221 #include <$ac_header>
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ac_header_compiler=yes
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_header_compiler=no
6248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6250 echo "${ECHO_T}$ac_header_compiler" >&6; }
6252 # Is the header present?
6253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261 #include <$ac_header>
6263 if { (ac_try="$ac_cpp conftest.$ac_ext"
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } >/dev/null && {
6276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6279 ac_header_preproc=yes
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 ac_header_preproc=no
6287 rm -f conftest.err conftest.$ac_ext
6288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6289 echo "${ECHO_T}$ac_header_preproc" >&6; }
6291 # So? What about this header?
6292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6298 ac_header_preproc=yes
6301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 eval "$as_ac_Header=\$ac_header_preproc"
6323 ac_res=`eval echo '${'$as_ac_Header'}'`
6324 { echo "$as_me:$LINENO: result: $ac_res" >&5
6325 echo "${ECHO_T}$ac_res" >&6; }
6328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6329 cat >>confdefs.h <<_ACEOF
6330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6337 if test $ac_cv_header_locale_h = yes; then
6338 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6339 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
6340 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (ac_try="$ac_link"
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_link") 2>conftest.er1
6367 grep -v '^ *+' conftest.er1 >conftest.err
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && {
6372 test -z "$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 } && test -s conftest$ac_exeext &&
6375 $as_test_x conftest$ac_exeext; then
6376 am_cv_val_LC_MESSAGES=yes
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 am_cv_val_LC_MESSAGES=no
6384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6385 conftest$ac_exeext conftest.$ac_ext
6387 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6388 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
6389 if test $am_cv_val_LC_MESSAGES = yes; then
6391 cat >>confdefs.h <<\_ACEOF
6392 #define HAVE_LC_MESSAGES 1
6400 gt_cv_have_gettext=no
6406 if test "${ac_cv_header_libintl_h+set}" = set; then
6407 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6408 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6409 if test "${ac_cv_header_libintl_h+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6413 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6415 # Is the header compilable?
6416 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
6417 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 $ac_includes_default
6425 #include <libintl.h>
6427 rm -f conftest.$ac_objext
6428 if { (ac_try="$ac_compile"
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_compile") 2>conftest.er1
6436 grep -v '^ *+' conftest.er1 >conftest.err
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest.$ac_objext; then
6444 ac_header_compiler=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 ac_header_compiler=no
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6454 echo "${ECHO_T}$ac_header_compiler" >&6; }
6456 # Is the header present?
6457 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
6458 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
6459 cat >conftest.$ac_ext <<_ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 #include <libintl.h>
6467 if { (ac_try="$ac_cpp conftest.$ac_ext"
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6475 grep -v '^ *+' conftest.er1 >conftest.err
6477 cat conftest.err >&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); } >/dev/null && {
6480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6481 test ! -s conftest.err
6483 ac_header_preproc=yes
6485 echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6488 ac_header_preproc=no
6491 rm -f conftest.err conftest.$ac_ext
6492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6493 echo "${ECHO_T}$ac_header_preproc" >&6; }
6495 # So? What about this header?
6496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6498 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
6499 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6500 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
6501 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
6502 ac_header_preproc=yes
6505 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
6506 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
6507 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
6508 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
6510 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
6512 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
6514 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
6516 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
6520 { echo "$as_me:$LINENO: checking for libintl.h" >&5
6521 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
6522 if test "${ac_cv_header_libintl_h+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 ac_cv_header_libintl_h=$ac_header_preproc
6527 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
6528 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
6531 if test $ac_cv_header_libintl_h = yes; then
6532 gt_cv_func_dgettext_libintl="no"
6533 libintl_extra_libs=""
6536 # First check in libc
6538 { echo "$as_me:$LINENO: checking for ngettext in libc" >&5
6539 echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6; }
6540 if test "${gt_cv_func_ngettext_libc+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 cat >conftest.$ac_ext <<_ACEOF
6546 cat confdefs.h >>conftest.$ac_ext
6547 cat >>conftest.$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6550 #include <libintl.h>
6555 return !ngettext ("","", 1)
6560 rm -f conftest.$ac_objext conftest$ac_exeext
6561 if { (ac_try="$ac_link"
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_link") 2>conftest.er1
6569 grep -v '^ *+' conftest.er1 >conftest.err
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } && {
6574 test -z "$ac_c_werror_flag" ||
6575 test ! -s conftest.err
6576 } && test -s conftest$ac_exeext &&
6577 $as_test_x conftest$ac_exeext; then
6578 gt_cv_func_ngettext_libc=yes
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 gt_cv_func_ngettext_libc=no
6586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6587 conftest$ac_exeext conftest.$ac_ext
6590 { echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
6591 echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6; }
6593 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6594 { echo "$as_me:$LINENO: checking for dgettext in libc" >&5
6595 echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6; }
6596 if test "${gt_cv_func_dgettext_libc+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6606 #include <libintl.h>
6611 return !dgettext ("","")
6616 rm -f conftest.$ac_objext conftest$ac_exeext
6617 if { (ac_try="$ac_link"
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623 (eval "$ac_link") 2>conftest.er1
6625 grep -v '^ *+' conftest.er1 >conftest.err
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && {
6630 test -z "$ac_c_werror_flag" ||
6631 test ! -s conftest.err
6632 } && test -s conftest$ac_exeext &&
6633 $as_test_x conftest$ac_exeext; then
6634 gt_cv_func_dgettext_libc=yes
6636 echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 gt_cv_func_dgettext_libc=no
6642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6643 conftest$ac_exeext conftest.$ac_ext
6646 { echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
6647 echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6; }
6650 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
6652 for ac_func in bind_textdomain_codeset
6654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6658 echo $ECHO_N "(cached) $ECHO_C" >&6
6660 cat >conftest.$ac_ext <<_ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6668 #define $ac_func innocuous_$ac_func
6670 /* System header to define __stub macros and hopefully few prototypes,
6671 which can conflict with char $ac_func (); below.
6672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6673 <limits.h> exists even on freestanding compilers. */
6676 # include <limits.h>
6678 # include <assert.h>
6683 /* Override any GCC internal prototype to avoid an error.
6684 Use char because int might match the return type of a GCC
6685 builtin and then its argument prototype would still apply. */
6690 /* The GNU C library defines this for functions which it implements
6691 to always fail with ENOSYS. Some functions are actually named
6692 something starting with __ and the normal name is an alias. */
6693 #if defined __stub_$ac_func || defined __stub___$ac_func
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (ac_try="$ac_link"
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_link") 2>conftest.er1
6714 grep -v '^ *+' conftest.er1 >conftest.err
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest$ac_exeext &&
6722 $as_test_x conftest$ac_exeext; then
6723 eval "$as_ac_var=yes"
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.$ac_ext >&5
6728 eval "$as_ac_var=no"
6731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6732 conftest$ac_exeext conftest.$ac_ext
6734 ac_res=`eval echo '${'$as_ac_var'}'`
6735 { echo "$as_me:$LINENO: result: $ac_res" >&5
6736 echo "${ECHO_T}$ac_res" >&6; }
6737 if test `eval echo '${'$as_ac_var'}'` = yes; then
6738 cat >>confdefs.h <<_ACEOF
6739 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6748 # If we don't have everything we want, check in libintl
6750 if test "$gt_cv_func_dgettext_libc" != "yes" \
6751 || test "$gt_cv_func_ngettext_libc" != "yes" \
6752 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
6754 { echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&