2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59d for libjava version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
66 # Find who we are. Look in the path if we contain no directory separator.
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
157 if test $as_have_required = yes && (eval ":
167 as_func_ret_success () {
170 as_func_ret_failure () {
175 if as_func_success; then
179 echo as_func_success failed.
182 if as_func_failure; then
184 echo as_func_failure succeeded.
187 if as_func_ret_success; then
191 echo as_func_ret_success failed.
194 if as_func_ret_failure; then
196 echo as_func_ret_failure succeeded.
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 echo positional parameters were not saved.
206 test \$exitcode = 0) || { (exit 1); exit 1; }
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir=.
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells which exist, to save several forks.
234 if test -f $as_shell &&
235 { ($as_shell) 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
253 CONFIG_SHELL=$as_shell
255 if { $as_shell 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
280 as_func_ret_success () {
283 as_func_ret_failure () {
288 if as_func_success; then
292 echo as_func_success failed.
295 if as_func_failure; then
297 echo as_func_failure succeeded.
300 if as_func_ret_success; then
304 echo as_func_ret_success failed.
307 if as_func_ret_failure; then
309 echo as_func_ret_failure succeeded.
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
316 echo positional parameters were not saved.
319 test $exitcode = 0) || { (exit 1); exit 1; }
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
360 (eval "as_func_return () {
369 as_func_ret_success () {
372 as_func_ret_failure () {
377 if as_func_success; then
381 echo as_func_success failed.
384 if as_func_failure; then
386 echo as_func_failure succeeded.
389 if as_func_ret_success; then
393 echo as_func_ret_success failed.
396 if as_func_ret_failure; then
398 echo as_func_ret_failure succeeded.
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
405 echo positional parameters were not saved.
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
455 # Exit status is that of the last command.
460 if (dirname -- /) >/dev/null 2>&1; then
466 ECHO_C= ECHO_N= ECHO_T=
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
508 if mkdir -p . 2>/dev/null; then
511 test -d ./-p && rmdir ./-p
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
555 SHELL=${CONFIG_SHELL-/bin/sh}
557 # Identity of this package.
558 PACKAGE_NAME='libjava'
559 PACKAGE_TARNAME='libjava'
560 PACKAGE_VERSION='version-unused'
561 PACKAGE_STRING='libjava version-unused'
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
569 # include <sys/types.h>
572 # include <sys/stat.h>
583 # if !STDC_HEADERS && HAVE_MEMORY_H
589 # include <strings.h>
592 # include <inttypes.h>
610 program_transform_name
680 INSTALL_STRIP_PROGRAM
710 MAINTAINER_MODE_FALSE
742 PLATFORM_INNER_NAT_HDRS
746 USING_WIN32_PLATFORM_TRUE
747 USING_WIN32_PLATFORM_FALSE
748 USING_POSIX_PLATFORM_TRUE
749 USING_POSIX_PLATFORM_FALSE
750 USING_DARWIN_CRT_TRUE
751 USING_DARWIN_CRT_FALSE
768 extra_ldflags_libjava
785 USING_POSIX_THREADS_TRUE
786 USING_POSIX_THREADS_FALSE
787 USING_WIN32_THREADS_TRUE
788 USING_WIN32_THREADS_FALSE
789 USING_NO_THREADS_TRUE
790 USING_NO_THREADS_FALSE
813 NEEDS_DATA_START_TRUE
814 NEEDS_DATA_START_FALSE
827 LD_FINISH_STATIC_SPEC
832 ac_precious_vars='build_alias
839 ac_subdirs_all='classpath libltdl'
841 # Initialize some variables set by options.
843 ac_init_version=false
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name=s,x,x,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
903 # Accept the important Cygnus configure options, so we can diagnose typos.
905 case $ac_dashdash$ac_option in
909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914 -build | --build | --buil | --bui | --bu)
915 ac_prev=build_alias ;;
916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917 build_alias=$ac_optarg ;;
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924 cache_file=$ac_optarg ;;
927 cache_file=config.cache ;;
929 -datadir | --datadir | --datadi | --datad)
931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
932 datadir=$ac_optarg ;;
934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
941 -disable-* | --disable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 -enable-* | --enable-*)
961 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
964 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
965 { (exit 1); exit 1; }; }
966 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
967 eval enable_$ac_feature=\$ac_optarg ;;
969 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
970 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
971 | --exec | --exe | --ex)
972 ac_prev=exec_prefix ;;
973 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
974 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
975 | --exec=* | --exe=* | --ex=*)
976 exec_prefix=$ac_optarg ;;
978 -gas | --gas | --ga | --g)
979 # Obsolete; use --with-gas.
982 -help | --help | --hel | --he | -h)
984 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
985 ac_init_help=recursive ;;
986 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
987 ac_init_help=short ;;
989 -host | --host | --hos | --ho)
990 ac_prev=host_alias ;;
991 -host=* | --host=* | --hos=* | --ho=*)
992 host_alias=$ac_optarg ;;
994 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 htmldir=$ac_optarg ;;
1000 -includedir | --includedir | --includedi | --included | --include \
1001 | --includ | --inclu | --incl | --inc)
1002 ac_prev=includedir ;;
1003 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1004 | --includ=* | --inclu=* | --incl=* | --inc=*)
1005 includedir=$ac_optarg ;;
1007 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1010 infodir=$ac_optarg ;;
1012 -libdir | --libdir | --libdi | --libd)
1014 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1015 libdir=$ac_optarg ;;
1017 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1018 | --libexe | --libex | --libe)
1019 ac_prev=libexecdir ;;
1020 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1021 | --libexe=* | --libex=* | --libe=*)
1022 libexecdir=$ac_optarg ;;
1024 -localedir | --localedir | --localedi | --localed | --locale)
1025 ac_prev=localedir ;;
1026 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1027 localedir=$ac_optarg ;;
1029 -localstatedir | --localstatedir | --localstatedi | --localstated \
1030 | --localstate | --localstat | --localsta | --localst | --locals)
1031 ac_prev=localstatedir ;;
1032 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1033 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1034 localstatedir=$ac_optarg ;;
1036 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1039 mandir=$ac_optarg ;;
1041 -nfp | --nfp | --nf)
1042 # Obsolete; use --without-fp.
1045 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1046 | --no-cr | --no-c | -n)
1049 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1050 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1053 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1054 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1055 | --oldin | --oldi | --old | --ol | --o)
1056 ac_prev=oldincludedir ;;
1057 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1058 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1059 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1060 oldincludedir=$ac_optarg ;;
1062 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1065 prefix=$ac_optarg ;;
1067 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1068 | --program-pre | --program-pr | --program-p)
1069 ac_prev=program_prefix ;;
1070 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1071 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1072 program_prefix=$ac_optarg ;;
1074 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1075 | --program-suf | --program-su | --program-s)
1076 ac_prev=program_suffix ;;
1077 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1078 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1079 program_suffix=$ac_optarg ;;
1081 -program-transform-name | --program-transform-name \
1082 | --program-transform-nam | --program-transform-na \
1083 | --program-transform-n | --program-transform- \
1084 | --program-transform | --program-transfor \
1085 | --program-transfo | --program-transf \
1086 | --program-trans | --program-tran \
1087 | --progr-tra | --program-tr | --program-t)
1088 ac_prev=program_transform_name ;;
1089 -program-transform-name=* | --program-transform-name=* \
1090 | --program-transform-nam=* | --program-transform-na=* \
1091 | --program-transform-n=* | --program-transform-=* \
1092 | --program-transform=* | --program-transfor=* \
1093 | --program-transfo=* | --program-transf=* \
1094 | --program-trans=* | --program-tran=* \
1095 | --progr-tra=* | --program-tr=* | --program-t=*)
1096 program_transform_name=$ac_optarg ;;
1098 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1101 pdfdir=$ac_optarg ;;
1103 -psdir | --psdir | --psdi | --psd | --ps)
1105 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1108 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1109 | -silent | --silent | --silen | --sile | --sil)
1112 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 sbindir=$ac_optarg ;;
1118 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1119 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1120 | --sharedst | --shareds | --shared | --share | --shar \
1122 ac_prev=sharedstatedir ;;
1123 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1124 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1125 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 sharedstatedir=$ac_optarg ;;
1129 -site | --site | --sit)
1131 -site=* | --site=* | --sit=*)
1134 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1137 srcdir=$ac_optarg ;;
1139 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1140 | --syscon | --sysco | --sysc | --sys | --sy)
1141 ac_prev=sysconfdir ;;
1142 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1143 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1144 sysconfdir=$ac_optarg ;;
1146 -target | --target | --targe | --targ | --tar | --ta | --t)
1147 ac_prev=target_alias ;;
1148 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1149 target_alias=$ac_optarg ;;
1151 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1154 -version | --version | --versio | --versi | --vers | -V)
1155 ac_init_version=: ;;
1158 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package| sed 's/-/_/g'`
1164 eval with_$ac_package=\$ac_optarg ;;
1166 -without-* | --without-*)
1167 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1170 { echo "$as_me: error: invalid package name: $ac_package" >&2
1171 { (exit 1); exit 1; }; }
1172 ac_package=`echo $ac_package | sed 's/-/_/g'`
1173 eval with_$ac_package=no ;;
1176 # Obsolete; use --with-x.
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1193 -*) { echo "$as_me: error: unrecognized option: $ac_option
1194 Try \`$0 --help' for more information." >&2
1195 { (exit 1); exit 1; }; }
1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1202 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1203 { (exit 1); exit 1; }; }
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 { echo "$as_me: error: missing argument to $ac_option" >&2
1221 { (exit 1); exit 1; }; }
1224 # Be sure to have absolute directory names.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1230 eval ac_val=\$$ac_var
1232 [\\/$]* | ?:[\\/]* ) continue;;
1233 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1236 { (exit 1); exit 1; }; }
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1244 target=$target_alias
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1251 If a cross compiler is detected then cross compile mode will be used." >&2
1252 elif test "x$build_alias" != "x$host_alias"; then
1258 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260 test "$silent" = yes && exec 6>/dev/null
1263 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1264 ac_ls_di=`ls -di .` &&
1265 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1266 { echo "$as_me: error: Working directory cannot be determined" >&2
1267 { (exit 1); exit 1; }; }
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 { echo "$as_me: error: pwd does not report name of working directory" >&2
1270 { (exit 1); exit 1; }; }
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$0" ||
1278 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$0" : 'X\(//\)[^/]' \| \
1280 X"$0" : 'X\(//\)$' \| \
1281 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1305 ac_srcdir_defaulted=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1310 { (exit 1); exit 1; }; }
1312 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1315 { (exit 1); exit 1; }; }
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 # Report the --help message.
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1341 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1348 Defaults for the options are specified in brackets.
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1372 For better control, use the options below.
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404 --x-includes=DIR X include files are in DIR
1405 --x-libraries=DIR X library files are in DIR
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410 --target=TARGET configure for building compilers for TARGET [HOST]
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of libjava version-unused:";;
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --enable-version-specific-runtime-libs
1424 specify that runtime libraries should be installed
1425 in a compiler-specific directory
1426 --enable-multilib build many library versions (default)
1427 --disable-dependency-tracking speeds up one-time build
1428 --enable-dependency-tracking do not reject slow dependency extractors
1429 --enable-maintainer-mode enable make rules and dependencies not useful
1430 (and sometimes confusing) to the casual installer
1431 --enable-libgcj-debug enable runtime debugging code
1432 --enable-java-awt list of AWT peer implementations to be built
1433 --enable-shared=PKGS build shared libraries default=yes
1434 --enable-static=PKGS build static libraries default=yes
1435 --enable-fast-install=PKGS optimize for fast installation default=yes
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437 --disable-getenv-properties
1438 don't set system properties from GCJ_PROPERTIES
1439 --enable-hash-synchronization
1440 use global hash table for monitor locks
1441 --enable-gc-debug include full support for pointer backtracing etc.
1442 --enable-interpreter enable interpreter
1443 --enable-sjlj-exceptions
1444 force use of builtin_setjmp for exceptions
1445 --disable-java-net disable java.net
1446 --disable-jvmpi disable JVMPI support
1447 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
1448 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1449 --disable-rpath do not hardcode runtime library paths
1450 _g_switchUse thread-local storage
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-target-subdir=SUBDIR
1457 configure in a subdirectory
1458 --with-cross-host=HOST configure with a cross compiler from HOST
1459 --with-newlib configure with newlib
1460 --with-gnu-ld assume the C compiler uses GNU ld default=no
1461 --with-pic try to use only PIC/non-PIC objects default=use both
1462 --with-java-home=DIRECTORY
1463 value of java.home system property
1464 --with-win32-nlsapi=ansi or unicows or unicode
1465 native MinGW libgcj Win32 OS API (default is ansi)
1466 --without-libffi don't use libffi
1467 --with-ecos enable runtime eCos target support
1468 --with-system-zlib use installed libz
1469 --with-x use the X Window System
1470 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1471 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1473 Some influential environment variables:
1474 CC C compiler command
1475 CFLAGS C compiler flags
1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1477 nonstandard directory <lib dir>
1478 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CXXCPP C++ preprocessor
1484 XMKMF Path to xmkmf, Makefile generator for X Window System
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1493 if test "$ac_init_help" = "recursive"; then
1494 # If there are subdirs, report their specific --help.
1495 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1496 test -d $ac_dir || continue
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1516 .) # We are building in place.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for guested configure.
1533 if test -f $ac_srcdir/configure.gnu; then
1535 $SHELL $ac_srcdir/configure.gnu --help=recursive
1536 elif test -f $ac_srcdir/configure; then
1538 $SHELL $ac_srcdir/configure --help=recursive
1540 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 cd "$ac_pwd" || { ac_status=$?; break; }
1546 test -n "$ac_init_help" && exit $ac_status
1547 if $ac_init_version; then
1549 libjava configure version-unused
1550 generated by GNU Autoconf 2.59d
1552 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1553 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1559 cat >config.log <<_ACEOF
1560 This file contains any messages produced by compilers while
1561 running configure, to aid debugging if configure makes a mistake.
1563 It was created by libjava $as_me version-unused, which was
1564 generated by GNU Autoconf 2.59d. Invocation command line was
1576 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1577 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1578 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1579 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1580 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1582 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1583 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1585 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1586 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1587 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1588 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1589 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1590 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1591 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1599 test -z "$as_dir" && as_dir=.
1600 echo "PATH: $as_dir"
1616 # Keep a trace of the command line.
1617 # Strip out --no-create and --no-recursion so they do not pile up.
1618 # Strip out --silent because we don't want to record it for future runs.
1619 # Also quote any args containing shell meta-characters.
1620 # Make two passes to allow for proper duplicate-argument suppression.
1625 ac_must_keep_next=false
1631 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1633 | -silent | --silent | --silen | --sile | --sil)
1636 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1639 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1641 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1642 if test $ac_must_keep_next = true; then
1643 ac_must_keep_next=false # Got value, back to normal.
1646 *=* | --config-cache | -C | -disable-* | --disable-* \
1647 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1648 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1649 | -with-* | --with-* | -without-* | --without-* | --x)
1650 case "$ac_configure_args0 " in
1651 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1654 -* ) ac_must_keep_next=true ;;
1657 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1658 # Get rid of the leading space.
1664 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1665 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1667 # When interrupted or exit'd, cleanup temporary files, and complete
1668 # config.log. We remove comments because anyway the quotes in there
1669 # would cause problems or look ugly.
1670 # WARNING: Use '\'' to represent an apostrophe within the trap.
1671 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1672 trap 'exit_status=$?
1673 # Save into config.log some information that might help in debugging.
1678 ## ---------------- ##
1679 ## Cache variables. ##
1680 ## ---------------- ##
1683 # The following way of writing the cache mishandles newlines in values,
1685 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1686 eval ac_val=\$$ac_var
1690 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1691 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1694 _ | IFS | as_nl) ;; #(
1695 *) $as_unset $ac_var ;;
1700 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1701 *${as_nl}ac_space=\ *)
1703 "s/'\''/'\''\\\\'\'''\''/g;
1704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1715 ## ----------------- ##
1716 ## Output variables. ##
1717 ## ----------------- ##
1720 for ac_var in $ac_subst_vars
1722 eval ac_val=\$$ac_var
1723 echo "$ac_var='\''$ac_val'\''"
1727 if test -n "$ac_subst_files"; then
1729 ## ------------------- ##
1730 ## File substitutions. ##
1731 ## ------------------- ##
1734 for ac_var in $ac_subst_files
1736 eval ac_val=\$$ac_var
1737 echo "$ac_var='\''$ac_val'\''"
1742 if test -s confdefs.h; then
1752 test "$ac_signal" != 0 &&
1753 echo "$as_me: caught signal $ac_signal"
1754 echo "$as_me: exit $exit_status"
1756 rm -f core *.core core.conftest.* &&
1757 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1760 for ac_signal in 1 2 13 15; do
1761 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1765 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1766 rm -f -r conftest* confdefs.h
1768 # Predefined preprocessor variables.
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1780 cat >>confdefs.h <<_ACEOF
1781 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1785 cat >>confdefs.h <<_ACEOF
1786 #define PACKAGE_STRING "$PACKAGE_STRING"
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1795 # Let the site file select an alternate cache file if it wants to.
1796 # Prefer explicitly selected file to automatically selected ones.
1797 if test -n "$CONFIG_SITE"; then
1798 set x "$CONFIG_SITE"
1799 elif test "x$prefix" != xNONE; then
1800 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1802 set x "$ac_default_prefix/share/config.site" \
1803 "$ac_default_prefix/etc/config.site"
1808 if test -r "$ac_site_file"; then
1809 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1810 echo "$as_me: loading site script $ac_site_file" >&6;}
1811 sed 's/^/| /' "$ac_site_file" >&5
1816 if test -r "$cache_file"; then
1817 # Some versions of bash will fail to source /dev/null (special
1818 # files actually), so we avoid doing that.
1819 if test -f "$cache_file"; then
1820 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1821 echo "$as_me: loading cache $cache_file" >&6;}
1823 [\\/]* | ?:[\\/]* ) . $cache_file;;
1824 *) . ./$cache_file;;
1828 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1829 echo "$as_me: creating cache $cache_file" >&6;}
1833 # Check that the precious variables saved in the cache have kept the same
1835 ac_cache_corrupted=false
1836 for ac_var in $ac_precious_vars; do
1837 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1838 eval ac_new_set=\$ac_env_${ac_var}_set
1839 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1840 eval ac_new_val=\$ac_env_${ac_var}_value
1841 case $ac_old_set,$ac_new_set in
1843 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1847 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1848 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1849 ac_cache_corrupted=: ;;
1852 if test "x$ac_old_val" != "x$ac_new_val"; then
1853 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1854 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1855 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1856 echo "$as_me: former value: $ac_old_val" >&2;}
1857 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1858 echo "$as_me: current value: $ac_new_val" >&2;}
1859 ac_cache_corrupted=:
1862 # Pass precious variables to config.status.
1863 if test "$ac_new_set" = set; then
1865 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1866 *) ac_arg=$ac_var=$ac_new_val ;;
1868 case " $ac_configure_args " in
1869 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1870 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1874 if $ac_cache_corrupted; then
1875 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1876 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1877 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1878 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1879 { (exit 1); exit 1; }; }
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1917 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1918 if test -f $ac_dir/install-sh; then
1920 ac_install_sh="$ac_aux_dir/install-sh -c"
1922 elif test -f $ac_dir/install.sh; then
1924 ac_install_sh="$ac_aux_dir/install.sh -c"
1926 elif test -f $ac_dir/shtool; then
1928 ac_install_sh="$ac_aux_dir/shtool install -c"
1932 if test -z "$ac_aux_dir"; then
1933 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1934 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1935 { (exit 1); exit 1; }; }
1937 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1938 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1939 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1941 # Make sure we can run config.sub.
1942 $ac_config_sub sun4 >/dev/null 2>&1 ||
1943 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1944 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1945 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: checking build system type" >&5
1948 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1949 if test "${ac_cv_build+set}" = set; then
1950 echo $ECHO_N "(cached) $ECHO_C" >&6
1952 ac_build_alias=$build_alias
1953 test "x$ac_build_alias" = x &&
1954 ac_build_alias=`$ac_config_guess`
1955 test "x$ac_build_alias" = x &&
1956 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1957 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1958 { (exit 1); exit 1; }; }
1959 ac_cv_build=`$ac_config_sub $ac_build_alias` ||
1960 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_build_alias failed" >&5
1961 echo "$as_me: error: $ac_config_sub $ac_build_alias failed" >&2;}
1962 { (exit 1); exit 1; }; }
1965 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1966 echo "${ECHO_T}$ac_cv_build" >&6; }
1967 case $ac_cv_build in
1969 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1970 echo "$as_me: error: invalid value of canonical build" >&2;}
1971 { (exit 1); exit 1; }; };;
1974 ac_save_IFS=$IFS; IFS='-'
1980 # Remember, the first character of IFS is used to create $*,
1981 # except with old shells:
1984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1987 case ${build_alias} in
1988 "") build_noncanonical=${build} ;;
1989 *) build_noncanonical=${build_alias} ;;
1992 case ${host_alias} in
1993 "") host_noncanonical=${build_noncanonical} ;;
1994 *) host_noncanonical=${host_alias} ;;
1997 case ${target_alias} in
1998 "") target_noncanonical=${host_noncanonical} ;;
1999 *) target_noncanonical=${target_alias} ;;
2002 # Prefix 'build-' so this never conflicts with target_subdir.
2003 build_subdir="build-${build_noncanonical}"
2004 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2005 if ( test $srcdir = . && test -d gcc ) \
2006 || test -d $srcdir/../host-${host_noncanonical}; then
2007 host_subdir="host-${host_noncanonical}"
2012 target_subdir=${target_noncanonical}
2015 # We use these options to decide which functions to include.
2017 # Check whether --with-target-subdir was given.
2018 if test "${with_target_subdir+set}" = set; then
2019 withval=$with_target_subdir;
2023 # We may get other options which we don't document:
2024 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2026 # When building with srcdir == objdir, links to the source files will
2027 # be created in directories within the target_subdir. We have to
2028 # adjust toplevel_srcdir accordingly, so that configure finds
2029 # install-sh and other auxiliary files that live in the top-level
2031 if test "${srcdir}" = "."; then
2032 if test -z "${with_target_subdir}"; then
2035 if test "${with_target_subdir}" != "."; then
2036 toprel="${with_multisrctop}../.."
2038 toprel="${with_multisrctop}.."
2045 libgcj_basedir=$srcdir/$toprel/./libjava
2048 { echo "$as_me:$LINENO: checking host system type" >&5
2049 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2050 if test "${ac_cv_host+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test "x$host_alias" = x; then
2054 ac_cv_host=$ac_cv_build
2056 ac_cv_host=`$ac_config_sub $host_alias` ||
2057 { { echo "$as_me:$LINENO: error: $ac_config_sub $host_alias failed" >&5
2058 echo "$as_me: error: $ac_config_sub $host_alias failed" >&2;}
2059 { (exit 1); exit 1; }; }
2063 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2064 echo "${ECHO_T}$ac_cv_host" >&6; }
2067 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2068 echo "$as_me: error: invalid value of canonical host" >&2;}
2069 { (exit 1); exit 1; }; };;
2072 ac_save_IFS=$IFS; IFS='-'
2078 # Remember, the first character of IFS is used to create $*,
2079 # except with old shells:
2082 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2085 { echo "$as_me:$LINENO: checking target system type" >&5
2086 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2087 if test "${ac_cv_target+set}" = set; then
2088 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 if test "x$target_alias" = x; then
2091 ac_cv_target=$ac_cv_host
2093 ac_cv_target=`$ac_config_sub $target_alias` ||
2094 { { echo "$as_me:$LINENO: error: $ac_config_sub $target_alias failed" >&5
2095 echo "$as_me: error: $ac_config_sub $target_alias failed" >&2;}
2096 { (exit 1); exit 1; }; }
2100 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2101 echo "${ECHO_T}$ac_cv_target" >&6; }
2102 case $ac_cv_target in
2104 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2105 echo "$as_me: error: invalid value of canonical target" >&2;}
2106 { (exit 1); exit 1; }; };;
2108 target=$ac_cv_target
2109 ac_save_IFS=$IFS; IFS='-'
2115 # Remember, the first character of IFS is used to create $*,
2116 # except with old shells:
2119 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2122 # The aliases save the names the user supplied, while $host etc.
2123 # will get canonicalized.
2124 test -n "$target_alias" &&
2125 test "$program_prefix$program_suffix$program_transform_name" = \
2127 program_prefix=${target_alias}-
2128 case ${build_alias} in
2129 "") build_noncanonical=${build} ;;
2130 *) build_noncanonical=${build_alias} ;;
2133 case ${target_alias} in
2134 "") target_noncanonical=${host_noncanonical} ;;
2135 *) target_noncanonical=${target_alias} ;;
2141 # This works around the fact that libtool configuration may change LD
2142 # for this particular configuration, but some shells, instead of
2143 # keeping the changes in LD private, export them just because LD is
2145 ORIGINAL_LD_FOR_MULTILIBS=$LD
2147 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
2148 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2150 if test "$LN_S" = "ln -s"; then
2151 { echo "$as_me:$LINENO: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6; }
2154 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2155 echo "${ECHO_T}no, using $LN_S" >&6; }
2159 # This works around an automake problem.
2160 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
2164 # Check whether --with-cross-host was given.
2165 if test "${with_cross_host+set}" = set; then
2166 withval=$with_cross_host;
2171 # Check whether --with-newlib was given.
2172 if test "${with_newlib+set}" = set; then
2173 withval=$with_newlib;
2177 # Check whether --enable-version-specific-runtime-libs was given.
2178 if test "${enable_version_specific_runtime_libs+set}" = set; then
2179 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2180 yes) version_specific_libs=yes ;;
2181 no) version_specific_libs=no ;;
2182 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
2183 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
2184 { (exit 1); exit 1; }; };;
2187 version_specific_libs=no
2192 # Default to --enable-multilib
2193 # Check whether --enable-multilib was given.
2194 if test "${enable_multilib+set}" = set; then
2195 enableval=$enable_multilib; case "${enableval}" in
2196 yes) multilib=yes ;;
2198 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
2199 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
2200 { (exit 1); exit 1; }; } ;;
2206 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
2209 # (1) We use an abnormal CXX (without library references), so we
2210 # must cache it under a different name.
2211 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
2212 # the non-multilib-adjusted value will be used in multilibs.
2213 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
2214 # (4) As another side effect, automake doesn't automatically include them
2216 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
2217 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
2218 # used in later tests. This may not be necessary in libjava; I don't know.
2222 save_CXXFLAGS="$CXXFLAGS"
2223 CXXFLAGS="$CXXFLAGS -fno-builtin"
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229 if test -n "$ac_tool_prefix"; then
2230 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2231 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 if test -n "$CC"; then
2259 { echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6; }
2262 { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2268 if test -z "$ac_cv_prog_CC"; then
2270 # Extract the first word of "gcc", so it can be a program name with args.
2271 set dummy gcc; ac_word=$2
2272 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2274 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 if test -n "$ac_ct_CC"; then
2278 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 test -z "$as_dir" && as_dir=.
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2287 ac_cv_prog_ac_ct_CC="gcc"
2288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2298 if test -n "$ac_ct_CC"; then
2299 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2300 echo "${ECHO_T}$ac_ct_CC" >&6; }
2302 { echo "$as_me:$LINENO: result: no" >&5
2303 echo "${ECHO_T}no" >&6; }
2306 if test "x$ac_ct_CC" = x; then
2309 case $cross_compiling:$ac_tool_warned in
2311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2312 whose name does not start with the host triplet. If you think this
2313 configuration is useful to you, please write to autoconf@gnu.org." >&5
2314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet. If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2317 ac_tool_warned=yes ;;
2325 if test -z "$CC"; then
2326 if test -n "$ac_tool_prefix"; then
2327 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2328 set dummy ${ac_tool_prefix}cc; ac_word=$2
2329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2331 if test "${ac_cv_prog_CC+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 if test -n "$CC"; then
2335 ac_cv_prog_CC="$CC" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_CC="${ac_tool_prefix}cc"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 if test -n "$CC"; then
2356 { echo "$as_me:$LINENO: result: $CC" >&5
2357 echo "${ECHO_T}$CC" >&6; }
2359 { echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6; }
2366 if test -z "$CC"; then
2367 # Extract the first word of "cc", so it can be a program name with args.
2368 set dummy cc; ac_word=$2
2369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2371 if test "${ac_cv_prog_CC+set}" = set; then
2372 echo $ECHO_N "(cached) $ECHO_C" >&6
2374 if test -n "$CC"; then
2375 ac_cv_prog_CC="$CC" # Let the user override the test.
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2386 ac_prog_rejected=yes
2390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397 if test $ac_prog_rejected = yes; then
2398 # We found a bogon in the path, so make sure we never use it.
2399 set dummy $ac_cv_prog_CC
2401 if test $# != 0; then
2402 # We chose a different compiler from the bogus one.
2403 # However, it has the same basename, so the bogon will be chosen
2404 # first if we set CC to just the basename; use the full file name.
2406 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2412 if test -n "$CC"; then
2413 { echo "$as_me:$LINENO: result: $CC" >&5
2414 echo "${ECHO_T}$CC" >&6; }
2416 { echo "$as_me:$LINENO: result: no" >&5
2417 echo "${ECHO_T}no" >&6; }
2422 if test -z "$CC"; then
2423 if test -n "$ac_tool_prefix"; then
2424 for ac_prog in cl.exe
2426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_CC+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 if test -n "$CC"; then
2434 ac_cv_prog_CC="$CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 if test -n "$CC"; then
2455 { echo "$as_me:$LINENO: result: $CC" >&5
2456 echo "${ECHO_T}$CC" >&6; }
2458 { echo "$as_me:$LINENO: result: no" >&5
2459 echo "${ECHO_T}no" >&6; }
2463 test -n "$CC" && break
2466 if test -z "$CC"; then
2468 for ac_prog in cl.exe
2470 # Extract the first word of "$ac_prog", so it can be a program name with args.
2471 set dummy $ac_prog; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2477 if test -n "$ac_ct_CC"; then
2478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_CC="$ac_prog"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6; }
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2507 test -n "$ac_ct_CC" && break
2510 if test "x$ac_ct_CC" = x; then
2513 case $cross_compiling:$ac_tool_warned in
2515 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2516 whose name does not start with the host triplet. If you think this
2517 configuration is useful to you, please write to autoconf@gnu.org." >&5
2518 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2519 whose name does not start with the host triplet. If you think this
2520 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2521 ac_tool_warned=yes ;;
2530 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: no acceptable C compiler found in \$PATH
2533 See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
2536 # Provide some information about the compiler.
2537 echo "$as_me:$LINENO: checking for C compiler version" >&5
2538 ac_compiler=`set X $ac_compile; echo $2`
2539 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
2540 (eval $ac_compiler --version >&5) 2>&5
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
2545 (eval $ac_compiler -v >&5) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }
2549 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
2550 (eval $ac_compiler -V >&5) 2>&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }
2555 cat >conftest.$ac_ext <<_ACEOF
2558 cat confdefs.h >>conftest.$ac_ext
2559 cat >>conftest.$ac_ext <<_ACEOF
2560 /* end confdefs.h. */
2571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2572 (eval $ac_link) 2>&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; then
2581 if test x$gcc_no_link = xyes; then
2582 # Setting cross_compile will disable run tests; it will
2583 # also disable AC_CHECK_FILE but that's generally
2584 # correct if we can't link.
2589 # List of possible output files. We want to start from the most likely,
2590 # but we have to check foo.exe before foo, because Cygwin `test -f' looks
2591 # also for foo.exe. b.out is created by i960 compilers.
2592 # As a last resort, we also try wildcards: `conftest.*' and `a.*'.
2593 # But we are not allowed to rm a.*, and we do not want always remove
2594 # conftest.*, so we will list them literally, when appropriate.
2595 ac_outfiles="a_out.exe a.out conftest.exe conftest a.exe b.out"
2597 # The IRIX 6 linker writes into existing files which may not be
2598 # executable, retaining their permissions. Remove them first so a
2599 # subsequent execution test works.
2600 rm -f $ac_outfiles conftest.*
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2618 ac_clean_files_save=$ac_clean_files
2619 ac_clean_files="$ac_clean_files $ac_outfiles"
2621 # The following tests should remove their output except files matching conftest.*.
2622 # Try to create an executable without -o first, disregard a.out.
2623 # It will help us diagnose broken compilers, and finding out an intuition
2625 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2626 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2627 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2629 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2630 (eval $ac_link_default) 2>&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; then
2634 for ac_file in $ac_outfiles a.* conftest.* NO
2636 test -f "$ac_file" || continue
2638 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2642 if test "$ac_file" = NO; then
2643 { { echo "$as_me:$LINENO: error: no output file found
2644 See \`config.log' for more details." >&5
2645 echo "$as_me: error: no output file found
2646 See \`config.log' for more details." >&2;}
2647 { (exit 1); exit 1; }; }
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2655 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2656 See \`config.log' for more details." >&5
2657 echo "$as_me: error: C compiler cannot create executables
2658 See \`config.log' for more details." >&2;}
2659 { (exit 77); exit 77; }; }
2662 { echo "$as_me:$LINENO: result: $ac_file" >&5
2663 echo "${ECHO_T}$ac_file" >&6; }
2664 # Check that the compiler produces executables we can run. If not, either
2665 # the compiler is broken, or we cross compile.
2666 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2667 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2668 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2669 # If not cross compiling, check that we can run a simple program.
2670 if test "$cross_compiling" != yes; then
2671 if { ac_try='./$ac_file'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 if test "$cross_compiling" = maybe; then
2682 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2683 If you meant to cross compile, use \`--host'.
2684 See \`config.log' for more details." >&5
2685 echo "$as_me: error: cannot run C compiled programs.
2686 If you meant to cross compile, use \`--host'.
2687 See \`config.log' for more details." >&2;}
2688 { (exit 1); exit 1; }; }
2692 { echo "$as_me:$LINENO: result: yes" >&5
2693 echo "${ECHO_T}yes" >&6; }
2695 # Clean up; list also $ac_file, in case it matched a wildcard entry.
2696 rm -f $ac_outfiles $ac_file
2698 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2699 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2700 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2701 echo "${ECHO_T}$cross_compiling" >&6; }
2703 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2704 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2705 if test "${ac_cv_exeext+set}" = set; then
2706 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2709 (eval $ac_link) 2>&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; then
2713 # If both `conftest.exe' and `conftest' are `present' (well, observable),
2714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2715 # work properly (i.e., refer to `conftest.exe'), while it won't with `rm'.
2716 for ac_file in conftest.exe conftest conftest.* NO; do
2717 test -f "$ac_file" || continue
2719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2720 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2725 if test "$ac_file" = NO; then
2726 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: no output file found
2727 See \`config.log' for more details." >&5
2728 echo "$as_me: error: cannot compute suffix of executables: no output file found
2729 See \`config.log' for more details." >&2;}
2730 { (exit 1); exit 1; }; }
2733 # Clean up; list also $ac_file, in case it matched conftest.*.
2734 rm -f $ac_outfiles $ac_file
2737 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2738 See \`config.log' for more details." >&5
2739 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2740 See \`config.log' for more details." >&2;}
2741 { (exit 1); exit 1; }; }
2747 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2748 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2749 EXEEXT=$ac_cv_exeext
2753 ac_clean_files=$ac_clean_files_save
2755 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2756 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2757 if test "${ac_cv_objext+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 rm -f conftest.o conftest.obj
2761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2762 (eval $ac_compile) 2>&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; then
2766 for ac_file in conftest.o conftest.obj conftest.*; do
2767 test -f "$ac_file" || continue;
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2770 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2778 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2779 See \`config.log' for more details." >&5
2780 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2781 See \`config.log' for more details." >&2;}
2782 { (exit 1); exit 1; }; }
2786 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2787 echo "${ECHO_T}$ac_cv_objext" >&6; }
2788 OBJEXT=$ac_cv_objext
2794 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2795 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2796 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 cat >conftest.$ac_ext <<_ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2817 rm -f conftest.$ac_objext
2818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819 (eval $ac_compile) 2>conftest.er1
2821 grep -v '^ *+' conftest.er1 >conftest.err
2823 cat conftest.err >&5
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); } &&
2826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; } &&
2832 { ac_try='test -s conftest.$ac_objext'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; }; then
2840 echo "$as_me: failed program was:" >&5
2841 sed 's/^/| /' conftest.$ac_ext >&5
2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2850 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2851 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2852 GCC=`test $ac_compiler_gnu = yes && echo yes`
2853 ac_test_CFLAGS=${CFLAGS+set}
2854 ac_save_CFLAGS=$CFLAGS
2855 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2856 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2857 if test "${ac_cv_prog_cc_g+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 ac_save_c_werror_flag=$ac_c_werror_flag
2861 ac_c_werror_flag=yes
2864 cat >conftest.$ac_ext <<_ACEOF
2867 cat confdefs.h >>conftest.$ac_ext
2868 cat >>conftest.$ac_ext <<_ACEOF
2869 /* end confdefs.h. */
2879 rm -f conftest.$ac_objext
2880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2881 (eval $ac_compile) 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } &&
2888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893 (exit $ac_status); }; } &&
2894 { ac_try='test -s conftest.$ac_objext'
2895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); }; }; then
2902 echo "$as_me: failed program was:" >&5
2903 sed 's/^/| /' conftest.$ac_ext >&5
2906 cat >conftest.$ac_ext <<_ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2921 rm -f conftest.$ac_objext
2922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2923 (eval $ac_compile) 2>conftest.er1
2925 grep -v '^ *+' conftest.er1 >conftest.err
2927 cat conftest.err >&5
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); } &&
2930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; } &&
2936 { ac_try='test -s conftest.$ac_objext'
2937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); }; }; then
2944 echo "$as_me: failed program was:" >&5
2945 sed 's/^/| /' conftest.$ac_ext >&5
2947 ac_c_werror_flag=$ac_save_c_werror_flag
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966 (eval $ac_compile) 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3000 ac_c_werror_flag=$ac_save_c_werror_flag
3002 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3003 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3004 if test "$ac_test_CFLAGS" = set; then
3005 CFLAGS=$ac_save_CFLAGS
3006 elif test $ac_cv_prog_cc_g = yes; then
3007 if test "$GCC" = yes; then
3013 if test "$GCC" = yes; then
3019 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3020 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3021 if test "${ac_cv_prog_cc_c89+set}" = set; then
3022 echo $ECHO_N "(cached) $ECHO_C" >&6
3024 ac_cv_prog_cc_c89=no
3026 cat >conftest.$ac_ext <<_ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3034 #include <sys/types.h>
3035 #include <sys/stat.h>
3036 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3037 struct buf { int x; };
3038 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3039 static char *e (p, i)
3045 static char *f (char * (*g) (char **, int), char **p, ...)
3050 s = g (p, va_arg (v,int));
3055 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3056 function prototypes and stuff, but not '\xHH' hex character constants.
3057 These don't provoke an error unfortunately, instead are silently treated
3058 as 'x'. The following induces an error, until -std is added to get
3059 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3060 array size at least. It's necessary to write '\x00'==0 to get something
3061 that's true only with -std. */
3062 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3064 int test (int i, double x);
3065 struct s1 {int (*f) (int a);};
3066 struct s2 {int (*f) (double a);};
3067 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3073 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3078 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3079 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3081 CC="$ac_save_CC $ac_arg"
3082 rm -f conftest.$ac_objext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084 (eval $ac_compile) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3103 ac_cv_prog_cc_c89=$ac_arg
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3111 rm -f conftest.err conftest.$ac_objext
3112 test "x$ac_cv_prog_cc_c89" != "xno" && break
3114 rm -f conftest.$ac_ext
3119 case "x$ac_cv_prog_cc_c89" in
3121 { echo "$as_me:$LINENO: result: none needed" >&5
3122 echo "${ECHO_T}none needed" >&6; } ;;
3124 { echo "$as_me:$LINENO: result: unsupported" >&5
3125 echo "${ECHO_T}unsupported" >&6; } ;;
3127 CC="$CC $ac_cv_prog_cc_c89"
3128 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3129 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140 ac_cpp='$CXXCPP $CPPFLAGS'
3141 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3142 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3143 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3144 if test -z "$CXX"; then
3145 if test -n "$CCC"; then
3148 if test -n "$ac_tool_prefix"; then
3149 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3155 if test "${glibcxx_cv_prog_CXX+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3158 if test -n "$CXX"; then
3159 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 CXX=$glibcxx_cv_prog_CXX
3179 if test -n "$CXX"; then
3180 { echo "$as_me:$LINENO: result: $CXX" >&5
3181 echo "${ECHO_T}$CXX" >&6; }
3183 { echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6; }
3188 test -n "$CXX" && break
3191 if test -z "$CXX"; then
3193 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3199 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 if test -n "$ac_ct_CXX"; then
3203 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3212 ac_cv_prog_ac_ct_CXX="$ac_prog"
3213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3223 if test -n "$ac_ct_CXX"; then
3224 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3225 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3227 { echo "$as_me:$LINENO: result: no" >&5
3228 echo "${ECHO_T}no" >&6; }
3232 test -n "$ac_ct_CXX" && break
3235 if test "x$ac_ct_CXX" = x; then
3238 case $cross_compiling:$ac_tool_warned in
3240 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3241 whose name does not start with the host triplet. If you think this
3242 configuration is useful to you, please write to autoconf@gnu.org." >&5
3243 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3244 whose name does not start with the host triplet. If you think this
3245 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3246 ac_tool_warned=yes ;;
3254 # Provide some information about the compiler.
3255 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3256 ac_compiler=`set X $ac_compile; echo $2`
3257 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version >&5\"") >&5
3258 (eval $ac_compiler --version >&5) 2>&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }
3262 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v >&5\"") >&5
3263 (eval $ac_compiler -v >&5) 2>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }
3267 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V >&5\"") >&5
3268 (eval $ac_compiler -V >&5) 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }
3273 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3274 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3275 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3296 rm -f conftest.$ac_objext
3297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3298 (eval $ac_compile) 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } &&
3305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; } &&
3311 { ac_try='test -s conftest.$ac_objext'
3312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); }; }; then
3319 echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3329 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3330 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3331 GXX=`test $ac_compiler_gnu = yes && echo yes`
3332 ac_test_CXXFLAGS=${CXXFLAGS+set}
3333 ac_save_CXXFLAGS=$CXXFLAGS
3334 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3335 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_cxx_g+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3340 ac_cxx_werror_flag=yes
3343 cat >conftest.$ac_ext <<_ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3358 rm -f conftest.$ac_objext
3359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3360 (eval $ac_compile) 2>conftest.er1
3362 grep -v '^ *+' conftest.er1 >conftest.err
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } &&
3367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }; } &&
3373 { ac_try='test -s conftest.$ac_objext'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3379 ac_cv_prog_cxx_g=yes
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3385 cat >conftest.$ac_ext <<_ACEOF
3388 cat confdefs.h >>conftest.$ac_ext
3389 cat >>conftest.$ac_ext <<_ACEOF
3390 /* end confdefs.h. */
3400 rm -f conftest.$ac_objext
3401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3402 (eval $ac_compile) 2>conftest.er1
3404 grep -v '^ *+' conftest.er1 >conftest.err
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } &&
3409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414 (exit $ac_status); }; } &&
3415 { ac_try='test -s conftest.$ac_objext'
3416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3426 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3443 rm -f conftest.$ac_objext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445 (eval $ac_compile) 2>conftest.er1
3447 grep -v '^ *+' conftest.er1 >conftest.err
3449 cat conftest.err >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } &&
3452 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; } &&
3458 { ac_try='test -s conftest.$ac_objext'
3459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; }; then
3464 ac_cv_prog_cxx_g=yes
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3481 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3482 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3483 if test "$ac_test_CXXFLAGS" = set; then
3484 CXXFLAGS=$ac_save_CXXFLAGS
3485 elif test $ac_cv_prog_cxx_g = yes; then
3486 if test "$GXX" = yes; then
3492 if test "$GXX" = yes; then
3499 ac_cpp='$CPP $CPPFLAGS'
3500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 CXXFLAGS="$save_CXXFLAGS"
3510 am__api_version="1.9"
3511 # Find a good install program. We prefer a C program (faster),
3512 # so one script is as good as another. But avoid the broken or
3513 # incompatible versions:
3514 # SysV /etc/install, /usr/sbin/install
3515 # SunOS /usr/etc/install
3516 # IRIX /sbin/install
3518 # AmigaOS /C/install, which installs bootblocks on floppy discs
3519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3522 # OS/2's system install, which has a completely different semantic
3523 # ./install, which can be erroneously created by make from ./install.sh.
3524 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3525 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3526 if test -z "$INSTALL"; then
3527 if test "${ac_cv_path_install+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 test -z "$as_dir" && as_dir=.
3535 # Account for people who put trailing slashes in PATH elements.
3537 ./ | .// | /cC/* | \
3538 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3539 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3542 # OSF1 and SCO ODT 3.0 have their own names for install.
3543 # Don't use installbsd from OSF since it installs stuff as root
3545 for ac_prog in ginstall scoinst install; do
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
3548 if test $ac_prog = install &&
3549 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3550 # AIX install. It has an incompatible calling convention.
3552 elif test $ac_prog = install &&
3553 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3554 # program-specific install script used by HP pwplus--don't use.
3557 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3570 if test "${ac_cv_path_install+set}" = set; then
3571 INSTALL=$ac_cv_path_install
3573 # As a last resort, use the slow shell script. Don't cache a
3574 # value for INSTALL within a source directory, because that will
3575 # break other packages using the cache if that directory is
3576 # removed, or if the value is a relative name.
3577 INSTALL=$ac_install_sh
3580 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3581 echo "${ECHO_T}$INSTALL" >&6; }
3583 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3584 # It thinks the first close brace ends the variable substitution.
3585 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3587 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3589 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3591 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3592 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
3595 echo timestamp > conftest.file
3596 # Do `set' in a subshell so we don't clobber the current shell's
3597 # arguments. Must try -L first in case configure is actually a
3598 # symlink; some systems play weird games with the mod time of symlinks
3599 # (eg FreeBSD returns the mod time of the symlink's containing
3602 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3603 if test "$*" = "X"; then
3605 set X `ls -t $srcdir/configure conftest.file`
3608 if test "$*" != "X $srcdir/configure conftest.file" \
3609 && test "$*" != "X conftest.file $srcdir/configure"; then
3611 # If neither matched, then we have a broken ls. This can happen
3612 # if, for instance, CONFIG_SHELL is bash and it inherits a
3613 # broken ls alias from the environment. This has actually
3614 # happened. Such a system could not be considered "sane".
3615 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3616 alias in your environment" >&5
3617 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3618 alias in your environment" >&2;}
3619 { (exit 1); exit 1; }; }
3622 test "$2" = conftest.file
3628 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3629 Check your system clock" >&5
3630 echo "$as_me: error: newly created file is older than distributed files!
3631 Check your system clock" >&2;}
3632 { (exit 1); exit 1; }; }
3634 { echo "$as_me:$LINENO: result: yes" >&5
3635 echo "${ECHO_T}yes" >&6; }
3636 test "$program_prefix" != NONE &&
3637 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3638 # Use a double $ so make ignores it.
3639 test "$program_suffix" != NONE &&
3640 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3641 # Double any \ or $. echo might interpret backslashes.
3642 # By default was `s,x,x', remove it if useless.
3643 cat <<\_ACEOF >conftest.sed
3644 s/[\\$]/&&/g;s/;s,x,x,$//
3646 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3649 # expand $ac_aux_dir to an absolute path
3650 am_aux_dir=`cd $ac_aux_dir && pwd`
3652 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3653 # Use eval to expand $SHELL
3654 if eval "$MISSING --run true"; then
3655 am_missing_run="$MISSING --run "
3658 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3659 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3662 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3663 # We used to keeping the `.' as first argument, in order to
3664 # allow $(mkdir_p) to be used without argument. As in
3665 # $(mkdir_p) $(somedir)
3666 # where $(somedir) is conditionally defined. However this is wrong
3668 # 1. if the package is installed by a user who cannot write `.'
3669 # make install will fail,
3670 # 2. the above comment should most certainly read
3671 # $(mkdir_p) $(DESTDIR)$(somedir)
3672 # so it does not work when $(somedir) is undefined and
3673 # $(DESTDIR) is not.
3674 # To support the latter case, we have to write
3675 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3676 # so the `.' trick is pointless.
3677 mkdir_p='mkdir -p --'
3679 # On NextStep and OpenStep, the `mkdir' command does not
3680 # recognize any option. It will interpret all options as
3681 # directories to create, and then abort because `.' already
3683 for d in ./-p ./--version;
3685 test -d $d && rmdir $d
3687 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3688 if test -f "$ac_aux_dir/mkinstalldirs"; then
3689 mkdir_p='$(mkinstalldirs)'
3691 mkdir_p='$(install_sh) -d'
3695 for ac_prog in gawk mawk nawk awk
3697 # Extract the first word of "$ac_prog", so it can be a program name with args.
3698 set dummy $ac_prog; ac_word=$2
3699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3701 if test "${ac_cv_prog_AWK+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 if test -n "$AWK"; then
3705 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3714 ac_cv_prog_AWK="$ac_prog"
3715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3725 if test -n "$AWK"; then
3726 { echo "$as_me:$LINENO: result: $AWK" >&5
3727 echo "${ECHO_T}$AWK" >&6; }
3729 { echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6; }
3734 test -n "$AWK" && break
3737 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3738 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3739 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3740 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3741 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 cat >conftest.make <<\_ACEOF
3746 @echo 'ac_maketemp=X"$(MAKE)"'
3748 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3749 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3750 if test "$ac_maketemp" != X ; then
3751 eval ac_cv_prog_make_${ac_make}_set=yes
3753 eval ac_cv_prog_make_${ac_make}_set=no
3757 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3758 { echo "$as_me:$LINENO: result: yes" >&5
3759 echo "${ECHO_T}yes" >&6; }
3762 { echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6; }
3764 SET_MAKE="MAKE=${MAKE-make}"
3767 rm -rf .tst 2>/dev/null
3768 mkdir .tst 2>/dev/null
3769 if test -d .tst; then
3774 rmdir .tst 2>/dev/null
3776 DEPDIR="${am__leading_dot}deps"
3778 ac_config_commands="$ac_config_commands depfiles"
3781 am_make=${MAKE-make}
3782 cat > confinc << 'END'
3787 # If we don't find an include directive, just comment out the code.
3788 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3789 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3793 # First try GNU make style include.
3794 echo "include confinc" > confmf
3795 # We grep out `Entering directory' and `Leaving directory'
3796 # messages which can occur if `w' ends up in MAKEFLAGS.
3797 # In particular we don't look at `^make:' because GNU make might
3798 # be invoked under some other name (usually "gmake"), in which
3799 # case it prints its new name instead of `make'.
3800 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3805 # Now try BSD make style include.
3806 if test "$am__include" = "#"; then
3807 echo '.include "confinc"' > confmf
3808 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3809 am__include=.include
3816 { echo "$as_me:$LINENO: result: $_am_result" >&5
3817 echo "${ECHO_T}$_am_result" >&6; }
3818 rm -f confinc confmf
3820 # Check whether --enable-dependency-tracking was given.
3821 if test "${enable_dependency_tracking+set}" = set; then
3822 enableval=$enable_dependency_tracking;
3825 if test "x$enable_dependency_tracking" != xno; then
3826 am_depcomp="$ac_aux_dir/depcomp"
3831 if test "x$enable_dependency_tracking" != xno; then
3841 # test to see if srcdir already configured
3842 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3843 test -f $srcdir/config.status; then
3844 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3845 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3846 { (exit 1); exit 1; }; }
3849 # test whether we have cygpath
3850 if test -z "$CYGPATH_W"; then
3851 if (cygpath --version) >/dev/null 2>/dev/null; then
3852 CYGPATH_W='cygpath -w'
3859 # Define the identity of the package.
3861 VERSION='version-unused'
3864 cat >>confdefs.h <<_ACEOF
3865 #define PACKAGE "$PACKAGE"
3869 cat >>confdefs.h <<_ACEOF
3870 #define VERSION "$VERSION"
3873 # Some tools Automake needs.
3875 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3878 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3881 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3884 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3887 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3889 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3891 # Installed binaries are usually stripped using `strip' when the user
3892 # run `make install-strip'. However `strip' might not be the right
3893 # tool to use in cross-compilation environments, therefore Automake
3894 # will honor the `STRIP' environment variable to overrule this program.
3895 if test "$cross_compiling" != no; then
3896 if test -n "$ac_tool_prefix"; then
3897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3898 set dummy ${ac_tool_prefix}strip; ac_word=$2
3899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3901 if test "${ac_cv_prog_STRIP+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 if test -n "$STRIP"; then
3905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 test -z "$as_dir" && as_dir=.
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 STRIP=$ac_cv_prog_STRIP
3925 if test -n "$STRIP"; then
3926 { echo "$as_me:$LINENO: result: $STRIP" >&5
3927 echo "${ECHO_T}$STRIP" >&6; }
3929 { echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6; }
3935 if test -z "$ac_cv_prog_STRIP"; then
3937 # Extract the first word of "strip", so it can be a program name with args.
3938 set dummy strip; ac_word=$2
3939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3941 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3942 echo $ECHO_N "(cached) $ECHO_C" >&6
3944 if test -n "$ac_ct_STRIP"; then
3945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3954 ac_cv_prog_ac_ct_STRIP="strip"
3955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3965 if test -n "$ac_ct_STRIP"; then
3966 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3967 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
3969 { echo "$as_me:$LINENO: result: no" >&5
3970 echo "${ECHO_T}no" >&6; }
3973 if test "x$ac_ct_STRIP" = x; then
3976 case $cross_compiling:$ac_tool_warned in
3978 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3979 whose name does not start with the host triplet. If you think this
3980 configuration is useful to you, please write to autoconf@gnu.org." >&5
3981 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3982 whose name does not start with the host triplet. If you think this
3983 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3984 ac_tool_warned=yes ;;
3989 STRIP="$ac_cv_prog_STRIP"
3993 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3995 # We need awk for the "check" target. The system "awk" is bad on
3997 # Always define AMTAR for backward compatibility.
3999 AMTAR=${AMTAR-"${am_missing_run}tar"}
4001 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4006 depcc="$CC" am_compiler_list=
4008 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4009 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4010 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4014 # We make a subdir and do the tests there. Otherwise we can end up
4015 # making bogus files that we don't know about and never remove. For
4016 # instance it was reported that on HP-UX the gcc test will end up
4017 # making a dummy file named `D' -- because `-MD' means `put the output
4020 # Copy depcomp to subdir because otherwise we won't find it if we're
4021 # using a relative directory.
4022 cp "$am_depcomp" conftest.dir
4024 # We will build objects and dependencies in a subdirectory because
4025 # it helps to detect inapplicable dependency modes. For instance
4026 # both Tru64's cc and ICC support -MD to output dependencies as a
4027 # side effect of compilation, but ICC will put the dependencies in
4028 # the current directory while Tru64 will put them in the object
4032 am_cv_CC_dependencies_compiler_type=none
4033 if test "$am_compiler_list" = ""; then
4034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4036 for depmode in $am_compiler_list; do
4037 # Setup a source with many dependencies, because some compilers
4038 # like to wrap large dependency lists on column 80 (with \), and
4039 # we should not choose a depcomp mode which is confused by this.
4041 # We need to recreate these files for each test, as the compiler may
4042 # overwrite some of them when testing with obscure command lines.
4043 # This happens at least with the AIX C compiler.
4045 for i in 1 2 3 4 5 6; do
4046 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4047 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4048 # Solaris 8's {/usr,}/bin/sh.
4049 touch sub/conftst$i.h
4051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4055 # after this tag, mechanisms are not by side-effect, so they'll
4056 # only be used when explicitly requested
4057 if test "x$enable_dependency_tracking" = xyes; then
4065 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4066 # mode. It turns out that the SunPro C++ compiler does not properly
4067 # handle `-M -o', and we need to detect this.
4068 if depmode=$depmode \
4069 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4070 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4071 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4072 >/dev/null 2>conftest.err &&
4073 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4074 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4075 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4076 # icc doesn't choke on unknown options, it will just issue warnings
4077 # or remarks (even with -Werror). So we grep stderr for any message
4078 # that says an option was ignored or not supported.
4079 # When given -MP, icc 7.0 and 7.1 complain thusly:
4080 # icc: Command line warning: ignoring option '-M'; no argument required
4081 # The diagnosis changed in icc 8.0:
4082 # icc: Command line remark: option '-MP' not supported
4083 if (grep 'ignoring option' conftest.err ||
4084 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4085 am_cv_CC_dependencies_compiler_type=$depmode
4094 am_cv_CC_dependencies_compiler_type=none
4098 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4099 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4100 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4105 test "x$enable_dependency_tracking" != xno \
4106 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4108 am__fastdepCC_FALSE='#'
4110 am__fastdepCC_TRUE='#'
4111 am__fastdepCC_FALSE=
4115 depcc="$CXX" am_compiler_list=
4117 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4118 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4119 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4123 # We make a subdir and do the tests there. Otherwise we can end up
4124 # making bogus files that we don't know about and never remove. For
4125 # instance it was reported that on HP-UX the gcc test will end up
4126 # making a dummy file named `D' -- because `-MD' means `put the output
4129 # Copy depcomp to subdir because otherwise we won't find it if we're
4130 # using a relative directory.
4131 cp "$am_depcomp" conftest.dir
4133 # We will build objects and dependencies in a subdirectory because
4134 # it helps to detect inapplicable dependency modes. For instance
4135 # both Tru64's cc and ICC support -MD to output dependencies as a
4136 # side effect of compilation, but ICC will put the dependencies in
4137 # the current directory while Tru64 will put them in the object
4141 am_cv_CXX_dependencies_compiler_type=none
4142 if test "$am_compiler_list" = ""; then
4143 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4145 for depmode in $am_compiler_list; do
4146 # Setup a source with many dependencies, because some compilers
4147 # like to wrap large dependency lists on column 80 (with \), and
4148 # we should not choose a depcomp mode which is confused by this.
4150 # We need to recreate these files for each test, as the compiler may
4151 # overwrite some of them when testing with obscure command lines.
4152 # This happens at least with the AIX C compiler.
4154 for i in 1 2 3 4 5 6; do
4155 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4156 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4157 # Solaris 8's {/usr,}/bin/sh.
4158 touch sub/conftst$i.h
4160 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4164 # after this tag, mechanisms are not by side-effect, so they'll
4165 # only be used when explicitly requested
4166 if test "x$enable_dependency_tracking" = xyes; then
4174 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4175 # mode. It turns out that the SunPro C++ compiler does not properly
4176 # handle `-M -o', and we need to detect this.
4177 if depmode=$depmode \
4178 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4179 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4180 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4181 >/dev/null 2>conftest.err &&
4182 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4183 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4184 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4185 # icc doesn't choke on unknown options, it will just issue warnings
4186 # or remarks (even with -Werror). So we grep stderr for any message
4187 # that says an option was ignored or not supported.
4188 # When given -MP, icc 7.0 and 7.1 complain thusly:
4189 # icc: Command line warning: ignoring option '-M'; no argument required
4190 # The diagnosis changed in icc 8.0:
4191 # icc: Command line remark: option '-MP' not supported
4192 if (grep 'ignoring option' conftest.err ||
4193 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4194 am_cv_CXX_dependencies_compiler_type=$depmode
4203 am_cv_CXX_dependencies_compiler_type=none
4207 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4208 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4209 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4214 test "x$enable_dependency_tracking" != xno \
4215 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4216 am__fastdepCXX_TRUE=
4217 am__fastdepCXX_FALSE='#'
4219 am__fastdepCXX_TRUE='#'
4220 am__fastdepCXX_FALSE=
4226 if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4228 set dummy ${ac_tool_prefix}as; ac_word=$2
4229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4231 if test "${ac_cv_prog_AS+set}" = set; then
4232 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 if test -n "$AS"; then
4235 ac_cv_prog_AS="$AS" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_prog_AS="${ac_tool_prefix}as"
4245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 if test -n "$AS"; then
4256 { echo "$as_me:$LINENO: result: $AS" >&5
4257 echo "${ECHO_T}$AS" >&6; }
4259 { echo "$as_me:$LINENO: result: no" >&5
4260 echo "${ECHO_T}no" >&6; }
4265 if test -z "$ac_cv_prog_AS"; then
4267 # Extract the first word of "as", so it can be a program name with args.
4268 set dummy as; ac_word=$2
4269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4271 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4272 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 if test -n "$ac_ct_AS"; then
4275 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4284 ac_cv_prog_ac_ct_AS="as"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4295 if test -n "$ac_ct_AS"; then
4296 { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4297 echo "${ECHO_T}$ac_ct_AS" >&6; }
4299 { echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6; }
4303 if test "x$ac_ct_AS" = x; then
4306 case $cross_compiling:$ac_tool_warned in
4308 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4309 whose name does not start with the host triplet. If you think this
4310 configuration is useful to you, please write to autoconf@gnu.org." >&5
4311 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4312 whose name does not start with the host triplet. If you think this
4313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4314 ac_tool_warned=yes ;;
4322 if test -n "$ac_tool_prefix"; then
4323 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4324 set dummy ${ac_tool_prefix}ld; ac_word=$2
4325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4327 if test "${ac_cv_prog_LD+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 if test -n "$LD"; then
4331 ac_cv_prog_LD="$LD" # Let the user override the test.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_prog_LD="${ac_tool_prefix}ld"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 if test -n "$LD"; then
4352 { echo "$as_me:$LINENO: result: $LD" >&5
4353 echo "${ECHO_T}$LD" >&6; }
4355 { echo "$as_me:$LINENO: result: no" >&5
4356 echo "${ECHO_T}no" >&6; }
4361 if test -z "$ac_cv_prog_LD"; then
4363 # Extract the first word of "ld", so it can be a program name with args.
4364 set dummy ld; ac_word=$2
4365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4367 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 if test -n "$ac_ct_LD"; then
4371 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 ac_cv_prog_ac_ct_LD="ld"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4391 if test -n "$ac_ct_LD"; then
4392 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4393 echo "${ECHO_T}$ac_ct_LD" >&6; }
4395 { echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6; }
4399 if test "x$ac_ct_LD" = x; then
4402 case $cross_compiling:$ac_tool_warned in
4404 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4405 whose name does not start with the host triplet. If you think this
4406 configuration is useful to you, please write to autoconf@gnu.org." >&5
4407 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4408 whose name does not start with the host triplet. If you think this
4409 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4410 ac_tool_warned=yes ;;
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4420 set dummy ${ac_tool_prefix}ar; ac_word=$2
4421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4423 if test "${ac_cv_prog_AR+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 if test -n "$AR"; then
4427 ac_cv_prog_AR="$AR" # Let the user override the test.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_AR="${ac_tool_prefix}ar"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4447 if test -n "$AR"; then
4448 { echo "$as_me:$LINENO: result: $AR" >&5
4449 echo "${ECHO_T}$AR" >&6; }
4451 { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4457 if test -z "$ac_cv_prog_AR"; then
4459 # Extract the first word of "ar", so it can be a program name with args.
4460 set dummy ar; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 if test -n "$ac_ct_AR"; then
4467 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4473 test -z "$as_dir" && as_dir=.
4474 for ac_exec_ext in '' $ac_executable_extensions; do
4475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4476 ac_cv_prog_ac_ct_AR="ar"
4477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4487 if test -n "$ac_ct_AR"; then
4488 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4489 echo "${ECHO_T}$ac_ct_AR" >&6; }
4491 { echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6; }
4495 if test "x$ac_ct_AR" = x; then
4498 case $cross_compiling:$ac_tool_warned in
4500 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4501 whose name does not start with the host triplet. If you think this
4502 configuration is useful to you, please write to autoconf@gnu.org." >&5
4503 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4504 whose name does not start with the host triplet. If you think this
4505 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4506 ac_tool_warned=yes ;;
4514 if test -n "$ac_tool_prefix"; then
4515 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4516 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4519 if test "${ac_cv_prog_RANLIB+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 if test -n "$RANLIB"; then
4523 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 test -z "$as_dir" && as_dir=.
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4532 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 RANLIB=$ac_cv_prog_RANLIB
4543 if test -n "$RANLIB"; then
4544 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4545 echo "${ECHO_T}$RANLIB" >&6; }
4547 { echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6; }
4553 if test -z "$ac_cv_prog_RANLIB"; then
4554 ac_ct_RANLIB=$RANLIB
4555 # Extract the first word of "ranlib", so it can be a program name with args.
4556 set dummy ranlib; ac_word=$2
4557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4559 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 if test -n "$ac_ct_RANLIB"; then
4563 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_ac_ct_RANLIB="ranlib"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4583 if test -n "$ac_ct_RANLIB"; then
4584 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4585 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4587 { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4591 if test "x$ac_ct_RANLIB" = x; then
4594 case $cross_compiling:$ac_tool_warned in
4596 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4597 whose name does not start with the host triplet. If you think this
4598 configuration is useful to you, please write to autoconf@gnu.org." >&5
4599 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4600 whose name does not start with the host triplet. If you think this
4601 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4602 ac_tool_warned=yes ;;
4604 RANLIB=$ac_ct_RANLIB
4607 RANLIB="$ac_cv_prog_RANLIB"
4610 for ac_prog in gawk mawk nawk awk
4612 # Extract the first word of "$ac_prog", so it can be a program name with args.
4613 set dummy $ac_prog; ac_word=$2
4614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4616 if test "${ac_cv_prog_AWK+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 if test -n "$AWK"; then
4620 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir=.
4627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4629 ac_cv_prog_AWK="$ac_prog"
4630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 if test -n "$AWK"; then
4641 { echo "$as_me:$LINENO: result: $AWK" >&5
4642 echo "${ECHO_T}$AWK" >&6; }
4644 { echo "$as_me:$LINENO: result: no" >&5
4645 echo "${ECHO_T}no" >&6; }
4649 test -n "$AWK" && break
4652 for ac_prog in jar fastjar
4654 # Extract the first word of "$ac_prog", so it can be a program name with args.
4655 set dummy $ac_prog; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_prog_JAR+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test -n "$JAR"; then
4662 ac_cv_prog_JAR="$JAR" # Let the user override the test.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_prog_JAR="$ac_prog"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 if test -n "$JAR"; then
4683 { echo "$as_me:$LINENO: result: $JAR" >&5
4684 echo "${ECHO_T}$JAR" >&6; }
4686 { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4691 test -n "$JAR" && break
4693 test -n "$JAR" || JAR="no"
4695 # Extract the first word of "zip", so it can be a program name with args.
4696 set dummy zip; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_path_ZIP+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4714 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
4727 if test -n "$ZIP"; then
4728 { echo "$as_me:$LINENO: result: $ZIP" >&5
4729 echo "${ECHO_T}$ZIP" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4736 # Extract the first word of "unzip", so it can be a program name with args.
4737 set dummy unzip; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_path_UNZIP+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4745 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4755 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
4767 UNZIP=$ac_cv_path_UNZIP
4768 if test -n "$UNZIP"; then
4769 { echo "$as_me:$LINENO: result: $UNZIP" >&5
4770 echo "${ECHO_T}$UNZIP" >&6; }
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4779 if test "$JAR" = no; then
4787 if test "$ZIP" = no; then
4788 if test "$JAR" = no; then
4789 { { echo "$as_me:$LINENO: error: cannot find neither zip nor jar, cannot continue" >&5
4790 echo "$as_me: error: cannot find neither zip nor jar, cannot continue" >&2;}
4791 { (exit 1); exit 1; }; }
4794 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
4795 JAR=`pwd`/scripts/jar
4798 # Find a good install program. We prefer a C program (faster),
4799 # so one script is as good as another. But avoid the broken or
4800 # incompatible versions:
4801 # SysV /etc/install, /usr/sbin/install
4802 # SunOS /usr/etc/install
4803 # IRIX /sbin/install
4805 # AmigaOS /C/install, which installs bootblocks on floppy discs
4806 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4807 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4808 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4809 # OS/2's system install, which has a completely different semantic
4810 # ./install, which can be erroneously created by make from ./install.sh.
4811 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4812 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4813 if test -z "$INSTALL"; then
4814 if test "${ac_cv_path_install+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 test -z "$as_dir" && as_dir=.
4822 # Account for people who put trailing slashes in PATH elements.
4824 ./ | .// | /cC/* | \
4825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4826 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4829 # OSF1 and SCO ODT 3.0 have their own names for install.
4830 # Don't use installbsd from OSF since it installs stuff as root
4832 for ac_prog in ginstall scoinst install; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4835 if test $ac_prog = install &&
4836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4837 # AIX install. It has an incompatible calling convention.
4839 elif test $ac_prog = install &&
4840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4841 # program-specific install script used by HP pwplus--don't use.
4844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4857 if test "${ac_cv_path_install+set}" = set; then
4858 INSTALL=$ac_cv_path_install
4860 # As a last resort, use the slow shell script. Don't cache a
4861 # value for INSTALL within a source directory, because that will
4862 # break other packages using the cache if that directory is
4863 # removed, or if the value is a relative name.
4864 INSTALL=$ac_install_sh
4867 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4868 echo "${ECHO_T}$INSTALL" >&6; }
4870 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4871 # It thinks the first close brace ends the variable substitution.
4872 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4874 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4876 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4879 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4880 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
4881 # Check whether --enable-maintainer-mode was given.
4882 if test "${enable_maintainer_mode+set}" = set; then
4883 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4885 USE_MAINTAINER_MODE=no
4888 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4889 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
4892 if test $USE_MAINTAINER_MODE = yes; then
4893 MAINTAINER_MODE_TRUE=
4894 MAINTAINER_MODE_FALSE='#'
4896 MAINTAINER_MODE_TRUE='#'
4897 MAINTAINER_MODE_FALSE=
4900 MAINT=$MAINTAINER_MODE_TRUE
4906 # configure.host sets the following important variables
4907 # libgcj_cflags - host specific C compiler flags
4908 # libgcj_cxxflags - host specific C++ compiler flags
4909 # libgcj_javaflags - host specific Java compiler flags
4915 . ${srcdir}/configure.host
4917 LIBGCJ_CFLAGS="${libgcj_cflags}"
4918 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4919 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4920 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4926 # Only use libltdl for non-newlib builds.
4927 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4928 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
4929 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
4931 libname_spec='lib$name'
4939 shlibpath_overrides_runpath=unknown
4941 dynamic_linker="$host_os ld.so"
4942 sys_lib_dlsearch_path_spec="/lib /usr/lib"
4943 if test "$GCC" = yes; then
4944 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
4945 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
4946 # if the path contains ";" then we assume it to be the separator
4947 # otherwise default to the standard path separator (i.e. ":") - it is
4948 # assumed that no part of a normal pathname contains ";" but that should
4949 # okay in the real world where ";" in dirpaths is itself problematic.
4950 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
4952 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
4955 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4957 need_lib_prefix=unknown
4958 hardcode_into_libs=no
4960 # when you set need_version to no, make sure it does not cause -set_version
4961 # flags to be left without arguments
4962 need_version=unknown
4967 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
4968 shlibpath_var=LIBPATH
4970 # AIX 3 has no versioning support, so we append a major version to the name.
4971 soname_spec='${libname}${release}${shared_ext}$major'
4978 hardcode_into_libs=yes
4979 if test "$host_cpu" = ia64; then
4980 # AIX 5 supports IA64
4981 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
4982 shlibpath_var=LD_LIBRARY_PATH
4984 # With GCC up to 2.95.x, collect2 would create an import file
4985 # for dependence libraries. The import file would start with
4986 # the line `#! .'. This would cause the generated library to
4987 # depend on `.', always an invalid library. This was fixed in
4988 # development snapshots of GCC prior to 3.0.
4990 aix4 | aix4.[01] | aix4.[01].*)
4991 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4993 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5000 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5001 # soname into executable. Probably we can add versioning support to
5002 # collect2, so additional links can be useful in future.
5003 if test "$aix_use_runtimelinking" = yes; then
5004 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5005 # instead of lib<name>.a to let people know that these are not
5006 # typical AIX shared libraries.
5007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5009 # We preserve .a as extension for shared libraries through AIX4.2
5010 # and later when we are not doing run time linking.
5011 library_names_spec='${libname}${release}.a $libname.a'
5012 soname_spec='${libname}${release}${shared_ext}$major'
5014 shlibpath_var=LIBPATH
5019 library_names_spec='$libname.ixlibrary $libname.a'
5020 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5021 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5025 library_names_spec='${libname}${shared_ext}'
5026 dynamic_linker="$host_os ld.so"
5027 shlibpath_var=LIBRARY_PATH
5033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5034 soname_spec='${libname}${release}${shared_ext}$major'
5035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5036 shlibpath_var=LD_LIBRARY_PATH
5037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5039 # the default ld.so.conf also contains /usr/contrib/lib and
5040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5041 # libtool to hard-code these into programs
5044 cygwin* | mingw* | pw32*)
5045 version_type=windows
5050 case $GCC,$host_os in
5051 yes,cygwin* | yes,mingw* | yes,pw32*)
5052 library_names_spec='$libname.dll.a'
5053 # DLL is installed to $(libdir)/../bin by postinstall_cmds
5054 postinstall_cmds='base_file=`basename \${file}`~
5055 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
5056 dldir=$destdir/`dirname \$dlpath`~
5057 test -d \$dldir || mkdir -p \$dldir~
5058 $install_prog $dir/$dlname \$dldir/$dlname'
5059 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
5060 dlpath=$dir/\$dldll~
5062 shlibpath_overrides_runpath=yes
5066 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
5067 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5068 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
5071 # MinGW DLLs use traditional 'lib' prefix
5072 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
5073 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5074 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
5075 # It is most probably a Windows format PATH printed by
5076 # mingw gcc, but we are running on Cygwin. Gcc prints its search
5077 # path with ; separators, and with drive letters. We can handle the
5078 # drive letters (cygwin fileutils understands them), so leave them,
5079 # especially as we might pass files found there to a mingw objdump,
5080 # which wouldn't understand a cygwinified path. Ahh.
5081 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5087 # pw32 DLLs use 'pw' prefix rather than 'lib'
5088 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
5094 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
5097 dynamic_linker='Win32 ld.exe'
5098 # FIXME: first we should search . and the directory the executable is in
5102 darwin* | rhapsody*)
5103 dynamic_linker="$host_os dyld"
5107 # FIXME: Relying on posixy $() will cause problems for
5108 # cross-compilation, but unfortunately the echo tests do not
5109 # yet detect zsh echo's removal of \ escapes.
5110 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
5111 soname_spec='${libname}${release}${major}$shared_ext'
5112 shlibpath_overrides_runpath=yes
5113 shlibpath_var=DYLD_LIBRARY_PATH
5114 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
5115 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
5116 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
5117 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
5119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
5126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
5127 soname_spec='${libname}${release}${shared_ext}$major'
5128 shlibpath_var=LD_LIBRARY_PATH
5136 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5137 version_type=freebsd-$objformat
5138 case $version_type in
5140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
5145 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
5149 shlibpath_var=LD_LIBRARY_PATH
5152 shlibpath_overrides_runpath=yes
5154 freebsd3.01* | freebsdelf3.01*)
5155 shlibpath_overrides_runpath=yes
5156 hardcode_into_libs=yes
5159 shlibpath_overrides_runpath=no
5160 hardcode_into_libs=yes
5169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
5170 soname_spec='${libname}${release}${shared_ext}$major'
5171 shlibpath_var=LD_LIBRARY_PATH
5172 hardcode_into_libs=yes
5175 hpux9* | hpux10* | hpux11*)
5176 # Give a soname corresponding to the major version so that dld.sl refuses to
5177 # link against other versions.
5184 hardcode_into_libs=yes
5185 dynamic_linker="$host_os dld.so"
5186 shlibpath_var=LD_LIBRARY_PATH
5187 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5189 soname_spec='${libname}${release}${shared_ext}$major'
5190 if test "X$HPUX_IA64_MODE" = X32; then
5191 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5193 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5199 hardcode_into_libs=yes
5200 dynamic_linker="$host_os dld.sl"
5201 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
5202 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5204 soname_spec='${libname}${release}${shared_ext}$major'
5205 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
5206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5210 dynamic_linker="$host_os dld.sl"
5211 shlibpath_var=SHLIB_PATH
5212 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5214 soname_spec='${libname}${release}${shared_ext}$major'
5217 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5218 postinstall_cmds='chmod 555 $lib'
5221 irix5* | irix6* | nonstopux*)
5223 nonstopux*) version_type=nonstopux ;;
5225 if test "$lt_cv_prog_gnu_ld" = yes; then
5233 soname_spec='${libname}${release}${shared_ext}$major'
5234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
5236 irix5* | nonstopux*)
5240 case $LD in # libtool.m4 will add one of these switches to LD
5241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
5242 libsuff= shlibsuff= libmagic=32-bit;;
5243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
5244 libsuff=32 shlibsuff=N32 libmagic=N32;;
5245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
5246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
5247 *) libsuff= shlibsuff= libmagic=never-match;;
5251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5252 shlibpath_overrides_runpath=no
5253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5255 hardcode_into_libs=yes
5258 # No shared lib support for Linux oldld, aout, or coff.
5259 linux*oldld* | linux*aout* | linux*coff*)
5263 # This must be Linux ELF.
5268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5269 soname_spec='${libname}${release}${shared_ext}$major'
5270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5271 shlibpath_var=LD_LIBRARY_PATH
5272 shlibpath_overrides_runpath=no
5273 # This implies no fast_install, which is unacceptable.
5274 # Some rework will be needed to allow for fast_install
5275 # before this can be enabled.
5276 hardcode_into_libs=yes
5278 # We used to test for /lib/ld.so.1 and disable shared libraries on
5279 # powerpc, because MkLinux only supported shared libraries with the
5280 # GNU dynamic linker. Since this was broken with cross compilers,
5281 # most powerpc-linux boxes support dynamic linking these days and
5282 # people can always --disable-shared, the test was removed, and we
5283 # assume the GNU/Linux dynamic linker is in use.
5284 dynamic_linker='GNU/Linux ld.so'
5291 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5294 dynamic_linker='NetBSD (a.out) ld.so'
5296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
5297 soname_spec='${libname}${release}${shared_ext}$major'
5298 dynamic_linker='NetBSD ld.elf_so'
5300 shlibpath_var=LD_LIBRARY_PATH
5301 shlibpath_overrides_runpath=yes
5302 hardcode_into_libs=yes
5307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5308 shlibpath_var=LD_LIBRARY_PATH
5309 shlibpath_overrides_runpath=yes
5316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5317 soname_spec='${libname}${release}${shared_ext}$major'
5318 shlibpath_var=LD_LIBRARY_PATH
5319 shlibpath_overrides_runpath=yes
5326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5328 shlibpath_var=LD_LIBRARY_PATH
5329 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5331 openbsd2.[89] | openbsd2.[89].*)
5332 shlibpath_overrides_runpath=no
5335 shlibpath_overrides_runpath=yes
5339 shlibpath_overrides_runpath=yes
5344 libname_spec='$name'
5347 library_names_spec='$libname${shared_ext} $libname.a'
5348 dynamic_linker='OS/2 ld.exe'
5349 shlibpath_var=LIBPATH
5352 osf3* | osf4* | osf5*)
5356 soname_spec='${libname}${release}${shared_ext}$major'
5357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5358 shlibpath_var=LD_LIBRARY_PATH
5359 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5360 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5365 soname_spec='${libname}${release}${shared_ext}$major'
5366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5367 shlibpath_var=LD_LIBRARY_PATH
5374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5375 soname_spec='${libname}${release}${shared_ext}$major'
5376 shlibpath_var=LD_LIBRARY_PATH
5377 shlibpath_overrides_runpath=yes
5378 hardcode_into_libs=yes
5379 # ldd complains unless libraries are executable
5380 postinstall_cmds='chmod +x $lib'
5385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
5386 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5387 shlibpath_var=LD_LIBRARY_PATH
5388 shlibpath_overrides_runpath=yes
5389 if test "$with_gnu_ld" = yes; then
5395 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5398 soname_spec='${libname}${release}${shared_ext}$major'
5399 shlibpath_var=LD_LIBRARY_PATH
5400 case $host_vendor in
5402 shlibpath_overrides_runpath=no
5404 export_dynamic_flag_spec='${wl}-Blargedynsym'
5405 runpath_var=LD_RUN_PATH
5413 shlibpath_overrides_runpath=no
5414 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5420 if test -d /usr/nec ;then
5422 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
5423 soname_spec='$libname${shared_ext}.$major'
5424 shlibpath_var=LD_LIBRARY_PATH
5430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
5431 soname_spec='${libname}${release}${shared_ext}$major'
5432 shlibpath_var=LD_LIBRARY_PATH
5439 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5440 echo "${ECHO_T}$dynamic_linker" >&6; }
5441 test "$dynamic_linker" = no && can_build_shared=no
5444 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
5445 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
5446 if test "${libltdl_cv_shlibpath_var+set}" = set; then
5447 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 libltdl_cv_shlibpath_var="$shlibpath_var"
5451 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
5452 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
5453 if test -n "$libltdl_cv_shlibpath_var"; then
5455 cat >>confdefs.h <<_ACEOF
5456 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
5463 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
5466 # See if the user has requested runtime debugging.
5467 LIBGCJDEBUG="disable"
5469 # Check whether --enable-libgcj-debug was given.
5470 if test "${enable_libgcj_debug+set}" = set; then
5471 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
5473 cat >>confdefs.h <<\_ACEOF
5477 LIBGCJDEBUG="enable"
5482 # Determine which AWT peer libraries to build
5483 # Check whether --enable-java-awt was given.
5484 if test "${enable_java_awt+set}" = set; then
5485 enableval=$enable_java_awt;
5489 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
5493 # The default toolkit to use is the first one specified.
5497 for peer in $peerlibs ; do
5500 if test "$no_x" = yes; then
5501 echo "*** xlib peers requested but no X library available" 1>&2
5505 if test -z "$TOOLKIT"; then
5506 TOOLKIT=gnu.awt.xlib.XToolkit
5511 if test "$no_x" = yes; then
5512 echo "*** gtk peers requested but no X library available" 1>&2
5516 if test -z "$TOOLKIT"; then
5517 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
5522 if test "$no_x" = yes; then
5523 # Perhaps we should admit the possibility of embedded Qt.
5524 echo "*** Qt peers requested but no X library available" 1>&2
5528 if test -z "$TOOLKIT"; then
5529 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
5540 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
5547 if test "$use_xlib_awt" = yes; then
5557 if test "$use_qt_awt" = yes; then
5566 # Create standard.omit based on decisions we just made.
5567 cp $srcdir/standard.omit.in standard.omit
5568 if test "$use_xlib_awt" != yes; then
5569 echo gnu/awt/xlib >> standard.omit
5570 echo gnu/gcj/xlib >> standard.omit
5572 if test "$use_qt_awt" != yes; then
5573 echo gnu/java/awt/peer/qt >> standard.omit
5576 if test -z "${with_multisubdir}"; then
5579 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
5584 # Which gcj do we use?
5586 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
5587 if test -n "${with_cross_host}"; then
5588 # We are being configured with a cross compiler. We can't
5589 # use ac_exeext, because that is for the target platform.
5592 case "${with_cross_host}" in
5594 cross_host_exeext=.exe
5597 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
5598 if test x"$build_noncanonical" = x"$with_cross_host"; then
5599 # Ordinary cross (host!=target and host=build)
5602 # Canadian cross (host!=target and host!=build)
5609 # We are being configured with a native or crossed-native compiler
5610 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
5611 if test x"$build" = x"$host"; then
5612 # True native build (host=target and host=build)
5615 # Crossed-native build (host=target and host!=build)
5622 case "${which_gcj}" in
5624 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
5625 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
5628 if test "x${with_newlib}" = "xyes"; then
5629 # FIXME (comment): Why is this needed?
5631 GCJ="${target_noncanonical}-gcj"
5633 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
5635 GCJH='$(target_noncanonical)-gcjh'
5638 GCJ="gcj -B`${PWDCMD-pwd}`/"
5645 # Create it, so that compile/link tests don't fail
5646 test -f libgcj.spec || touch libgcj.spec
5650 # Set up to configure Classpath.
5651 # FIXME: no supported way to pass args in autoconf.
5652 ac_configure_args="$ac_configure_args --disable-load-library"
5653 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
5654 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
5655 dir1=`cd $srcdir && pwd`
5657 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
5658 ac_configure_args="$ac_configure_args --disable-core-jni"
5659 ac_configure_args="$ac_configure_args --disable-examples"
5660 ac_configure_args="$ac_configure_args --with-glibj=build"
5661 if test "$use_gtk_awt" != yes; then
5662 ac_configure_args="$ac_configure_args --disable-gtk-peer"
5664 if test "$use_qt_awt" != yes; then
5665 ac_configure_args="$ac_configure_args --disable-qt-peer"
5667 # We need this as qt is disabled by default in classpath.
5668 ac_configure_args="$ac_configure_args --enable-qt-peer"
5671 # Only use libltdl for non-newlib builds.
5672 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5673 case $enable_ltdl_convenience in
5674 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
5675 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
5676 { (exit 1); exit 1; }; } ;;
5677 "") enable_ltdl_convenience=yes
5678 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
5680 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
5681 INCLTDL='-I${top_srcdir}/''libltdl'
5686 cat >>confdefs.h <<\_ACEOF
5690 # Sigh. Libtool's macro doesn't do the right thing.
5691 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
5692 # FIXME: this is a hack.
5693 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
5694 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
5699 # Check whether --enable-shared was given.
5700 if test "${enable_shared+set}" = set; then
5701 enableval=$enable_shared; p=${PACKAGE-default}
5703 yes) enable_shared=yes ;;
5704 no) enable_shared=no ;;
5707 # Look at the argument we got. We use all the common list separators.
5708 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5709 for pkg in $enableval; do
5710 if test "X$pkg" = "X$p"; then
5721 # Check whether --enable-static was given.
5722 if test "${enable_static+set}" = set; then
5723 enableval=$enable_static; p=${PACKAGE-default}
5725 yes) enable_static=yes ;;
5726 no) enable_static=no ;;
5729 # Look at the argument we got. We use all the common list separators.
5730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5731 for pkg in $enableval; do
5732 if test "X$pkg" = "X$p"; then
5743 # Check whether --enable-fast-install was given.
5744 if test "${enable_fast_install+set}" = set; then
5745 enableval=$enable_fast_install; p=${PACKAGE-default}
5747 yes) enable_fast_install=yes ;;
5748 no) enable_fast_install=no ;;
5750 enable_fast_install=no
5751 # Look at the argument we got. We use all the common list separators.
5752 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
5753 for pkg in $enableval; do
5754 if test "X$pkg" = "X$p"; then
5755 enable_fast_install=yes
5762 enable_fast_install=yes
5766 # Check whether --with-gnu-ld was given.
5767 if test "${with_gnu_ld+set}" = set; then
5768 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5774 if test "$GCC" = yes; then
5775 # Check if gcc -print-prog-name=ld gives a path.
5776 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5777 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5780 # gcc leaves a trailing carriage return which upsets mingw
5781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5786 # Accept absolute paths.
5787 [\\/]* | [A-Za-z]:[\\/]*)
5788 re_direlt='/[^/][^/]*/\.\./'
5789 # Canonicalize the path of ld
5790 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5791 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5792 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5794 test -z "$LD" && LD="$ac_prog"
5797 # If it fails, then pretend we aren't using GCC.
5801 # If it is relative, then search for the first ld in PATH.
5805 elif test "$with_gnu_ld" = yes; then
5806 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5807 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5809 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5810 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5812 if test "${lt_cv_path_LD+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5815 if test -z "$LD"; then
5816 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5817 for ac_dir in $PATH; do
5818 test -z "$ac_dir" && ac_dir=.
5819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5820 lt_cv_path_LD="$ac_dir/$ac_prog"
5821 # Check to see if the program is GNU ld. I'd rather use --version,
5822 # but apparently some GNU ld's only accept -v.
5823 # Break only if it was the GNU/non-GNU ld that we prefer.
5824 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5825 test "$with_gnu_ld" != no && break
5827 test "$with_gnu_ld" != yes && break
5833 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5838 if test -n "$LD"; then
5839 { echo "$as_me:$LINENO: result: $LD" >&5
5840 echo "${ECHO_T}$LD" >&6; }
5842 { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5845 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5846 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5847 { (exit 1); exit 1; }; }
5848 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5849 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5850 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5851 echo $ECHO_N "(cached) $ECHO_C" >&6
5853 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5854 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5855 lt_cv_prog_gnu_ld=yes
5857 lt_cv_prog_gnu_ld=no
5860 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5861 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5862 with_gnu_ld=$lt_cv_prog_gnu_ld
5865 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5866 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5867 if test "${lt_cv_ld_reload_flag+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 lt_cv_ld_reload_flag='-r'
5872 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5873 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5874 reload_flag=$lt_cv_ld_reload_flag
5875 test -n "$reload_flag" && reload_flag=" $reload_flag"
5877 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5878 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5879 if test "${lt_cv_path_NM+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5882 if test -n "$NM"; then
5883 # Let the user override the test.
5886 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5887 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5888 test -z "$ac_dir" && ac_dir=.
5889 tmp_nm=$ac_dir/${ac_tool_prefix}nm
5890 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
5891 # Check to see if the nm accepts a BSD-compat flag.
5892 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5893 # nm: unknown option "B" ignored
5894 # Tru64's nm complains that /dev/null is an invalid object file
5895 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
5896 lt_cv_path_NM="$tmp_nm -B"
5898 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
5899 lt_cv_path_NM="$tmp_nm -p"
5902 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5903 continue # so that we can try to find one that supports BSD flags
5908 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5913 { echo "$as_me:$LINENO: result: $NM" >&5
5914 echo "${ECHO_T}$NM" >&6; }
5916 { echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
5917 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6; }
5918 if test "${lt_cv_deplibs_check_method+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 lt_cv_file_magic_cmd='$MAGIC_CMD'
5922 lt_cv_file_magic_test_file=
5923 lt_cv_deplibs_check_method='unknown'
5924 # Need to set the preceding variable on all platforms that support
5925 # interlibrary dependencies.
5926 # 'none' -- dependencies not supported.
5927 # `unknown' -- same as none, but documents that we really don't know.
5928 # 'pass_all' -- all dependencies passed with no checks.
5929 # 'test_compile' -- check by making test program.
5930 # 'file_magic [regex]' -- check by looking for files in library path
5931 # which responds to the $file_magic_cmd with a given egrep regex.
5932 # If you have `file' or equivalent on your system and you're not sure
5933 # whether `pass_all' will *always* work, you probably want this one.
5937 lt_cv_deplibs_check_method=pass_all
5941 lt_cv_deplibs_check_method=pass_all
5945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5946 lt_cv_file_magic_cmd='/usr/bin/file -L'
5947 lt_cv_file_magic_test_file=/shlib/libc.so
5950 cygwin* | mingw* |pw32*)
5951 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5952 lt_cv_file_magic_cmd='$OBJDUMP -f'
5955 darwin* | rhapsody*)
5956 # this will be overwritten by pass_all, but leave it in just in case
5957 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
5958 lt_cv_file_magic_cmd='/usr/bin/file -L'
5960 rhapsody* | darwin1.012)
5961 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
5964 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
5967 lt_cv_deplibs_check_method=pass_all
5970 freebsd* | kfreebsd*-gnu)
5971 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5974 # Not sure whether the presence of OpenBSD here was a mistake.
5975 # Let's accept both of them until this is cleared up.
5976 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5977 lt_cv_file_magic_cmd=/usr/bin/file
5978 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5982 lt_cv_deplibs_check_method=pass_all
5987 lt_cv_deplibs_check_method=pass_all
5993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5994 lt_cv_file_magic_cmd=/usr/bin/file
5995 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5998 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5999 lt_cv_file_magic_cmd=/usr/bin/file
6000 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6008 # this will be overridden with pass_all, but let us keep it just in case
6009 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
6013 *-32|*"-32 ") libmagic=32-bit;;
6014 *-n32|*"-n32 ") libmagic=N32;;
6015 *-64|*"-64 ") libmagic=64-bit;;
6016 *) libmagic=never-match;;
6018 # this will be overridden with pass_all, but let us keep it just in case
6019 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
6022 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
6023 lt_cv_deplibs_check_method=pass_all
6026 # This must be Linux ELF.
6028 lt_cv_deplibs_check_method=pass_all
6031 netbsd* | knetbsd*-gnu)
6032 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6033 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
6035 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
6040 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6041 lt_cv_file_magic_cmd=/usr/bin/file
6042 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6045 osf3* | osf4* | osf5*)
6046 # this will be overridden with pass_all, but let us keep it just in case
6047 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
6048 lt_cv_file_magic_test_file=/shlib/libc.so
6049 lt_cv_deplibs_check_method=pass_all
6053 lt_cv_deplibs_check_method=pass_all
6057 lt_cv_deplibs_check_method=pass_all
6058 lt_cv_file_magic_test_file=/lib/libc.so
6061 sysv5uw[78]* | sysv4*uw2*)
6062 lt_cv_deplibs_check_method=pass_all
6065 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6066 case $host_vendor in
6068 lt_cv_deplibs_check_method=pass_all
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6072 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6079 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6080 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6081 file_magic_cmd=$lt_cv_file_magic_cmd
6082 deplibs_check_method=$lt_cv_deplibs_check_method
6087 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6089 # find the maximum length of command line arguments
6090 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6091 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6092 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6100 # On DJGPP, this test can blow up pretty badly due to problems in libc
6101 # (any single argument exceeding 2000 bytes causes a buffer overrun
6102 # during glob expansion). Even if it were fixed, the result of this
6103 # check would be larger than it should be.
6104 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6108 # On Win9x/ME, this test blows up -- it succeeds, but takes
6109 # about 5 minutes as the teststring grows exponentially.
6110 # Worse, since 9x/ME are not pre-emptively multitasking,
6111 # you end up with a "frozen" computer, even though with patience
6112 # the test eventually succeeds (with a max line length of 256k).
6113 # Instead, let's just punt: use the minimum linelength reported by
6114 # all of the supported platforms: 8192 (on NT/2K/XP).
6115 lt_cv_sys_max_cmd_len=8192;
6119 # On AmigaOS with pdksh, this test takes hours, literally.
6120 # So we just punt and use a minimum line length of 8192.
6121 lt_cv_sys_max_cmd_len=8192;
6124 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6125 # This has been around since 386BSD, at least. Likely further.
6126 if test -x /sbin/sysctl; then
6127 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6128 elif test -x /usr/sbin/sysctl; then
6129 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6131 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6133 # And add a safety zone
6134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6135 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6141 if test -n "$lt_cv_sys_max_cmd_len" ; then
6142 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6143 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6145 { echo "$as_me:$LINENO: result: none" >&5
6146 echo "${ECHO_T}none" >&6; }
6150 # Only perform the check for file, if the check method requires it
6151 case $deplibs_check_method in
6153 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6154 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6155 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6156 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6164 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6167 ac_save_MAGIC_CMD="$MAGIC_CMD"
6168 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6169 ac_dummy="/usr/bin:$PATH"
6170 for ac_dir in $ac_dummy; do
6171 test -z "$ac_dir" && ac_dir=.
6172 if test -f $ac_dir/${ac_tool_prefix}file; then
6173 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6174 if test -n "$file_magic_test_file"; then
6175 case $deplibs_check_method in
6177 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6178 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6179 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6180 egrep "$file_magic_regex" > /dev/null; then
6185 *** Warning: the command libtool uses to detect shared libraries,
6186 *** $file_magic_cmd, produces output that libtool cannot recognize.
6187 *** The result is that libtool may fail to recognize shared libraries
6188 *** as such. This will affect the creation of libtool libraries that
6189 *** depend on shared libraries, but programs linked with such libtool
6190 *** libraries will work regardless of this problem. Nevertheless, you
6191 *** may want to report the problem to your system manager and/or to
6192 *** bug-libtool@gnu.org
6202 MAGIC_CMD="$ac_save_MAGIC_CMD"
6207 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6208 if test -n "$MAGIC_CMD"; then
6209 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6210 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6212 { echo "$as_me:$LINENO: result: no" >&5
6213 echo "${ECHO_T}no" >&6; }
6216 if test -z "$lt_cv_path_MAGIC_CMD"; then
6217 if test -n "$ac_tool_prefix"; then
6218 { echo "$as_me:$LINENO: checking for file" >&5
6219 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6220 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6228 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
6231 ac_save_MAGIC_CMD="$MAGIC_CMD"
6232 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
6233 ac_dummy="/usr/bin:$PATH"
6234 for ac_dir in $ac_dummy; do
6235 test -z "$ac_dir" && ac_dir=.
6236 if test -f $ac_dir/file; then
6237 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6238 if test -n "$file_magic_test_file"; then
6239 case $deplibs_check_method in
6241 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6242 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6243 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6244 egrep "$file_magic_regex" > /dev/null; then
6249 *** Warning: the command libtool uses to detect shared libraries,
6250 *** $file_magic_cmd, produces output that libtool cannot recognize.
6251 *** The result is that libtool may fail to recognize shared libraries
6252 *** as such. This will affect the creation of libtool libraries that
6253 *** depend on shared libraries, but programs linked with such libtool
6254 *** libraries will work regardless of this problem. Nevertheless, you
6255 *** may want to report the problem to your system manager and/or to
6256 *** bug-libtool@gnu.org
6266 MAGIC_CMD="$ac_save_MAGIC_CMD"
6271 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6272 if test -n "$MAGIC_CMD"; then
6273 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6274 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6276 { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6289 if test -n "$ac_tool_prefix"; then
6290 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6291 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6294 if test "${ac_cv_prog_RANLIB+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 if test -n "$RANLIB"; then
6298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 test -z "$as_dir" && as_dir=.
6305 for ac_exec_ext in '' $ac_executable_extensions; do
6306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6307 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 RANLIB=$ac_cv_prog_RANLIB
6318 if test -n "$RANLIB"; then
6319 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6320 echo "${ECHO_T}$RANLIB" >&6; }
6322 { echo "$as_me:$LINENO: result: no" >&5
6323 echo "${ECHO_T}no" >&6; }
6328 if test -z "$ac_cv_prog_RANLIB"; then
6329 ac_ct_RANLIB=$RANLIB
6330 # Extract the first word of "ranlib", so it can be a program name with args.
6331 set dummy ranlib; ac_word=$2
6332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6334 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6335 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 if test -n "$ac_ct_RANLIB"; then
6338 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir=.
6345 for ac_exec_ext in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_prog_ac_ct_RANLIB="ranlib"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6357 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6358 if test -n "$ac_ct_RANLIB"; then
6359 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6360 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6366 if test "x$ac_ct_RANLIB" = x; then
6369 case $cross_compiling:$ac_tool_warned in
6371 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6372 whose name does not start with the host triplet. If you think this
6373 configuration is useful to you, please write to autoconf@gnu.org." >&5
6374 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6375 whose name does not start with the host triplet. If you think this
6376 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6377 ac_tool_warned=yes ;;
6379 RANLIB=$ac_ct_RANLIB
6382 RANLIB="$ac_cv_prog_RANLIB"
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6387 set dummy ${ac_tool_prefix}strip; ac_word=$2
6388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6390 if test "${ac_cv_prog_STRIP+set}" = set; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 if test -n "$STRIP"; then
6394 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6413 STRIP=$ac_cv_prog_STRIP
6414 if test -n "$STRIP"; then
6415 { echo "$as_me:$LINENO: result: $STRIP" >&5
6416 echo "${ECHO_T}$STRIP" >&6; }
6418 { echo "$as_me:$LINENO: result: no" >&5
6419 echo "${ECHO_T}no" >&6; }
6424 if test -z "$ac_cv_prog_STRIP"; then
6426 # Extract the first word of "strip", so it can be a program name with args.
6427 set dummy strip; ac_word=$2
6428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6430 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 if test -n "$ac_ct_STRIP"; then
6434 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_prog_ac_ct_STRIP="strip"
6444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6454 if test -n "$ac_ct_STRIP"; then
6455 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6456 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6458 { echo "$as_me:$LINENO: result: no" >&5
6459 echo "${ECHO_T}no" >&6; }
6462 if test "x$ac_ct_STRIP" = x; then
6465 case $cross_compiling:$ac_tool_warned in
6467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6468 whose name does not start with the host triplet. If you think this
6469 configuration is useful to you, please write to autoconf@gnu.org." >&5
6470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6471 whose name does not start with the host triplet. If you think this
6472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6473 ac_tool_warned=yes ;;
6478 STRIP="$ac_cv_prog_STRIP"
6482 # Check for any special flags to pass to ltconfig.
6483 libtool_flags="--cache-file=$cache_file"
6484 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
6485 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
6486 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
6487 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
6488 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
6491 # Check whether --enable-libtool-lock was given.
6492 if test "${enable_libtool_lock+set}" = set; then
6493 enableval=$enable_libtool_lock;
6496 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
6497 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
6500 # Check whether --with-pic was given.
6501 if test "${with_pic+set}" = set; then
6502 withval=$with_pic; pic_mode="$withval"
6507 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
6508 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
6510 # Some flags need to be propagated to the compiler or linker for good
6514 # Find out which ABI we are using.
6515 echo '#line 6515 "configure"' > conftest.$ac_ext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6517 (eval $ac_compile) 2>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; then
6521 if test "$lt_cv_prog_gnu_ld" = yes; then
6522 case `/usr/bin/file conftest.$ac_objext` in
6524 LD="${LD-ld} -melf32bsmip"
6527 LD="${LD-ld} -melf32bmipn32"
6530 LD="${LD-ld} -melf64bmip"
6534 case `/usr/bin/file conftest.$ac_objext` in
6551 # Find out which ABI we are using.
6552 echo 'int i;' > conftest.$ac_ext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6554 (eval $ac_compile) 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; then
6558 case "`/usr/bin/file conftest.o`" in
6570 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6571 # Find out which ABI we are using.
6572 echo 'int i;' > conftest.$ac_ext
6573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6574 (eval $ac_compile) 2>&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); }; then
6578 case "`/usr/bin/file conftest.o`" in
6582 LD="${LD-ld} -m elf_i386"
6584 ppc64-*linux*|powerpc64-*linux*)
6585 LD="${LD-ld} -m elf32ppclinux"
6588 LD="${LD-ld} -m elf_s390"
6591 LD="${LD-ld} -m elf32_sparc"
6598 LD="${LD-ld} -m elf_x86_64"
6600 ppc*-*linux*|powerpc*-*linux*)
6601 LD="${LD-ld} -m elf64ppc"
6604 LD="${LD-ld} -m elf64_s390"
6607 LD="${LD-ld} -m elf64_sparc"
6617 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6618 SAVE_CFLAGS="$CFLAGS"
6619 CFLAGS="$CFLAGS -belf"
6620 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6621 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6622 if test "${lt_cv_cc_needs_belf+set}" = set; then
6623 echo $ECHO_N "(cached) $ECHO_C" >&6
6627 ac_cpp='$CPP $CPPFLAGS'
6628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632 if test x$gcc_no_link = xyes; then
6633 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6634 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6635 { (exit 1); exit 1; }; }
6637 cat >conftest.$ac_ext <<_ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6652 rm -f conftest.$ac_objext conftest$ac_exeext
6653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6654 (eval $ac_link) 2>conftest.er1
6656 grep -v '^ *+' conftest.er1 >conftest.err
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } &&
6661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; } &&
6667 { ac_try='test -s conftest$ac_exeext'
6668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672 (exit $ac_status); }; }; then
6673 lt_cv_cc_needs_belf=yes
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 lt_cv_cc_needs_belf=no
6681 rm -f conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6684 ac_cpp='$CPP $CPPFLAGS'
6685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6691 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6692 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6693 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6694 CFLAGS="$SAVE_CFLAGS"
6702 # Save cache, so that ltconfig can load it
6703 cat >confcache <<\_ACEOF
6704 # This file is a shell script that caches the results of configure
6705 # tests run on this system so they can be shared between configure
6706 # scripts and configure runs, see configure's option --config-cache.
6707 # It is not useful on other systems. If it contains results you don't
6708 # want to keep, you may remove or edit it.
6710 # config.status only pays attention to the cache file if you give it
6711 # the --recheck option to rerun configure.
6713 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6714 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6719 # The following way of writing the cache mishandles newlines in values,
6720 # but we know of no workaround that is simple, portable, and efficient.
6721 # So, we kill variables containing newlines.
6722 # Ultrix sh set writes to stderr and can't be redirected directly,
6723 # and sets the high bit in the cache file unless we assign to the vars.
6725 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6726 eval ac_val=\$$ac_var
6730 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
6731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
6734 _ | IFS | as_nl) ;; #(
6735 *) $as_unset $ac_var ;;
6741 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6742 *${as_nl}ac_space=\ *)
6743 # `set' does not quote correctly, so add quotes (double-quote
6744 # substitution turns \\\\ into \\, and sed turns \\ into \).
6747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6750 # `set' quotes correctly as required by POSIX, so do not add quotes.
6751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6762 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6764 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6765 if test -w $cache_file; then
6766 test "x$cache_file" != "x/dev/null" &&
6767 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
6768 echo "$as_me: updating cache $cache_file" >&6;}
6769 cat confcache >$cache_file
6771 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
6772 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6777 # Actually configure libtool. ac_aux_dir is where install-sh is found.
6778 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
6779 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
6780 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
6781 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
6782 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
6783 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
6784 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
6785 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
6786 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
6787 echo "$as_me: error: libtool configure failed" >&2;}
6788 { (exit 1); exit 1; }; }
6790 # Reload cache, that may have been modified by ltconfig
6791 if test -r "$cache_file"; then
6792 # Some versions of bash will fail to source /dev/null (special
6793 # files actually), so we avoid doing that.
6794 if test -f "$cache_file"; then
6795 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
6796 echo "$as_me: loading cache $cache_file" >&6;}
6798 [\\/]* | ?:[\\/]* ) . $cache_file;;
6799 *) . ./$cache_file;;
6803 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
6804 echo "$as_me: creating cache $cache_file" >&6;}
6809 # This can be used to rebuild libtool when needed
6810 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
6812 # Always use our own libtool.
6813 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6815 # Redirect the config.log output again, so that the ltconfig log is not
6816 # clobbered by the next message.
6817 exec 5>>./config.log
6820 ac_cpp='$CXXCPP $CPPFLAGS'
6821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6824 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6825 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6826 if test -z "$CXXCPP"; then
6827 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 # Double quotes because CXXCPP needs to be expanded
6831 for CXXCPP in "$CXX -E" "/lib/cpp"
6834 for ac_cxx_preproc_warn_flag in '' yes
6836 # Use a header file that comes with gcc, so configuring glibc
6837 # with a fresh cross-compiler works.
6838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6839 # <limits.h> exists even on freestanding compilers.
6840 # On the NeXT, cc -E runs the code through the compiler's parser,
6841 # not just through cpp. "Syntax error" is here to catch this case.
6842 cat >conftest.$ac_ext <<_ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6849 # include <limits.h>
6851 # include <assert.h>
6855 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6856 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6858 grep -v '^ *+' conftest.er1 >conftest.err
6860 cat conftest.err >&5
6861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6862 (exit $ac_status); } >/dev/null; then
6863 if test -s conftest.err; then
6864 ac_cpp_err=$ac_cxx_preproc_warn_flag
6865 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6872 if test -z "$ac_cpp_err"; then
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.$ac_ext >&5
6878 # Broken: fails on valid input.
6882 rm -f conftest.err conftest.$ac_ext
6884 # OK, works on sane cases. Now check whether nonexistent headers
6885 # can be detected and how.
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 #include <ac_nonexistent.h>
6894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6897 grep -v '^ *+' conftest.er1 >conftest.err
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } >/dev/null; then
6902 if test -s conftest.err; then
6903 ac_cpp_err=$ac_cxx_preproc_warn_flag
6904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6911 if test -z "$ac_cpp_err"; then
6912 # Broken: success on invalid input.
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6918 # Passes both tests.
6923 rm -f conftest.err conftest.$ac_ext
6926 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6927 rm -f conftest.err conftest.$ac_ext
6928 if $ac_preproc_ok; then
6933 ac_cv_prog_CXXCPP=$CXXCPP
6936 CXXCPP=$ac_cv_prog_CXXCPP
6938 ac_cv_prog_CXXCPP=$CXXCPP
6940 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6941 echo "${ECHO_T}$CXXCPP" >&6; }
6943 for ac_cxx_preproc_warn_flag in '' yes
6945 # Use a header file that comes with gcc, so configuring glibc
6946 # with a fresh cross-compiler works.
6947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6948 # <limits.h> exists even on freestanding compilers.
6949 # On the NeXT, cc -E runs the code through the compiler's parser,
6950 # not just through cpp. "Syntax error" is here to catch this case.
6951 cat >conftest.$ac_ext <<_ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6958 # include <limits.h>
6960 # include <assert.h>
6964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6967 grep -v '^ *+' conftest.er1 >conftest.err
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } >/dev/null; then
6972 if test -s conftest.err; then
6973 ac_cpp_err=$ac_cxx_preproc_warn_flag
6974 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6981 if test -z "$ac_cpp_err"; then
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 # Broken: fails on valid input.
6991 rm -f conftest.err conftest.$ac_ext
6993 # OK, works on sane cases. Now check whether nonexistent headers
6994 # can be detected and how.
6995 cat >conftest.$ac_ext <<_ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 #include <ac_nonexistent.h>
7003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1 >conftest.err
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } >/dev/null; then
7011 if test -s conftest.err; then
7012 ac_cpp_err=$ac_cxx_preproc_warn_flag
7013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7020 if test -z "$ac_cpp_err"; then
7021 # Broken: success on invalid input.
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 # Passes both tests.
7032 rm -f conftest.err conftest.$ac_ext
7035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7036 rm -f conftest.err conftest.$ac_ext
7037 if $ac_preproc_ok; then
7040 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7041 See \`config.log' for more details." >&5
7042 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7043 See \`config.log' for more details." >&2;}
7044 { (exit 1); exit 1; }; }
7048 ac_cpp='$CPP $CPPFLAGS'
7049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7055 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
7057 lt_save_CFLAGS="$CFLAGS"
7058 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
7059 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7060 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7061 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7062 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7063 deplibs_check_method="$deplibs_check_method" \
7064 file_magic_cmd="$file_magic_cmd" \
7065 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7066 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
7067 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7068 echo "$as_me: error: libtool tag configuration failed" >&2;}
7069 { (exit 1); exit 1; }; }
7071 CFLAGS="$lt_save_CFLAGS"
7073 # Redirect the config.log output again, so that the ltconfig log is not
7074 # clobbered by the next message.
7075 exec 5>>./config.log
7083 for ac_prog in gcj gcj-3.2 gcj-3.1 gcj-3.0 gcj-2.95
7085 # Extract the first word of "$ac_prog", so it can be a program name with args.
7086 set dummy $ac_prog; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_GCJ+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test -n "$GCJ"; then
7093 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir=.
7100 for ac_exec_ext in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_GCJ="$ac_prog"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 if test -n "$GCJ"; then
7114 { echo "$as_me:$LINENO: result: $GCJ" >&5
7115 echo "${ECHO_T}$GCJ" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7122 test -n "$GCJ" && break
7124 test -n "$GCJ" || GCJ="gcj"
7126 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
7127 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
7128 { (exit 1); exit 1; }; }
7129 if test "x${GCJFLAGS-unset}" = xunset; then
7134 depcc="$GCJ" am_compiler_list='gcc3 gcc'
7136 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
7137 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
7138 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7142 # We make a subdir and do the tests there. Otherwise we can end up
7143 # making bogus files that we don't know about and never remove. For
7144 # instance it was reported that on HP-UX the gcc test will end up
7145 # making a dummy file named `D' -- because `-MD' means `put the output
7148 # Copy depcomp to subdir because otherwise we won't find it if we're
7149 # using a relative directory.
7150 cp "$am_depcomp" conftest.dir
7152 # We will build objects and dependencies in a subdirectory because
7153 # it helps to detect inapplicable dependency modes. For instance
7154 # both Tru64's cc and ICC support -MD to output dependencies as a
7155 # side effect of compilation, but ICC will put the dependencies in
7156 # the current directory while Tru64 will put them in the object
7160 am_cv_GCJ_dependencies_compiler_type=none
7161 if test "$am_compiler_list" = ""; then
7162 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7164 for depmode in $am_compiler_list; do
7165 # Setup a source with many dependencies, because some compilers
7166 # like to wrap large dependency lists on column 80 (with \), and
7167 # we should not choose a depcomp mode which is confused by this.
7169 # We need to recreate these files for each test, as the compiler may
7170 # overwrite some of them when testing with obscure command lines.
7171 # This happens at least with the AIX C compiler.
7173 for i in 1 2 3 4 5 6; do
7174 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7175 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7176 # Solaris 8's {/usr,}/bin/sh.
7177 touch sub/conftst$i.h
7179 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7183 # after this tag, mechanisms are not by side-effect, so they'll
7184 # only be used when explicitly requested
7185 if test "x$enable_dependency_tracking" = xyes; then
7193 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7194 # mode. It turns out that the SunPro C++ compiler does not properly
7195 # handle `-M -o', and we need to detect this.
7196 if depmode=$depmode \
7197 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7198 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7199 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7200 >/dev/null 2>conftest.err &&
7201 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7202 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7203 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7204 # icc doesn't choke on unknown options, it will just issue warnings
7205 # or remarks (even with -Werror). So we grep stderr for any message
7206 # that says an option was ignored or not supported.
7207 # When given -MP, icc 7.0 and 7.1 complain thusly:
7208 # icc: Command line warning: ignoring option '-M'; no argument required
7209 # The diagnosis changed in icc 8.0:
7210 # icc: Command line remark: option '-MP' not supported
7211 if (grep 'ignoring option' conftest.err ||
7212 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7213 am_cv_GCJ_dependencies_compiler_type=$depmode
7222 am_cv_GCJ_dependencies_compiler_type=none
7226 { echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
7227 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6; }
7228 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
7233 test "x$enable_dependency_tracking" != xno \
7234 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
7235 am__fastdepGCJ_TRUE=
7236 am__fastdepGCJ_FALSE='#'
7238 am__fastdepGCJ_TRUE='#'
7239 am__fastdepGCJ_FALSE=
7245 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
7247 lt_save_CFLAGS="$CFLAGS"
7248 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
7249 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
7250 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
7251 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
7252 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
7253 deplibs_check_method="$deplibs_check_method" \
7254 file_magic_cmd="$file_magic_cmd" \
7255 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
7256 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
7257 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
7258 echo "$as_me: error: libtool tag configuration failed" >&2;}
7259 { (exit 1); exit 1; }; }
7261 CFLAGS="$lt_save_CFLAGS"
7263 # Redirect the config.log output again, so that the ltconfig log is not
7264 # clobbered by the next message.
7265 exec 5>>./config.log
7269 if test "x$CC" != xcc; then
7270 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
7271 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
7273 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
7274 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
7276 set dummy $CC; ac_cc=`echo $2 |
7277 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7278 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 cat >conftest.$ac_ext <<_ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7296 # Make sure it works both with $CC and with simple cc.
7297 # We do the test twice because some compilers refuse to overwrite an
7298 # existing .o file with -o, though they will create one.
7299 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7301 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } &&
7306 test -f conftest2.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); };
7312 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7313 if test "x$CC" != xcc; then
7314 # Test first that cc exists at all.
7315 if { ac_try='cc -c conftest.$ac_ext >&5'
7316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320 (exit $ac_status); }; }; then
7321 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7323 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 test -f conftest2.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); };
7337 # cc exists but doesn't like -o.
7338 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7348 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
7349 { echo "$as_me:$LINENO: result: yes" >&5
7350 echo "${ECHO_T}yes" >&6; }
7352 { echo "$as_me:$LINENO: result: no" >&5
7353 echo "${ECHO_T}no" >&6; }
7355 cat >>confdefs.h <<\_ACEOF
7356 #define NO_MINUS_C_MINUS_O 1
7361 # FIXME: we rely on the cache variable name because
7362 # there is no other way.
7364 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7365 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
7366 # Losing compiler, so override with the script.
7367 # FIXME: It is wrong to rewrite CC.
7368 # But if we don't then we get into trouble of one sort or another.
7369 # A longer-term fix would be to have automake use am__CC in this case,
7370 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7371 CC="$am_aux_dir/compile $CC"
7375 subdirs="$subdirs classpath libltdl"
7378 # The -no-testsuite modules omit the test subdir.
7381 if test -d $srcdir/testsuite; then
7383 TESTSUBDIR_FALSE='#'
7390 # Should the runtime set system properties by examining the
7391 # environment variable GCJ_PROPERTIES?
7392 # Check whether --enable-getenv-properties was given.
7393 if test "${enable_getenv_properties+set}" = set; then
7394 enableval=$enable_getenv_properties;
7398 # Whether GCJ_PROPERTIES is used depends on the target.
7399 if test -z "$enable_getenv_properties"; then
7400 enable_getenv_properties=${enable_getenv_properties_default-yes}
7402 if test "$enable_getenv_properties" = no; then
7404 cat >>confdefs.h <<\_ACEOF
7405 #define DISABLE_GETENV_PROPERTIES 1
7410 # Whether we should use arguments to main()
7411 if test -z "$enable_main_args"; then
7412 enable_main_args=${enable_main_args_default-yes}
7414 if test "$enable_main_args" = no; then
7416 cat >>confdefs.h <<\_ACEOF
7417 #define DISABLE_MAIN_ARGS 1
7423 # Should we use hashtable-based synchronization?
7424 # Currently works only for Linux X86/ia64
7425 # Typically faster and more space-efficient
7426 # Check whether --enable-hash-synchronization was given.
7427 if test "${enable_hash_synchronization+set}" = set; then
7428 enableval=$enable_hash_synchronization;
7432 if test -z "$enable_hash_synchronization"; then
7433 enable_hash_synchronization=$enable_hash_synchronization_default
7437 # Check whether --with-java-home was given.
7438 if test "${with_java_home+set}" = set; then
7439 withval=$with_java_home; JAVA_HOME="${withval}"
7446 if test ! -z "$JAVA_HOME"; then
7448 JAVA_HOME_SET_FALSE='#'
7450 JAVA_HOME_SET_TRUE='#'
7451 JAVA_HOME_SET_FALSE=
7456 # What is the native OS API for MinGW?
7458 # Check whether --with-win32-nlsapi was given.
7459 if test "${with_win32_nlsapi+set}" = set; then
7460 withval=$with_win32_nlsapi; case "${withval}" in
7461 ansi) with_win32_nlsapi=ansi ;;
7462 unicows) with_win32_nlsapi=unicows ;;
7463 unicode) with_win32_nlsapi=unicode ;;
7464 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
7465 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
7466 { (exit 1); exit 1; }; } ;;
7469 with_win32_nlsapi=ansi
7473 case "${with_win32_nlsapi}" in
7476 cat >>confdefs.h <<\_ACEOF
7477 #define MINGW_LIBGCJ_UNICODE 1
7483 # configure.host sets slow_pthread_self if the synchronization code should
7484 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
7485 if test "${slow_pthread_self}" = "yes"; then
7487 cat >>confdefs.h <<\_ACEOF
7488 #define SLOW_PTHREAD_SELF 1
7493 # Check for gc debugging. This option is handled both here and in the GC.
7494 # Check whether --enable-gc-debug was given.
7495 if test "${enable_gc_debug+set}" = set; then
7496 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
7498 cat >>confdefs.h <<\_ACEOF
7499 #define LIBGCJ_GC_DEBUG 1
7506 # See if the user has the interpreter included.
7507 # Check whether --enable-interpreter was given.
7508 if test "${enable_interpreter+set}" = set; then
7509 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
7510 # This can also be set in configure.host.
7511 libgcj_interpreter=yes
7512 elif test "$enable_interpreter" = no; then
7513 libgcj_interpreter=no
7518 if test "$libgcj_interpreter" = yes; then
7520 cat >>confdefs.h <<\_ACEOF
7521 #define INTERPRETER 1
7525 INTERPRETER="$libgcj_interpreter"
7528 { echo "$as_me:$LINENO: checking for exception model to use" >&5
7529 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6; }
7531 ac_cpp='$CXXCPP $CPPFLAGS'
7532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7536 # Check whether --enable-sjlj-exceptions was given.
7537 if test "${enable_sjlj_exceptions+set}" = set; then
7538 enableval=$enable_sjlj_exceptions; :
7540 cat > conftest.$ac_ext << EOF
7541 #line 7541 "configure"
7550 old_CXXFLAGS="$CXXFLAGS"
7552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7553 (eval $ac_compile) 2>&5
7555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556 (exit $ac_status); }; then
7557 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
7558 enable_sjlj_exceptions=yes
7559 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
7560 enable_sjlj_exceptions=no
7563 CXXFLAGS="$old_CXXFLAGS"
7567 if test x$enable_sjlj_exceptions = xyes; then
7569 cat >>confdefs.h <<\_ACEOF
7570 #define SJLJ_EXCEPTIONS 1
7573 ac_exception_model_name=sjlj
7574 elif test x$enable_sjlj_exceptions = xno; then
7575 ac_exception_model_name="call frame"
7577 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
7578 echo "$as_me: error: unable to detect exception model" >&2;}
7579 { (exit 1); exit 1; }; }
7582 ac_cpp='$CPP $CPPFLAGS'
7583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7587 { echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
7588 echo "${ECHO_T}$ac_exception_model_name" >&6; }
7590 # If we are non using SJLJ exceptions, and this host does not have support
7591 # for unwinding from a signal handler, enable checked dereferences and divides.
7592 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
7593 CHECKREFSPEC=-fcheck-references
7594 DIVIDESPEC=-fuse-divide-subroutine
7598 # See if the user wants to disable java.net. This is the mildly
7599 # ugly way that we admit that target-side configuration sucks.
7600 # Check whether --enable-java-net was given.
7601 if test "${enable_java_net+set}" = set; then
7602 enableval=$enable_java_net;
7606 # Whether java.net is built by default can depend on the target.
7607 if test -z "$enable_java_net"; then
7608 enable_java_net=${enable_java_net_default-yes}
7610 if test "$enable_java_net" = no; then
7612 cat >>confdefs.h <<\_ACEOF
7613 #define DISABLE_JAVA_NET 1
7618 # See if the user wants to configure without libffi. Some
7619 # architectures don't support it, and default values are set in
7622 # Check whether --with-libffi was given.
7623 if test "${with_libffi+set}" = set; then
7624 withval=$with_libffi; :
7626 with_libffi=${with_libffi_default-yes}
7632 if test "$with_libffi" != no; then
7634 cat >>confdefs.h <<\_ACEOF
7635 #define USE_LIBFFI 1
7638 LIBFFI=../libffi/libffi_convenience.la
7639 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
7644 # See if the user wants to disable JVMPI support.
7645 # Check whether --enable-jvmpi was given.
7646 if test "${enable_jvmpi+set}" = set; then
7647 enableval=$enable_jvmpi;
7651 if test "$enable_jvmpi" != no; then
7653 cat >>confdefs.h <<\_ACEOF
7654 #define ENABLE_JVMPI 1
7659 # If the target is an eCos system, use the appropriate eCos
7661 # FIXME: this should not be a local option but a global target
7662 # system; at present there is no eCos target.
7663 TARGET_ECOS=${PROCESS-"no"}
7665 # Check whether --with-ecos was given.
7666 if test "${with_ecos+set}" = set; then
7667 withval=$with_ecos; TARGET_ECOS="$with_ecos"
7672 PLATFORM_INNER_NAT_HDRS=
7673 case "$TARGET_ECOS" in
7680 { echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
7681 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6; }
7682 LD_PROG=`$CC --print-prog-name=ld`
7683 LD_VERSION=`$LD_PROG --version`
7684 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
7685 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
7686 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
7689 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
7693 if test "x$LD_OK" != x; then
7694 { echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7695 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
7697 { echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
7698 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
7699 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
7700 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
7702 cat >>confdefs.h <<\_ACEOF
7703 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
7712 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
7720 cat >>confdefs.h <<\_ACEOF
7728 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
7732 ac_cpp='$CPP $CPPFLAGS'
7733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7737 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
7738 # On Suns, sometimes $CPP names a directory.
7739 if test -n "$CPP" && test -d "$CPP"; then
7742 if test -z "$CPP"; then
7743 if test "${ac_cv_prog_CPP+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 # Double quotes because CPP needs to be expanded
7747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7750 for ac_c_preproc_warn_flag in '' yes
7752 # Use a header file that comes with gcc, so configuring glibc
7753 # with a fresh cross-compiler works.
7754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755 # <limits.h> exists even on freestanding compilers.
7756 # On the NeXT, cc -E runs the code through the compiler's parser,
7757 # not just through cpp. "Syntax error" is here to catch this case.
7758 cat >conftest.$ac_ext <<_ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7765 # include <limits.h>
7767 # include <assert.h>
7771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7774 grep -v '^ *+' conftest.er1 >conftest.err
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } >/dev/null; then
7779 if test -s conftest.err; then
7780 ac_cpp_err=$ac_c_preproc_warn_flag
7781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7788 if test -z "$ac_cpp_err"; then
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 # Broken: fails on valid input.
7798 rm -f conftest.err conftest.$ac_ext
7800 # OK, works on sane cases. Now check whether nonexistent headers
7801 # can be detected and how.
7802 cat >conftest.$ac_ext <<_ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <ac_nonexistent.h>
7810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7813 grep -v '^ *+' conftest.er1 >conftest.err
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 (exit $ac_status); } >/dev/null; then
7818 if test -s conftest.err; then
7819 ac_cpp_err=$ac_c_preproc_warn_flag
7820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7827 if test -z "$ac_cpp_err"; then
7828 # Broken: success on invalid input.
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 # Passes both tests.
7839 rm -f conftest.err conftest.$ac_ext
7842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7843 rm -f conftest.err conftest.$ac_ext
7844 if $ac_preproc_ok; then
7856 { echo "$as_me:$LINENO: result: $CPP" >&5
7857 echo "${ECHO_T}$CPP" >&6; }
7859 for ac_c_preproc_warn_flag in '' yes
7861 # Use a header file that comes with gcc, so configuring glibc
7862 # with a fresh cross-compiler works.
7863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7864 # <limits.h> exists even on freestanding compilers.
7865 # On the NeXT, cc -E runs the code through the compiler's parser,
7866 # not just through cpp. "Syntax error" is here to catch this case.
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7874 # include <limits.h>
7876 # include <assert.h>
7880 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7881 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7883 grep -v '^ *+' conftest.er1 >conftest.err
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } >/dev/null; then
7888 if test -s conftest.err; then
7889 ac_cpp_err=$ac_c_preproc_warn_flag
7890 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7897 if test -z "$ac_cpp_err"; then
7900 echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 # Broken: fails on valid input.
7907 rm -f conftest.err conftest.$ac_ext
7909 # OK, works on sane cases. Now check whether nonexistent headers
7910 # can be detected and how.
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <ac_nonexistent.h>
7919 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7922 grep -v '^ *+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } >/dev/null; then
7927 if test -s conftest.err; then
7928 ac_cpp_err=$ac_c_preproc_warn_flag
7929 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7936 if test -z "$ac_cpp_err"; then
7937 # Broken: success on invalid input.
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 # Passes both tests.
7948 rm -f conftest.err conftest.$ac_ext
7951 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7952 rm -f conftest.err conftest.$ac_ext
7953 if $ac_preproc_ok; then
7956 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7957 See \`config.log' for more details." >&5
7958 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7959 See \`config.log' for more details." >&2;}
7960 { (exit 1); exit 1; }; }
7964 ac_cpp='$CPP $CPPFLAGS'
7965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7970 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7971 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7972 if test "${ac_cv_path_GREP+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 # Extract the first word of "grep ggrep" to use in msg output
7976 if test -z "$GREP"; then
7977 set dummy grep ggrep; ac_prog_name=$2
7978 if test "${ac_cv_path_GREP+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 ac_path_GREP_found=false
7982 # Loop through the user's path and test for each of PROGNAME-LIST
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7987 test -z "$as_dir" && as_dir=.
7988 for ac_prog in grep ggrep; do
7989 for ac_exec_ext in '' $ac_executable_extensions; do
7990 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7991 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
7992 # Check for GNU ac_path_GREP and select it if it is found.
7993 # Check for GNU $ac_path_GREP
7994 case `"$ac_path_GREP" --version 2>&1` in
7996 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7999 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8002 cat "conftest.in" "conftest.in" >"conftest.tmp"
8003 mv "conftest.tmp" "conftest.in"
8004 cp "conftest.in" "conftest.nl"
8005 echo 'GREP' >> "conftest.nl"
8006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8008 ac_count=`expr $ac_count + 1`
8009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
8010 # Best one so far, save it but keep looking for a better one
8011 ac_cv_path_GREP="$ac_path_GREP"
8012 ac_path_GREP_max=$ac_count
8014 # 10*(2^10) chars as input seems more than enough
8015 test $ac_count -gt 10 && break
8021 $ac_path_GREP_found && break 3
8031 GREP="$ac_cv_path_GREP"
8032 if test -z "$GREP"; then
8033 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8034 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8035 { (exit 1); exit 1; }; }
8039 ac_cv_path_GREP=$GREP
8044 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8045 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
8046 GREP="$ac_cv_path_GREP"
8049 { echo "$as_me:$LINENO: checking for egrep" >&5
8050 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
8051 if test "${ac_cv_path_EGREP+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8055 then ac_cv_path_EGREP="$GREP -E"
8057 # Extract the first word of "egrep" to use in msg output
8058 if test -z "$EGREP"; then
8059 set dummy egrep; ac_prog_name=$2
8060 if test "${ac_cv_path_EGREP+set}" = set; then
8061 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 ac_path_EGREP_found=false
8064 # Loop through the user's path and test for each of PROGNAME-LIST
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8069 test -z "$as_dir" && as_dir=.
8070 for ac_prog in egrep; do
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8073 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
8074 # Check for GNU ac_path_EGREP and select it if it is found.
8075 # Check for GNU $ac_path_EGREP
8076 case `"$ac_path_EGREP" --version 2>&1` in
8078 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8081 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
8084 cat "conftest.in" "conftest.in" >"conftest.tmp"
8085 mv "conftest.tmp" "conftest.in"
8086 cp "conftest.in" "conftest.nl"
8087 echo 'EGREP' >> "conftest.nl"
8088 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8090 ac_count=`expr $ac_count + 1`
8091 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8092 # Best one so far, save it but keep looking for a better one
8093 ac_cv_path_EGREP="$ac_path_EGREP"
8094 ac_path_EGREP_max=$ac_count
8096 # 10*(2^10) chars as input seems more than enough
8097 test $ac_count -gt 10 && break
8103 $ac_path_EGREP_found && break 3
8113 EGREP="$ac_cv_path_EGREP"
8114 if test -z "$EGREP"; then
8115 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8116 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8117 { (exit 1); exit 1; }; }
8121 ac_cv_path_EGREP=$EGREP
8127 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8128 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
8129 EGREP="$ac_cv_path_EGREP"
8132 cat >conftest.$ac_ext <<_ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8142 $EGREP "uint32_t" >/dev/null 2>&1; then
8144 cat >>confdefs.h <<\_ACEOF
8145 #define HAVE_INT32_DEFINED 1
8151 cat >conftest.$ac_ext <<_ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8157 #include <inttypes.h>
8160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8161 $EGREP "uint32_t" >/dev/null 2>&1; then
8163 cat >>confdefs.h <<\_ACEOF
8164 #define HAVE_INT32_DEFINED 1
8170 cat >conftest.$ac_ext <<_ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8176 #include <sys/types.h>
8179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8180 $EGREP "u_int32_t" >/dev/null 2>&1; then
8182 cat >>confdefs.h <<\_ACEOF
8183 #define HAVE_BSD_INT32_DEFINED 1
8189 cat >conftest.$ac_ext <<_ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 #include <sys/config.h>
8198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8199 $EGREP "u_int32_t" >/dev/null 2>&1; then
8201 cat >>confdefs.h <<\_ACEOF
8202 #define HAVE_BSD_INT32_DEFINED 1
8211 if test "$PLATFORM" = Win32; then
8212 USING_WIN32_PLATFORM_TRUE=
8213 USING_WIN32_PLATFORM_FALSE='#'
8215 USING_WIN32_PLATFORM_TRUE='#'
8216 USING_WIN32_PLATFORM_FALSE=
8221 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
8222 USING_POSIX_PLATFORM_TRUE=
8223 USING_POSIX_PLATFORM_FALSE='#'
8225 USING_POSIX_PLATFORM_TRUE='#'
8226 USING_POSIX_PLATFORM_FALSE=
8231 *-darwin*) DARWIN_CRT=true ;;
8232 *) DARWIN_CRT=false ;;
8236 if $DARWIN_CRT; then
8237 USING_DARWIN_CRT_TRUE=
8238 USING_DARWIN_CRT_FALSE='#'
8240 USING_DARWIN_CRT_TRUE='#'
8241 USING_DARWIN_CRT_FALSE=
8245 # These may not be defined in a non-ANS conformant embedded system.
8246 # FIXME: Should these case a runtime exception in that case?
8247 cat >conftest.$ac_ext <<_ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8257 $EGREP "mktime" >/dev/null 2>&1; then
8259 cat >>confdefs.h <<\_ACEOF
8260 #define HAVE_MKTIME 1
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8276 $EGREP "localtime" >/dev/null 2>&1; then
8278 cat >>confdefs.h <<\_ACEOF
8279 #define HAVE_LOCALTIME 1
8286 # Create the subdirectory for natFile.cc, or the attempt
8287 # to create the link will fail.
8288 test -d java || mkdir java
8289 test -d java/io || mkdir java/io
8290 test -d gnu || mkdir gnu
8291 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
8294 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
8295 test -d java/lang || mkdir java/lang
8296 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
8298 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
8301 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
8302 test -d java/net || mkdir java/net
8303 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
8305 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
8308 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
8309 test -d gnu/java || mkdir gnu/java
8310 test -d gnu/java/net || mkdir gnu/java/net
8311 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
8313 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
8316 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
8317 test -d gnu/java/nio || mkdir gnu/java/nio
8318 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
8320 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
8322 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
8323 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
8328 SYSTEMSPEC="-lgdi32 -lws2_32"
8329 if test "${with_win32_nlsapi}" = "unicows"; then
8330 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
8339 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
8343 # Check whether --with-system-zlib was given.
8344 if test "${with_system_zlib+set}" = set; then
8345 withval=$with_system_zlib;
8354 if test "x$ac_path_x_has_been_run" != xyes; then
8355 { echo "$as_me:$LINENO: checking for X" >&5
8356 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8358 ac_path_x_has_been_run=yes
8360 # Check whether --with-x was given.
8361 if test "${with_x+set}" = set; then
8365 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8366 if test "x$with_x" = xno; then
8367 # The user explicitly disabled X.
8370 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8371 # Both variables are already set.
8374 if test "${ac_cv_have_x+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 # One or both of the vars are not set, and there is no cached value.
8378 ac_x_includes=no ac_x_libraries=no
8379 rm -f -r conftest.dir
8380 if mkdir conftest.dir; then
8382 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8383 cat >Imakefile <<'_ACEOF'
8385 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8387 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8388 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8389 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8390 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8391 for ac_extension in a so sl; do
8392 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8393 test -f $ac_im_libdir/libX11.$ac_extension; then
8394 ac_im_usrlibdir=$ac_im_libdir; break
8397 # Screen out bogus values from the imake configuration. They are
8398 # bogus both because they are the default anyway, and because
8399 # using them would break gcc on systems where it needs fixed includes.
8400 case $ac_im_incroot in
8401 /usr/include) ac_x_includes= ;;
8402 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8404 case $ac_im_usrlibdir in
8406 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8410 rm -f -r conftest.dir
8413 # Standard set of common directories for X headers.
8414 # Check X11 before X11Rn because it is often a symlink to the current release.
8426 /usr/local/X11/include
8427 /usr/local/X11R6/include
8428 /usr/local/X11R5/include
8429 /usr/local/X11R4/include
8431 /usr/local/include/X11
8432 /usr/local/include/X11R6
8433 /usr/local/include/X11R5
8434 /usr/local/include/X11R4
8438 /usr/XFree86/include/X11
8442 /usr/unsupported/include
8444 /usr/local/x11r5/include
8445 /usr/lpp/Xamples/include
8447 /usr/openwin/include
8448 /usr/openwin/share/include'
8450 if test "$ac_x_includes" = no; then
8451 # Guess where to find include files, by looking for Xlib.h.
8452 # First, try using that file with no special directory specified.
8453 cat >conftest.$ac_ext <<_ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h. */
8459 #include <X11/Xlib.h.h>
8461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } >/dev/null; then
8469 if test -s conftest.err; then
8470 ac_cpp_err=$ac_c_preproc_warn_flag
8471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8478 if test -z "$ac_cpp_err"; then
8479 # We can compile using X headers with no special include directory.
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 for ac_dir in $ac_x_header_dirs; do
8486 if test -r "$ac_dir/X11/Xlib.h"; then
8487 ac_x_includes=$ac_dir
8493 rm -f conftest.err conftest.$ac_ext
8494 fi # $ac_x_includes = no
8496 if test "$ac_x_libraries" = no; then
8497 # Check for the libraries.
8498 # See if we find them without any special options.
8499 # Don't add to $LIBS permanently.
8502 if test x$gcc_no_link = xyes; then
8503 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8505 { (exit 1); exit 1; }; }
8507 cat >conftest.$ac_ext <<_ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 #include <X11/Xlib.h>
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } &&
8531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); }; } &&
8537 { ac_try='test -s conftest$ac_exeext'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; }; then
8544 # We can link X programs with no special library path.
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8551 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8553 # Don't even attempt the hair of trying to link an X program!
8554 for ac_extension in a so sl; do
8555 if test -r $ac_dir/libX11.$ac_extension; then
8556 ac_x_libraries=$ac_dir
8563 rm -f conftest.err conftest.$ac_objext \
8564 conftest$ac_exeext conftest.$ac_ext
8565 fi # $ac_x_libraries = no
8567 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8568 # Didn't find X anywhere. Cache the known absence of X.
8569 ac_cv_have_x="have_x=no"
8571 # Record where we found X for the cache.
8572 ac_cv_have_x="have_x=yes \
8573 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8578 eval "$ac_cv_have_x"
8581 if test "$have_x" != yes; then
8582 { echo "$as_me:$LINENO: result: $have_x" >&5
8583 echo "${ECHO_T}$have_x" >&6; }
8586 # If each of the values was on the command line, it overrides each guess.
8587 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8588 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8589 # Update the cache value to reflect the command line values.
8590 ac_cv_have_x="have_x=yes \
8591 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8592 # It might be that x_includes is empty (headers are found in the
8593 # standard search path. Then output the corresponding message
8594 ac_out_x_includes=$x_includes
8595 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
8596 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
8597 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6; }
8601 if test "$no_x" = yes; then
8602 # Not all programs may use this symbol, but it does not hurt to define it.
8604 cat >>confdefs.h <<\_ACEOF
8605 #define X_DISPLAY_MISSING 1
8608 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8610 if test -n "$x_includes"; then
8611 X_CFLAGS="$X_CFLAGS -I$x_includes"
8614 # It would also be nice to do this for all -L options, not just this one.
8615 if test -n "$x_libraries"; then
8616 X_LIBS="$X_LIBS -L$x_libraries"
8617 # For Solaris; some versions of Sun CC require a space after -R and
8618 # others require no space. Words are not sufficient . . . .
8619 case `(uname -sr) 2>/dev/null` in
8621 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8622 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
8623 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8624 if test x$gcc_no_link = xyes; then
8625 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8626 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8627 { (exit 1); exit 1; }; }
8629 cat >conftest.$ac_ext <<_ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h. */
8644 rm -f conftest.$ac_objext conftest$ac_exeext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8646 (eval $ac_link) 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8673 rm -f conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 if test $ac_R_nospace = yes; then
8676 { echo "$as_me:$LINENO: result: no" >&5
8677 echo "${ECHO_T}no" >&6; }
8678 X_LIBS="$X_LIBS -R$x_libraries"
8680 LIBS="$ac_xsave_LIBS -R $x_libraries"
8681 if test x$gcc_no_link = xyes; then
8682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8684 { (exit 1); exit 1; }; }
8686 cat >conftest.$ac_ext <<_ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h. */
8701 rm -f conftest.$ac_objext conftest$ac_exeext
8702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8703 (eval $ac_link) 2>conftest.er1
8705 grep -v '^ *+' conftest.er1 >conftest.err
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try='test -s conftest$ac_exeext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8730 rm -f conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
8732 if test $ac_R_space = yes; then
8733 { echo "$as_me:$LINENO: result: yes" >&5
8734 echo "${ECHO_T}yes" >&6; }
8735 X_LIBS="$X_LIBS -R $x_libraries"
8737 { echo "$as_me:$LINENO: result: neither works" >&5
8738 echo "${ECHO_T}neither works" >&6; }
8745 # Check for system-dependent libraries X programs must link with.
8746 # Do this before checking for the system-independent R6 libraries
8747 # (-lICE), since we may need -lsocket or whatever for X linking.
8749 if test "$ISC" = yes; then
8750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8752 # Martyn Johnson says this is needed for Ultrix, if the X
8753 # libraries were built with DECnet support. And Karl Berry says
8754 # the Alpha needs dnet_stub (dnet does not exist).
8755 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8756 if test x$gcc_no_link = xyes; then
8757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8759 { (exit 1); exit 1; }; }
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8768 /* Override any GCC internal prototype to avoid an error.
8769 Use char because int might match the return type of a GCC
8770 builtin and then its argument prototype would still apply. */
8774 char XOpenDisplay ();
8778 return XOpenDisplay ();
8783 rm -f conftest.$ac_objext conftest$ac_exeext
8784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8785 (eval $ac_link) 2>conftest.er1
8787 grep -v '^ *+' conftest.er1 >conftest.err
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest$ac_exeext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8806 echo "$as_me: failed program was:" >&5
8807 sed 's/^/| /' conftest.$ac_ext >&5
8809 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8810 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
8811 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8814 ac_check_lib_save_LIBS=$LIBS
8816 if test x$gcc_no_link = xyes; then
8817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8819 { (exit 1); exit 1; }; }
8821 cat >conftest.$ac_ext <<_ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8828 /* Override any GCC internal prototype to avoid an error.
8829 Use char because int might match the return type of a GCC
8830 builtin and then its argument prototype would still apply. */
8838 return dnet_ntoa ();
8843 rm -f conftest.$ac_objext conftest$ac_exeext
8844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8845 (eval $ac_link) 2>conftest.er1
8847 grep -v '^ *+' conftest.er1 >conftest.err
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } &&
8852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); }; } &&
8858 { ac_try='test -s conftest$ac_exeext'
8859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863 (exit $ac_status); }; }; then
8864 ac_cv_lib_dnet_dnet_ntoa=yes
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.$ac_ext >&5
8869 ac_cv_lib_dnet_dnet_ntoa=no
8872 rm -f conftest.err conftest.$ac_objext \
8873 conftest$ac_exeext conftest.$ac_ext
8874 LIBS=$ac_check_lib_save_LIBS
8876 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8877 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
8878 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8879 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8882 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8883 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8884 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
8885 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8886 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 ac_check_lib_save_LIBS=$LIBS
8889 LIBS="-ldnet_stub $LIBS"
8890 if test x$gcc_no_link = xyes; then
8891 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8892 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8893 { (exit 1); exit 1; }; }
8895 cat >conftest.$ac_ext <<_ACEOF
8898 cat confdefs.h >>conftest.$ac_ext
8899 cat >>conftest.$ac_ext <<_ACEOF
8900 /* end confdefs.h. */
8902 /* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
8904 builtin and then its argument prototype would still apply. */
8912 return dnet_ntoa ();
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest$ac_exeext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_cv_lib_dnet_stub_dnet_ntoa=no
8946 rm -f conftest.err conftest.$ac_objext \
8947 conftest$ac_exeext conftest.$ac_ext
8948 LIBS=$ac_check_lib_save_LIBS
8950 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8951 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
8952 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8953 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8959 rm -f conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 LIBS="$ac_xsave_LIBS"
8963 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8964 # to get the SysV transport functions.
8965 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8967 # The nsl library prevents programs from opening the X display
8968 # on Irix 5.2, according to T.E. Dickey.
8969 # The functions gethostbyname, getservbyname, and inet_addr are
8970 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8971 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
8972 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
8973 if test "${ac_cv_func_gethostbyname+set}" = set; then
8974 echo $ECHO_N "(cached) $ECHO_C" >&6
8976 if test x$gcc_no_link = xyes; then
8977 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8978 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8979 { (exit 1); exit 1; }; }
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
8988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8989 #define gethostbyname innocuous_gethostbyname
8991 /* System header to define __stub macros and hopefully few prototypes,
8992 which can conflict with char gethostbyname (); below.
8993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8994 <limits.h> exists even on freestanding compilers. */
8997 # include <limits.h>
8999 # include <assert.h>
9002 #undef gethostbyname
9004 /* Override any GCC internal prototype to avoid an error.
9005 Use char because int might match the return type of a GCC
9006 builtin and then its argument prototype would still apply. */
9010 char gethostbyname ();
9011 /* The GNU C library defines this for functions which it implements
9012 to always fail with ENOSYS. Some functions are actually named
9013 something starting with __ and the normal name is an alias. */
9014 #if defined __stub_gethostbyname || defined __stub___gethostbyname
9021 return gethostbyname ();
9026 rm -f conftest.$ac_objext conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028 (eval $ac_link) 2>conftest.er1
9030 grep -v '^ *+' conftest.er1 >conftest.err
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047 ac_cv_func_gethostbyname=yes
9049 echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_cv_func_gethostbyname=no
9055 rm -f conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9058 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9059 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
9061 if test $ac_cv_func_gethostbyname = no; then
9062 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9063 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
9064 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9065 echo $ECHO_N "(cached) $ECHO_C" >&6
9067 ac_check_lib_save_LIBS=$LIBS
9069 if test x$gcc_no_link = xyes; then
9070 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9071 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9072 { (exit 1); exit 1; }; }
9074 cat >conftest.$ac_ext <<_ACEOF
9077 cat confdefs.h >>conftest.$ac_ext
9078 cat >>conftest.$ac_ext <<_ACEOF
9079 /* end confdefs.h. */
9081 /* Override any GCC internal prototype to avoid an error.
9082 Use char because int might match the return type of a GCC
9083 builtin and then its argument prototype would still apply. */
9087 char gethostbyname ();
9091 return gethostbyname ();
9096 rm -f conftest.$ac_objext conftest$ac_exeext
9097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9098 (eval $ac_link) 2>conftest.er1
9100 grep -v '^ *+' conftest.er1 >conftest.err
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; } &&
9111 { ac_try='test -s conftest$ac_exeext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_cv_lib_nsl_gethostbyname=yes
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ac_cv_lib_nsl_gethostbyname=no
9125 rm -f conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127 LIBS=$ac_check_lib_save_LIBS
9129 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9130 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
9131 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9135 if test $ac_cv_lib_nsl_gethostbyname = no; then
9136 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9137 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
9138 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 ac_check_lib_save_LIBS=$LIBS
9143 if test x$gcc_no_link = xyes; then
9144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9146 { (exit 1); exit 1; }; }
9148 cat >conftest.$ac_ext <<_ACEOF
9151 cat confdefs.h >>conftest.$ac_ext
9152 cat >>conftest.$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9155 /* Override any GCC internal prototype to avoid an error.
9156 Use char because int might match the return type of a GCC
9157 builtin and then its argument prototype would still apply. */
9161 char gethostbyname ();
9165 return gethostbyname ();
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9172 (eval $ac_link) 2>conftest.er1
9174 grep -v '^ *+' conftest.er1 >conftest.err
9176 cat conftest.err >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } &&
9179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest$ac_exeext'
9186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); }; }; then
9191 ac_cv_lib_bsd_gethostbyname=yes
9193 echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9196 ac_cv_lib_bsd_gethostbyname=no
9199 rm -f conftest.err conftest.$ac_objext \
9200 conftest$ac_exeext conftest.$ac_ext
9201 LIBS=$ac_check_lib_save_LIBS
9203 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9204 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
9205 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9206 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9212 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9213 # socket/setsockopt and other routines are undefined under SCO ODT
9214 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9215 # on later versions), says Simon Leinen: it contains gethostby*
9216 # variants that don't use the name server (or something). -lsocket
9217 # must be given before -lnsl if both are needed. We assume that
9218 # if connect needs -lnsl, so does gethostbyname.
9219 { echo "$as_me:$LINENO: checking for connect" >&5
9220 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
9221 if test "${ac_cv_func_connect+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 if test x$gcc_no_link = xyes; then
9225 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9226 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9227 { (exit 1); exit 1; }; }
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
9236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9237 #define connect innocuous_connect
9239 /* System header to define __stub macros and hopefully few prototypes,
9240 which can conflict with char connect (); below.
9241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242 <limits.h> exists even on freestanding compilers. */
9245 # include <limits.h>
9247 # include <assert.h>
9252 /* Override any GCC internal prototype to avoid an error.
9253 Use char because int might match the return type of a GCC
9254 builtin and then its argument prototype would still apply. */
9259 /* The GNU C library defines this for functions which it implements
9260 to always fail with ENOSYS. Some functions are actually named
9261 something starting with __ and the normal name is an alias. */
9262 #if defined __stub_connect || defined __stub___connect
9274 rm -f conftest.$ac_objext conftest$ac_exeext
9275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9276 (eval $ac_link) 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } &&
9283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_func_connect=yes
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_cv_func_connect=no
9303 rm -f conftest.err conftest.$ac_objext \
9304 conftest$ac_exeext conftest.$ac_ext
9306 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9307 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
9309 if test $ac_cv_func_connect = no; then
9310 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9311 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
9312 if test "${ac_cv_lib_socket_connect+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9315 ac_check_lib_save_LIBS=$LIBS
9316 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9317 if test x$gcc_no_link = xyes; then
9318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9320 { (exit 1); exit 1; }; }
9322 cat >conftest.$ac_ext <<_ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h. */
9329 /* Override any GCC internal prototype to avoid an error.
9330 Use char because int might match the return type of a GCC
9331 builtin and then its argument prototype would still apply. */
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346 (eval $ac_link) 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try='test -s conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9365 ac_cv_lib_socket_connect=yes
9367 echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9370 ac_cv_lib_socket_connect=no
9373 rm -f conftest.err conftest.$ac_objext \
9374 conftest$ac_exeext conftest.$ac_ext
9375 LIBS=$ac_check_lib_save_LIBS
9377 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9378 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
9379 if test $ac_cv_lib_socket_connect = yes; then
9380 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9385 # Guillermo Gomez says -lposix is necessary on A/UX.
9386 { echo "$as_me:$LINENO: checking for remove" >&5
9387 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
9388 if test "${ac_cv_func_remove+set}" = set; then
9389 echo $ECHO_N "(cached) $ECHO_C" >&6
9391 if test x$gcc_no_link = xyes; then
9392 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9393 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9394 { (exit 1); exit 1; }; }
9396 cat >conftest.$ac_ext <<_ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h. */
9402 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
9403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9404 #define remove innocuous_remove
9406 /* System header to define __stub macros and hopefully few prototypes,
9407 which can conflict with char remove (); below.
9408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9409 <limits.h> exists even on freestanding compilers. */
9412 # include <limits.h>
9414 # include <assert.h>
9419 /* Override any GCC internal prototype to avoid an error.
9420 Use char because int might match the return type of a GCC
9421 builtin and then its argument prototype would still apply. */
9426 /* The GNU C library defines this for functions which it implements
9427 to always fail with ENOSYS. Some functions are actually named
9428 something starting with __ and the normal name is an alias. */
9429 #if defined __stub_remove || defined __stub___remove
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443 (eval $ac_link) 2>conftest.er1
9445 grep -v '^ *+' conftest.er1 >conftest.err
9447 cat conftest.err >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } &&
9450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; } &&
9456 { ac_try='test -s conftest$ac_exeext'
9457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); }; }; then
9462 ac_cv_func_remove=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_cv_func_remove=no
9470 rm -f conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
9473 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9474 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
9476 if test $ac_cv_func_remove = no; then
9477 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9478 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
9479 if test "${ac_cv_lib_posix_remove+set}" = set; then
9480 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 ac_check_lib_save_LIBS=$LIBS
9483 LIBS="-lposix $LIBS"
9484 if test x$gcc_no_link = xyes; then
9485 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9486 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9487 { (exit 1); exit 1; }; }
9489 cat >conftest.$ac_ext <<_ACEOF
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9496 /* Override any GCC internal prototype to avoid an error.
9497 Use char because int might match the return type of a GCC
9498 builtin and then its argument prototype would still apply. */
9511 rm -f conftest.$ac_objext conftest$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>conftest.er1
9515 grep -v '^ *+' conftest.er1 >conftest.err
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } &&
9520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest$ac_exeext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_cv_lib_posix_remove=yes
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 ac_cv_lib_posix_remove=no
9540 rm -f conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
9542 LIBS=$ac_check_lib_save_LIBS
9544 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9545 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
9546 if test $ac_cv_lib_posix_remove = yes; then
9547 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9552 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9553 { echo "$as_me:$LINENO: checking for shmat" >&5
9554 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_shmat+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 if test x$gcc_no_link = xyes; then
9559 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9561 { (exit 1); exit 1; }; }
9563 cat >conftest.$ac_ext <<_ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9569 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
9570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9571 #define shmat innocuous_shmat
9573 /* System header to define __stub macros and hopefully few prototypes,
9574 which can conflict with char shmat (); below.
9575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9576 <limits.h> exists even on freestanding compilers. */
9579 # include <limits.h>
9581 # include <assert.h>
9586 /* Override any GCC internal prototype to avoid an error.
9587 Use char because int might match the return type of a GCC
9588 builtin and then its argument prototype would still apply. */
9593 /* The GNU C library defines this for functions which it implements
9594 to always fail with ENOSYS. Some functions are actually named
9595 something starting with __ and the normal name is an alias. */
9596 #if defined __stub_shmat || defined __stub___shmat
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9610 (eval $ac_link) 2>conftest.er1
9612 grep -v '^ *+' conftest.er1 >conftest.err
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; } &&
9623 { ac_try='test -s conftest$ac_exeext'
9624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628 (exit $ac_status); }; }; then
9629 ac_cv_func_shmat=yes
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9637 rm -f conftest.err conftest.$ac_objext \
9638 conftest$ac_exeext conftest.$ac_ext
9640 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9641 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
9643 if test $ac_cv_func_shmat = no; then
9644 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9645 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
9646 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_check_lib_save_LIBS=$LIBS
9651 if test x$gcc_no_link = xyes; then
9652 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9653 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9654 { (exit 1); exit 1; }; }
9656 cat >conftest.$ac_ext <<_ACEOF
9659 cat confdefs.h >>conftest.$ac_ext
9660 cat >>conftest.$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9678 rm -f conftest.$ac_objext conftest$ac_exeext
9679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9680 (eval $ac_link) 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } &&
9687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); }; } &&
9693 { ac_try='test -s conftest$ac_exeext'
9694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); }; }; then
9699 ac_cv_lib_ipc_shmat=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_lib_ipc_shmat=no
9707 rm -f conftest.err conftest.$ac_objext \
9708 conftest$ac_exeext conftest.$ac_ext
9709 LIBS=$ac_check_lib_save_LIBS
9711 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9712 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
9713 if test $ac_cv_lib_ipc_shmat = yes; then
9714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9720 # Check for libraries that X11R6 Xt/Xaw programs need.
9721 ac_save_LDFLAGS=$LDFLAGS
9722 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9723 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9724 # check for ICE first), but we must link in the order -lSM -lICE or
9725 # we get undefined symbols. So assume we have SM if we have ICE.
9726 # These have to be linked with before -lX11, unlike the other
9727 # libraries we check for below, so use a different variable.
9728 # John Interrante, Karl Berry
9729 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9730 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
9731 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 ac_check_lib_save_LIBS=$LIBS
9735 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9736 if test x$gcc_no_link = xyes; then
9737 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9738 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9739 { (exit 1); exit 1; }; }
9741 cat >conftest.$ac_ext <<_ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9748 /* Override any GCC internal prototype to avoid an error.
9749 Use char because int might match the return type of a GCC
9750 builtin and then its argument prototype would still apply. */
9754 char IceConnectionNumber ();
9758 return IceConnectionNumber ();
9763 rm -f conftest.$ac_objext conftest$ac_exeext
9764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9765 (eval $ac_link) 2>conftest.er1
9767 grep -v '^ *+' conftest.er1 >conftest.err
9769 cat conftest.err >&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } &&
9772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); }; } &&
9778 { ac_try='test -s conftest$ac_exeext'
9779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); }; }; then
9784 ac_cv_lib_ICE_IceConnectionNumber=yes
9786 echo "$as_me: failed program was:" >&5
9787 sed 's/^/| /' conftest.$ac_ext >&5
9789 ac_cv_lib_ICE_IceConnectionNumber=no
9792 rm -f conftest.err conftest.$ac_objext \
9793 conftest$ac_exeext conftest.$ac_ext
9794 LIBS=$ac_check_lib_save_LIBS
9796 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9797 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
9798 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9799 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9802 LDFLAGS=$ac_save_LDFLAGS
9807 # determine whether to enable the cairo GTK Graphics2D backend
9808 # Check whether --enable-gtk-cairo was given.
9809 if test "${enable_gtk_cairo+set}" = set; then
9810 enableval=$enable_gtk_cairo;
9815 if test "x${enable_gtk_cairo}" = xyes; then
9823 if test "x${enable_gtk_cairo}" = xyes
9828 if test -z "$PKG_CONFIG"; then
9829 # Extract the first word of "pkg-config", so it can be a program name with args.
9830 set dummy pkg-config; ac_word=$2
9831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9833 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9834 echo $ECHO_N "(cached) $ECHO_C" >&6
9838 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845 test -z "$as_dir" && as_dir=.
9846 for ac_exec_ext in '' $ac_executable_extensions; do
9847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9848 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9856 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9860 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9861 if test -n "$PKG_CONFIG"; then
9862 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9863 echo "${ECHO_T}$PKG_CONFIG" >&6; }
9865 { echo "$as_me:$LINENO: result: no" >&5
9866 echo "${ECHO_T}no" >&6; }
9872 if test "$PKG_CONFIG" = "no" ; then
9873 echo "*** The pkg-config script could not be found. Make sure it is"
9874 echo "*** in your path, or set the PKG_CONFIG environment variable"
9875 echo "*** to the full path to pkg-config."
9876 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9878 PKG_CONFIG_MIN_VERSION=0.9.0
9879 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9880 { echo "$as_me:$LINENO: checking for cairo" >&5
9881 echo $ECHO_N "checking for cairo... $ECHO_C" >&6; }
9883 if $PKG_CONFIG --exists "cairo" ; then
9884 { echo "$as_me:$LINENO: result: yes" >&5
9885 echo "${ECHO_T}yes" >&6; }
9888 { echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
9889 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6; }
9890 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
9891 { echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
9892 echo "${ECHO_T}$CAIRO_CFLAGS" >&6; }
9894 { echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
9895 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6; }
9896 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
9897 { echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
9898 echo "${ECHO_T}$CAIRO_LIBS" >&6; }
9902 ## If we have a custom action on failure, don't print errors, but
9903 ## do set a variable so people can do so.
9904 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
9905 echo $CAIRO_PKG_ERRORS
9911 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9912 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9916 if test $succeeded = yes; then
9919 { { echo "$as_me:$LINENO: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9920 echo "$as_me: error: Library requirements (cairo) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9921 { (exit 1); exit 1; }; }
9927 if test -z "$PKG_CONFIG"; then
9928 # Extract the first word of "pkg-config", so it can be a program name with args.
9929 set dummy pkg-config; ac_word=$2
9930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944 test -z "$as_dir" && as_dir=.
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
9947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9959 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9960 if test -n "$PKG_CONFIG"; then
9961 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9962 echo "${ECHO_T}$PKG_CONFIG" >&6; }
9964 { echo "$as_me:$LINENO: result: no" >&5
9965 echo "${ECHO_T}no" >&6; }
9971 if test "$PKG_CONFIG" = "no" ; then
9972 echo "*** The pkg-config script could not be found. Make sure it is"
9973 echo "*** in your path, or set the PKG_CONFIG environment variable"
9974 echo "*** to the full path to pkg-config."
9975 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
9977 PKG_CONFIG_MIN_VERSION=0.9.0
9978 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9979 { echo "$as_me:$LINENO: checking for pangoft2" >&5
9980 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6; }
9982 if $PKG_CONFIG --exists "pangoft2" ; then
9983 { echo "$as_me:$LINENO: result: yes" >&5
9984 echo "${ECHO_T}yes" >&6; }
9987 { echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
9988 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6; }
9989 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
9990 { echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
9991 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6; }
9993 { echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
9994 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6; }
9995 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
9996 { echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
9997 echo "${ECHO_T}$PANGOFT2_LIBS" >&6; }
10001 ## If we have a custom action on failure, don't print errors, but
10002 ## do set a variable so people can do so.
10003 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
10004 echo $PANGOFT2_PKG_ERRORS
10010 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10011 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10015 if test $succeeded = yes; then
10018 { { echo "$as_me:$LINENO: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
10019 echo "$as_me: error: Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
10020 { (exit 1); exit 1; }; }
10029 # FIXME: this should be _libs on some hosts.
10032 # extra LD Flags which are required for targets
10035 # For now we have to disable it on darwin[8-9] because it slows down
10036 # the linking phase. A possible bug in ld?
10037 # on Darwin -single_module speeds up loading of the dynamic libraries.
10038 extra_ldflags_libjava=-Wl,-single_module
10043 # Allow the GC to be disabled. Can be useful when debugging.
10044 { echo "$as_me:$LINENO: checking for garbage collector to use" >&5
10045 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6; }
10046 # Check whether --enable-java-gc was given.
10047 if test "${enable_java_gc+set}" = set; then
10048 enableval=$enable_java_gc; GC=$enableval
10061 { echo "$as_me:$LINENO: result: boehm" >&5
10062 echo "${ECHO_T}boehm" >&6; }
10063 GCLIBS=../boehm-gc/libgcjgc_convenience.la
10064 JC1GCSPEC='-fuse-boehm-gc'
10065 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
10066 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
10069 # The POSIX thread support needs to know this.
10071 cat >>confdefs.h <<\_ACEOF
10072 #define HAVE_BOEHM_GC 1
10077 { echo "$as_me:$LINENO: result: none" >&5
10078 echo "${ECHO_T}none" >&6; }
10082 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
10083 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
10084 { (exit 1); exit 1; }; }
10093 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
10097 if test "$GC" = boehm; then
10098 USING_BOEHMGC_TRUE=
10099 USING_BOEHMGC_FALSE='#'
10101 USING_BOEHMGC_TRUE='#'
10102 USING_BOEHMGC_FALSE=
10107 if test "$GC" = no; then
10109 USING_NOGC_FALSE='#'
10111 USING_NOGC_TRUE='#'
10117 { echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
10118 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6; }
10119 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
10120 { echo "$as_me:$LINENO: result: $THREADS" >&5
10121 echo "${ECHO_T}$THREADS" >&6; }
10124 no | none | single)
10127 posix | posix95 | pthreads)
10132 cat >>confdefs.h <<\_ACEOF
10133 #define LINUX_THREADS 1
10141 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
10142 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
10143 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
10144 { (exit 1); exit 1; }; }
10147 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
10148 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
10149 { (exit 1); exit 1; }; }
10164 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
10166 *-*-freebsd[1234]*)
10167 # Before FreeBSD 5, it didn't have -lpthread (or any library which
10168 # merely adds pthread_* functions) but it does have a -pthread switch
10169 # which is required at link-time to select -lc_r *instead* of -lc.
10170 THREADLDFLAGS=-pthread
10171 # Don't set THREADSPEC here as might be expected since -pthread is
10172 # not processed when found within a spec file, it must come from
10173 # the command line. For now, the user must provide the -pthread
10174 # switch to link code compiled with gcj. In future, consider adding
10175 # support for weak references to pthread_* functions ala gthr.h API.
10176 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
10179 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
10180 # systems which support threads and -lpthread.
10181 THREADLDFLAGS=-pthread
10182 THREADSPEC=-lpthread
10184 alpha*-dec-osf* | hppa*-hp-hpux*)
10185 THREADCXXFLAGS=-pthread
10186 # boehm-gc needs some functions from librt, so link that too.
10187 THREADLIBS='-lpthread -lrt'
10188 THREADSPEC='-lpthread -lrt'
10191 THREADLIBS=-lpthread
10192 THREADSPEC=-lpthread
10195 THREADH=posix-threads.h
10196 # MIT pthreads doesn't seem to have the mutexattr functions.
10197 # But for now we don't check for it. We just assume you aren't
10198 # using MIT pthreads.
10200 cat >>confdefs.h <<\_ACEOF
10201 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
10205 # If we're using the Boehm GC, then we happen to know that it
10206 # defines _REENTRANT, so we don't bother. Eww.
10207 if test "$GC" != boehm; then
10209 cat >>confdefs.h <<\_ACEOF
10210 #define _REENTRANT 1
10215 cat >>confdefs.h <<\_ACEOF
10216 #define _POSIX_PTHREAD_SEMANTICS 1
10222 THREADH=win32-threads.h
10226 THREADH=no-threads.h
10229 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
10239 if test "$THREADS" = posix; then
10240 USING_POSIX_THREADS_TRUE=
10241 USING_POSIX_THREADS_FALSE='#'
10243 USING_POSIX_THREADS_TRUE='#'
10244 USING_POSIX_THREADS_FALSE=
10249 if test "$THREADS" = win32; then
10250 USING_WIN32_THREADS_TRUE=
10251 USING_WIN32_THREADS_FALSE='#'
10253 USING_WIN32_THREADS_TRUE='#'
10254 USING_WIN32_THREADS_FALSE=
10259 if test "$THREADS" = none; then
10260 USING_NO_THREADS_TRUE=
10261 USING_NO_THREADS_FALSE='#'
10263 USING_NO_THREADS_TRUE='#'
10264 USING_NO_THREADS_FALSE=
10268 if test -d sysdep; then true; else mkdir sysdep; fi
10269 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
10271 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
10273 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
10277 # Hash synchronization is only useful with posix threads right now.
10278 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
10279 HASH_SYNC_SPEC=-fhash-synchronization
10281 cat >>confdefs.h <<\_ACEOF
10282 #define JV_HASH_SYNCHRONIZATION 1
10290 if test "$GCC" = yes; then
10292 USING_GCC_FALSE='#'
10299 # We're in the tree with gcc, and need to include some of its headers.
10300 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
10302 if test "x${with_newlib}" = "xyes"; then
10303 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
10304 # may not work correctly, because the compiler may not be able to
10305 # link executables.
10307 # We assume newlib. This lets us hard-code the functions we know
10310 cat >>confdefs.h <<\_ACEOF
10311 #define HAVE_MEMMOVE 1
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_MEMCPY 1
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_STRERROR 1
10325 cat >>confdefs.h <<\_ACEOF
10326 #define HAVE_TIME 1
10330 cat >>confdefs.h <<\_ACEOF
10331 #define HAVE_GMTIME_R 1
10335 cat >>confdefs.h <<\_ACEOF
10336 #define HAVE_LOCALTIME_R 1
10340 cat >>confdefs.h <<\_ACEOF
10341 #define HAVE_USLEEP_DECL 1
10344 # This is only for POSIX threads.
10346 cat >>confdefs.h <<\_ACEOF
10347 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
10350 # We also assume we are using gcc, which provides alloca.
10351 cat >>confdefs.h <<\_ACEOF
10352 #define HAVE_ALLOCA 1
10356 # Assume we do not have getuid and friends.
10358 cat >>confdefs.h <<\_ACEOF
10359 #define NO_GETUID 1
10397 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
10398 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
10399 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
10400 nl_langinfo setlocale \
10401 inet_pton uname inet_ntoa \
10402 fork execvp pipe sigaction ftruncate mmap
10404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10410 if test x$gcc_no_link = xyes; then
10411 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10412 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10413 { (exit 1); exit 1; }; }
10415 cat >conftest.$ac_ext <<_ACEOF
10418 cat confdefs.h >>conftest.$ac_ext
10419 cat >>conftest.$ac_ext <<_ACEOF
10420 /* end confdefs.h. */
10421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10423 #define $ac_func innocuous_$ac_func
10425 /* System header to define __stub macros and hopefully few prototypes,
10426 which can conflict with char $ac_func (); below.
10427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10428 <limits.h> exists even on freestanding compilers. */
10431 # include <limits.h>
10433 # include <assert.h>
10438 /* Override any GCC internal prototype to avoid an error.
10439 Use char because int might match the return type of a GCC
10440 builtin and then its argument prototype would still apply. */
10445 /* The GNU C library defines this for functions which it implements
10446 to always fail with ENOSYS. Some functions are actually named
10447 something starting with __ and the normal name is an alias. */
10448 #if defined __stub_$ac_func || defined __stub___$ac_func
10455 return $ac_func ();
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10462 (eval $ac_link) 2>conftest.er1
10464 grep -v '^ *+' conftest.er1 >conftest.err
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } &&
10469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10471 (eval $ac_try) 2>&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); }; } &&
10475 { ac_try='test -s conftest$ac_exeext'
10476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10477 (eval $ac_try) 2>&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); }; }; then
10481 eval "$as_ac_var=yes"
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 eval "$as_ac_var=no"
10489 rm -f conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10492 ac_res=`eval echo '${'$as_ac_var'}'`
10493 { echo "$as_me:$LINENO: result: $ac_res" >&5
10494 echo "${ECHO_T}$ac_res" >&6; }
10495 if test `eval echo '${'$as_ac_var'}'` = yes; then
10496 cat >>confdefs.h <<_ACEOF
10497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10505 for ac_func in inet_aton inet_addr
10507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10513 if test x$gcc_no_link = xyes; then
10514 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10515 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10516 { (exit 1); exit 1; }; }
10518 cat >conftest.$ac_ext <<_ACEOF
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10526 #define $ac_func innocuous_$ac_func
10528 /* System header to define __stub macros and hopefully few prototypes,
10529 which can conflict with char $ac_func (); below.
10530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10531 <limits.h> exists even on freestanding compilers. */
10534 # include <limits.h>
10536 # include <assert.h>
10541 /* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10548 /* The GNU C library defines this for functions which it implements
10549 to always fail with ENOSYS. Some functions are actually named
10550 something starting with __ and the normal name is an alias. */
10551 #if defined __stub_$ac_func || defined __stub___$ac_func
10558 return $ac_func ();
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>conftest.er1
10567 grep -v '^ *+' conftest.er1 >conftest.err
10569 cat conftest.err >&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest$ac_exeext'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; }; then
10584 eval "$as_ac_var=yes"
10586 echo "$as_me: failed program was:" >&5
10587 sed 's/^/| /' conftest.$ac_ext >&5
10589 eval "$as_ac_var=no"
10592 rm -f conftest.err conftest.$ac_objext \
10593 conftest$ac_exeext conftest.$ac_ext
10595 ac_res=`eval echo '${'$as_ac_var'}'`
10596 { echo "$as_me:$LINENO: result: $ac_res" >&5
10597 echo "${ECHO_T}$ac_res" >&6; }
10598 if test `eval echo '${'$as_ac_var'}'` = yes; then
10599 cat >>confdefs.h <<_ACEOF
10600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10606 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10607 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
10608 if test "${ac_cv_header_stdc+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <stdlib.h>
10618 #include <stdarg.h>
10619 #include <string.h>
10630 rm -f conftest.$ac_objext
10631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10632 (eval $ac_compile) 2>conftest.er1
10634 grep -v '^ *+' conftest.er1 >conftest.err
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } &&
10639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 ac_cv_header_stdc=yes
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ac_cv_header_stdc=no
10659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10661 if test $ac_cv_header_stdc = yes; then
10662 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10663 cat >conftest.$ac_ext <<_ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #include <string.h>
10672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10673 $EGREP "memchr" >/dev/null 2>&1; then
10676 ac_cv_header_stdc=no
10682 if test $ac_cv_header_stdc = yes; then
10683 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10684 cat >conftest.$ac_ext <<_ACEOF
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <stdlib.h>
10693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10694 $EGREP "free" >/dev/null 2>&1; then
10697 ac_cv_header_stdc=no
10703 if test $ac_cv_header_stdc = yes; then
10704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10705 if test "$cross_compiling" = yes; then
10708 cat >conftest.$ac_ext <<_ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10715 #include <stdlib.h>
10716 #if ((' ' & 0x0FF) == 0x020)
10717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10720 # define ISLOWER(c) \
10721 (('a' <= (c) && (c) <= 'i') \
10722 || ('j' <= (c) && (c) <= 'r') \
10723 || ('s' <= (c) && (c) <= 'z'))
10724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10732 for (i = 0; i < 256; i++)
10733 if (XOR (islower (i), ISLOWER (i))
10734 || toupper (i) != TOUPPER (i))
10739 rm -f conftest$ac_exeext
10740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10741 (eval $ac_link) 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746 (eval $ac_try) 2>&5
10748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749 (exit $ac_status); }; }; then
10752 echo "$as_me: program exited with status $ac_status" >&5
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 ( exit $ac_status )
10757 ac_cv_header_stdc=no
10759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10765 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10766 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
10767 if test $ac_cv_header_stdc = yes; then
10769 cat >>confdefs.h <<\_ACEOF
10770 #define STDC_HEADERS 1
10775 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10786 inttypes.h stdint.h unistd.h
10788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10792 echo $ECHO_N "(cached) $ECHO_C" >&6
10794 cat >conftest.$ac_ext <<_ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h. */
10800 $ac_includes_default
10802 #include <$ac_header>
10804 rm -f conftest.$ac_objext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10806 (eval $ac_compile) 2>conftest.er1
10808 grep -v '^ *+' conftest.er1 >conftest.err
10810 cat conftest.err >&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest.$ac_objext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 eval "$as_ac_Header=yes"
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 eval "$as_ac_Header=no"
10833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10835 ac_res=`eval echo '${'$as_ac_Header'}'`
10836 { echo "$as_me:$LINENO: result: $ac_res" >&5
10837 echo "${ECHO_T}$ac_res" >&6; }
10838 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10851 for ac_header in execinfo.h unistd.h dlfcn.h
10853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 ac_res=`eval echo '${'$as_ac_Header'}'`
10861 { echo "$as_me:$LINENO: result: $ac_res" >&5
10862 echo "${ECHO_T}$ac_res" >&6; }
10864 # Is the header compilable?
10865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10867 cat >conftest.$ac_ext <<_ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 $ac_includes_default
10874 #include <$ac_header>
10876 rm -f conftest.$ac_objext
10877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10878 (eval $ac_compile) 2>conftest.er1
10880 grep -v '^ *+' conftest.er1 >conftest.err
10882 cat conftest.err >&5
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); } &&
10885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; } &&
10891 { ac_try='test -s conftest.$ac_objext'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; }; then
10897 ac_header_compiler=yes
10899 echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 ac_header_compiler=no
10905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10907 echo "${ECHO_T}$ac_header_compiler" >&6; }
10909 # Is the header present?
10910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10912 cat >conftest.$ac_ext <<_ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h. */
10918 #include <$ac_header>
10920 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10921 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10923 grep -v '^ *+' conftest.er1 >conftest.err
10925 cat conftest.err >&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } >/dev/null; then
10928 if test -s conftest.err; then
10929 ac_cpp_err=$ac_c_preproc_warn_flag
10930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10937 if test -z "$ac_cpp_err"; then
10938 ac_header_preproc=yes
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 ac_header_preproc=no
10946 rm -f conftest.err conftest.$ac_ext
10947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10948 echo "${ECHO_T}$ac_header_preproc" >&6; }
10950 # So? What about this header?
10951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10957 ac_header_preproc=yes
10960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 eval "$as_ac_Header=\$ac_header_preproc"
10982 ac_res=`eval echo '${'$as_ac_Header'}'`
10983 { echo "$as_me:$LINENO: result: $ac_res" >&5
10984 echo "${ECHO_T}$ac_res" >&6; }
10987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10996 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
10997 { echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
10998 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6; }
10999 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
11000 echo $ECHO_N "(cached) $ECHO_C" >&6
11002 ac_check_lib_save_LIBS=$LIBS
11004 if test x$gcc_no_link = xyes; then
11005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11007 { (exit 1); exit 1; }; }
11009 cat >conftest.$ac_ext <<_ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11016 /* Override any GCC internal prototype to avoid an error.
11017 Use char because int might match the return type of a GCC
11018 builtin and then its argument prototype would still apply. */
11031 rm -f conftest.$ac_objext conftest$ac_exeext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11033 (eval $ac_link) 2>conftest.er1
11035 grep -v '^ *+' conftest.er1 >conftest.err
11037 cat conftest.err >&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; } &&
11046 { ac_try='test -s conftest$ac_exeext'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; }; then
11052 ac_cv_lib_dl_dladdr=yes
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11057 ac_cv_lib_dl_dladdr=no
11060 rm -f conftest.err conftest.$ac_objext \
11061 conftest$ac_exeext conftest.$ac_ext
11062 LIBS=$ac_check_lib_save_LIBS
11064 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
11065 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6; }
11066 if test $ac_cv_lib_dl_dladdr = yes; then
11069 cat >>confdefs.h <<\_ACEOF
11070 #define HAVE_DLADDR 1
11075 { echo "$as_me:$LINENO: checking for dladdr in -ldld" >&5
11076 echo $ECHO_N "checking for dladdr in -ldld... $ECHO_C" >&6; }
11077 if test "${ac_cv_lib_dld_dladdr+set}" = set; then
11078 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 ac_check_lib_save_LIBS=$LIBS
11082 if test x$gcc_no_link = xyes; then
11083 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11084 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11085 { (exit 1); exit 1; }; }
11087 cat >conftest.$ac_ext <<_ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11094 /* Override any GCC internal prototype to avoid an error.
11095 Use char because int might match the return type of a GCC
11096 builtin and then its argument prototype would still apply. */
11109 rm -f conftest.$ac_objext conftest$ac_exeext
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>conftest.er1
11113 grep -v '^ *+' conftest.er1 >conftest.err
11115 cat conftest.err >&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); } &&
11118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11120 (eval $ac_try) 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; } &&
11124 { ac_try='test -s conftest$ac_exeext'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; }; then
11130 ac_cv_lib_dld_dladdr=yes
11132 echo "$as_me: failed program was:" >&5
11133 sed 's/^/| /' conftest.$ac_ext >&5
11135 ac_cv_lib_dld_dladdr=no
11138 rm -f conftest.err conftest.$ac_objext \
11139 conftest$ac_exeext conftest.$ac_ext
11140 LIBS=$ac_check_lib_save_LIBS
11142 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dladdr" >&5
11143 echo "${ECHO_T}$ac_cv_lib_dld_dladdr" >&6; }
11144 if test $ac_cv_lib_dld_dladdr = yes; then
11147 cat >>confdefs.h <<\_ACEOF
11148 #define HAVE_DLADDR 1
11156 if test x"$build" = x"$host"; then
11157 { echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
11158 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6; }
11159 if test "${ac_cv_file__proc_self_exe+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 test "$cross_compiling" = yes &&
11163 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
11164 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
11165 { (exit 1); exit 1; }; }
11166 if test -r "/proc/self/exe"; then
11167 ac_cv_file__proc_self_exe=yes
11169 ac_cv_file__proc_self_exe=no
11172 { echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
11173 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6; }
11174 if test $ac_cv_file__proc_self_exe = yes; then
11176 cat >>confdefs.h <<_ACEOF
11177 #define HAVE__PROC_SELF_EXE 1
11182 cat >>confdefs.h <<\_ACEOF
11183 #define HAVE_PROC_SELF_EXE 1
11192 cat >>confdefs.h <<\_ACEOF
11193 #define HAVE_PROC_SELF_EXE 1
11201 if test "X$prefix" = "XNONE"; then
11202 acl_final_prefix="$ac_default_prefix"
11204 acl_final_prefix="$prefix"
11206 if test "X$exec_prefix" = "XNONE"; then
11207 acl_final_exec_prefix='${prefix}'
11209 acl_final_exec_prefix="$exec_prefix"
11211 acl_save_prefix="$prefix"
11212 prefix="$acl_final_prefix"
11213 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
11214 prefix="$acl_save_prefix"
11217 # Check whether --with-gnu-ld was given.
11218 if test "${with_gnu_ld+set}" = set; then
11219 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11224 # Prepare PATH_SEPARATOR.
11225 # The user is always right.
11226 if test "${PATH_SEPARATOR+set}" != set; then
11227 echo "#! /bin/sh" >conf$$.sh
11228 echo "exit 0" >>conf$$.sh
11230 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11238 if test "$GCC" = yes; then
11239 # Check if gcc -print-prog-name=ld gives a path.
11240 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
11241 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
11244 # gcc leaves a trailing carriage return which upsets mingw
11245 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11247 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11250 # Accept absolute paths.
11251 [\\/]* | [A-Za-z]:[\\/]*)
11252 re_direlt='/[^/][^/]*/\.\./'
11253 # Canonicalize the path of ld
11254 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11255 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11256 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11258 test -z "$LD" && LD="$ac_prog"
11261 # If it fails, then pretend we aren't using GCC.
11265 # If it is relative, then search for the first ld in PATH.
11266 with_gnu_ld=unknown
11269 elif test "$with_gnu_ld" = yes; then
11270 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11271 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11273 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11274 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11276 if test "${acl_cv_path_LD+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
11279 if test -z "$LD"; then
11280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11281 for ac_dir in $PATH; do
11282 test -z "$ac_dir" && ac_dir=.
11283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11284 acl_cv_path_LD="$ac_dir/$ac_prog"
11285 # Check to see if the program is GNU ld. I'd rather use --version,
11286 # but apparently some GNU ld's only accept -v.
11287 # Break only if it was the GNU/non-GNU ld that we prefer.
11288 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
11289 test "$with_gnu_ld" != no && break
11291 test "$with_gnu_ld" != yes && break
11297 acl_cv_path_LD="$LD" # Let the user override the test with a path.
11301 LD="$acl_cv_path_LD"
11302 if test -n "$LD"; then
11303 { echo "$as_me:$LINENO: result: $LD" >&5
11304 echo "${ECHO_T}$LD" >&6; }
11306 { echo "$as_me:$LINENO: result: no" >&5
11307 echo "${ECHO_T}no" >&6; }
11309 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11310 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11311 { (exit 1); exit 1; }; }
11312 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11313 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11314 if test "${acl_cv_prog_gnu_ld+set}" = set; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11318 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
11319 acl_cv_prog_gnu_ld=yes
11321 acl_cv_prog_gnu_ld=no
11324 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
11325 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
11326 with_gnu_ld=$acl_cv_prog_gnu_ld
11330 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
11331 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
11332 if test "${acl_cv_rpath+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11337 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11339 rm -f ./conftest.sh
11343 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
11344 echo "${ECHO_T}$acl_cv_rpath" >&6; }
11346 libext="$acl_cv_libext"
11347 shlibext="$acl_cv_shlibext"
11348 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11349 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11350 hardcode_direct="$acl_cv_hardcode_direct"
11351 hardcode_minus_L="$acl_cv_hardcode_minus_L"
11352 # Check whether --enable-rpath was given.
11353 if test "${enable_rpath+set}" = set; then
11354 enableval=$enable_rpath; :
11368 acl_save_prefix="$prefix"
11369 prefix="$acl_final_prefix"
11370 acl_save_exec_prefix="$exec_prefix"
11371 exec_prefix="$acl_final_exec_prefix"
11373 eval additional_includedir=\"$includedir\"
11374 eval additional_libdir=\"$libdir\"
11376 exec_prefix="$acl_save_exec_prefix"
11377 prefix="$acl_save_prefix"
11380 # Check whether --with-libiconv-prefix was given.
11381 if test "${with_libiconv_prefix+set}" = set; then
11382 withval=$with_libiconv_prefix;
11383 if test "X$withval" = "Xno"; then
11386 if test "X$withval" = "X"; then
11388 acl_save_prefix="$prefix"
11389 prefix="$acl_final_prefix"
11390 acl_save_exec_prefix="$exec_prefix"
11391 exec_prefix="$acl_final_exec_prefix"
11393 eval additional_includedir=\"$includedir\"
11394 eval additional_libdir=\"$libdir\"
11396 exec_prefix="$acl_save_exec_prefix"
11397 prefix="$acl_save_prefix"
11400 additional_includedir="$withval/include"
11401 additional_libdir="$withval/lib"
11412 names_already_handled=
11413 names_next_round='iconv '
11414 while test -n "$names_next_round"; do
11415 names_this_round="$names_next_round"
11417 for name in $names_this_round; do
11419 for n in $names_already_handled; do
11420 if test "$n" = "$name"; then
11421 already_handled=yes
11425 if test -z "$already_handled"; then
11426 names_already_handled="$names_already_handled $name"
11427 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11428 eval value=\"\$HAVE_LIB$uppername\"
11429 if test -n "$value"; then
11430 if test "$value" = yes; then
11431 eval value=\"\$LIB$uppername\"
11432 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11433 eval value=\"\$LTLIB$uppername\"
11434 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11443 if test $use_additional = yes; then
11444 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11445 found_dir="$additional_libdir"
11446 found_so="$additional_libdir/lib$name.$shlibext"
11447 if test -f "$additional_libdir/lib$name.la"; then
11448 found_la="$additional_libdir/lib$name.la"
11451 if test -f "$additional_libdir/lib$name.$libext"; then
11452 found_dir="$additional_libdir"
11453 found_a="$additional_libdir/lib$name.$libext"
11454 if test -f "$additional_libdir/lib$name.la"; then
11455 found_la="$additional_libdir/lib$name.la"
11460 if test "X$found_dir" = "X"; then
11461 for x in $LDFLAGS $LTLIBICONV; do
11463 acl_save_prefix="$prefix"
11464 prefix="$acl_final_prefix"
11465 acl_save_exec_prefix="$exec_prefix"
11466 exec_prefix="$acl_final_exec_prefix"
11468 exec_prefix="$acl_save_exec_prefix"
11469 prefix="$acl_save_prefix"
11473 dir=`echo "X$x" | sed -e 's/^X-L//'`
11474 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11476 found_so="$dir/lib$name.$shlibext"
11477 if test -f "$dir/lib$name.la"; then
11478 found_la="$dir/lib$name.la"
11481 if test -f "$dir/lib$name.$libext"; then
11483 found_a="$dir/lib$name.$libext"
11484 if test -f "$dir/lib$name.la"; then
11485 found_la="$dir/lib$name.la"
11491 if test "X$found_dir" != "X"; then
11496 if test "X$found_dir" != "X"; then
11497 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11498 if test "X$found_so" != "X"; then
11499 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11500 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11503 for x in $ltrpathdirs; do
11504 if test "X$x" = "X$found_dir"; then
11509 if test -z "$haveit"; then
11510 ltrpathdirs="$ltrpathdirs $found_dir"
11512 if test "$hardcode_direct" = yes; then
11513 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11515 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11516 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11518 for x in $rpathdirs; do
11519 if test "X$x" = "X$found_dir"; then
11524 if test -z "$haveit"; then
11525 rpathdirs="$rpathdirs $found_dir"
11529 for x in $LDFLAGS $LIBICONV; do
11531 acl_save_prefix="$prefix"
11532 prefix="$acl_final_prefix"
11533 acl_save_exec_prefix="$exec_prefix"
11534 exec_prefix="$acl_final_exec_prefix"
11536 exec_prefix="$acl_save_exec_prefix"
11537 prefix="$acl_save_prefix"
11539 if test "X$x" = "X-L$found_dir"; then
11544 if test -z "$haveit"; then
11545 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11547 if test "$hardcode_minus_L" != no; then
11548 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11550 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11556 if test "X$found_a" != "X"; then
11557 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11559 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11562 additional_includedir=
11563 case "$found_dir" in
11565 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11566 additional_includedir="$basedir/include"
11569 if test "X$additional_includedir" != "X"; then
11570 if test "X$additional_includedir" != "X/usr/include"; then
11572 if test "X$additional_includedir" = "X/usr/local/include"; then
11573 if test -n "$GCC"; then
11575 linux*) haveit=yes;;
11579 if test -z "$haveit"; then
11580 for x in $CPPFLAGS $INCICONV; do
11582 acl_save_prefix="$prefix"
11583 prefix="$acl_final_prefix"
11584 acl_save_exec_prefix="$exec_prefix"
11585 exec_prefix="$acl_final_exec_prefix"
11587 exec_prefix="$acl_save_exec_prefix"
11588 prefix="$acl_save_prefix"
11590 if test "X$x" = "X-I$additional_includedir"; then
11595 if test -z "$haveit"; then
11596 if test -d "$additional_includedir"; then
11597 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11603 if test -n "$found_la"; then
11604 save_libdir="$libdir"
11605 case "$found_la" in
11606 */* | *\\*) . "$found_la" ;;
11607 *) . "./$found_la" ;;
11609 libdir="$save_libdir"
11610 for dep in $dependency_libs; do
11613 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11614 if test "X$additional_libdir" != "X/usr/lib"; then
11616 if test "X$additional_libdir" = "X/usr/local/lib"; then
11617 if test -n "$GCC"; then
11619 linux*) haveit=yes;;
11623 if test -z "$haveit"; then
11625 for x in $LDFLAGS $LIBICONV; do
11627 acl_save_prefix="$prefix"
11628 prefix="$acl_final_prefix"
11629 acl_save_exec_prefix="$exec_prefix"
11630 exec_prefix="$acl_final_exec_prefix"
11632 exec_prefix="$acl_save_exec_prefix"
11633 prefix="$acl_save_prefix"
11635 if test "X$x" = "X-L$additional_libdir"; then
11640 if test -z "$haveit"; then
11641 if test -d "$additional_libdir"; then
11642 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11646 for x in $LDFLAGS $LTLIBICONV; do
11648 acl_save_prefix="$prefix"
11649 prefix="$acl_final_prefix"
11650 acl_save_exec_prefix="$exec_prefix"
11651 exec_prefix="$acl_final_exec_prefix"
11653 exec_prefix="$acl_save_exec_prefix"
11654 prefix="$acl_save_prefix"
11656 if test "X$x" = "X-L$additional_libdir"; then
11661 if test -z "$haveit"; then
11662 if test -d "$additional_libdir"; then
11663 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11670 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11671 if test "$enable_rpath" != no; then
11673 for x in $rpathdirs; do
11674 if test "X$x" = "X$dir"; then
11679 if test -z "$haveit"; then
11680 rpathdirs="$rpathdirs $dir"
11683 for x in $ltrpathdirs; do
11684 if test "X$x" = "X$dir"; then
11689 if test -z "$haveit"; then
11690 ltrpathdirs="$ltrpathdirs $dir"
11695 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11698 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11701 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11702 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11708 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11709 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11715 if test "X$rpathdirs" != "X"; then
11716 if test -n "$hardcode_libdir_separator"; then
11718 for found_dir in $rpathdirs; do
11719 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11721 acl_save_libdir="$libdir"
11723 eval flag=\"$hardcode_libdir_flag_spec\"
11724 libdir="$acl_save_libdir"
11725 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11727 for found_dir in $rpathdirs; do
11728 acl_save_libdir="$libdir"
11729 libdir="$found_dir"
11730 eval flag=\"$hardcode_libdir_flag_spec\"
11731 libdir="$acl_save_libdir"
11732 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11736 if test "X$ltrpathdirs" != "X"; then
11737 for found_dir in $ltrpathdirs; do
11738 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11748 am_save_CPPFLAGS="$CPPFLAGS"
11750 for element in $INCICONV; do
11752 for x in $CPPFLAGS; do
11754 acl_save_prefix="$prefix"
11755 prefix="$acl_final_prefix"
11756 acl_save_exec_prefix="$exec_prefix"
11757 exec_prefix="$acl_final_exec_prefix"
11759 exec_prefix="$acl_save_exec_prefix"
11760 prefix="$acl_save_prefix"
11762 if test "X$x" = "X$element"; then
11767 if test -z "$haveit"; then
11768 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11773 { echo "$as_me:$LINENO: checking for iconv" >&5
11774 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
11775 if test "${am_cv_func_iconv+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 am_cv_func_iconv="no, consider installing GNU libiconv"
11781 if test x$gcc_no_link = xyes; then
11782 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11784 { (exit 1); exit 1; }; }
11786 cat >conftest.$ac_ext <<_ACEOF
11789 cat confdefs.h >>conftest.$ac_ext
11790 cat >>conftest.$ac_ext <<_ACEOF
11791 /* end confdefs.h. */
11792 #include <stdlib.h>
11797 iconv_t cd = iconv_open("","");
11798 iconv(cd,NULL,NULL,NULL,NULL);
11804 rm -f conftest.$ac_objext conftest$ac_exeext
11805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11806 (eval $ac_link) 2>conftest.er1
11808 grep -v '^ *+' conftest.er1 >conftest.err
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } &&
11813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; } &&
11819 { ac_try='test -s conftest$ac_exeext'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; }; then
11825 am_cv_func_iconv=yes
11827 echo "$as_me: failed program was:" >&5
11828 sed 's/^/| /' conftest.$ac_ext >&5
11833 rm -f conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
11835 if test "$am_cv_func_iconv" != yes; then
11836 am_save_LIBS="$LIBS"
11837 LIBS="$LIBS $LIBICONV"
11838 if test x$gcc_no_link = xyes; then
11839 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11840 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11841 { (exit 1); exit 1; }; }
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 #include <stdlib.h>
11854 iconv_t cd = iconv_open("","");
11855 iconv(cd,NULL,NULL,NULL,NULL);
11861 rm -f conftest.$ac_objext conftest$ac_exeext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11863 (eval $ac_link) 2>conftest.er1
11865 grep -v '^ *+' conftest.er1 >conftest.err
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest$ac_exeext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
11882 am_cv_lib_iconv=yes
11883 am_cv_func_iconv=yes
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11891 rm -f conftest.err conftest.$ac_objext \
11892 conftest$ac_exeext conftest.$ac_ext
11893 LIBS="$am_save_LIBS"
11897 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11898 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
11899 if test "$am_cv_func_iconv" = yes; then
11901 cat >>confdefs.h <<\_ACEOF
11902 #define HAVE_ICONV 1
11906 if test "$am_cv_lib_iconv" = yes; then
11907 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11908 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
11909 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
11910 echo "${ECHO_T}$LIBICONV" >&6; }
11912 CPPFLAGS="$am_save_CPPFLAGS"
11919 if test "$am_cv_func_iconv" = yes; then
11920 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
11921 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
11922 if test "${am_cv_proto_iconv+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 cat >conftest.$ac_ext <<_ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11933 #include <stdlib.h>
11939 #if defined(__STDC__) || defined(__cplusplus)
11940 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11953 rm -f conftest.$ac_objext
11954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
11957 grep -v '^ *+' conftest.er1 >conftest.err
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest.$ac_objext'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 am_cv_proto_iconv_arg1=""
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11979 am_cv_proto_iconv_arg1="const"
11982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11983 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
11986 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11987 { echo "$as_me:$LINENO: result: ${ac_t:-
11988 }$am_cv_proto_iconv" >&5
11989 echo "${ECHO_T}${ac_t:-
11990 }$am_cv_proto_iconv" >&6; }
11992 cat >>confdefs.h <<_ACEOF
11993 #define ICONV_CONST $am_cv_proto_iconv_arg1
11999 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12000 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12001 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 if test x$gcc_no_link = xyes; then
12005 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12006 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12007 { (exit 1); exit 1; }; }
12009 cat >conftest.$ac_ext <<_ACEOF
12012 cat confdefs.h >>conftest.$ac_ext
12013 cat >>conftest.$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12015 #include <locale.h>
12024 rm -f conftest.$ac_objext conftest$ac_exeext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12026 (eval $ac_link) 2>conftest.er1
12028 grep -v '^ *+' conftest.er1 >conftest.err
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } &&
12033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest$ac_exeext'
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045 am_cv_val_LC_MESSAGES=yes
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12050 am_cv_val_LC_MESSAGES=no
12053 rm -f conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12057 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
12058 if test $am_cv_val_LC_MESSAGES = yes; then
12060 cat >>confdefs.h <<\_ACEOF
12061 #define HAVE_LC_MESSAGES 1
12066 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12067 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
12068 if test "${ac_cv_struct_tm+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 cat >conftest.$ac_ext <<_ACEOF
12074 cat confdefs.h >>conftest.$ac_ext
12075 cat >>conftest.$ac_ext <<_ACEOF
12076 /* end confdefs.h. */
12077 #include <sys/types.h>
12083 struct tm *tp; tp->tm_sec;
12088 rm -f conftest.$ac_objext
12089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12090 (eval $ac_compile) 2>conftest.er1
12092 grep -v '^ *+' conftest.er1 >conftest.err
12094 cat conftest.err >&5
12095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12096 (exit $ac_status); } &&
12097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12099 (eval $ac_try) 2>&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); }; } &&
12103 { ac_try='test -s conftest.$ac_objext'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_cv_struct_tm=time.h
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_cv_struct_tm=sys/time.h
12117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12119 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12120 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
12121 if test $ac_cv_struct_tm = sys/time.h; then
12123 cat >>confdefs.h <<\_ACEOF
12124 #define TM_IN_SYS_TIME 1
12129 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12130 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
12131 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12132 echo $ECHO_N "(cached) $ECHO_C" >&6
12134 cat >conftest.$ac_ext <<_ACEOF
12137 cat confdefs.h >>conftest.$ac_ext
12138 cat >>conftest.$ac_ext <<_ACEOF
12139 /* end confdefs.h. */
12140 #include <sys/types.h>
12141 #include <$ac_cv_struct_tm>
12147 static struct tm ac_aggr;
12148 if (ac_aggr.tm_zone)
12154 rm -f conftest.$ac_objext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12156 (eval $ac_compile) 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; } &&
12169 { ac_try='test -s conftest.$ac_objext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_cv_member_struct_tm_tm_zone=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 cat >conftest.$ac_ext <<_ACEOF
12183 cat confdefs.h >>conftest.$ac_ext
12184 cat >>conftest.$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12186 #include <sys/types.h>
12187 #include <$ac_cv_struct_tm>
12193 static struct tm ac_aggr;
12194 if (sizeof ac_aggr.tm_zone)
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211 (eval $ac_try) 2>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; } &&
12215 { ac_try='test -s conftest.$ac_objext'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; }; then
12221 ac_cv_member_struct_tm_tm_zone=yes
12223 echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12226 ac_cv_member_struct_tm_tm_zone=no
12229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12234 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12235 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
12236 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12238 cat >>confdefs.h <<_ACEOF
12239 #define HAVE_STRUCT_TM_TM_ZONE 1
12245 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12247 cat >>confdefs.h <<\_ACEOF
12248 #define HAVE_TM_ZONE 1
12252 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
12253 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
12254 if test "${ac_cv_have_decl_tzname+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12269 char *p = (char *) tzname;
12277 rm -f conftest.$ac_objext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try='test -s conftest.$ac_objext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298 ac_cv_have_decl_tzname=yes
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 ac_cv_have_decl_tzname=no
12306 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
12309 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
12310 if test $ac_cv_have_decl_tzname = yes; then
12312 cat >>confdefs.h <<_ACEOF
12313 #define HAVE_DECL_TZNAME 1
12318 cat >>confdefs.h <<_ACEOF
12319 #define HAVE_DECL_TZNAME 0
12326 { echo "$as_me:$LINENO: checking for tzname" >&5
12327 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
12328 if test "${ac_cv_var_tzname+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 if test x$gcc_no_link = xyes; then
12332 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12333 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12334 { (exit 1); exit 1; }; }
12336 cat >conftest.$ac_ext <<_ACEOF
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12343 #if !HAVE_DECL_TZNAME
12344 extern char *tzname[];
12350 return tzname[0][0];
12355 rm -f conftest.$ac_objext conftest$ac_exeext
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_var_tzname=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_var_tzname=no
12384 rm -f conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12387 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12388 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
12389 if test $ac_cv_var_tzname = yes; then
12391 cat >>confdefs.h <<\_ACEOF
12392 #define HAVE_TZNAME 1
12401 for ac_func in gethostbyname_r
12403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12409 if test x$gcc_no_link = xyes; then
12410 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12411 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12412 { (exit 1); exit 1; }; }
12414 cat >conftest.$ac_ext <<_ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12422 #define $ac_func innocuous_$ac_func
12424 /* System header to define __stub macros and hopefully few prototypes,
12425 which can conflict with char $ac_func (); below.
12426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427 <limits.h> exists even on freestanding compilers. */
12430 # include <limits.h>
12432 # include <assert.h>
12437 /* Override any GCC internal prototype to avoid an error.
12438 Use char because int might match the return type of a GCC
12439 builtin and then its argument prototype would still apply. */
12444 /* The GNU C library defines this for functions which it implements
12445 to always fail with ENOSYS. Some functions are actually named
12446 something starting with __ and the normal name is an alias. */
12447 #if defined __stub_$ac_func || defined __stub___$ac_func
12454 return $ac_func ();
12459 rm -f conftest.$ac_objext conftest$ac_exeext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12461 (eval $ac_link) 2>conftest.er1
12463 grep -v '^ *+' conftest.er1 >conftest.err
12465 cat conftest.err >&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); } &&
12468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12470 (eval $ac_try) 2>&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); }; } &&
12474 { ac_try='test -s conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 eval "$as_ac_var=yes"
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 eval "$as_ac_var=no"
12488 rm -f conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
12491 ac_res=`eval echo '${'$as_ac_var'}'`
12492 { echo "$as_me:$LINENO: result: $ac_res" >&5
12493 echo "${ECHO_T}$ac_res" >&6; }
12494 if test `eval echo '${'$as_ac_var'}'` = yes; then
12495 cat >>confdefs.h <<_ACEOF
12496 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12500 cat >>confdefs.h <<\_ACEOF
12501 #define HAVE_GETHOSTBYNAME_R 1
12504 # There are two different kinds of gethostbyname_r.
12505 # We look for the one that returns `int'.
12506 # Hopefully this check is robust enough.
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12517 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
12520 cat >>confdefs.h <<\_ACEOF
12521 #define GETHOSTBYNAME_R_RETURNS_INT 1
12528 case " $GCINCS " in
12529 *" -D_REENTRANT "*) ;;
12531 { echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
12532 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6; }
12533 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 ac_cpp='$CXXCPP $CPPFLAGS'
12538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12542 cat >conftest.$ac_ext <<_ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h. */
12552 gethostbyname_r("", 0, 0);
12557 rm -f conftest.$ac_objext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12559 (eval $ac_compile) 2>conftest.er1
12561 grep -v '^ *+' conftest.er1 >conftest.err
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; } &&
12572 { ac_try='test -s conftest.$ac_objext'
12573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12574 (eval $ac_try) 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); }; }; then
12578 libjava_cv_gethostbyname_r_needs_reentrant=no
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.$ac_ext >&5
12583 CPPFLAGS_SAVE="$CPPFLAGS"
12584 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12595 gethostbyname_r("", 0, 0);
12600 rm -f conftest.$ac_objext
12601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12602 (eval $ac_compile) 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; } &&
12615 { ac_try='test -s conftest.$ac_objext'
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; }; then
12621 libjava_cv_gethostbyname_r_needs_reentrant=yes
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 libjava_cv_gethostbyname_r_needs_reentrant=fail
12629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12630 CPPFLAGS="$CPPFLAGS_SAVE"
12634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636 ac_cpp='$CPP $CPPFLAGS'
12637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12643 { echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
12644 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
12645 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
12647 cat >>confdefs.h <<\_ACEOF
12648 #define _REENTRANT 1
12655 { echo "$as_me:$LINENO: checking for struct hostent_data" >&5
12656 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6; }
12657 if test "${libjava_cv_struct_hostent_data+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 cat >conftest.$ac_ext <<_ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12667 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
12668 # define _REENTRANT 1
12674 struct hostent_data data;
12679 rm -f conftest.$ac_objext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
12700 libjava_cv_struct_hostent_data=yes
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 libjava_cv_struct_hostent_data=no
12708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12710 { echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
12711 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6; }
12712 if test "x$libjava_cv_struct_hostent_data" = xyes; then
12714 cat >>confdefs.h <<\_ACEOF
12715 #define HAVE_STRUCT_HOSTENT_DATA 1
12724 # FIXME: libjava source code expects to find a prototype for
12725 # gethostbyaddr_r in netdb.h. The outer check ensures that
12726 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
12727 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
12728 # linkage check is enough, yet C++ code requires proper prototypes.)
12729 cat >conftest.$ac_ext <<_ACEOF
12732 cat confdefs.h >>conftest.$ac_ext
12733 cat >>conftest.$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12739 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
12742 for ac_func in gethostbyaddr_r
12744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 if test x$gcc_no_link = xyes; then
12751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12753 { (exit 1); exit 1; }; }
12755 cat >conftest.$ac_ext <<_ACEOF
12758 cat confdefs.h >>conftest.$ac_ext
12759 cat >>conftest.$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12763 #define $ac_func innocuous_$ac_func
12765 /* System header to define __stub macros and hopefully few prototypes,
12766 which can conflict with char $ac_func (); below.
12767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12768 <limits.h> exists even on freestanding compilers. */
12771 # include <limits.h>
12773 # include <assert.h>
12778 /* Override any GCC internal prototype to avoid an error.
12779 Use char because int might match the return type of a GCC
12780 builtin and then its argument prototype would still apply. */
12785 /* The GNU C library defines this for functions which it implements
12786 to always fail with ENOSYS. Some functions are actually named
12787 something starting with __ and the normal name is an alias. */
12788 #if defined __stub_$ac_func || defined __stub___$ac_func
12795 return $ac_func ();
12800 rm -f conftest.$ac_objext conftest$ac_exeext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12802 (eval $ac_link) 2>conftest.er1
12804 grep -v '^ *+' conftest.er1 >conftest.err
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; } &&
12815 { ac_try='test -s conftest$ac_exeext'
12816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12817 (eval $ac_try) 2>&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); }; }; then
12821 eval "$as_ac_var=yes"
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 eval "$as_ac_var=no"
12829 rm -f conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
12832 ac_res=`eval echo '${'$as_ac_var'}'`
12833 { echo "$as_me:$LINENO: result: $ac_res" >&5
12834 echo "${ECHO_T}$ac_res" >&6; }
12835 if test `eval echo '${'$as_ac_var'}'` = yes; then
12836 cat >>confdefs.h <<_ACEOF
12837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_GETHOSTBYADDR_R 1
12845 # There are two different kinds of gethostbyaddr_r.
12846 # We look for the one that returns `int'.
12847 # Hopefully this check is robust enough.
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12858 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
12861 cat >>confdefs.h <<\_ACEOF
12862 #define GETHOSTBYADDR_R_RETURNS_INT 1
12876 for ac_func in gethostname
12878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 if test x$gcc_no_link = xyes; then
12885 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12886 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12887 { (exit 1); exit 1; }; }
12889 cat >conftest.$ac_ext <<_ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12897 #define $ac_func innocuous_$ac_func
12899 /* System header to define __stub macros and hopefully few prototypes,
12900 which can conflict with char $ac_func (); below.
12901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902 <limits.h> exists even on freestanding compilers. */
12905 # include <limits.h>
12907 # include <assert.h>
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12919 /* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
12922 #if defined __stub_$ac_func || defined __stub___$ac_func
12929 return $ac_func ();
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12936 (eval $ac_link) 2>conftest.er1
12938 grep -v '^ *+' conftest.er1 >conftest.err
12940 cat conftest.err >&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12951 (eval $ac_try) 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); }; }; then
12955 eval "$as_ac_var=yes"
12957 echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12960 eval "$as_ac_var=no"
12963 rm -f conftest.err conftest.$ac_objext \
12964 conftest$ac_exeext conftest.$ac_ext
12966 ac_res=`eval echo '${'$as_ac_var'}'`
12967 { echo "$as_me:$LINENO: result: $ac_res" >&5
12968 echo "${ECHO_T}$ac_res" >&6; }
12969 if test `eval echo '${'$as_ac_var'}'` = yes; then
12970 cat >>confdefs.h <<_ACEOF
12971 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12975 cat >>confdefs.h <<\_ACEOF
12976 #define HAVE_GETHOSTNAME 1
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 #include <unistd.h>
12988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12989 $EGREP "gethostname" >/dev/null 2>&1; then
12992 cat >>confdefs.h <<\_ACEOF
12993 #define HAVE_GETHOSTNAME_DECL 1
13004 for ac_func in usleep
13006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 if test x$gcc_no_link = xyes; then
13013 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13014 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13015 { (exit 1); exit 1; }; }
13017 cat >conftest.$ac_ext <<_ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13025 #define $ac_func innocuous_$ac_func
13027 /* System header to define __stub macros and hopefully few prototypes,
13028 which can conflict with char $ac_func (); below.
13029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13030 <limits.h> exists even on freestanding compilers. */
13033 # include <limits.h>
13035 # include <assert.h>
13040 /* Override any GCC internal prototype to avoid an error.
13041 Use char because int might match the return type of a GCC
13042 builtin and then its argument prototype would still apply. */
13047 /* The GNU C library defines this for functions which it implements
13048 to always fail with ENOSYS. Some functions are actually named
13049 something starting with __ and the normal name is an alias. */
13050 #if defined __stub_$ac_func || defined __stub___$ac_func
13057 return $ac_func ();
13062 rm -f conftest.$ac_objext conftest$ac_exeext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13064 (eval $ac_link) 2>conftest.er1
13066 grep -v '^ *+' conftest.er1 >conftest.err
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } &&
13071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073 (eval $ac_try) 2>&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); }; } &&
13077 { ac_try='test -s conftest$ac_exeext'
13078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13079 (eval $ac_try) 2>&5
13081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082 (exit $ac_status); }; }; then
13083 eval "$as_ac_var=yes"
13085 echo "$as_me: failed program was:" >&5
13086 sed 's/^/| /' conftest.$ac_ext >&5
13088 eval "$as_ac_var=no"
13091 rm -f conftest.err conftest.$ac_objext \
13092 conftest$ac_exeext conftest.$ac_ext
13094 ac_res=`eval echo '${'$as_ac_var'}'`
13095 { echo "$as_me:$LINENO: result: $ac_res" >&5
13096 echo "${ECHO_T}$ac_res" >&6; }
13097 if test `eval echo '${'$as_ac_var'}'` = yes; then
13098 cat >>confdefs.h <<_ACEOF
13099 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13102 cat >conftest.$ac_ext <<_ACEOF
13105 cat confdefs.h >>conftest.$ac_ext
13106 cat >>conftest.$ac_ext <<_ACEOF
13107 /* end confdefs.h. */
13108 #include <unistd.h>
13111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13112 $EGREP "usleep" >/dev/null 2>&1; then
13115 cat >>confdefs.h <<\_ACEOF
13116 #define HAVE_USLEEP_DECL 1
13126 # Look for these functions in the thread library, but only bother
13127 # if using POSIX threads.
13128 if test "$THREADS" = posix; then
13130 LIBS="$LIBS $THREADLIBS"
13131 # Some POSIX thread systems don't have pthread_mutexattr_settype.
13135 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
13137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 if test x$gcc_no_link = xyes; then
13144 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13145 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13146 { (exit 1); exit 1; }; }
13148 cat >conftest.$ac_ext <<_ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13156 #define $ac_func innocuous_$ac_func
13158 /* System header to define __stub macros and hopefully few prototypes,
13159 which can conflict with char $ac_func (); below.
13160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13161 <limits.h> exists even on freestanding compilers. */
13164 # include <limits.h>
13166 # include <assert.h>
13171 /* Override any GCC internal prototype to avoid an error.
13172 Use char because int might match the return type of a GCC
13173 builtin and then its argument prototype would still apply. */
13178 /* The GNU C library defines this for functions which it implements
13179 to always fail with ENOSYS. Some functions are actually named
13180 something starting with __ and the normal name is an alias. */
13181 #if defined __stub_$ac_func || defined __stub___$ac_func
13188 return $ac_func ();
13193 rm -f conftest.$ac_objext conftest$ac_exeext
13194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13195 (eval $ac_link) 2>conftest.er1
13197 grep -v '^ *+' conftest.er1 >conftest.err
13199 cat conftest.err >&5
13200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201 (exit $ac_status); } &&
13202 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13204 (eval $ac_try) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; } &&
13208 { ac_try='test -s conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 eval "$as_ac_var=yes"
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 eval "$as_ac_var=no"
13222 rm -f conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13225 ac_res=`eval echo '${'$as_ac_var'}'`
13226 { echo "$as_me:$LINENO: result: $ac_res" >&5
13227 echo "${ECHO_T}$ac_res" >&6; }
13228 if test `eval echo '${'$as_ac_var'}'` = yes; then
13229 cat >>confdefs.h <<_ACEOF
13230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13237 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
13238 # Solaris 7 the name librt is preferred.
13240 for ac_func in sched_yield
13242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13243 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13245 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 if test x$gcc_no_link = xyes; then
13249 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13251 { (exit 1); exit 1; }; }
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13261 #define $ac_func innocuous_$ac_func
13263 /* System header to define __stub macros and hopefully few prototypes,
13264 which can conflict with char $ac_func (); below.
13265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13266 <limits.h> exists even on freestanding compilers. */
13269 # include <limits.h>
13271 # include <assert.h>
13276 /* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13283 /* The GNU C library defines this for functions which it implements
13284 to always fail with ENOSYS. Some functions are actually named
13285 something starting with __ and the normal name is an alias. */
13286 #if defined __stub_$ac_func || defined __stub___$ac_func
13293 return $ac_func ();
13298 rm -f conftest.$ac_objext conftest$ac_exeext
13299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13300 (eval $ac_link) 2>conftest.er1
13302 grep -v '^ *+' conftest.er1 >conftest.err
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } &&
13307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13309 (eval $ac_try) 2>&5
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); }; } &&
13313 { ac_try='test -s conftest$ac_exeext'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 eval "$as_ac_var=yes"
13321 echo "$as_me: failed program was:" >&5
13322 sed 's/^/| /' conftest.$ac_ext >&5
13324 eval "$as_ac_var=no"
13327 rm -f conftest.err conftest.$ac_objext \
13328 conftest$ac_exeext conftest.$ac_ext
13330 ac_res=`eval echo '${'$as_ac_var'}'`
13331 { echo "$as_me:$LINENO: result: $ac_res" >&5
13332 echo "${ECHO_T}$ac_res" >&6; }
13333 if test `eval echo '${'$as_ac_var'}'` = yes; then
13334 cat >>confdefs.h <<_ACEOF
13335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13340 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
13341 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
13342 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
13343 echo $ECHO_N "(cached) $ECHO_C" >&6
13345 ac_check_lib_save_LIBS=$LIBS
13347 if test x$gcc_no_link = xyes; then
13348 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13349 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13350 { (exit 1); exit 1; }; }
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13359 /* Override any GCC internal prototype to avoid an error.
13360 Use char because int might match the return type of a GCC
13361 builtin and then its argument prototype would still apply. */
13365 char sched_yield ();
13369 return sched_yield ();
13374 rm -f conftest.$ac_objext conftest$ac_exeext
13375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13376 (eval $ac_link) 2>conftest.er1
13378 grep -v '^ *+' conftest.er1 >conftest.err
13380 cat conftest.err >&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; } &&
13389 { ac_try='test -s conftest$ac_exeext'
13390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13391 (eval $ac_try) 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); }; }; then
13395 ac_cv_lib_rt_sched_yield=yes
13397 echo "$as_me: failed program was:" >&5
13398 sed 's/^/| /' conftest.$ac_ext >&5
13400 ac_cv_lib_rt_sched_yield=no
13403 rm -f conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
13405 LIBS=$ac_check_lib_save_LIBS
13407 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
13408 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
13409 if test $ac_cv_lib_rt_sched_yield = yes; then
13411 cat >>confdefs.h <<\_ACEOF
13412 #define HAVE_SCHED_YIELD 1
13415 THREADLIBS="$THREADLIBS -lrt"
13416 THREADSPEC="$THREADSPEC -lrt"
13419 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
13420 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
13421 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
13422 echo $ECHO_N "(cached) $ECHO_C" >&6
13424 ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-lposix4 $LIBS"
13426 if test x$gcc_no_link = xyes; then
13427 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13428 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13429 { (exit 1); exit 1; }; }
13431 cat >conftest.$ac_ext <<_ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13438 /* Override any GCC internal prototype to avoid an error.
13439 Use char because int might match the return type of a GCC
13440 builtin and then its argument prototype would still apply. */
13444 char sched_yield ();
13448 return sched_yield ();
13453 rm -f conftest.$ac_objext conftest$ac_exeext
13454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13455 (eval $ac_link) 2>conftest.er1
13457 grep -v '^ *+' conftest.er1 >conftest.err
13459 cat conftest.err >&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } &&
13462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; } &&
13468 { ac_try='test -s conftest$ac_exeext'
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; }; then
13474 ac_cv_lib_posix4_sched_yield=yes
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_cv_lib_posix4_sched_yield=no
13482 rm -f conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13486 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
13487 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
13488 if test $ac_cv_lib_posix4_sched_yield = yes; then
13490 cat >>confdefs.h <<\_ACEOF
13491 #define HAVE_SCHED_YIELD 1
13494 THREADLIBS="$THREADLIBS -lposix4"
13495 THREADSPEC="$THREADSPEC -lposix4"
13504 { echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
13505 echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
13506 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 ac_check_lib_save_LIBS=$LIBS
13511 if test x$gcc_no_link = xyes; then
13512 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13513 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13514 { (exit 1); exit 1; }; }
13516 cat >conftest.$ac_ext <<_ACEOF
13519 cat confdefs.h >>conftest.$ac_ext
13520 cat >>conftest.$ac_ext <<_ACEOF
13521 /* end confdefs.h. */
13523 /* Override any GCC internal prototype to avoid an error.
13524 Use char because int might match the return type of a GCC
13525 builtin and then its argument prototype would still apply. */
13529 char clock_gettime ();
13533 return clock_gettime ();
13538 rm -f conftest.$ac_objext conftest$ac_exeext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13540 (eval $ac_link) 2>conftest.er1
13542 grep -v '^ *+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try='test -s conftest$ac_exeext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_lib_rt_clock_gettime=yes
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 ac_cv_lib_rt_clock_gettime=no
13567 rm -f conftest.err conftest.$ac_objext \
13568 conftest$ac_exeext conftest.$ac_ext
13569 LIBS=$ac_check_lib_save_LIBS
13571 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
13572 echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
13573 if test $ac_cv_lib_rt_clock_gettime = yes; then
13576 cat >>confdefs.h <<\_ACEOF
13577 #define HAVE_CLOCK_GETTIME 1
13580 case "$THREADSPEC" in
13583 THREADSPEC="$THREADSPEC -lrt"
13584 THREADLIBS="$THREADLIBS -lrt"
13592 # We can save a little space at runtime if the mutex has m_count
13593 # or __m_count. This is a nice hack for Linux.
13594 cat >conftest.$ac_ext <<_ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 #include <pthread.h>
13605 extern pthread_mutex_t *mutex; int q = mutex->m_count;
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>conftest.er1
13615 grep -v '^ *+' conftest.er1 >conftest.err
13617 cat conftest.err >&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest.$ac_objext'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13633 cat >>confdefs.h <<\_ACEOF
13634 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13642 cat >conftest.$ac_ext <<_ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 #include <pthread.h>
13653 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>conftest.er1
13663 grep -v '^ *+' conftest.er1 >conftest.err
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; } &&
13674 { ac_try='test -s conftest.$ac_objext'
13675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676 (eval $ac_try) 2>&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); }; }; then
13681 cat >>confdefs.h <<\_ACEOF
13682 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698 # We require a way to get the time.
13703 for ac_func in gettimeofday time ftime
13705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 if test x$gcc_no_link = xyes; then
13712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13714 { (exit 1); exit 1; }; }
13716 cat >conftest.$ac_ext <<_ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13724 #define $ac_func innocuous_$ac_func
13726 /* System header to define __stub macros and hopefully few prototypes,
13727 which can conflict with char $ac_func (); below.
13728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13729 <limits.h> exists even on freestanding compilers. */
13732 # include <limits.h>
13734 # include <assert.h>
13739 /* Override any GCC internal prototype to avoid an error.
13740 Use char because int might match the return type of a GCC
13741 builtin and then its argument prototype would still apply. */
13746 /* The GNU C library defines this for functions which it implements
13747 to always fail with ENOSYS. Some functions are actually named
13748 something starting with __ and the normal name is an alias. */
13749 #if defined __stub_$ac_func || defined __stub___$ac_func
13756 return $ac_func ();
13761 rm -f conftest.$ac_objext conftest$ac_exeext
13762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13763 (eval $ac_link) 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; } &&
13776 { ac_try='test -s conftest$ac_exeext'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; }; then
13782 eval "$as_ac_var=yes"
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 eval "$as_ac_var=no"
13790 rm -f conftest.err conftest.$ac_objext \
13791 conftest$ac_exeext conftest.$ac_ext
13793 ac_res=`eval echo '${'$as_ac_var'}'`
13794 { echo "$as_me:$LINENO: result: $ac_res" >&5
13795 echo "${ECHO_T}$ac_res" >&6; }
13796 if test `eval echo '${'$as_ac_var'}'` = yes; then
13797 cat >>confdefs.h <<_ACEOF
13798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13804 if test "$time_found" = no; then
13805 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
13806 echo "$as_me: error: no function found to get the time" >&2;}
13807 { (exit 1); exit 1; }; }
13811 for ac_func in memmove
13813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13814 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13816 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 if test x$gcc_no_link = xyes; then
13820 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13821 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13822 { (exit 1); exit 1; }; }
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13832 #define $ac_func innocuous_$ac_func
13834 /* System header to define __stub macros and hopefully few prototypes,
13835 which can conflict with char $ac_func (); below.
13836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13837 <limits.h> exists even on freestanding compilers. */
13840 # include <limits.h>
13842 # include <assert.h>
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13854 /* The GNU C library defines this for functions which it implements
13855 to always fail with ENOSYS. Some functions are actually named
13856 something starting with __ and the normal name is an alias. */
13857 #if defined __stub_$ac_func || defined __stub___$ac_func
13864 return $ac_func ();
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13871 (eval $ac_link) 2>conftest.er1
13873 grep -v '^ *+' conftest.er1 >conftest.err
13875 cat conftest.err >&5
13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877 (exit $ac_status); } &&
13878 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; } &&
13884 { ac_try='test -s conftest$ac_exeext'
13885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13886 (eval $ac_try) 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 eval "$as_ac_var=yes"
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13895 eval "$as_ac_var=no"
13898 rm -f conftest.err conftest.$ac_objext \
13899 conftest$ac_exeext conftest.$ac_ext
13901 ac_res=`eval echo '${'$as_ac_var'}'`
13902 { echo "$as_me:$LINENO: result: $ac_res" >&5
13903 echo "${ECHO_T}$ac_res" >&6; }
13904 if test `eval echo '${'$as_ac_var'}'` = yes; then
13905 cat >>confdefs.h <<_ACEOF
13906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13913 # We require memcpy.
13916 for ac_func in memcpy
13918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 if test x$gcc_no_link = xyes; then
13925 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13926 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13927 { (exit 1); exit 1; }; }
13929 cat >conftest.$ac_ext <<_ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13937 #define $ac_func innocuous_$ac_func
13939 /* System header to define __stub macros and hopefully few prototypes,
13940 which can conflict with char $ac_func (); below.
13941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13942 <limits.h> exists even on freestanding compilers. */
13945 # include <limits.h>
13947 # include <assert.h>
13952 /* Override any GCC internal prototype to avoid an error.
13953 Use char because int might match the return type of a GCC
13954 builtin and then its argument prototype would still apply. */
13959 /* The GNU C library defines this for functions which it implements
13960 to always fail with ENOSYS. Some functions are actually named
13961 something starting with __ and the normal name is an alias. */
13962 #if defined __stub_$ac_func || defined __stub___$ac_func
13969 return $ac_func ();
13974 rm -f conftest.$ac_objext conftest$ac_exeext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13976 (eval $ac_link) 2>conftest.er1
13978 grep -v '^ *+' conftest.er1 >conftest.err
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13985 (eval $ac_try) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); }; } &&
13989 { ac_try='test -s conftest$ac_exeext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 eval "$as_ac_var=yes"
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14000 eval "$as_ac_var=no"
14003 rm -f conftest.err conftest.$ac_objext \
14004 conftest$ac_exeext conftest.$ac_ext
14006 ac_res=`eval echo '${'$as_ac_var'}'`
14007 { echo "$as_me:$LINENO: result: $ac_res" >&5
14008 echo "${ECHO_T}$ac_res" >&6; }
14009 if test `eval echo '${'$as_ac_var'}'` = yes; then
14010 cat >>confdefs.h <<_ACEOF
14011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14017 if test "$memcpy_found" = no; then
14018 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
14019 echo "$as_me: error: memcpy is required" >&2;}
14020 { (exit 1); exit 1; }; }
14022 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
14023 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14024 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14025 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 ac_check_lib_save_LIBS=$LIBS
14030 if test x$gcc_no_link = xyes; then
14031 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14032 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14033 { (exit 1); exit 1; }; }
14035 cat >conftest.$ac_ext <<_ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14042 /* Override any GCC internal prototype to avoid an error.
14043 Use char because int might match the return type of a GCC
14044 builtin and then its argument prototype would still apply. */
14057 rm -f conftest.$ac_objext conftest$ac_exeext
14058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14059 (eval $ac_link) 2>conftest.er1
14061 grep -v '^ *+' conftest.er1 >conftest.err
14063 cat conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; } &&
14072 { ac_try='test -s conftest$ac_exeext'
14073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14074 (eval $ac_try) 2>&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }; }; then
14078 ac_cv_lib_dl_dlopen=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_cv_lib_dl_dlopen=no
14086 rm -f conftest.err conftest.$ac_objext \
14087 conftest$ac_exeext conftest.$ac_ext
14088 LIBS=$ac_check_lib_save_LIBS
14090 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14091 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14092 if test $ac_cv_lib_dl_dlopen = yes; then
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_DLOPEN 1
14101 { echo "$as_me:$LINENO: checking for dlopen in -ldld" >&5
14102 echo $ECHO_N "checking for dlopen in -ldld... $ECHO_C" >&6; }
14103 if test "${ac_cv_lib_dld_dlopen+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 ac_check_lib_save_LIBS=$LIBS
14108 if test x$gcc_no_link = xyes; then
14109 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14110 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14111 { (exit 1); exit 1; }; }
14113 cat >conftest.$ac_ext <<_ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14120 /* Override any GCC internal prototype to avoid an error.
14121 Use char because int might match the return type of a GCC
14122 builtin and then its argument prototype would still apply. */
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14137 (eval $ac_link) 2>conftest.er1
14139 grep -v '^ *+' conftest.er1 >conftest.err
14141 cat conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); } &&
14144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest$ac_exeext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_lib_dld_dlopen=yes
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 ac_cv_lib_dld_dlopen=no
14164 rm -f conftest.err conftest.$ac_objext \
14165 conftest$ac_exeext conftest.$ac_ext
14166 LIBS=$ac_check_lib_save_LIBS
14168 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dlopen" >&5
14169 echo "${ECHO_T}$ac_cv_lib_dld_dlopen" >&6; }
14170 if test $ac_cv_lib_dld_dlopen = yes; then
14173 cat >>confdefs.h <<\_ACEOF
14174 #define HAVE_DLOPEN 1
14182 # Some library-finding code we stole from Tcl.
14183 #--------------------------------------------------------------------
14184 # Check for the existence of the -lsocket and -lnsl libraries.
14185 # The order here is important, so that they end up in the right
14186 # order in the command line generated by make. Here are some
14187 # special considerations:
14188 # 1. Use "connect" and "accept" to check for -lsocket, and
14189 # "gethostbyname" to check for -lnsl.
14190 # 2. Use each function name only once: can't redo a check because
14191 # autoconf caches the results of the last check and won't redo it.
14192 # 3. Use -lnsl and -lsocket only if they supply procedures that
14193 # aren't already present in the normal libraries. This is because
14194 # IRIX 5.2 has libraries, but they aren't needed and they're
14195 # bogus: they goof up name resolution if used.
14196 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
14197 # To get around this problem, check for both libraries together
14198 # if -lsocket doesn't work by itself.
14199 #--------------------------------------------------------------------
14201 { echo "$as_me:$LINENO: checking for socket libraries" >&5
14202 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6; }
14203 if test "${gcj_cv_lib_sockets+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14206 gcj_cv_lib_sockets=
14208 unset ac_cv_func_connect
14209 { echo "$as_me:$LINENO: checking for connect" >&5
14210 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
14211 if test "${ac_cv_func_connect+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 if test x$gcc_no_link = xyes; then
14215 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14216 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14217 { (exit 1); exit 1; }; }
14219 cat >conftest.$ac_ext <<_ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
14226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14227 #define connect innocuous_connect
14229 /* System header to define __stub macros and hopefully few prototypes,
14230 which can conflict with char connect (); below.
14231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14232 <limits.h> exists even on freestanding compilers. */
14235 # include <limits.h>
14237 # include <assert.h>
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14249 /* The GNU C library defines this for functions which it implements
14250 to always fail with ENOSYS. Some functions are actually named
14251 something starting with __ and the normal name is an alias. */
14252 #if defined __stub_connect || defined __stub___connect
14264 rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14266 (eval $ac_link) 2>conftest.er1
14268 grep -v '^ *+' conftest.er1 >conftest.err
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest$ac_exeext'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 ac_cv_func_connect=yes
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14290 ac_cv_func_connect=no
14293 rm -f conftest.err conftest.$ac_objext \
14294 conftest$ac_exeext conftest.$ac_ext
14296 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
14297 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
14298 if test $ac_cv_func_connect = yes; then
14304 if test "$gcj_checkSocket" = 1; then
14305 unset ac_cv_func_connect
14306 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
14307 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
14308 if test "${ac_cv_lib_socket_main+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 ac_check_lib_save_LIBS=$LIBS
14312 LIBS="-lsocket $LIBS"
14313 if test x$gcc_no_link = xyes; then
14314 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14315 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14316 { (exit 1); exit 1; }; }
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14336 (eval $ac_link) 2>conftest.er1
14338 grep -v '^ *+' conftest.er1 >conftest.err
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } &&
14343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; } &&
14349 { ac_try='test -s conftest$ac_exeext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 ac_cv_lib_socket_main=yes
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14360 ac_cv_lib_socket_main=no
14363 rm -f conftest.err conftest.$ac_objext \
14364 conftest$ac_exeext conftest.$ac_ext
14365 LIBS=$ac_check_lib_save_LIBS
14367 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
14368 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
14369 if test $ac_cv_lib_socket_main = yes; then
14370 gcj_cv_lib_sockets="-lsocket"
14376 if test "$gcj_checkBoth" = 1; then
14378 LIBS="$LIBS -lsocket -lnsl"
14379 unset ac_cv_func_accept
14380 { echo "$as_me:$LINENO: checking for accept" >&5
14381 echo $ECHO_N "checking for accept... $ECHO_C" >&6; }
14382 if test "${ac_cv_func_accept+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 if test x$gcc_no_link = xyes; then
14386 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14387 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14388 { (exit 1); exit 1; }; }
14390 cat >conftest.$ac_ext <<_ACEOF
14393 cat confdefs.h >>conftest.$ac_ext
14394 cat >>conftest.$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14396 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
14397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14398 #define accept innocuous_accept
14400 /* System header to define __stub macros and hopefully few prototypes,
14401 which can conflict with char accept (); below.
14402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14403 <limits.h> exists even on freestanding compilers. */
14406 # include <limits.h>
14408 # include <assert.h>
14413 /* Override any GCC internal prototype to avoid an error.
14414 Use char because int might match the return type of a GCC
14415 builtin and then its argument prototype would still apply. */
14420 /* The GNU C library defines this for functions which it implements
14421 to always fail with ENOSYS. Some functions are actually named
14422 something starting with __ and the normal name is an alias. */
14423 #if defined __stub_accept || defined __stub___accept
14435 rm -f conftest.$ac_objext conftest$ac_exeext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14437 (eval $ac_link) 2>conftest.er1
14439 grep -v '^ *+' conftest.er1 >conftest.err
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest$ac_exeext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_cv_func_accept=yes
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 ac_cv_func_accept=no
14464 rm -f conftest.err conftest.$ac_objext \
14465 conftest$ac_exeext conftest.$ac_ext
14467 { echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
14468 echo "${ECHO_T}$ac_cv_func_accept" >&6; }
14469 if test $ac_cv_func_accept = yes; then
14471 gcj_cv_lib_sockets="-lsocket -lnsl"
14474 unset ac_cv_func_accept
14477 unset ac_cv_func_gethostbyname
14479 LIBS="$LIBS $gcj_cv_lib_sockets"
14480 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
14481 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
14482 if test "${ac_cv_func_gethostbyname+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 if test x$gcc_no_link = xyes; then
14486 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14487 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14488 { (exit 1); exit 1; }; }
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498 #define gethostbyname innocuous_gethostbyname
14500 /* System header to define __stub macros and hopefully few prototypes,
14501 which can conflict with char gethostbyname (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
14506 # include <limits.h>
14508 # include <assert.h>
14511 #undef gethostbyname
14513 /* Override any GCC internal prototype to avoid an error.
14514 Use char because int might match the return type of a GCC
14515 builtin and then its argument prototype would still apply. */
14519 char gethostbyname ();
14520 /* The GNU C library defines this for functions which it implements
14521 to always fail with ENOSYS. Some functions are actually named
14522 something starting with __ and the normal name is an alias. */
14523 #if defined __stub_gethostbyname || defined __stub___gethostbyname
14530 return gethostbyname ();
14535 rm -f conftest.$ac_objext conftest$ac_exeext
14536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14537 (eval $ac_link) 2>conftest.er1
14539 grep -v '^ *+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
14544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546 (eval $ac_try) 2>&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); }; } &&
14550 { ac_try='test -s conftest$ac_exeext'
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; }; then
14556 ac_cv_func_gethostbyname=yes
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14561 ac_cv_func_gethostbyname=no
14564 rm -f conftest.err conftest.$ac_objext \
14565 conftest$ac_exeext conftest.$ac_ext
14567 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
14568 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
14569 if test $ac_cv_func_gethostbyname = yes; then
14572 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
14573 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
14574 if test "${ac_cv_lib_nsl_main+set}" = set; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 ac_check_lib_save_LIBS=$LIBS
14579 if test x$gcc_no_link = xyes; then
14580 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14581 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14582 { (exit 1); exit 1; }; }
14584 cat >conftest.$ac_ext <<_ACEOF
14587 cat confdefs.h >>conftest.$ac_ext
14588 cat >>conftest.$ac_ext <<_ACEOF
14589 /* end confdefs.h. */
14600 rm -f conftest.$ac_objext conftest$ac_exeext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14602 (eval $ac_link) 2>conftest.er1
14604 grep -v '^ *+' conftest.er1 >conftest.err
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } &&
14609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14611 (eval $ac_try) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); }; } &&
14615 { ac_try='test -s conftest$ac_exeext'
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; }; then
14621 ac_cv_lib_nsl_main=yes
14623 echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 ac_cv_lib_nsl_main=no
14629 rm -f conftest.err conftest.$ac_objext \
14630 conftest$ac_exeext conftest.$ac_ext
14631 LIBS=$ac_check_lib_save_LIBS
14633 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
14634 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
14635 if test $ac_cv_lib_nsl_main = yes; then
14636 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
14641 unset ac_cv_func_gethostbyname
14645 { echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
14646 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6; }
14647 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
14649 if test "$with_system_zlib" = yes; then
14650 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
14651 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
14652 if test "${ac_cv_lib_z_deflate+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14655 ac_check_lib_save_LIBS=$LIBS
14657 if test x$gcc_no_link = xyes; then
14658 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14660 { (exit 1); exit 1; }; }
14662 cat >conftest.$ac_ext <<_ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14669 /* Override any GCC internal prototype to avoid an error.
14670 Use char because int might match the return type of a GCC
14671 builtin and then its argument prototype would still apply. */
14684 rm -f conftest.$ac_objext conftest$ac_exeext
14685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14686 (eval $ac_link) 2>conftest.er1
14688 grep -v '^ *+' conftest.er1 >conftest.err
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
14693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; } &&
14699 { ac_try='test -s conftest$ac_exeext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_cv_lib_z_deflate=yes
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ac_cv_lib_z_deflate=no
14713 rm -f conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LIBS=$ac_check_lib_save_LIBS
14717 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
14718 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
14719 if test $ac_cv_lib_z_deflate = yes; then
14727 # Test for Gtk stuff, if asked for.
14728 if test "$use_gtk_awt" = yes; then
14732 if test -z "$PKG_CONFIG"; then
14733 # Extract the first word of "pkg-config", so it can be a program name with args.
14734 set dummy pkg-config; ac_word=$2
14735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14737 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 case $PKG_CONFIG in
14742 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14746 for as_dir in $PATH
14749 test -z "$as_dir" && as_dir=.
14750 for ac_exec_ext in '' $ac_executable_extensions; do
14751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14752 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14760 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14764 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14765 if test -n "$PKG_CONFIG"; then
14766 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14767 echo "${ECHO_T}$PKG_CONFIG" >&6; }
14769 { echo "$as_me:$LINENO: result: no" >&5
14770 echo "${ECHO_T}no" >&6; }
14776 if test "$PKG_CONFIG" = "no" ; then
14777 echo "*** The pkg-config script could not be found. Make sure it is"
14778 echo "*** in your path, or set the PKG_CONFIG environment variable"
14779 echo "*** to the full path to pkg-config."
14780 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14782 PKG_CONFIG_MIN_VERSION=0.9.0
14783 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14784 { echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
14785 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6; }
14787 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
14788 { echo "$as_me:$LINENO: result: yes" >&5
14789 echo "${ECHO_T}yes" >&6; }
14792 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
14793 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
14794 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
14795 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
14796 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
14798 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
14799 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
14800 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
14801 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
14802 echo "${ECHO_T}$GTK_LIBS" >&6; }
14806 ## If we have a custom action on failure, don't print errors, but
14807 ## do set a variable so people can do so.
14808 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
14809 echo $GTK_PKG_ERRORS
14815 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14816 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14820 if test $succeeded = yes; then
14823 { { echo "$as_me:$LINENO: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14824 echo "$as_me: error: Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14825 { (exit 1); exit 1; }; }
14834 if test -z "$PKG_CONFIG"; then
14835 # Extract the first word of "pkg-config", so it can be a program name with args.
14836 set dummy pkg-config; ac_word=$2
14837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14839 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 case $PKG_CONFIG in
14844 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14851 test -z "$as_dir" && as_dir=.
14852 for ac_exec_ext in '' $ac_executable_extensions; do
14853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14854 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14862 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14866 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14867 if test -n "$PKG_CONFIG"; then
14868 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14869 echo "${ECHO_T}$PKG_CONFIG" >&6; }
14871 { echo "$as_me:$LINENO: result: no" >&5
14872 echo "${ECHO_T}no" >&6; }
14878 if test "$PKG_CONFIG" = "no" ; then
14879 echo "*** The pkg-config script could not be found. Make sure it is"
14880 echo "*** in your path, or set the PKG_CONFIG environment variable"
14881 echo "*** to the full path to pkg-config."
14882 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14884 PKG_CONFIG_MIN_VERSION=0.9.0
14885 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14886 { echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
14887 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6; }
14889 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
14890 { echo "$as_me:$LINENO: result: yes" >&5
14891 echo "${ECHO_T}yes" >&6; }
14894 { echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
14895 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6; }
14896 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14897 { echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
14898 echo "${ECHO_T}$GLIB_CFLAGS" >&6; }
14900 { echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
14901 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6; }
14902 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14903 { echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
14904 echo "${ECHO_T}$GLIB_LIBS" >&6; }
14908 ## If we have a custom action on failure, don't print errors, but
14909 ## do set a variable so people can do so.
14910 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
14911 echo $GLIB_PKG_ERRORS
14917 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14918 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14922 if test $succeeded = yes; then
14925 { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14926 echo "$as_me: error: Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14927 { (exit 1); exit 1; }; }
14936 if test -z "$PKG_CONFIG"; then
14937 # Extract the first word of "pkg-config", so it can be a program name with args.
14938 set dummy pkg-config; ac_word=$2
14939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14941 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14942 echo $ECHO_N "(cached) $ECHO_C" >&6
14944 case $PKG_CONFIG in
14946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14950 for as_dir in $PATH
14953 test -z "$as_dir" && as_dir=.
14954 for ac_exec_ext in '' $ac_executable_extensions; do
14955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
14956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14964 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14968 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14969 if test -n "$PKG_CONFIG"; then
14970 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14971 echo "${ECHO_T}$PKG_CONFIG" >&6; }
14973 { echo "$as_me:$LINENO: result: no" >&5
14974 echo "${ECHO_T}no" >&6; }
14980 if test "$PKG_CONFIG" = "no" ; then
14981 echo "*** The pkg-config script could not be found. Make sure it is"
14982 echo "*** in your path, or set the PKG_CONFIG environment variable"
14983 echo "*** to the full path to pkg-config."
14984 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14986 PKG_CONFIG_MIN_VERSION=0.9.0
14987 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14988 { echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
14989 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6; }
14991 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
14992 { echo "$as_me:$LINENO: result: yes" >&5
14993 echo "${ECHO_T}yes" >&6; }
14996 { echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
14997 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6; }
14998 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
14999 { echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
15000 echo "${ECHO_T}$LIBART_CFLAGS" >&6; }
15002 { echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
15003 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6; }
15004 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
15005 { echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
15006 echo "${ECHO_T}$LIBART_LIBS" >&6; }
15010 ## If we have a custom action on failure, don't print errors, but
15011 ## do set a variable so people can do so.
15012 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
15013 echo $LIBART_PKG_ERRORS
15019 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
15020 echo "*** See http://www.freedesktop.org/software/pkgconfig"
15024 if test $succeeded = yes; then
15027 { { echo "$as_me:$LINENO: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
15028 echo "$as_me: error: Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
15029 { (exit 1); exit 1; }; }
15035 # We require the XTest Extension to support java.awt.Robot.
15036 { echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
15037 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6; }
15038 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-lXtst ${X_LIBS} $LIBS"
15043 if test x$gcc_no_link = xyes; then
15044 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15045 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15046 { (exit 1); exit 1; }; }
15048 cat >conftest.$ac_ext <<_ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15055 /* Override any GCC internal prototype to avoid an error.
15056 Use char because int might match the return type of a GCC
15057 builtin and then its argument prototype would still apply. */
15061 char XTestQueryExtension ();
15065 return XTestQueryExtension ();
15070 rm -f conftest.$ac_objext conftest$ac_exeext
15071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15072 (eval $ac_link) 2>conftest.er1
15074 grep -v '^ *+' conftest.er1 >conftest.err
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } &&
15079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15081 (eval $ac_try) 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; } &&
15085 { ac_try='test -s conftest$ac_exeext'
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; }; then
15091 ac_cv_lib_Xtst_XTestQueryExtension=yes
15093 echo "$as_me: failed program was:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 ac_cv_lib_Xtst_XTestQueryExtension=no
15099 rm -f conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15101 LIBS=$ac_check_lib_save_LIBS
15103 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
15104 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
15105 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
15108 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
15109 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
15110 { (exit 1); exit 1; }; }
15115 # On Solaris, and maybe other architectures, the Boehm collector
15117 if test "$GC" = boehm; then
15118 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
15119 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
15120 if test "${ac_cv_lib_dl_main+set}" = set; then
15121 echo $ECHO_N "(cached) $ECHO_C" >&6
15123 ac_check_lib_save_LIBS=$LIBS
15125 if test x$gcc_no_link = xyes; then
15126 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15127 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15128 { (exit 1); exit 1; }; }
15130 cat >conftest.$ac_ext <<_ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15148 (eval $ac_link) 2>conftest.er1
15150 grep -v '^ *+' conftest.er1 >conftest.err
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest$ac_exeext'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_cv_lib_dl_main=yes
15169 echo "$as_me: failed program was:" >&5
15170 sed 's/^/| /' conftest.$ac_ext >&5
15172 ac_cv_lib_dl_main=no
15175 rm -f conftest.err conftest.$ac_objext \
15176 conftest$ac_exeext conftest.$ac_ext
15177 LIBS=$ac_check_lib_save_LIBS
15179 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
15180 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
15181 if test $ac_cv_lib_dl_main = yes; then
15182 SYSTEMSPEC="$SYSTEMSPEC -ldl"
15188 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
15190 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
15191 *) CLASSPATH_SEPARATOR=':' ;;
15195 # We must search the source tree for java.lang, since we still don't
15196 # have libgcj.jar nor java/lang/*.class
15197 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
15198 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
15200 # Since some classes depend on this one, we need its source available
15201 # before we can do any GCJ compilation test :-(
15202 if test ! -f gnu/classpath/Configuration.java; then
15203 test -d gnu || mkdir gnu
15204 test -d gnu/classpath || mkdir gnu/classpath
15205 # Note that it is not crucial that all the values here be correct.
15206 sed -e "s,@prefix@,$prefix," \
15207 -e "s,@VERSION@,$VERSION," \
15208 -e "s,@LIBDEBUG@,false," \
15209 -e "s,@INIT_LOAD_LIBRARY@,false," \
15210 -e "s,@@,$LIBGCJDEBUG," \
15211 -e "s,@default_toolkit@,$TOOLKIT," \
15212 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
15213 -e "s,@GTK_CAIRO_ENABLED@,false," \
15214 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
15215 > gnu/classpath/Configuration.java
15216 # We do not want to redirect the output of the grep below to /dev/null,
15217 # but we add /dev/null to the input list so that grep will print the
15218 # filename of Configuration.java in case it finds any matches.
15219 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
15220 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
15221 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
15222 { (exit 1); exit 1; }; }
15226 if test -n "$ac_tool_prefix"; then
15227 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
15228 set dummy ${ac_tool_prefix}gcj; ac_word=$2
15229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15231 if test "${ac_cv_prog_GCJ+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 if test -n "$GCJ"; then
15235 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
15237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238 for as_dir in $PATH
15241 test -z "$as_dir" && as_dir=.
15242 for ac_exec_ext in '' $ac_executable_extensions; do
15243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15244 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
15245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15254 GCJ=$ac_cv_prog_GCJ
15255 if test -n "$GCJ"; then
15256 { echo "$as_me:$LINENO: result: $GCJ" >&5
15257 echo "${ECHO_T}$GCJ" >&6; }
15259 { echo "$as_me:$LINENO: result: no" >&5
15260 echo "${ECHO_T}no" >&6; }
15265 if test -z "$ac_cv_prog_GCJ"; then
15267 # Extract the first word of "gcj", so it can be a program name with args.
15268 set dummy gcj; ac_word=$2
15269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15271 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 if test -n "$ac_ct_GCJ"; then
15275 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
15277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15278 for as_dir in $PATH
15281 test -z "$as_dir" && as_dir=.
15282 for ac_exec_ext in '' $ac_executable_extensions; do
15283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
15284 ac_cv_prog_ac_ct_GCJ="gcj"
15285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15294 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
15295 if test -n "$ac_ct_GCJ"; then
15296 { echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
15297 echo "${ECHO_T}$ac_ct_GCJ" >&6; }
15299 { echo "$as_me:$LINENO: result: no" >&5
15300 echo "${ECHO_T}no" >&6; }
15303 if test "x$ac_ct_GCJ" = x; then
15306 case $cross_compiling:$ac_tool_warned in
15308 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
15309 whose name does not start with the host triplet. If you think this
15310 configuration is useful to you, please write to autoconf@gnu.org." >&5
15311 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
15312 whose name does not start with the host triplet. If you think this
15313 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
15314 ac_tool_warned=yes ;;
15319 GCJ="$ac_cv_prog_GCJ"
15322 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
15328 rm -f gnu/classpath/Configuration.java
15330 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
15332 { echo "$as_me:$LINENO: checking for void *" >&5
15333 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
15334 if test "${ac_cv_type_void_p+set}" = set; then
15335 echo $ECHO_N "(cached) $ECHO_C" >&6
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 $ac_includes_default
15344 typedef void * ac__type_new_;
15348 if ((ac__type_new_ *) 0)
15350 if (sizeof (ac__type_new_))
15356 rm -f conftest.$ac_objext
15357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15358 (eval $ac_compile) 2>conftest.er1
15360 grep -v '^ *+' conftest.er1 >conftest.err
15362 cat conftest.err >&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; } &&
15371 { ac_try='test -s conftest.$ac_objext'
15372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373 (eval $ac_try) 2>&5
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); }; }; then
15377 ac_cv_type_void_p=yes
15379 echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15382 ac_cv_type_void_p=no
15385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15387 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15388 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
15390 { echo "$as_me:$LINENO: checking size of void *" >&5
15391 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
15392 if test "${ac_cv_sizeof_void_p+set}" = set; then
15393 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 if test "$ac_cv_type_void_p" = yes; then
15396 # The cast to long int works around a bug in the HP C Compiler
15397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15399 # This bug is HP SR number 8606223364.
15400 if test "$cross_compiling" = yes; then
15401 # Depending upon the size, compute the lo and hi bounds.
15402 cat >conftest.$ac_ext <<_ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 $ac_includes_default
15409 typedef void * ac__type_sizeof_;
15413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
15420 rm -f conftest.$ac_objext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15422 (eval $ac_compile) 2>conftest.er1
15424 grep -v '^ *+' conftest.er1 >conftest.err
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; } &&
15435 { ac_try='test -s conftest.$ac_objext'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15443 cat >conftest.$ac_ext <<_ACEOF
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15449 $ac_includes_default
15450 typedef void * ac__type_sizeof_;
15454 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15461 rm -f conftest.$ac_objext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15463 (eval $ac_compile) 2>conftest.er1
15465 grep -v '^ *+' conftest.er1 >conftest.err
15467 cat conftest.err >&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; } &&
15476 { ac_try='test -s conftest.$ac_objext'
15477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15478 (eval $ac_try) 2>&5
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); }; }; then
15482 ac_hi=$ac_mid; break
15484 echo "$as_me: failed program was:" >&5
15485 sed 's/^/| /' conftest.$ac_ext >&5
15487 ac_lo=`expr $ac_mid + 1`
15488 if test $ac_lo -le $ac_mid; then
15492 ac_mid=`expr 2 '*' $ac_mid + 1`
15495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15501 cat >conftest.$ac_ext <<_ACEOF
15504 cat confdefs.h >>conftest.$ac_ext
15505 cat >>conftest.$ac_ext <<_ACEOF
15506 /* end confdefs.h. */
15507 $ac_includes_default
15508 typedef void * ac__type_sizeof_;
15512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
15519 rm -f conftest.$ac_objext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15521 (eval $ac_compile) 2>conftest.er1
15523 grep -v '^ *+' conftest.er1 >conftest.err
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
15528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15530 (eval $ac_try) 2>&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); }; } &&
15534 { ac_try='test -s conftest.$ac_objext'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; }; then
15542 cat >conftest.$ac_ext <<_ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 $ac_includes_default
15549 typedef void * ac__type_sizeof_;
15553 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
15560 rm -f conftest.$ac_objext
15561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15562 (eval $ac_compile) 2>conftest.er1
15564 grep -v '^ *+' conftest.er1 >conftest.err
15566 cat conftest.err >&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); } &&
15569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15571 (eval $ac_try) 2>&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); }; } &&
15575 { ac_try='test -s conftest.$ac_objext'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_lo=$ac_mid; break
15583 echo "$as_me: failed program was:" >&5
15584 sed 's/^/| /' conftest.$ac_ext >&5
15586 ac_hi=`expr '(' $ac_mid ')' - 1`
15587 if test $ac_mid -le $ac_hi; then
15591 ac_mid=`expr 2 '*' $ac_mid`
15594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15607 # Binary search between lo and hi bounds.
15608 while test "x$ac_lo" != "x$ac_hi"; do
15609 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 $ac_includes_default
15617 typedef void * ac__type_sizeof_;
15621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
15628 rm -f conftest.$ac_objext
15629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15630 (eval $ac_compile) 2>conftest.er1
15632 grep -v '^ *+' conftest.er1 >conftest.err
15634 cat conftest.err >&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); } &&
15637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; } &&
15643 { ac_try='test -s conftest.$ac_objext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 ac_lo=`expr '(' $ac_mid ')' + 1`
15657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15660 ?*) ac_cv_sizeof_void_p=$ac_lo;;
15661 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
15662 See \`config.log' for more details." >&5
15663 echo "$as_me: error: cannot compute sizeof (void *)
15664 See \`config.log' for more details." >&2;}
15665 { (exit 77); exit 77; }; } ;;
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 $ac_includes_default
15675 typedef void * ac__type_sizeof_;
15676 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
15677 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
15679 #include <stdlib.h>
15684 FILE *f = fopen ("conftest.val", "w");
15687 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
15689 long int i = longval ();
15690 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15692 fprintf (f, "%ld\n", i);
15696 unsigned long int i = ulongval ();
15697 if (i != ((long int) (sizeof (ac__type_sizeof_))))
15699 fprintf (f, "%lu\n", i);
15701 return ferror (f) || fclose (f) != 0;
15707 rm -f conftest$ac_exeext
15708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15709 (eval $ac_link) 2>&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; }; then
15718 ac_cv_sizeof_void_p=`cat conftest.val`
15720 echo "$as_me: program exited with status $ac_status" >&5
15721 echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15724 ( exit $ac_status )
15725 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
15726 See \`config.log' for more details." >&5
15727 echo "$as_me: error: cannot compute sizeof (void *)
15728 See \`config.log' for more details." >&2;}
15729 { (exit 77); exit 77; }; }
15731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15735 ac_cv_sizeof_void_p=0
15738 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15739 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
15740 cat >>confdefs.h <<_ACEOF
15741 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15746 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15747 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
15748 if test "${ac_cv_c_bigendian+set}" = set; then
15749 echo $ECHO_N "(cached) $ECHO_C" >&6
15751 # See if sys/param.h defines the BYTE_ORDER macro.
15752 cat >conftest.$ac_ext <<_ACEOF
15755 cat confdefs.h >>conftest.$ac_ext
15756 cat >>conftest.$ac_ext <<_ACEOF
15757 /* end confdefs.h. */
15758 #include <sys/types.h>
15759 #include <sys/param.h>
15764 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15765 bogus endian macros
15772 rm -f conftest.$ac_objext
15773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15774 (eval $ac_compile) 2>conftest.er1
15776 grep -v '^ *+' conftest.er1 >conftest.err
15778 cat conftest.err >&5
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); } &&
15781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; } &&
15787 { ac_try='test -s conftest.$ac_objext'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; }; then
15793 # It does; now see whether it defined to BIG_ENDIAN or not.
15794 cat >conftest.$ac_ext <<_ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h. */
15800 #include <sys/types.h>
15801 #include <sys/param.h>
15806 #if BYTE_ORDER != BIG_ENDIAN
15814 rm -f conftest.$ac_objext
15815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15816 (eval $ac_compile) 2>conftest.er1
15818 grep -v '^ *+' conftest.er1 >conftest.err
15820 cat conftest.err >&5
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
15823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; } &&
15829 { ac_try='test -s conftest.$ac_objext'
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_cv_c_bigendian=yes
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15840 ac_cv_c_bigendian=no
15843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 # It does not; compile a test program.
15849 if test "$cross_compiling" = yes; then
15850 # try to guess the endianness by grepping values into an object file
15851 ac_cv_c_bigendian=unknown
15852 cat >conftest.$ac_ext <<_ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15859 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15860 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15861 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15862 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15863 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15867 _ascii (); _ebcdic ();
15872 rm -f conftest.$ac_objext
15873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15874 (eval $ac_compile) 2>conftest.er1
15876 grep -v '^ *+' conftest.er1 >conftest.err
15878 cat conftest.err >&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); } &&
15881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15883 (eval $ac_try) 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); }; } &&
15887 { ac_try='test -s conftest.$ac_objext'
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; }; then
15893 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15894 ac_cv_c_bigendian=yes
15896 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15897 if test "$ac_cv_c_bigendian" = unknown; then
15898 ac_cv_c_bigendian=no
15900 # finding both strings is unlikely to happen, but who knows?
15901 ac_cv_c_bigendian=unknown
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15913 cat >conftest.$ac_ext <<_ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15919 $ac_includes_default
15924 /* Are we little or big endian? From Harbison&Steele. */
15928 char c[sizeof (long int)];
15931 return u.c[sizeof (long int) - 1] == 1;
15937 rm -f conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_cv_c_bigendian=no
15950 echo "$as_me: program exited with status $ac_status" >&5
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15954 ( exit $ac_status )
15955 ac_cv_c_bigendian=yes
15957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15965 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15966 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
15967 case $ac_cv_c_bigendian in
15970 cat >>confdefs.h <<\_ACEOF
15971 #define WORDS_BIGENDIAN 1
15977 { { echo "$as_me:$LINENO: error: unknown endianness
15978 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15979 echo "$as_me: error: unknown endianness
15980 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15981 { (exit 1); exit 1; }; } ;;
15989 if test -z "$ZLIBSPEC"; then
15990 # Use zlib from the GCC tree.
15991 ZINCS='-I$(top_srcdir)/../zlib'
15992 ZLIBS=../zlib/libzgcj_convenience.la
15995 SYS_ZLIBS="$ZLIBSPEC"
16008 if test "$NATIVE" = yes; then
16018 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
16019 NEEDS_DATA_START_TRUE=
16020 NEEDS_DATA_START_FALSE='#'
16022 NEEDS_DATA_START_TRUE='#'
16023 NEEDS_DATA_START_FALSE=
16028 # Process the option "--enable-version-specific-runtime-libs"
16029 # Calculate toolexeclibdir
16030 case ${version_specific_libs} in
16032 # Need the gcc compiler version to know where to install libraries
16033 # and header files if --enable-version-specific-runtime-libs option
16035 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
16036 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
16037 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
16038 toolexeclibdir=$toolexecmainlibdir
16041 if test -n "$with_cross_host" &&
16042 test x"$with_cross_host" != x"no"; then
16043 # Install a library built with a cross compiler in tooldir, not libdir.
16044 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
16045 toolexecmainlibdir='$(toolexecdir)/lib'
16047 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
16048 toolexecmainlibdir='$(libdir)'
16050 multi_os_directory=`$CC -print-multi-os-directory`
16051 case $multi_os_directory in
16052 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
16053 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
16061 # Determine where the standard .db file is found.
16062 multi_os_directory=`$CC -print-multi-os-directory`
16063 case $multi_os_directory in
16064 .) dbexecdir='$(libdir)/gcj-$(gcc_version)' ;; # Avoid /.
16065 *) dbexecdir='$(libdir)/'$multi_os_directory'/gcj-$(gcc_version)' ;;
16069 # Determine gcj version number.
16070 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
16071 GCJVERSION=$gcjversion
16074 cat >>confdefs.h <<_ACEOF
16075 #define GCJVERSION "$GCJVERSION"
16080 cat >>confdefs.h <<\_ACEOF
16081 #define JV_VERSION "1.4.2"
16085 cat >>confdefs.h <<\_ACEOF
16086 #define JV_API_VERSION "1.4"
16091 case "${with_gxx_include_dir}" in
16093 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
16094 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
16095 { (exit 1); exit 1; }; }
16098 case "${enable_version_specific_runtime_libs}" in
16099 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
16101 libstdcxx_incdir='c++/$(gcc_version)'
16102 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
16104 *) gxx_include_dir=${with_gxx_include_dir} ;;
16110 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
16111 # On that system, sys/ioctl.h will not include sys/filio.h unless
16112 # BSD_COMP is defined; just including sys/filio.h is simpler.
16113 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
16114 # for now. If you change this, you also must update natFile.cc.
16136 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
16137 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
16138 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
16139 pwd.h sys/config.h stdint.h langinfo.h locale.h \
16140 dirent.h sys/rw_lock.h
16142 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16147 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 ac_res=`eval echo '${'$as_ac_Header'}'`
16150 { echo "$as_me:$LINENO: result: $ac_res" >&5
16151 echo "${ECHO_T}$ac_res" >&6; }
16153 # Is the header compilable?
16154 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 $ac_includes_default
16163 #include <$ac_header>
16165 rm -f conftest.$ac_objext
16166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16167 (eval $ac_compile) 2>conftest.er1
16169 grep -v '^ *+' conftest.er1 >conftest.err
16171 cat conftest.err >&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); } &&
16174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16176 (eval $ac_try) 2>&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); }; } &&
16180 { ac_try='test -s conftest.$ac_objext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_header_compiler=yes
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_header_compiler=no
16194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16196 echo "${ECHO_T}$ac_header_compiler" >&6; }
16198 # Is the header present?
16199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16201 cat >conftest.$ac_ext <<_ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 #include <$ac_header>
16209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16212 grep -v '^ *+' conftest.er1 >conftest.err
16214 cat conftest.err >&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } >/dev/null; then
16217 if test -s conftest.err; then
16218 ac_cpp_err=$ac_c_preproc_warn_flag
16219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16226 if test -z "$ac_cpp_err"; then
16227 ac_header_preproc=yes
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ac_header_preproc=no
16235 rm -f conftest.err conftest.$ac_ext
16236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16237 echo "${ECHO_T}$ac_header_preproc" >&6; }
16239 # So? What about this header?
16240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16246 ac_header_preproc=yes
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16269 eval "$as_ac_Header=\$ac_header_preproc"
16271 ac_res=`eval echo '${'$as_ac_Header'}'`
16272 { echo "$as_me:$LINENO: result: $ac_res" >&5
16273 echo "${ECHO_T}$ac_res" >&6; }
16276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16277 cat >>confdefs.h <<_ACEOF
16278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16286 for ac_header in inttypes.h
16288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16293 echo $ECHO_N "(cached) $ECHO_C" >&6
16295 ac_res=`eval echo '${'$as_ac_Header'}'`
16296 { echo "$as_me:$LINENO: result: $ac_res" >&5
16297 echo "${ECHO_T}$ac_res" >&6; }
16299 # Is the header compilable?
16300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16302 cat >conftest.$ac_ext <<_ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16308 $ac_includes_default
16309 #include <$ac_header>
16311 rm -f conftest.$ac_objext
16312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16313 (eval $ac_compile) 2>conftest.er1
16315 grep -v '^ *+' conftest.er1 >conftest.err
16317 cat conftest.err >&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
16320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; } &&
16326 { ac_try='test -s conftest.$ac_objext'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; }; then
16332 ac_header_compiler=yes
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_header_compiler=no
16340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16341 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16342 echo "${ECHO_T}$ac_header_compiler" >&6; }
16344 # Is the header present?
16345 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16347 cat >conftest.$ac_ext <<_ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353 #include <$ac_header>
16355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16358 grep -v '^ *+' conftest.er1 >conftest.err
16360 cat conftest.err >&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); } >/dev/null; then
16363 if test -s conftest.err; then
16364 ac_cpp_err=$ac_c_preproc_warn_flag
16365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16372 if test -z "$ac_cpp_err"; then
16373 ac_header_preproc=yes
16375 echo "$as_me: failed program was:" >&5
16376 sed 's/^/| /' conftest.$ac_ext >&5
16378 ac_header_preproc=no
16381 rm -f conftest.err conftest.$ac_ext
16382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16383 echo "${ECHO_T}$ac_header_preproc" >&6; }
16385 # So? What about this header?
16386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16391 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16392 ac_header_preproc=yes
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16400 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16402 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16405 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16406 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16410 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 eval "$as_ac_Header=\$ac_header_preproc"
16417 ac_res=`eval echo '${'$as_ac_Header'}'`
16418 { echo "$as_me:$LINENO: result: $ac_res" >&5
16419 echo "${ECHO_T}$ac_res" >&6; }
16422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16423 cat >>confdefs.h <<_ACEOF
16424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16428 cat >>confdefs.h <<\_ACEOF
16429 #define HAVE_INTTYPES_H 1
16433 cat >>confdefs.h <<\_ACEOF
16434 #define JV_HAVE_INTTYPES_H 1
16442 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
16443 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
16444 if test "${ac_cv_header_sys_wait_h+set}" = set; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16447 cat >conftest.$ac_ext <<_ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 #include <sys/types.h>
16454 #include <sys/wait.h>
16455 #ifndef WEXITSTATUS
16456 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
16459 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
16467 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
16472 rm -f conftest.$ac_objext
16473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16474 (eval $ac_compile) 2>conftest.er1
16476 grep -v '^ *+' conftest.er1 >conftest.err
16478 cat conftest.err >&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } &&
16481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483 (eval $ac_try) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); }; } &&
16487 { ac_try='test -s conftest.$ac_objext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_cv_header_sys_wait_h=yes
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_cv_header_sys_wait_h=no
16501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16503 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
16504 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
16505 if test $ac_cv_header_sys_wait_h = yes; then
16507 cat >>confdefs.h <<\_ACEOF
16508 #define HAVE_SYS_WAIT_H 1
16514 { echo "$as_me:$LINENO: checking for ssize_t" >&5
16515 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
16516 if test "${ac_cv_type_ssize_t+set}" = set; then
16517 echo $ECHO_N "(cached) $ECHO_C" >&6
16519 cat >conftest.$ac_ext <<_ACEOF
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16525 $ac_includes_default
16526 typedef ssize_t ac__type_new_;
16530 if ((ac__type_new_ *) 0)
16532 if (sizeof (ac__type_new_))
16538 rm -f conftest.$ac_objext
16539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16540 (eval $ac_compile) 2>conftest.er1
16542 grep -v '^ *+' conftest.er1 >conftest.err
16544 cat conftest.err >&5
16545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546 (exit $ac_status); } &&
16547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; } &&
16553 { ac_try='test -s conftest.$ac_objext'
16554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16555 (eval $ac_try) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); }; }; then
16559 ac_cv_type_ssize_t=yes
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ac_cv_type_ssize_t=no
16567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16569 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16570 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
16571 if test $ac_cv_type_ssize_t = yes; then
16575 cat >>confdefs.h <<_ACEOF
16576 #define ssize_t int
16582 { echo "$as_me:$LINENO: checking for in_addr_t" >&5
16583 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6; }
16584 cat >conftest.$ac_ext <<_ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590 #include <sys/types.h>
16592 #include <stdlib.h>
16593 #include <stddef.h>
16595 #if HAVE_NETINET_IN_H
16596 #include <netinet/in.h>
16606 rm -f conftest.$ac_objext
16607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16608 (eval $ac_compile) 2>conftest.er1
16610 grep -v '^ *+' conftest.er1 >conftest.err
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } &&
16615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest.$ac_objext'
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16628 cat >>confdefs.h <<\_ACEOF
16629 #define HAVE_IN_ADDR_T 1
16632 { echo "$as_me:$LINENO: result: yes" >&5
16633 echo "${ECHO_T}yes" >&6; }
16635 echo "$as_me: failed program was:" >&5
16636 sed 's/^/| /' conftest.$ac_ext >&5
16638 { echo "$as_me:$LINENO: result: no" >&5
16639 echo "${ECHO_T}no" >&6; }
16642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16644 { echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
16645 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6; }
16646 cat >conftest.$ac_ext <<_ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h. */
16652 #include <netinet/in.h>
16656 struct ip_mreq mreq;
16661 rm -f conftest.$ac_objext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16663 (eval $ac_compile) 2>conftest.er1
16665 grep -v '^ *+' conftest.er1 >conftest.err
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try='test -s conftest.$ac_objext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16683 cat >>confdefs.h <<\_ACEOF
16684 #define HAVE_STRUCT_IP_MREQ 1
16687 { echo "$as_me:$LINENO: result: yes" >&5
16688 echo "${ECHO_T}yes" >&6; }
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 { echo "$as_me:$LINENO: result: no" >&5
16694 echo "${ECHO_T}no" >&6; }
16697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16699 { echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
16700 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6; }
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <netinet/in.h>
16711 struct ipv6_mreq mreq6;
16716 rm -f conftest.$ac_objext
16717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16718 (eval $ac_compile) 2>conftest.er1
16720 grep -v '^ *+' conftest.er1 >conftest.err
16722 cat conftest.err >&5
16723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16724 (exit $ac_status); } &&
16725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16727 (eval $ac_try) 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; } &&
16731 { ac_try='test -s conftest.$ac_objext'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; }; then
16738 cat >>confdefs.h <<\_ACEOF
16739 #define HAVE_STRUCT_IPV6_MREQ 1
16742 { echo "$as_me:$LINENO: result: yes" >&5
16743 echo "${ECHO_T}yes" >&6; }
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 { echo "$as_me:$LINENO: result: no" >&5
16749 echo "${ECHO_T}no" >&6; }
16752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16754 { echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
16755 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6; }
16756 cat >conftest.$ac_ext <<_ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 #include <netinet/in.h>
16766 struct sockaddr_in6 addr6;
16771 rm -f conftest.$ac_objext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16773 (eval $ac_compile) 2>conftest.er1
16775 grep -v '^ *+' conftest.er1 >conftest.err
16777 cat conftest.err >&5
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
16780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest.$ac_objext'
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16793 cat >>confdefs.h <<\_ACEOF
16794 #define HAVE_INET6 1
16797 { echo "$as_me:$LINENO: result: yes" >&5
16798 echo "${ECHO_T}yes" >&6; }
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 { echo "$as_me:$LINENO: result: no" >&5
16804 echo "${ECHO_T}no" >&6; }
16807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16809 { echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
16810 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6; }
16811 cat >conftest.$ac_ext <<_ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817 #define _POSIX_PII_SOCKET
16818 #include <sys/types.h>
16819 #include <sys/socket.h>
16828 rm -f conftest.$ac_objext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830 (eval $ac_compile) 2>conftest.er1
16832 grep -v '^ *+' conftest.er1 >conftest.err
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16850 cat >>confdefs.h <<\_ACEOF
16851 #define HAVE_SOCKLEN_T 1
16854 { echo "$as_me:$LINENO: result: yes" >&5
16855 echo "${ECHO_T}yes" >&6; }
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 { echo "$as_me:$LINENO: result: no" >&5
16861 echo "${ECHO_T}no" >&6; }
16864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16866 { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
16867 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
16868 cat >conftest.$ac_ext <<_ACEOF
16871 cat confdefs.h >>conftest.$ac_ext
16872 cat >>conftest.$ac_ext <<_ACEOF
16873 /* end confdefs.h. */
16878 struct tm tim; tim.tm_gmtoff = 0;
16883 rm -f conftest.$ac_objext
16884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16885 (eval $ac_compile) 2>conftest.er1
16887 grep -v '^ *+' conftest.er1 >conftest.err
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } &&
16892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 (eval $ac_try) 2>&5
16896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 (exit $ac_status); }; } &&
16898 { ac_try='test -s conftest.$ac_objext'
16899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 (eval $ac_try) 2>&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); }; }; then
16905 cat >>confdefs.h <<\_ACEOF
16906 #define STRUCT_TM_HAS_GMTOFF 1
16909 { echo "$as_me:$LINENO: result: yes" >&5
16910 echo "${ECHO_T}yes" >&6; }
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 { echo "$as_me:$LINENO: result: no" >&5
16916 echo "${ECHO_T}no" >&6; }
16917 { echo "$as_me:$LINENO: checking for global timezone variable" >&5
16918 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6; }
16919 cat >conftest.$ac_ext <<_ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16929 void i(){long z2 = 2*timezone;}
16934 rm -f conftest.$ac_objext
16935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16936 (eval $ac_compile) 2>conftest.er1
16938 grep -v '^ *+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16956 cat >>confdefs.h <<\_ACEOF
16957 #define HAVE_TIMEZONE 1
16960 { echo "$as_me:$LINENO: result: yes" >&5
16961 echo "${ECHO_T}yes" >&6; }
16963 echo "$as_me: failed program was:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 { echo "$as_me:$LINENO: result: no" >&5
16967 echo "${ECHO_T}no" >&6; }
16968 { echo "$as_me:$LINENO: checking for global _timezone variable" >&5
16969 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6; }
16970 cat >conftest.$ac_ext <<_ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16980 long z2 = _timezone;
16985 rm -f conftest.$ac_objext
16986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16987 (eval $ac_compile) 2>conftest.er1
16989 grep -v '^ *+' conftest.er1 >conftest.err
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; } &&
17000 { ac_try='test -s conftest.$ac_objext'
17001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17002 (eval $ac_try) 2>&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); }; }; then
17007 cat >>confdefs.h <<\_ACEOF
17008 #define HAVE_UNDERSCORE_TIMEZONE 1
17011 { echo "$as_me:$LINENO: result: yes" >&5
17012 echo "${ECHO_T}yes" >&6; }
17014 echo "$as_me: failed program was:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17017 { echo "$as_me:$LINENO: result: no" >&5
17018 echo "${ECHO_T}no" >&6; }
17021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17029 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17030 # for constant arguments. Useless!
17031 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
17032 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
17033 if test "${ac_cv_working_alloca_h+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17036 if test x$gcc_no_link = xyes; then
17037 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17038 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17039 { (exit 1); exit 1; }; }
17041 cat >conftest.$ac_ext <<_ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h. */
17047 #include <alloca.h>
17051 char *p = (char *) alloca (2 * sizeof (int));
17056 rm -f conftest.$ac_objext conftest$ac_exeext
17057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17058 (eval $ac_link) 2>conftest.er1
17060 grep -v '^ *+' conftest.er1 >conftest.err
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); } &&
17065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest$ac_exeext'
17072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_working_alloca_h=yes
17079 echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17082 ac_cv_working_alloca_h=no
17085 rm -f conftest.err conftest.$ac_objext \
17086 conftest$ac_exeext conftest.$ac_ext
17088 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17089 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
17090 if test $ac_cv_working_alloca_h = yes; then
17092 cat >>confdefs.h <<\_ACEOF
17093 #define HAVE_ALLOCA_H 1
17098 { echo "$as_me:$LINENO: checking for alloca" >&5
17099 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
17100 if test "${ac_cv_func_alloca_works+set}" = set; then
17101 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 if test x$gcc_no_link = xyes; then
17104 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17105 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17106 { (exit 1); exit 1; }; }
17108 cat >conftest.$ac_ext <<_ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17115 # define alloca __builtin_alloca
17118 # include <malloc.h>
17119 # define alloca _alloca
17122 # include <alloca.h>
17127 # ifndef alloca /* predefined by HP cc +Olibcalls */
17138 char *p = (char *) alloca (1);
17143 rm -f conftest.$ac_objext conftest$ac_exeext
17144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17145 (eval $ac_link) 2>conftest.er1
17147 grep -v '^ *+' conftest.er1 >conftest.err
17149 cat conftest.err >&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } &&
17152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; } &&
17158 { ac_try='test -s conftest$ac_exeext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 ac_cv_func_alloca_works=yes
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17169 ac_cv_func_alloca_works=no
17172 rm -f conftest.err conftest.$ac_objext \
17173 conftest$ac_exeext conftest.$ac_ext
17175 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17176 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
17178 if test $ac_cv_func_alloca_works = yes; then
17180 cat >>confdefs.h <<\_ACEOF
17181 #define HAVE_ALLOCA 1
17185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17186 # that cause trouble. Some versions do not even contain alloca or
17187 # contain a buggy version. If you still want to use their alloca,
17188 # use ar to extract alloca.o from them instead of compiling alloca.c.
17190 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17192 cat >>confdefs.h <<\_ACEOF
17197 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17198 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
17199 if test "${ac_cv_os_cray+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #if defined CRAY && ! defined CRAY2
17215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17216 $EGREP "webecray" >/dev/null 2>&1; then
17224 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17225 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
17226 if test $ac_cv_os_cray = yes; then
17227 for ac_func in _getb67 GETB67 getb67; do
17228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17232 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 if test x$gcc_no_link = xyes; then
17235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
17236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
17237 { (exit 1); exit 1; }; }
17239 cat >conftest.$ac_ext <<_ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17247 #define $ac_func innocuous_$ac_func
17249 /* System header to define __stub macros and hopefully few prototypes,
17250 which can conflict with char $ac_func (); below.
17251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17252 <limits.h> exists even on freestanding compilers. */
17255 # include <limits.h>
17257 # include <assert.h>
17262 /* Override any GCC internal prototype to avoid an error.
17263 Use char because int might match the return type of a GCC
17264 builtin and then its argument prototype would still apply. */
17269 /* The GNU C library defines this for functions which it implements
17270 to always fail with ENOSYS. Some functions are actually named
17271 something starting with __ and the normal name is an alias. */
17272 #if defined __stub_$ac_func || defined __stub___$ac_func
17279 return $ac_func ();
17284 rm -f conftest.$ac_objext conftest$ac_exeext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17286 (eval $ac_link) 2>conftest.er1
17288 grep -v '^ *+' conftest.er1 >conftest.err
17290 cat conftest.err >&5
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); } &&
17293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; } &&
17299 { ac_try='test -s conftest$ac_exeext'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; }; then
17305 eval "$as_ac_var=yes"
17307 echo "$as_me: failed program was:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 eval "$as_ac_var=no"
17313 rm -f conftest.err conftest.$ac_objext \
17314 conftest$ac_exeext conftest.$ac_ext
17316 ac_res=`eval echo '${'$as_ac_var'}'`
17317 { echo "$as_me:$LINENO: result: $ac_res" >&5
17318 echo "${ECHO_T}$ac_res" >&6; }
17319 if test `eval echo '${'$as_ac_var'}'` = yes; then
17321 cat >>confdefs.h <<_ACEOF
17322 #define CRAY_STACKSEG_END $ac_func
17331 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17332 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
17333 if test "${ac_cv_c_stack_direction+set}" = set; then
17334 echo $ECHO_N "(cached) $ECHO_C" >&6
17336 if test "$cross_compiling" = yes; then
17337 ac_cv_c_stack_direction=0
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 $ac_includes_default
17347 find_stack_direction ()
17349 static char *addr = 0;
17354 return find_stack_direction ();
17357 return (&dummy > addr) ? 1 : -1;
17363 return find_stack_direction () < 0;
17366 rm -f conftest$ac_exeext
17367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17368 (eval $ac_link) 2>&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_cv_c_stack_direction=1
17379 echo "$as_me: program exited with status $ac_status" >&5
17380 echo "$as_me: failed program was:" >&5
17381 sed 's/^/| /' conftest.$ac_ext >&5
17383 ( exit $ac_status )
17384 ac_cv_c_stack_direction=-1
17386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17391 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17392 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
17394 cat >>confdefs.h <<_ACEOF
17395 #define STACK_DIRECTION $ac_cv_c_stack_direction
17402 for ac_prog in perl
17404 # Extract the first word of "$ac_prog", so it can be a program name with args.
17405 set dummy $ac_prog; ac_word=$2
17406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17408 if test "${ac_cv_prog_PERL+set}" = set; then
17409 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 if test -n "$PERL"; then
17412 ac_cv_prog_PERL="$PERL" # Let the user override the test.
17414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17415 for as_dir in $PATH
17418 test -z "$as_dir" && as_dir=.
17419 for ac_exec_ext in '' $ac_executable_extensions; do
17420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
17421 ac_cv_prog_PERL="$ac_prog"
17422 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17431 PERL=$ac_cv_prog_PERL
17432 if test -n "$PERL"; then
17433 { echo "$as_me:$LINENO: result: $PERL" >&5
17434 echo "${ECHO_T}$PERL" >&6; }
17436 { echo "$as_me:$LINENO: result: no" >&5
17437 echo "${ECHO_T}no" >&6; }
17441 test -n "$PERL" && break
17443 test -n "$PERL" || PERL="false"
17447 SIGNAL_HANDLER_AUX=
17451 SIGNAL_HANDLER=include/i386-signal.h
17453 sparc*-sun-solaris*)
17454 SIGNAL_HANDLER=include/sparc-signal.h
17457 # SYSDEP_SOURCES=sysdep/ia64.c
17458 # test -d sysdep || mkdir sysdep
17461 SIGNAL_HANDLER=include/pa-signal.h
17464 SIGNAL_HANDLER=include/hppa-signal.h
17467 SIGNAL_HANDLER=include/dwarf2-signal.h
17470 SIGNAL_HANDLER=include/powerpc-signal.h
17473 SIGNAL_HANDLER=include/dwarf2-signal.h
17476 SIGNAL_HANDLER=include/s390-signal.h
17479 SIGNAL_HANDLER=include/x86_64-signal.h
17480 SIGNAL_HANDLER_AUX=include/i386-signal.h
17483 SIGNAL_HANDLER=include/dwarf2-signal.h
17486 SIGNAL_HANDLER=include/sh-signal.h
17489 SIGNAL_HANDLER=include/win32-signal.h
17492 SIGNAL_HANDLER=include/mips-signal.h
17495 SIGNAL_HANDLER=include/darwin-signal.h
17498 SIGNAL_HANDLER=include/default-signal.h
17502 # If we're using sjlj exceptions, forget what we just learned.
17503 if test "$enable_sjlj_exceptions" = yes; then
17504 SIGNAL_HANDLER=include/default-signal.h
17505 SIGNAL_HANDLER_AUX=
17510 if test -z "$SIGNAL_HANDLER_AUX"; then
17511 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
17514 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
17517 if test "${multilib}" = "yes"; then
17518 multilib_arg="--enable-multilib"
17523 # See if we support thread-local storage.
17525 # Check whether --enable-tls was given.
17526 if test "${enable_tls+set}" = set; then
17527 enableval=$enable_tls;
17528 case "$enableval" in
17530 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5
17531 echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;}
17532 { (exit 1); exit 1; }; } ;;
17540 { echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5
17541 echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6; }
17542 if test "${have_tls+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17546 if test "$cross_compiling" = yes; then
17547 cat >conftest.$ac_ext <<_ACEOF
17550 rm -f conftest.$ac_objext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17552 (eval $ac_compile) 2>conftest.er1
17554 grep -v '^ *+' conftest.er1 >conftest.err
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17582 cat >conftest.$ac_ext <<_ACEOF
17583 __thread int a; int b; int main() { return a = b; }
17585 rm -f conftest$ac_exeext
17586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17587 (eval $ac_link) 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17592 (eval $ac_try) 2>&5
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); }; }; then
17596 save_LDFLAGS="$LDFLAGS"
17597 LDFLAGS="-static $LDFLAGS"
17598 if test "$cross_compiling" = yes; then
17599 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17600 See \`config.log' for more details." >&5
17601 echo "$as_me: error: cannot run test program while cross compiling
17602 See \`config.log' for more details." >&2;}
17603 { (exit 1); exit 1; }; }
17605 cat >conftest.$ac_ext <<_ACEOF
17606 __thread int a; int b; int main() { return a = b; }
17608 rm -f conftest$ac_exeext
17609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17610 (eval $ac_link) 2>&5
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; }; then
17621 echo "$as_me: program exited with status $ac_status" >&5
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ( exit $ac_status )
17628 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17632 LDFLAGS="$save_LDFLAGS"
17634 echo "$as_me: program exited with status $ac_status" >&5
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 ( exit $ac_status )
17641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17646 { echo "$as_me:$LINENO: result: $have_tls" >&5
17647 echo "${ECHO_T}$have_tls" >&6; }
17648 if test "$enable_tls $have_tls" = "yes yes"; then
17650 cat >>confdefs.h <<\_ACEOF
17656 # Check if linker supports static linking on a per library basis
17657 LD_START_STATIC_SPEC=
17658 LD_FINISH_STATIC_SPEC=
17659 if $LD --help 2>&1 | grep -q -e -call_shared ; then
17660 if $LD --help 2>&1 | grep -q -e -non_shared ; then
17661 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
17662 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
17668 here=`${PWDCMD-pwd}`
17671 # We get this from the environment.
17674 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
17677 ac_config_files="$ac_config_files scripts/jar"
17680 ac_config_commands="$ac_config_commands default"
17683 cat >confcache <<\_ACEOF
17684 # This file is a shell script that caches the results of configure
17685 # tests run on this system so they can be shared between configure
17686 # scripts and configure runs, see configure's option --config-cache.
17687 # It is not useful on other systems. If it contains results you don't
17688 # want to keep, you may remove or edit it.
17690 # config.status only pays attention to the cache file if you give it
17691 # the --recheck option to rerun configure.
17693 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17694 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17695 # following values.
17699 # The following way of writing the cache mishandles newlines in values,
17700 # but we know of no workaround that is simple, portable, and efficient.
17701 # So, we kill variables containing newlines.
17702 # Ultrix sh set writes to stderr and can't be redirected directly,
17703 # and sets the high bit in the cache file unless we assign to the vars.
17705 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17706 eval ac_val=\$$ac_var
17710 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17711 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17714 _ | IFS | as_nl) ;; #(
17715 *) $as_unset $ac_var ;;
17721 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17722 *${as_nl}ac_space=\ *)
17723 # `set' does not quote correctly, so add quotes (double-quote
17724 # substitution turns \\\\ into \\, and sed turns \\ into \).
17727 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17730 # `set' quotes correctly as required by POSIX, so do not add quotes.
17731 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17740 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17742 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17744 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17745 if test -w $cache_file; then
17746 test "x$cache_file" != "x/dev/null" &&
17747 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
17748 echo "$as_me: updating cache $cache_file" >&6;}
17749 cat confcache >$cache_file
17751 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17752 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17757 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17758 # Let make expand exec_prefix.
17759 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17761 DEFS=-DHAVE_CONFIG_H
17765 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17766 # 1. Remove the extension, and $U if already installed.
17767 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17768 ac_i=`echo "$ac_i" | sed "$ac_script"`
17769 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17770 # will be set to the directory where LIBOBJS objects are built.
17771 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17772 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17774 LIBOBJS=$ac_libobjs
17776 LTLIBOBJS=$ac_ltlibobjs
17779 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17780 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17781 Usually this means the macro was only invoked conditionally." >&5
17782 echo "$as_me: error: conditional \"AMDEP\" was never defined.
17783 Usually this means the macro was only invoked conditionally." >&2;}
17784 { (exit 1); exit 1; }; }
17786 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17787 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17788 Usually this means the macro was only invoked conditionally." >&5
17789 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17790 Usually this means the macro was only invoked conditionally." >&2;}
17791 { (exit 1); exit 1; }; }
17793 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
17795 Usually this means the macro was only invoked conditionally." >&5
17796 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
17797 Usually this means the macro was only invoked conditionally." >&2;}
17798 { (exit 1); exit 1; }; }
17800 if test -z "${BASH_JAR_TRUE}" && test -z "${BASH_JAR_FALSE}"; then
17801 { { echo "$as_me:$LINENO: error: conditional \"BASH_JAR\" was never defined.
17802 Usually this means the macro was only invoked conditionally." >&5
17803 echo "$as_me: error: conditional \"BASH_JAR\" was never defined.
17804 Usually this means the macro was only invoked conditionally." >&2;}
17805 { (exit 1); exit 1; }; }
17807 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17808 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17809 Usually this means the macro was only invoked conditionally." >&5
17810 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17811 Usually this means the macro was only invoked conditionally." >&2;}
17812 { (exit 1); exit 1; }; }
17814 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
17815 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
17816 Usually this means the macro was only invoked conditionally." >&5
17817 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
17818 Usually this means the macro was only invoked conditionally." >&2;}
17819 { (exit 1); exit 1; }; }
17821 if test -z "${QT_AWT_TRUE}" && test -z "${QT_AWT_FALSE}"; then
17822 { { echo "$as_me:$LINENO: error: conditional \"QT_AWT\" was never defined.
17823 Usually this means the macro was only invoked conditionally." >&5
17824 echo "$as_me: error: conditional \"QT_AWT\" was never defined.
17825 Usually this means the macro was only invoked conditionally." >&2;}
17826 { (exit 1); exit 1; }; }
17828 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
17829 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
17830 Usually this means the macro was only invoked conditionally." >&5
17831 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
17832 Usually this means the macro was only invoked conditionally." >&2;}
17833 { (exit 1); exit 1; }; }
17835 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
17836 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
17837 Usually this means the macro was only invoked conditionally." >&5
17838 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
17839 Usually this means the macro was only invoked conditionally." >&2;}
17840 { (exit 1); exit 1; }; }
17842 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
17843 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
17844 Usually this means the macro was only invoked conditionally." >&5
17845 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
17846 Usually this means the macro was only invoked conditionally." >&2;}
17847 { (exit 1); exit 1; }; }
17849 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
17850 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17851 Usually this means the macro was only invoked conditionally." >&5
17852 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
17853 Usually this means the macro was only invoked conditionally." >&2;}
17854 { (exit 1); exit 1; }; }
17856 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
17857 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17858 Usually this means the macro was only invoked conditionally." >&5
17859 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
17860 Usually this means the macro was only invoked conditionally." >&2;}
17861 { (exit 1); exit 1; }; }
17863 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
17864 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
17865 Usually this means the macro was only invoked conditionally." >&5
17866 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
17867 Usually this means the macro was only invoked conditionally." >&2;}
17868 { (exit 1); exit 1; }; }
17870 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
17871 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
17872 Usually this means the macro was only invoked conditionally." >&5
17873 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
17874 Usually this means the macro was only invoked conditionally." >&2;}
17875 { (exit 1); exit 1; }; }
17877 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
17878 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
17879 Usually this means the macro was only invoked conditionally." >&5
17880 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
17881 Usually this means the macro was only invoked conditionally." >&2;}
17882 { (exit 1); exit 1; }; }
17884 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
17885 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
17886 Usually this means the macro was only invoked conditionally." >&5
17887 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
17888 Usually this means the macro was only invoked conditionally." >&2;}
17889 { (exit 1); exit 1; }; }
17891 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
17892 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
17893 Usually this means the macro was only invoked conditionally." >&5
17894 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
17895 Usually this means the macro was only invoked conditionally." >&2;}
17896 { (exit 1); exit 1; }; }
17898 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
17899 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
17900 Usually this means the macro was only invoked conditionally." >&5
17901 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
17902 Usually this means the macro was only invoked conditionally." >&2;}
17903 { (exit 1); exit 1; }; }
17905 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
17906 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
17907 Usually this means the macro was only invoked conditionally." >&5
17908 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
17909 Usually this means the macro was only invoked conditionally." >&2;}
17910 { (exit 1); exit 1; }; }
17912 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
17913 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
17914 Usually this means the macro was only invoked conditionally." >&5
17915 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
17916 Usually this means the macro was only invoked conditionally." >&2;}
17917 { (exit 1); exit 1; }; }
17919 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
17920 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
17921 Usually this means the macro was only invoked conditionally." >&5
17922 echo "$as_me: error: conditional \"NATIVE\" was never defined.
17923 Usually this means the macro was only invoked conditionally." >&2;}
17924 { (exit 1); exit 1; }; }
17926 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
17927 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
17928 Usually this means the macro was only invoked conditionally." >&5
17929 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
17930 Usually this means the macro was only invoked conditionally." >&2;}
17931 { (exit 1); exit 1; }; }
17934 : ${CONFIG_STATUS=./config.status}
17935 ac_clean_files_save=$ac_clean_files
17936 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17937 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17938 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17939 cat >$CONFIG_STATUS <<_ACEOF
17941 # Generated by $as_me.
17942 # Run this file to recreate the current configuration.
17943 # Compiler output produced by configure, useful for debugging
17944 # configure, is in config.log if it exists.
17947 ac_cs_recheck=false
17949 SHELL=\${CONFIG_SHELL-$SHELL}
17952 cat >>$CONFIG_STATUS <<\_ACEOF
17953 ## --------------------- ##
17954 ## M4sh Initialization. ##
17955 ## --------------------- ##
17957 # Be Bourne compatible
17958 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17961 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17962 # is contrary to our usage. Disable this feature.
17963 alias -g '${1+"$@"}'='"$@"'
17964 setopt NO_GLOB_SUBST
17966 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
17968 BIN_SH=xpg4; export BIN_SH # for Tru64
17969 DUALCASE=1; export DUALCASE # for MKS sh
17973 # Avoid depending upon Character Ranges.
17974 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17975 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17976 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17977 as_cr_digits='0123456789'
17978 as_cr_alnum=$as_cr_Letters$as_cr_digits
17980 # The user is always right.
17981 if test "${PATH_SEPARATOR+set}" != set; then
17982 echo "#! /bin/sh" >conf$$.sh
17983 echo "exit 0" >>conf$$.sh
17985 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17993 # Support unset when possible.
17994 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18002 # We need space, tab and new line, in precisely that order. Quoting is
18003 # there to prevent editors from complaining about space-tab.
18004 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18005 # splitting by setting IFS to empty value.)
18010 # Find who we are. Look in the path if we contain no directory separator.
18012 *[\\/]* ) as_myself=$0 ;;
18013 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18014 for as_dir in $PATH
18017 test -z "$as_dir" && as_dir=.
18018 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18024 # We did not find ourselves, most probably we were run as `sh COMMAND'
18025 # in which case we are not to be found in the path.
18026 if test "x$as_myself" = x; then
18029 if test ! -f "$as_myself"; then
18030 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18031 { (exit 1); exit 1; }
18034 # Work around bugs in pre-3.0 UWIN ksh.
18035 for as_var in ENV MAIL MAILPATH
18036 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18044 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18045 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18046 LC_TELEPHONE LC_TIME
18048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18049 eval $as_var=C; export $as_var
18051 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18055 # Required to use basename.
18056 if expr a : '\(a\)' >/dev/null 2>&1 &&
18057 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18063 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18064 as_basename=basename
18070 # Name of the executable.
18071 as_me=`$as_basename -- "$0" ||
18072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18073 X"$0" : 'X\(//\)$' \| \
18074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18076 sed '/^.*\/\([^/][^/]*\)\/*$/{
18095 as_lineno_1=$LINENO
18096 as_lineno_2=$LINENO
18097 test "x$as_lineno_1" != "x$as_lineno_2" &&
18098 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18100 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18101 # uniformly replaced by the line number. The first 'sed' inserts a
18102 # line-number line after each line using $LINENO; the second 'sed'
18103 # does the real work. The second script uses 'N' to pair each
18104 # line-number line with the line containing $LINENO, and appends
18105 # trailing '-' during substitution so that $LINENO is not a special
18106 # case at line end.
18107 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18108 # scripts with optimization help from Paolo Bonzini. Blame Lee
18109 # E. McMahon (1931-1989) for sed's syntax. :-)
18121 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18124 ' >$as_me.lineno &&
18125 chmod +x "$as_me.lineno" ||
18126 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18127 { (exit 1); exit 1; }; }
18129 # Don't try to exec as it changes $[0], causing all sort of problems
18130 # (the dirname of $[0] is not the place where we might find the
18131 # original and so on. Autoconf is especially sensitive to this).
18132 . "./$as_me.lineno"
18133 # Exit status is that of the last command.
18138 if (dirname -- /) >/dev/null 2>&1; then
18144 ECHO_C= ECHO_N= ECHO_T=
18145 case `echo -n x` in
18147 case `echo 'x\c'` in
18148 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18155 if expr a : '\(a\)' >/dev/null 2>&1 &&
18156 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18162 rm -f conf$$ conf$$.exe conf$$.file
18163 if test -d conf$$.dir; then
18164 rm -f conf$$.dir/conf$$.file
18170 if ln -s conf$$.file conf$$ 2>/dev/null; then
18172 # ... but there are two gotchas:
18173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18175 # In both cases, we have to default to `cp -p'.
18176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18178 elif ln conf$$.file conf$$ 2>/dev/null; then
18183 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18184 rmdir conf$$.dir 2>/dev/null
18186 if mkdir -p . 2>/dev/null; then
18189 test -d ./-p && rmdir ./-p
18193 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
18194 # systems may use methods other than mode bits to determine executability.
18195 cat >conf$$.file <<_ASEOF
18199 chmod +x conf$$.file
18200 if test -x conf$$.file >/dev/null 2>&1; then
18201 as_executable_p="test -x"
18207 # Sed expression to map a string onto a valid CPP name.
18208 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18210 # Sed expression to map a string onto a valid variable name.
18211 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18216 # Save the log message, to keep $[0] and so on meaningful, and to
18217 # report actual input values of CONFIG_FILES etc. instead of their
18218 # values after options handling.
18220 This file was extended by libjava $as_me version-unused, which was
18221 generated by GNU Autoconf 2.59d. Invocation command line was
18223 CONFIG_FILES = $CONFIG_FILES
18224 CONFIG_HEADERS = $CONFIG_HEADERS
18225 CONFIG_LINKS = $CONFIG_LINKS
18226 CONFIG_COMMANDS = $CONFIG_COMMANDS
18229 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18234 cat >>$CONFIG_STATUS <<_ACEOF
18235 # Files that config.status was made for.
18236 config_files="$ac_config_files"
18237 config_headers="$ac_config_headers"
18238 config_links="$ac_config_links"
18239 config_commands="$ac_config_commands"
18243 cat >>$CONFIG_STATUS <<\_ACEOF
18245 \`$as_me' instantiates files from templates according to the
18246 current configuration.
18248 Usage: $0 [OPTIONS] [FILE]...
18250 -h, --help print this help, then exit
18251 -V, --version print version number, then exit
18252 -q, --quiet do not print progress messages
18253 -d, --debug don't remove temporary files
18254 --recheck update $as_me by reconfiguring in the same conditions
18255 --file=FILE[:TEMPLATE]
18256 instantiate the configuration file FILE
18257 --header=FILE[:TEMPLATE]
18258 instantiate the configuration header FILE
18260 Configuration files:
18263 Configuration headers:
18266 Configuration links:
18269 Configuration commands:
18272 Report bugs to <bug-autoconf@gnu.org>."
18275 cat >>$CONFIG_STATUS <<_ACEOF
18277 libjava config.status version-unused
18278 configured by $0, generated by GNU Autoconf 2.59d,
18279 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18281 Copyright (C) 2006 Free Software Foundation, Inc.
18282 This config.status script is free software; the Free Software Foundation
18283 gives unlimited permission to copy, distribute and modify it."
18290 cat >>$CONFIG_STATUS <<\_ACEOF
18291 # If no file are specified by the user, then we need to provide default
18292 # value. By we need to know if files were specified by the user.
18298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18310 # Handling of the options.
18311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18313 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18314 echo "$ac_cs_version"; exit ;;
18315 --debug | --debu | --deb | --de | --d | -d )
18317 --file | --fil | --fi | --f )
18319 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18320 ac_need_defaults=false;;
18321 --header | --heade | --head | --hea )
18323 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18324 ac_need_defaults=false;;
18326 # Conflict between --help and --header
18327 { echo "$as_me: error: ambiguous option: $1
18328 Try \`$0 --help' for more information." >&2
18329 { (exit 1); exit 1; }; };;
18330 --help | --hel | -h )
18331 echo "$ac_cs_usage"; exit ;;
18332 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18333 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18336 # This is an error.
18337 -*) { echo "$as_me: error: unrecognized option: $1
18338 Try \`$0 --help' for more information." >&2
18339 { (exit 1); exit 1; }; } ;;
18341 *) ac_config_targets="$ac_config_targets $1"
18342 ac_need_defaults=false ;;
18348 ac_configure_extra_args=
18350 if $ac_cs_silent; then
18352 ac_configure_extra_args="$ac_configure_extra_args --silent"
18356 cat >>$CONFIG_STATUS <<_ACEOF
18357 if \$ac_cs_recheck; then
18358 echo "running CONFIG_SHELL=$SHELL $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18359 CONFIG_SHELL=$SHELL
18360 export CONFIG_SHELL
18361 exec $SHELL "$0" $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18365 cat >>$CONFIG_STATUS <<\_ACEOF
18369 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18370 ## Running $as_me. ##
18376 cat >>$CONFIG_STATUS <<_ACEOF
18380 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18384 with_multisubdir=${with_multisubdir}
18385 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18386 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18387 libgcj_basedir=${libgcj_basedir}
18390 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
18395 cat >>$CONFIG_STATUS <<\_ACEOF
18397 # Handling of arguments.
18398 for ac_config_target in $ac_config_targets
18400 case $ac_config_target in
18401 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18402 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18403 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
18404 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
18405 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
18406 "java/lang/ConcreteProcess.java") CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
18407 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
18408 "java/net/natInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
18409 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
18410 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
18411 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
18412 "gnu/java/nio/natPipeImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
18413 "gnu/java/nio/natSelectorImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
18414 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
18415 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
18416 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
18417 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
18418 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
18419 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
18420 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
18421 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
18422 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18423 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
18424 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
18425 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
18426 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
18427 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
18428 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18429 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
18430 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18432 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18433 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18434 { (exit 1); exit 1; }; };;
18439 # If the user did not use the arguments to specify the items to instantiate,
18440 # then the envvar interface is used. Set only those that are not.
18441 # We use the long form for the default assignment because of an extremely
18442 # bizarre bug on SunOS 4.1.3.
18443 if $ac_need_defaults; then
18444 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18445 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18446 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
18447 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18450 # Have a temporary directory for convenience. Make it in the build tree
18451 # simply because there is no reason against having it here, and in addition,
18452 # creating and moving files from /tmp can sometimes cause problems.
18453 # Hook for its removal unless debugging.
18454 # Note that there is a small window in which the directory will not be cleaned:
18455 # after its creation but before its name has been assigned to `$tmp'.
18459 trap 'exit_status=$?
18460 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18462 trap '{ (exit 1); exit 1; }' 1 2 13 15
18464 # Create a (secure) tmp directory for tmp files.
18467 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18468 test -n "$tmp" && test -d "$tmp"
18471 tmp=./conf$$-$RANDOM
18472 (umask 077 && mkdir "$tmp")
18475 echo "$me: cannot create a temporary directory in ." >&2
18476 { (exit 1); exit 1; }
18480 # Set up the sed scripts for CONFIG_FILES section.
18483 # No need to generate the scripts if there are no CONFIG_FILES.
18484 # This happens for instance when ./config.status config.h
18485 if test -n "$CONFIG_FILES"; then
18492 for ac_last_try in false false false false false :; do
18493 cat >conf$$subs.sed <<_ACEOF
18494 SHELL!$SHELL$ac_delim
18495 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
18496 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
18497 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
18498 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
18499 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
18500 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
18501 exec_prefix!$exec_prefix$ac_delim
18502 prefix!$prefix$ac_delim
18503 program_transform_name!$program_transform_name$ac_delim
18504 bindir!$bindir$ac_delim
18505 sbindir!$sbindir$ac_delim
18506 libexecdir!$libexecdir$ac_delim
18507 datarootdir!$datarootdir$ac_delim
18508 datadir!$datadir$ac_delim
18509 sysconfdir!$sysconfdir$ac_delim
18510 sharedstatedir!$sharedstatedir$ac_delim
18511 localstatedir!$localstatedir$ac_delim
18512 includedir!$includedir$ac_delim
18513 oldincludedir!$oldincludedir$ac_delim
18514 docdir!$docdir$ac_delim
18515 infodir!$infodir$ac_delim
18516 htmldir!$htmldir$ac_delim
18517 dvidir!$dvidir$ac_delim
18518 pdfdir!$pdfdir$ac_delim
18519 psdir!$psdir$ac_delim
18520 libdir!$libdir$ac_delim
18521 localedir!$localedir$ac_delim
18522 mandir!$mandir$ac_delim
18523 DEFS!$DEFS$ac_delim
18524 ECHO_C!$ECHO_C$ac_delim
18525 ECHO_N!$ECHO_N$ac_delim
18526 ECHO_T!$ECHO_T$ac_delim
18527 LIBS!$LIBS$ac_delim
18528 build_alias!$build_alias$ac_delim
18529 host_alias!$host_alias$ac_delim
18530 target_alias!$target_alias$ac_delim
18531 build!$build$ac_delim
18532 build_cpu!$build_cpu$ac_delim
18533 build_vendor!$build_vendor$ac_delim
18534 build_os!$build_os$ac_delim
18535 build_subdir!$build_subdir$ac_delim
18536 host_subdir!$host_subdir$ac_delim
18537 target_subdir!$target_subdir$ac_delim
18538 libgcj_basedir!$libgcj_basedir$ac_delim
18539 host!$host$ac_delim
18540 host_cpu!$host_cpu$ac_delim
18541 host_vendor!$host_vendor$ac_delim
18542 host_os!$host_os$ac_delim
18543 target!$target$ac_delim
18544 target_cpu!$target_cpu$ac_delim
18545 target_vendor!$target_vendor$ac_delim
18546 target_os!$target_os$ac_delim
18547 target_noncanonical!$target_noncanonical$ac_delim
18548 LN_S!$LN_S$ac_delim
18549 mkinstalldirs!$mkinstalldirs$ac_delim
18551 CFLAGS!$CFLAGS$ac_delim
18552 LDFLAGS!$LDFLAGS$ac_delim
18553 CPPFLAGS!$CPPFLAGS$ac_delim
18554 ac_ct_CC!$ac_ct_CC$ac_delim
18555 EXEEXT!$EXEEXT$ac_delim
18556 OBJEXT!$OBJEXT$ac_delim
18558 CXXFLAGS!$CXXFLAGS$ac_delim
18559 ac_ct_CXX!$ac_ct_CXX$ac_delim
18560 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
18561 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
18562 INSTALL_DATA!$INSTALL_DATA$ac_delim
18563 CYGPATH_W!$CYGPATH_W$ac_delim
18564 PACKAGE!$PACKAGE$ac_delim
18565 VERSION!$VERSION$ac_delim
18566 ACLOCAL!$ACLOCAL$ac_delim
18567 AUTOCONF!$AUTOCONF$ac_delim
18568 AUTOMAKE!$AUTOMAKE$ac_delim
18569 AUTOHEADER!$AUTOHEADER$ac_delim
18570 MAKEINFO!$MAKEINFO$ac_delim
18571 install_sh!$install_sh$ac_delim
18572 STRIP!$STRIP$ac_delim
18573 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
18574 mkdir_p!$mkdir_p$ac_delim
18576 SET_MAKE!$SET_MAKE$ac_delim
18577 am__leading_dot!$am__leading_dot$ac_delim
18578 AMTAR!$AMTAR$ac_delim
18579 am__tar!$am__tar$ac_delim
18580 am__untar!$am__untar$ac_delim
18581 DEPDIR!$DEPDIR$ac_delim
18582 am__include!$am__include$ac_delim
18583 am__quote!$am__quote$ac_delim
18584 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
18585 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
18586 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
18587 CCDEPMODE!$CCDEPMODE$ac_delim
18588 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
18589 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
18590 CXXDEPMODE!$CXXDEPMODE$ac_delim
18593 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
18595 elif $ac_last_try; then
18596 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18597 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18598 { (exit 1); exit 1; }; }
18600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18605 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
18606 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
18607 ac_eof=`expr 0$ac_eof + 1`
18610 cat >>$CONFIG_STATUS <<_ACEOF
18611 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
18612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18615 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18616 s/^/s,@/; s/!/@,|#_!!_#|/
18619 s/'"$ac_delim"'$/,g/; t
18621 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18622 ' >>$CONFIG_STATUS <conf$$subs.sed
18623 rm -f conf$$subs.sed
18624 cat >>$CONFIG_STATUS <<_ACEOF
18630 for ac_last_try in false false false false false :; do
18631 cat >conf$$subs.sed <<_ACEOF
18632 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
18633 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
18637 RANLIB!$RANLIB$ac_delim
18640 UNZIP!$UNZIP$ac_delim
18641 BASH_JAR_TRUE!$BASH_JAR_TRUE$ac_delim
18642 BASH_JAR_FALSE!$BASH_JAR_FALSE$ac_delim
18643 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
18644 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
18645 MAINT!$MAINT$ac_delim
18646 LIBGCJ_CFLAGS!$LIBGCJ_CFLAGS$ac_delim
18647 LIBGCJ_CXXFLAGS!$LIBGCJ_CXXFLAGS$ac_delim
18648 LIBGCJ_JAVAFLAGS!$LIBGCJ_JAVAFLAGS$ac_delim
18649 LIBGCJ_LD_SYMBOLIC!$LIBGCJ_LD_SYMBOLIC$ac_delim
18650 LIBGCJDEBUG!$LIBGCJDEBUG$ac_delim
18651 TOOLKIT!$TOOLKIT$ac_delim
18652 XLIB_AWT_TRUE!$XLIB_AWT_TRUE$ac_delim
18653 XLIB_AWT_FALSE!$XLIB_AWT_FALSE$ac_delim
18654 QT_AWT_TRUE!$QT_AWT_TRUE$ac_delim
18655 QT_AWT_FALSE!$QT_AWT_FALSE$ac_delim
18656 GCJH!$GCJH$ac_delim
18657 INCLTDL!$INCLTDL$ac_delim
18658 LIBLTDL!$LIBLTDL$ac_delim
18659 DIRLTDL!$DIRLTDL$ac_delim
18660 LIBTOOL!$LIBTOOL$ac_delim
18661 CXXCPP!$CXXCPP$ac_delim
18663 GCJFLAGS!$GCJFLAGS$ac_delim
18664 GCJDEPMODE!$GCJDEPMODE$ac_delim
18665 am__fastdepGCJ_TRUE!$am__fastdepGCJ_TRUE$ac_delim
18666 am__fastdepGCJ_FALSE!$am__fastdepGCJ_FALSE$ac_delim
18667 subdirs!$subdirs$ac_delim
18668 TESTSUBDIR_TRUE!$TESTSUBDIR_TRUE$ac_delim
18669 TESTSUBDIR_FALSE!$TESTSUBDIR_FALSE$ac_delim
18670 JAVA_HOME_SET_TRUE!$JAVA_HOME_SET_TRUE$ac_delim
18671 JAVA_HOME_SET_FALSE!$JAVA_HOME_SET_FALSE$ac_delim
18672 JAVA_HOME!$JAVA_HOME$ac_delim
18673 INTERPRETER!$INTERPRETER$ac_delim
18674 LIBFFI!$LIBFFI$ac_delim
18675 LIBFFIINCS!$LIBFFIINCS$ac_delim
18676 PLATFORM_INNER_NAT_HDRS!$PLATFORM_INNER_NAT_HDRS$ac_delim
18678 GREP!$GREP$ac_delim
18679 EGREP!$EGREP$ac_delim
18680 USING_WIN32_PLATFORM_TRUE!$USING_WIN32_PLATFORM_TRUE$ac_delim
18681 USING_WIN32_PLATFORM_FALSE!$USING_WIN32_PLATFORM_FALSE$ac_delim
18682 USING_POSIX_PLATFORM_TRUE!$USING_POSIX_PLATFORM_TRUE$ac_delim
18683 USING_POSIX_PLATFORM_FALSE!$USING_POSIX_PLATFORM_FALSE$ac_delim
18684 USING_DARWIN_CRT_TRUE!$USING_DARWIN_CRT_TRUE$ac_delim
18685 USING_DARWIN_CRT_FALSE!$USING_DARWIN_CRT_FALSE$ac_delim
18686 SYSTEMSPEC!$SYSTEMSPEC$ac_delim
18687 LIBGCJTESTSPEC!$LIBGCJTESTSPEC$ac_delim
18688 ZLIBSPEC!$ZLIBSPEC$ac_delim
18689 ZLIBTESTSPEC!$ZLIBTESTSPEC$ac_delim
18690 XMKMF!$XMKMF$ac_delim
18691 X_CFLAGS!$X_CFLAGS$ac_delim
18692 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
18693 X_LIBS!$X_LIBS$ac_delim
18694 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
18695 GTK_CAIRO_TRUE!$GTK_CAIRO_TRUE$ac_delim
18696 GTK_CAIRO_FALSE!$GTK_CAIRO_FALSE$ac_delim
18697 PKG_CONFIG!$PKG_CONFIG$ac_delim
18698 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
18699 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
18700 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
18701 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
18702 extra_ldflags_libjava!$extra_ldflags_libjava$ac_delim
18703 GCLIBS!$GCLIBS$ac_delim
18704 GCINCS!$GCINCS$ac_delim
18705 GCDEPS!$GCDEPS$ac_delim
18706 GCSPEC!$GCSPEC$ac_delim
18707 JC1GCSPEC!$JC1GCSPEC$ac_delim
18708 GCTESTSPEC!$GCTESTSPEC$ac_delim
18709 USING_BOEHMGC_TRUE!$USING_BOEHMGC_TRUE$ac_delim
18710 USING_BOEHMGC_FALSE!$USING_BOEHMGC_FALSE$ac_delim
18711 USING_NOGC_TRUE!$USING_NOGC_TRUE$ac_delim
18712 USING_NOGC_FALSE!$USING_NOGC_FALSE$ac_delim
18713 THREADLIBS!$THREADLIBS$ac_delim
18714 THREADINCS!$THREADINCS$ac_delim
18715 THREADDEPS!$THREADDEPS$ac_delim
18716 THREADSPEC!$THREADSPEC$ac_delim
18717 THREADLDFLAGS!$THREADLDFLAGS$ac_delim
18718 THREADCXXFLAGS!$THREADCXXFLAGS$ac_delim
18719 USING_POSIX_THREADS_TRUE!$USING_POSIX_THREADS_TRUE$ac_delim
18720 USING_POSIX_THREADS_FALSE!$USING_POSIX_THREADS_FALSE$ac_delim
18721 USING_WIN32_THREADS_TRUE!$USING_WIN32_THREADS_TRUE$ac_delim
18722 USING_WIN32_THREADS_FALSE!$USING_WIN32_THREADS_FALSE$ac_delim
18723 USING_NO_THREADS_TRUE!$USING_NO_THREADS_TRUE$ac_delim
18724 USING_NO_THREADS_FALSE!$USING_NO_THREADS_FALSE$ac_delim
18725 HASH_SYNC_SPEC!$HASH_SYNC_SPEC$ac_delim
18726 USING_GCC_TRUE!$USING_GCC_TRUE$ac_delim
18727 USING_GCC_FALSE!$USING_GCC_FALSE$ac_delim
18728 LIBICONV!$LIBICONV$ac_delim
18731 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 97; then
18733 elif $ac_last_try; then
18734 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18735 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18736 { (exit 1); exit 1; }; }
18738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18743 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
18744 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
18745 ac_eof=`expr 0$ac_eof + 1`
18748 cat >>$CONFIG_STATUS <<_ACEOF
18749 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
18750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18753 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18754 s/^/s,@/; s/!/@,|#_!!_#|/
18757 s/'"$ac_delim"'$/,g/; t
18759 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18760 ' >>$CONFIG_STATUS <conf$$subs.sed
18761 rm -f conf$$subs.sed
18762 cat >>$CONFIG_STATUS <<_ACEOF
18768 for ac_last_try in false false false false false :; do
18769 cat >conf$$subs.sed <<_ACEOF
18770 LTLIBICONV!$LTLIBICONV$ac_delim
18771 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
18772 GTK_LIBS!$GTK_LIBS$ac_delim
18773 GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
18774 GLIB_LIBS!$GLIB_LIBS$ac_delim
18775 LIBART_CFLAGS!$LIBART_CFLAGS$ac_delim
18776 LIBART_LIBS!$LIBART_LIBS$ac_delim
18777 CLASSPATH_SEPARATOR!$CLASSPATH_SEPARATOR$ac_delim
18778 ZLIBS!$ZLIBS$ac_delim
18779 SYS_ZLIBS!$SYS_ZLIBS$ac_delim
18780 ZINCS!$ZINCS$ac_delim
18781 DIVIDESPEC!$DIVIDESPEC$ac_delim
18782 CHECKREFSPEC!$CHECKREFSPEC$ac_delim
18783 EXCEPTIONSPEC!$EXCEPTIONSPEC$ac_delim
18784 BACKTRACESPEC!$BACKTRACESPEC$ac_delim
18785 IEEESPEC!$IEEESPEC$ac_delim
18786 NATIVE_TRUE!$NATIVE_TRUE$ac_delim
18787 NATIVE_FALSE!$NATIVE_FALSE$ac_delim
18788 NEEDS_DATA_START_TRUE!$NEEDS_DATA_START_TRUE$ac_delim
18789 NEEDS_DATA_START_FALSE!$NEEDS_DATA_START_FALSE$ac_delim
18790 GCC_UNWIND_INCLUDE!$GCC_UNWIND_INCLUDE$ac_delim
18791 toolexecdir!$toolexecdir$ac_delim
18792 toolexecmainlibdir!$toolexecmainlibdir$ac_delim
18793 toolexeclibdir!$toolexeclibdir$ac_delim
18794 dbexecdir!$dbexecdir$ac_delim
18795 GCJVERSION!$GCJVERSION$ac_delim
18796 gxx_include_dir!$gxx_include_dir$ac_delim
18797 libstdcxx_incdir!$libstdcxx_incdir$ac_delim
18798 ALLOCA!$ALLOCA$ac_delim
18799 PERL!$PERL$ac_delim
18800 SYSDEP_SOURCES!$SYSDEP_SOURCES$ac_delim
18801 LD_START_STATIC_SPEC!$LD_START_STATIC_SPEC$ac_delim
18802 LD_FINISH_STATIC_SPEC!$LD_FINISH_STATIC_SPEC$ac_delim
18803 here!$here$ac_delim
18804 LIBOBJS!$LIBOBJS$ac_delim
18805 LTLIBOBJS!$LTLIBOBJS$ac_delim
18808 if test `grep -c "$ac_delim\$" conf$$subs.sed` = 36; then
18810 elif $ac_last_try; then
18811 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18812 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18813 { (exit 1); exit 1; }; }
18815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18820 if grep '^CEOF$' conf$$subs.sed >/dev/null; then
18821 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF//p' conf$$subs.sed | sort -nru | sed 1q`
18822 ac_eof=`expr 0$ac_eof + 1`
18825 cat >>$CONFIG_STATUS <<_ACEOF
18826 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
18827 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
18830 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
18831 s/^/s,@/; s/!/@,|#_!!_#|/
18834 s/'"$ac_delim"'$/,g/; t
18836 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
18837 ' >>$CONFIG_STATUS <conf$$subs.sed
18838 rm -f conf$$subs.sed
18839 cat >>$CONFIG_STATUS <<_ACEOF
18846 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18847 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18848 # trailing colons and then remove the whole line if VPATH becomes empty
18849 # (actually we leave an empty line to preserve line numbers).
18850 if test "x$srcdir" = x.; then
18851 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18852 s/:*\$(srcdir):*/:/
18853 s/:*\${srcdir}:*/:/
18855 s/^\([^=]*=[ ]*\):*/\1/
18861 cat >>$CONFIG_STATUS <<\_ACEOF
18862 fi # test -n "$CONFIG_FILES"
18865 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS
18868 :[FHLC]) ac_mode=$ac_tag; continue;;
18870 case $ac_mode$ac_tag in
18872 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
18873 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
18874 { (exit 1); exit 1; }; };;
18875 :[FH]-) ac_tag=-:-;;
18876 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18893 -) ac_f="$tmp/stdin";;
18894 *) # Look for the file first in the build tree, then in the source tree
18895 # (if the path is not absolute). The absolute path cannot be DOS-style,
18896 # because $ac_f cannot contain `:'.
18900 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18902 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18903 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18904 { (exit 1); exit 1; }; };;
18906 ac_file_inputs="$ac_file_inputs $ac_f"
18909 # Let's still pretend it is `configure' which instantiates (i.e., don't
18910 # use $as_me), people would be surprised to read:
18911 # /* config.h. Generated by config.status. */
18912 configure_input="Generated from "`IFS=:
18913 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
18914 if test x"$ac_file" != x-; then
18915 configure_input="$ac_file. $configure_input"
18916 { echo "$as_me:$LINENO: creating $ac_file" >&5
18917 echo "$as_me: creating $ac_file" >&6;}
18921 *:-:* | *:-) cat >"$tmp/stdin";;
18926 ac_dir=`$as_dirname -- "$ac_file" ||
18927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18928 X"$ac_file" : 'X\(//\)[^/]' \| \
18929 X"$ac_file" : 'X\(//\)$' \| \
18930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18936 /^X\(\/\/\)[^/].*/{
18951 -*) as_dir=./$as_dir;;
18953 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18957 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
18958 *) as_qdir=$as_dir;;
18960 as_dirs="'$as_qdir' $as_dirs"
18961 as_dir=`$as_dirname -- "$as_dir" ||
18962 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18963 X"$as_dir" : 'X\(//\)[^/]' \| \
18964 X"$as_dir" : 'X\(//\)$' \| \
18965 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18971 /^X\(\/\/\)[^/].*/{
18984 test -d "$as_dir" && break
18986 test -z "$as_dirs" || eval "mkdir $as_dirs"
18987 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18988 echo "$as_me: error: cannot create directory $as_dir" >&2;}
18989 { (exit 1); exit 1; }; }; }
18993 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18995 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18996 # A ".." for each directory in $ac_dir_suffix.
18997 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
18998 case $ac_top_builddir_sub in
18999 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19000 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19003 ac_abs_top_builddir=$ac_pwd
19004 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19005 # for backward compatibility:
19006 ac_top_builddir=$ac_top_build_prefix
19009 .) # We are building in place.
19011 ac_top_srcdir=$ac_top_builddir_sub
19012 ac_abs_top_srcdir=$ac_pwd ;;
19013 [\\/]* | ?:[\\/]* ) # Absolute name.
19014 ac_srcdir=$srcdir$ac_dir_suffix;
19015 ac_top_srcdir=$srcdir
19016 ac_abs_top_srcdir=$srcdir ;;
19017 *) # Relative name.
19018 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19019 ac_top_srcdir=$ac_top_build_prefix$srcdir
19020 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19022 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19032 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19033 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19037 cat >>$CONFIG_STATUS <<\_ACEOF
19038 # If the template does not know about datarootdir, expand it.
19039 # FIXME: This hack should be removed a few years after 2.60.
19040 ac_datarootdir_hack=
19042 case `sed -n '/datarootdir/ {
19051 ' $ac_file_inputs` in
19053 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19054 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19055 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19057 cat >>$CONFIG_STATUS <<_ACEOF
19058 ac_datarootdir_hack='
19059 s&@datadir@&$datadir&g
19060 s&@docdir@&$docdir&g
19061 s&@infodir@&$infodir&g
19062 s&@localedir@&$localedir&g
19063 s&@mandir@&$mandir&g
19064 s&\\\${datarootdir}&$datarootdir&g' ;;
19068 # Neutralize VPATH when `$srcdir' = `.'.
19069 # Shell code in configure.ac might set extrasub.
19070 # FIXME: do we really want to maintain this feature?
19071 cat >>$CONFIG_STATUS <<_ACEOF
19075 cat >>$CONFIG_STATUS <<\_ACEOF
19077 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19078 s&@configure_input@&$configure_input&;t t
19079 s&@top_builddir@&$ac_top_builddir_sub&;t t
19080 s&@srcdir@&$ac_srcdir&;t t
19081 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19082 s&@top_srcdir@&$ac_top_srcdir&;t t
19083 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19084 s&@builddir@&$ac_builddir&;t t
19085 s&@abs_builddir@&$ac_abs_builddir&;t t
19086 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19087 s&@INSTALL@&$ac_INSTALL&;t t
19088 $ac_datarootdir_hack
19089 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
19093 -) cat "$tmp/out"; rm -f "$tmp/out";;
19094 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19102 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19103 # NAME is the cpp macro being defined, VALUE is the value it is being given.
19104 # PARAMS is the parameter list in the macro definition--in most cases, it's
19105 # just an empty string.
19107 ac_dA='s,^\([ ]*#[ ]*\)[^ ]*\([ ][ ]*'
19108 ac_dB='\)[ (].*$,\1define\2'
19112 ac_word_regexp=[_$as_cr_Letters][_$as_cr_alnum]*
19115 # Transform confdefs.h into a sed script `conftest.defines', that
19116 # substitutes the proper values into config.h.in to produce config.h.
19117 rm -f conftest.defines conftest.tail
19118 # First, append a space to every undef/define line, to ease matching.
19119 echo 's/$/ /' >conftest.defines
19120 # Then, protect against being on the right side of a sed subst, or in
19121 # an unquoted here document, in config.status. If some macros were
19122 # called several times there might be several #defines for the same
19123 # symbol, which is useless. But do not sort them, since the last
19124 # AC_DEFINE must be honored.
19125 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19130 s/^[ ]*#[ ]*define[ ][ ]*//
19136 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/${ac_dA}\1$ac_dB\2${ac_dC}\3$ac_dD/p
19137 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/${ac_dA}\1$ac_dB${ac_dC}\2$ac_dD/p
19138 ' >>conftest.defines
19140 # Remove the space that was appended to ease matching.
19141 # Then replace #undef with comments. This is necessary, for
19142 # example, in the case of _POSIX_SOURCE, which is predefined and required
19143 # on some systems where configure will not decide to define it.
19144 # (The regexp can be short, since the line contains either #define or #undef.)
19146 s,^[ #]*u.*,/* & */,' >>conftest.defines
19148 # Break up conftest.defines:
19149 ac_max_sed_lines=96
19151 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19152 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19153 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19155 ac_in='$ac_file_inputs'
19156 ac_out='"$tmp/out1"'
19157 ac_nxt='"$tmp/out2"'
19161 # Write a here document:
19162 echo ' # First, check the format of the line:
19163 cat >"$tmp/defines.sed" <<CEOF
19164 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_regexp[ ]*$/b def
19165 /^[ ]*#[ ]*define[ ][ ]*$ac_word_regexp[( ]/b def
19167 :def' >>$CONFIG_STATUS
19168 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19170 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19171 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19172 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19173 grep . conftest.tail >/dev/null || break
19174 rm -f conftest.defines
19175 mv conftest.tail conftest.defines
19177 rm -f conftest.defines conftest.tail
19179 echo "ac_result=$ac_in" >>$CONFIG_STATUS
19180 cat >>$CONFIG_STATUS <<\_ACEOF
19181 if test x"$ac_file" != x-; then
19182 echo "/* $configure_input */" >"$tmp/config.h"
19183 cat "$ac_result" >>"$tmp/config.h"
19184 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19185 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19186 echo "$as_me: $ac_file is unchanged" >&6;}
19189 mv "$tmp/config.h" $ac_file
19192 echo "/* $configure_input */"
19196 # Compute $ac_file's index in $config_headers.
19198 for _am_header in $config_headers :; do
19199 case $_am_header in
19200 $ac_file | $ac_file:* )
19203 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19206 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
19207 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19208 X$ac_file : 'X\(//\)[^/]' \| \
19209 X$ac_file : 'X\(//\)$' \| \
19210 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
19212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19216 /^X\(\/\/\)[^/].*/{
19228 s/.*/./; q'`/stamp-h$_am_stamp_count
19235 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
19236 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
19238 if test ! -r $srcdir/$ac_source; then
19239 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
19240 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
19241 { (exit 1); exit 1; }; }
19245 # Try a relative symlink, then a hard link, then a copy.
19247 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
19248 *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
19250 ln -s $ac_rel_source $ac_file 2>/dev/null ||
19251 ln $srcdir/$ac_source $ac_file 2>/dev/null ||
19252 cp -p $srcdir/$ac_source $ac_file ||
19253 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
19254 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
19255 { (exit 1); exit 1; }; }
19257 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19258 echo "$as_me: executing $ac_file commands" >&6;}
19263 case $ac_file$ac_mode in
19264 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19265 # Strip MF so we end up with the name of the file.
19266 mf=`echo "$mf" | sed -e 's/:.*$//'`
19267 # Check whether this is an Automake generated Makefile or not.
19268 # We used to match only the files named `Makefile.in', but
19269 # some people rename them; so instead we look at the file content.
19270 # Grep'ing the first line is not enough: some people post-process
19271 # each Makefile.in and add a new line on top of each file to say so.
19272 # So let's grep whole file.
19273 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19274 dirpart=`$as_dirname -- "$mf" ||
19275 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19276 X"$mf" : 'X\(//\)[^/]' \| \
19277 X"$mf" : 'X\(//\)$' \| \
19278 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19284 /^X\(\/\/\)[^/].*/{
19300 # Extract the definition of DEPDIR, am__include, and am__quote
19301 # from the Makefile without running `make'.
19302 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19303 test -z "$DEPDIR" && continue
19304 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19305 test -z "am__include" && continue
19306 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19307 # When using ansi2knr, U may be empty or an underscore; expand it
19308 U=`sed -n 's/^U = //p' < "$mf"`
19309 # Find all dependency output files, they are included files with
19310 # $(DEPDIR) in their names. We invoke sed twice because it is the
19311 # simplest approach to changing $(DEPDIR) to its actual value in the
19313 for file in `sed -n "
19314 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19315 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19316 # Make sure the directory exists.
19317 test -f "$dirpart/$file" && continue
19318 fdir=`$as_dirname -- "$file" ||
19319 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19320 X"$file" : 'X\(//\)[^/]' \| \
19321 X"$file" : 'X\(//\)$' \| \
19322 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19328 /^X\(\/\/\)[^/].*/{
19341 { as_dir=$dirpart/$fdir
19343 -*) as_dir=./$as_dir;;
19345 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19349 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19350 *) as_qdir=$as_dir;;
19352 as_dirs="'$as_qdir' $as_dirs"
19353 as_dir=`$as_dirname -- "$as_dir" ||
19354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19355 X"$as_dir" : 'X\(//\)[^/]' \| \
19356 X"$as_dir" : 'X\(//\)$' \| \
19357 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19363 /^X\(\/\/\)[^/].*/{
19376 test -d "$as_dir" && break
19378 test -z "$as_dirs" || eval "mkdir $as_dirs"
19379 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19380 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19381 { (exit 1); exit 1; }; }; }
19382 # echo "creating $dirpart/$file"
19383 echo '# dummy' > "$dirpart/$file"
19387 "scripts/jar":F) chmod +x scripts/jar ;;
19388 "default":C) # Only add multilib support code if we just rebuilt top-level Makefile.
19389 case " $CONFIG_FILES " in
19391 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
19392 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
19395 for ac_multi_file in $CONFIG_FILES; do
19396 case $ac_multi_file in
19398 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
19407 { (exit 0); exit 0; }
19409 chmod +x $CONFIG_STATUS
19410 ac_clean_files=$ac_clean_files_save
19413 # configure is writing to config.log, and then calls config.status.
19414 # config.status does its own redirection, appending to config.log.
19415 # Unfortunately, on DOS this fails, as config.log is still kept open
19416 # by configure, so config.status won't be able to write to it; its
19417 # output is simply discarded. So we exec the FD to /dev/null,
19418 # effectively closing config.log, so it can be properly (re)opened and
19419 # appended to by config.status. When coming back to configure, we
19420 # need to make the FD available again.
19421 if test "$no_create" != yes; then
19423 ac_config_status_args=
19424 test "$silent" = yes &&
19425 ac_config_status_args="$ac_config_status_args --quiet"
19427 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19429 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19430 # would make configure fail if this is the last instruction.
19431 $ac_cs_success || { (exit 1); exit 1; }
19435 # CONFIG_SUBDIRS section.
19437 if test "$no_recursion" != yes; then
19439 # Remove --cache-file and --srcdir arguments so they do not pile up.
19440 ac_sub_configure_args=
19442 eval set x "$ac_configure_args"
19446 if test -n "$ac_prev"; then
19451 -cache-file | --cache-file | --cache-fil | --cache-fi \
19452 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19453 ac_prev=cache_file ;;
19454 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19455 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
19458 --config-cache | -C)
19460 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19462 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
19466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
19470 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19472 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
19476 # Always prepend --prefix to ensure using the same prefix
19477 # in subdir configurations.
19478 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
19481 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
19483 # Do not complain, so a configure script can configure whichever
19484 # parts of a large source tree are present.
19485 test -d $srcdir/$ac_dir || continue
19487 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
19488 echo "$as_me:$LINENO: $ac_msg" >&5
19492 -*) as_dir=./$as_dir;;
19494 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19498 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19499 *) as_qdir=$as_dir;;
19501 as_dirs="'$as_qdir' $as_dirs"
19502 as_dir=`$as_dirname -- "$as_dir" ||
19503 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19504 X"$as_dir" : 'X\(//\)[^/]' \| \
19505 X"$as_dir" : 'X\(//\)$' \| \
19506 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19512 /^X\(\/\/\)[^/].*/{
19525 test -d "$as_dir" && break
19527 test -z "$as_dirs" || eval "mkdir $as_dirs"
19528 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19529 echo "$as_me: error: cannot create directory $as_dir" >&2;}
19530 { (exit 1); exit 1; }; }; }
19534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19536 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19537 # A ".." for each directory in $ac_dir_suffix.
19538 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19539 case $ac_top_builddir_sub in
19540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19544 ac_abs_top_builddir=$ac_pwd
19545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19546 # for backward compatibility:
19547 ac_top_builddir=$ac_top_build_prefix
19550 .) # We are building in place.
19552 ac_top_srcdir=$ac_top_builddir_sub
19553 ac_abs_top_srcdir=$ac_pwd ;;
19554 [\\/]* | ?:[\\/]* ) # Absolute name.
19555 ac_srcdir=$srcdir$ac_dir_suffix;
19556 ac_top_srcdir=$srcdir
19557 ac_abs_top_srcdir=$srcdir ;;
19558 *) # Relative name.
19559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19560 ac_top_srcdir=$ac_top_build_prefix$srcdir
19561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19568 # Check for guested configure; otherwise get Cygnus style configure.
19569 if test -f $ac_srcdir/configure.gnu; then
19570 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
19571 elif test -f $ac_srcdir/configure; then
19572 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
19573 elif test -f $ac_srcdir/configure.in; then
19574 ac_sub_configure=$ac_configure
19576 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
19577 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
19581 # The recursion is here.
19582 if test -n "$ac_sub_configure"; then
19583 # Make the cache file name correct relative to the subdirectory.
19584 case $cache_file in
19585 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
19586 *) # Relative name.
19587 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
19590 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
19591 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
19592 # The eval makes quoting arguments work.
19593 eval "$ac_sub_configure $ac_sub_configure_args \
19594 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" ||
19595 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
19596 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
19597 { (exit 1); exit 1; }; }