2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-shared=PKGS build shared libraries default=yes
861 --enable-static=PKGS build static libraries default=yes
862 --enable-fast-install=PKGS optimize for fast installation default=yes
863 --disable-libtool-lock avoid locking (might break parallel builds)
864 --disable-getenv-properties
865 don't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-multifile
869 allow compilation of several files at once
871 --enable-libgcj-debug enable runtime debugging code
872 --enable-gc-debug include full support for pointer backtracing etc.
873 --enable-interpreter enable interpreter
874 --enable-sjlj-exceptions
875 force use of builtin_setjmp for exceptions
876 --disable-java-net disable java.net
877 --disable-jvmpi disable JVMPI support
878 --enable-java-awt list of AWT peer implementations to be built
879 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
881 --disable-rpath do not hardcode runtime library paths
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-target-subdir=SUBDIR
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
892 --with-java-home=DIRECTORY
893 value of java.home system property
894 --with-win32-nlsapi=ansi or unicows or unicode
895 native MinGW libgcj Win32 OS API (default is ansi)
896 --without-libffi don't use libffi
897 --with-ecos enable runtime eCos target support
898 --with-system-zlib use installed libz
899 --with-x use the X Window System
900 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
901 --without-libiconv-prefix don't search for libiconv in includedir and libdir
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CXX C++ compiler command
911 CXXFLAGS C++ compiler flags
912 CXXCPP C++ preprocessor
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 ac_dir_suffix= ac_top_builddir=
937 .) # No --srcdir option. We are building in place.
939 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
955 .) ac_abs_builddir="$ac_dir";;
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1002 $ac_configure --help
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_must_keep_next=false
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 -* ) ac_must_keep_next=true ;;
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135 # Save into config.log some information that might help in debugging.
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1145 # The following way of writing the cache mishandles newlines in values,
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1168 for ac_var in $ac_subst_vars
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -n "$ac_subst_files"; then
1182 for ac_var in $ac_subst_files
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1190 if test -s confdefs.h; then
1197 sed "/^$/d" confdefs.h | sort
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1204 rm -f core *.core &&
1205 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's/^/| /' "$ac_site_file" >&5
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1280 # Check that the precious variables saved in the cache have kept the same
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted=:
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg=$ac_var=$ac_new_val ;;
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh; then
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool; then
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404 ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408 { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 case ${build_alias} in
1424 "") build_noncanonical=${build} ;;
1425 *) build_noncanonical=${build_alias} ;;
1428 case ${host_alias} in
1429 "") host_noncanonical=${build_noncanonical} ;;
1430 *) host_noncanonical=${host_alias} ;;
1433 case ${target_alias} in
1434 "") target_noncanonical=${host_noncanonical} ;;
1435 *) target_noncanonical=${target_alias} ;;
1438 # Prefix 'build-' so this never conflicts with target_subdir.
1439 build_subdir="build-${build_noncanonical}"
1440 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1441 if ( test $srcdir = . && test -d gcc ) \
1442 || test -d $srcdir/../host-${host_noncanonical}; then
1443 host_subdir="host-${host_noncanonical}"
1448 target_subdir=${target_noncanonical}
1451 # We use these options to decide which functions to include.
1453 # Check whether --with-target-subdir or --without-target-subdir was given.
1454 if test "${with_target_subdir+set}" = set; then
1455 withval="$with_target_subdir"
1459 # We may get other options which we don't document:
1460 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1462 # When building with srcdir == objdir, links to the source files will
1463 # be created in directories within the target_subdir. We have to
1464 # adjust toplevel_srcdir accordingly, so that configure finds
1465 # install-sh and other auxiliary files that live in the top-level
1467 if test "${srcdir}" = "."; then
1468 if test -z "${with_target_subdir}"; then
1471 if test "${with_target_subdir}" != "."; then
1472 toprel="${with_multisrctop}../.."
1474 toprel="${with_multisrctop}.."
1481 libgcj_basedir=$srcdir/$toprel/./libjava
1484 echo "$as_me:$LINENO: checking host system type" >&5
1485 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1486 if test "${ac_cv_host+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 ac_cv_host_alias=$host_alias
1490 test -z "$ac_cv_host_alias" &&
1491 ac_cv_host_alias=$ac_cv_build_alias
1492 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1493 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1495 { (exit 1); exit 1; }; }
1498 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1499 echo "${ECHO_T}$ac_cv_host" >&6
1501 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1506 echo "$as_me:$LINENO: checking target system type" >&5
1507 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1508 if test "${ac_cv_target+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 ac_cv_target_alias=$target_alias
1512 test "x$ac_cv_target_alias" = "x" &&
1513 ac_cv_target_alias=$ac_cv_host_alias
1514 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1515 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1517 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1521 echo "${ECHO_T}$ac_cv_target" >&6
1522 target=$ac_cv_target
1523 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 test -n "$target_alias" &&
1531 test "$program_prefix$program_suffix$program_transform_name" = \
1533 program_prefix=${target_alias}-
1534 case ${build_alias} in
1535 "") build_noncanonical=${build} ;;
1536 *) build_noncanonical=${build_alias} ;;
1539 case ${target_alias} in
1540 "") target_noncanonical=${host_noncanonical} ;;
1541 *) target_noncanonical=${target_alias} ;;
1547 # This works around the fact that libtool configuration may change LD
1548 # for this particular configuration, but some shells, instead of
1549 # keeping the changes in LD private, export them just because LD is
1551 ORIGINAL_LD_FOR_MULTILIBS=$LD
1553 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1554 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1556 if test "$LN_S" = "ln -s"; then
1557 echo "$as_me:$LINENO: result: yes" >&5
1558 echo "${ECHO_T}yes" >&6
1560 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1561 echo "${ECHO_T}no, using $LN_S" >&6
1565 # This works around an automake problem.
1566 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1570 # Check whether --with-cross-host or --without-cross-host was given.
1571 if test "${with_cross_host+set}" = set; then
1572 withval="$with_cross_host"
1577 # Check whether --with-newlib or --without-newlib was given.
1578 if test "${with_newlib+set}" = set; then
1579 withval="$with_newlib"
1583 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1584 if test "${enable_version_specific_runtime_libs+set}" = set; then
1585 enableval="$enable_version_specific_runtime_libs"
1586 case "$enableval" in
1587 yes) version_specific_libs=yes ;;
1588 no) version_specific_libs=no ;;
1589 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1590 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1591 { (exit 1); exit 1; }; };;
1594 version_specific_libs=no
1598 # Default to --enable-multilib
1599 # Check whether --enable-multilib or --disable-multilib was given.
1600 if test "${enable_multilib+set}" = set; then
1601 enableval="$enable_multilib"
1602 case "${enableval}" in
1603 yes) multilib=yes ;;
1605 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1606 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1607 { (exit 1); exit 1; }; } ;;
1612 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1615 # (1) We use an abnormal CXX (without library references), so we
1616 # must cache it under a different name.
1617 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1618 # the non-multilib-adjusted value will be used in multilibs.
1619 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1620 # (4) As another side effect, automake doesn't automatically include them
1622 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1623 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1624 # used in later tests. This may not be necessary in libjava; I don't know.
1628 save_CXXFLAGS="$CXXFLAGS"
1629 CXXFLAGS="$CXXFLAGS -fno-builtin"
1631 ac_cpp='$CPP $CPPFLAGS'
1632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635 if test -n "$ac_tool_prefix"; then
1636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1672 if test -z "$ac_cv_prog_CC"; then
1674 # Extract the first word of "gcc", so it can be a program name with args.
1675 set dummy gcc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 if test -n "$ac_ct_CC"; then
1682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_ac_ct_CC="gcc"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1714 if test -z "$CC"; then
1715 if test -n "$ac_tool_prefix"; then
1716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$CC"; then
1724 ac_cv_prog_CC="$CC" # Let the user override the test.
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_CC="${ac_tool_prefix}cc"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 if test -n "$CC"; then
1744 echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1752 if test -z "$ac_cv_prog_CC"; then
1754 # Extract the first word of "cc", so it can be a program name with args.
1755 set dummy cc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 if test -n "$ac_ct_CC"; then
1762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_ac_ct_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1785 echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1795 if test -z "$CC"; then
1796 # Extract the first word of "cc", so it can be a program name with args.
1797 set dummy cc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test -n "$CC"; then
1804 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1815 ac_prog_rejected=yes
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 if test $ac_prog_rejected = yes; then
1826 # We found a bogon in the path, so make sure we never use it.
1827 set dummy $ac_cv_prog_CC
1829 if test $# != 0; then
1830 # We chose a different compiler from the bogus one.
1831 # However, it has the same basename, so the bogon will be chosen
1832 # first if we set CC to just the basename; use the full file name.
1834 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1840 if test -n "$CC"; then
1841 echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1849 if test -z "$CC"; then
1850 if test -n "$ac_tool_prefix"; then
1853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$CC"; then
1861 ac_cv_prog_CC="$CC" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 if test -n "$CC"; then
1881 echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1888 test -n "$CC" && break
1891 if test -z "$CC"; then
1895 # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="$ac_prog"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1930 test -n "$ac_ct_CC" && break
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&2;}
1943 { (exit 1); exit 1; }; }
1945 # Provide some information about the compiler.
1946 echo "$as_me:$LINENO:" \
1947 "checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950 (eval $ac_compiler --version </dev/null >&5) 2>&5
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); }
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955 (eval $ac_compiler -v </dev/null >&5) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960 (eval $ac_compiler -V </dev/null >&5) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }
1965 cat >conftest.$ac_ext <<_ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1982 (eval $ac_link) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1991 if test x$gcc_no_link = xyes; then
1992 # Setting cross_compile will disable run tests; it will
1993 # also disable AC_CHECK_FILE but that's generally
1994 # correct if we can't link.
1998 cat >conftest.$ac_ext <<_ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h. */
2013 ac_clean_files_save=$ac_clean_files
2014 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2015 # Try to create an executable without -o first, disregard a.out.
2016 # It will help us diagnose broken compilers, and finding out an intuition
2018 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2019 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2020 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2021 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2022 (eval $ac_link_default) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; then
2026 # Find the output, starting from the most likely. This scheme is
2027 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2030 # Be careful to initialize this variable, since it used to be cached.
2031 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2033 # b.out is created by i960 compilers.
2034 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2036 test -f "$ac_file" || continue
2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2041 # This is the source file.
2044 # We found the default executable, but exeext='' is most
2048 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049 # FIXME: I believe we export ac_cv_exeext for Libtool,
2050 # but it would be cool to find out if it's true. Does anybody
2051 # maintain Libtool? --akim.
2059 echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: C compiler cannot create executables
2065 See \`config.log' for more details." >&2;}
2066 { (exit 77); exit 77; }; }
2069 ac_exeext=$ac_cv_exeext
2070 echo "$as_me:$LINENO: result: $ac_file" >&5
2071 echo "${ECHO_T}$ac_file" >&6
2073 # Check the compiler produces executables we can run. If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2076 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2077 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2078 # If not cross compiling, check that we can run a simple program.
2079 if test "$cross_compiling" != yes; then
2080 if { ac_try='./$ac_file'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; }; then
2088 if test "$cross_compiling" = maybe; then
2091 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'.
2096 See \`config.log' for more details." >&2;}
2097 { (exit 1); exit 1; }; }
2101 echo "$as_me:$LINENO: result: yes" >&5
2102 echo "${ECHO_T}yes" >&6
2104 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2105 ac_clean_files=$ac_clean_files_save
2106 # Check the compiler produces executables we can run. If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2109 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2110 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2111 echo "${ECHO_T}$cross_compiling" >&6
2113 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2114 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2116 (eval $ac_link) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2121 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2122 # work properly (i.e., refer to `conftest.exe'), while it won't with
2124 for ac_file in conftest.exe conftest conftest.*; do
2125 test -f "$ac_file" || continue
2127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2135 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2138 See \`config.log' for more details." >&2;}
2139 { (exit 1); exit 1; }; }
2142 rm -f conftest$ac_cv_exeext
2143 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2144 echo "${ECHO_T}$ac_cv_exeext" >&6
2146 rm -f conftest.$ac_ext
2147 EXEEXT=$ac_cv_exeext
2150 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2151 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2152 if test "${ac_cv_objext+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 cat >conftest.$ac_ext <<_ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2187 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2190 See \`config.log' for more details." >&2;}
2191 { (exit 1); exit 1; }; }
2194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2196 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2197 echo "${ECHO_T}$ac_cv_objext" >&6
2198 OBJEXT=$ac_cv_objext
2200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 cat >conftest.$ac_ext <<_ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2227 grep -v '^ *+' conftest.er1 >conftest.err
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag"
2233 || test ! -s conftest.err'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; } &&
2239 { ac_try='test -s conftest.$ac_objext'
2240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; }; then
2247 echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2256 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2258 GCC=`test $ac_compiler_gnu = yes && echo yes`
2259 ac_test_CFLAGS=${CFLAGS+set}
2260 ac_save_CFLAGS=$CFLAGS
2262 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2263 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2264 if test "${ac_cv_prog_cc_g+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 cat >conftest.$ac_ext <<_ACEOF
2270 cat confdefs.h >>conftest.$ac_ext
2271 cat >>conftest.$ac_ext <<_ACEOF
2272 /* end confdefs.h. */
2282 rm -f conftest.$ac_objext
2283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284 (eval $ac_compile) 2>conftest.er1
2286 grep -v '^ *+' conftest.er1 >conftest.err
2288 cat conftest.err >&5
2289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290 (exit $ac_status); } &&
2291 { ac_try='test -z "$ac_c_werror_flag"
2292 || test ! -s conftest.err'
2293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2314 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2315 if test "$ac_test_CFLAGS" = set; then
2316 CFLAGS=$ac_save_CFLAGS
2317 elif test $ac_cv_prog_cc_g = yes; then
2318 if test "$GCC" = yes; then
2324 if test "$GCC" = yes; then
2330 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2331 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2332 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 ac_cv_prog_cc_stdc=no
2337 cat >conftest.$ac_ext <<_ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2345 #include <sys/types.h>
2346 #include <sys/stat.h>
2347 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2348 struct buf { int x; };
2349 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2350 static char *e (p, i)
2356 static char *f (char * (*g) (char **, int), char **p, ...)
2361 s = g (p, va_arg (v,int));
2366 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2367 function prototypes and stuff, but not '\xHH' hex character constants.
2368 These don't provoke an error unfortunately, instead are silently treated
2369 as 'x'. The following induces an error, until -std1 is added to get
2370 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2371 array size at least. It's necessary to write '\x00'==0 to get something
2372 that's true only with -std1. */
2373 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2375 int test (int i, double x);
2376 struct s1 {int (*f) (int a);};
2377 struct s2 {int (*f) (double a);};
2378 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2384 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2389 # Don't try gcc -ansi; that turns off useful extensions and
2390 # breaks some systems' header files.
2391 # AIX -qlanglvl=ansi
2392 # Ultrix and OSF/1 -std1
2393 # HP-UX 10.20 and later -Ae
2394 # HP-UX older versions -Aa -D_HPUX_SOURCE
2395 # SVR4 -Xc -D__EXTENSIONS__
2396 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2398 CC="$ac_save_CC $ac_arg"
2399 rm -f conftest.$ac_objext
2400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2401 (eval $ac_compile) 2>conftest.er1
2403 grep -v '^ *+' conftest.er1 >conftest.err
2405 cat conftest.err >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); } &&
2408 { ac_try='test -z "$ac_c_werror_flag"
2409 || test ! -s conftest.err'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; } &&
2415 { ac_try='test -s conftest.$ac_objext'
2416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; }; then
2421 ac_cv_prog_cc_stdc=$ac_arg
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.err conftest.$ac_objext
2430 rm -f conftest.$ac_ext conftest.$ac_objext
2435 case "x$ac_cv_prog_cc_stdc" in
2437 echo "$as_me:$LINENO: result: none needed" >&5
2438 echo "${ECHO_T}none needed" >&6 ;;
2440 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2441 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2442 CC="$CC $ac_cv_prog_cc_stdc" ;;
2445 # Some people use a C++ compiler to compile C. Since we use `exit',
2446 # in C++ we need to declare it. In case someone uses the same compiler
2447 # for both compiling C and C++ we need to have the C++ compiler decide
2448 # the declaration of exit, since it's the most demanding environment.
2449 cat >conftest.$ac_ext <<_ACEOF
2454 rm -f conftest.$ac_objext
2455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2456 (eval $ac_compile) 2>conftest.er1
2458 grep -v '^ *+' conftest.er1 >conftest.err
2460 cat conftest.err >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); } &&
2463 { ac_try='test -z "$ac_c_werror_flag"
2464 || test ! -s conftest.err'
2465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; } &&
2470 { ac_try='test -s conftest.$ac_objext'
2471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; }; then
2476 for ac_declaration in \
2478 'extern "C" void std::exit (int) throw (); using std::exit;' \
2479 'extern "C" void std::exit (int); using std::exit;' \
2480 'extern "C" void exit (int) throw ();' \
2481 'extern "C" void exit (int);' \
2484 cat >conftest.$ac_ext <<_ACEOF
2487 cat confdefs.h >>conftest.$ac_ext
2488 cat >>conftest.$ac_ext <<_ACEOF
2489 /* end confdefs.h. */
2500 rm -f conftest.$ac_objext
2501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502 (eval $ac_compile) 2>conftest.er1
2504 grep -v '^ *+' conftest.er1 >conftest.err
2506 cat conftest.err >&5
2507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508 (exit $ac_status); } &&
2509 { ac_try='test -z "$ac_c_werror_flag"
2510 || test ! -s conftest.err'
2511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }; } &&
2516 { ac_try='test -s conftest.$ac_objext'
2517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); }; }; then
2524 echo "$as_me: failed program was:" >&5
2525 sed 's/^/| /' conftest.$ac_ext >&5
2529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2530 cat >conftest.$ac_ext <<_ACEOF
2533 cat confdefs.h >>conftest.$ac_ext
2534 cat >>conftest.$ac_ext <<_ACEOF
2535 /* end confdefs.h. */
2545 rm -f conftest.$ac_objext
2546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2547 (eval $ac_compile) 2>conftest.er1
2549 grep -v '^ *+' conftest.er1 >conftest.err
2551 cat conftest.err >&5
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
2554 { ac_try='test -z "$ac_c_werror_flag"
2555 || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2576 if test -n "$ac_declaration"; then
2577 echo '#ifdef __cplusplus' >>confdefs.h
2578 echo $ac_declaration >>confdefs.h
2579 echo '#endif' >>confdefs.h
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 ac_cpp='$CXXCPP $CPPFLAGS'
2596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2606 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -n "$CXX"; then
2610 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2628 CXX=$glibcxx_cv_prog_CXX
2629 if test -n "$CXX"; then
2630 echo "$as_me:$LINENO: result: $CXX" >&5
2631 echo "${ECHO_T}$CXX" >&6
2633 echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6
2637 test -n "$CXX" && break
2640 if test -z "$CXX"; then
2642 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 if test -n "$ac_ct_CXX"; then
2652 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_ac_ct_CXX="$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2671 if test -n "$ac_ct_CXX"; then
2672 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2673 echo "${ECHO_T}$ac_ct_CXX" >&6
2675 echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2679 test -n "$ac_ct_CXX" && break
2681 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO:" \
2689 "checking for C++ compiler version" >&5
2690 ac_compiler=`set X $ac_compile; echo $2`
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2692 (eval $ac_compiler --version </dev/null >&5) 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2697 (eval $ac_compiler -v </dev/null >&5) 2>&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
2701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2702 (eval $ac_compiler -V </dev/null >&5) 2>&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
2707 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2708 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 cat >conftest.$ac_ext <<_ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2734 grep -v '^ *+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_cxx_werror_flag"
2740 || test ! -s conftest.err'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; } &&
2746 { ac_try='test -s conftest.$ac_objext'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2760 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2763 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2764 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2765 GXX=`test $ac_compiler_gnu = yes && echo yes`
2766 ac_test_CXXFLAGS=${CXXFLAGS+set}
2767 ac_save_CXXFLAGS=$CXXFLAGS
2769 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2770 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2771 if test "${ac_cv_prog_cxx_g+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 cat >conftest.$ac_ext <<_ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h. */
2789 rm -f conftest.$ac_objext
2790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2791 (eval $ac_compile) 2>conftest.er1
2793 grep -v '^ *+' conftest.er1 >conftest.err
2795 cat conftest.err >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
2798 { ac_try='test -z "$ac_cxx_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
2806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_cv_prog_cxx_g=yes
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2820 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2821 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2822 if test "$ac_test_CXXFLAGS" = set; then
2823 CXXFLAGS=$ac_save_CXXFLAGS
2824 elif test $ac_cv_prog_cxx_g = yes; then
2825 if test "$GXX" = yes; then
2831 if test "$GXX" = yes; then
2837 for ac_declaration in \
2839 'extern "C" void std::exit (int) throw (); using std::exit;' \
2840 'extern "C" void std::exit (int); using std::exit;' \
2841 'extern "C" void exit (int) throw ();' \
2842 'extern "C" void exit (int);' \
2845 cat >conftest.$ac_ext <<_ACEOF
2848 cat confdefs.h >>conftest.$ac_ext
2849 cat >>conftest.$ac_ext <<_ACEOF
2850 /* end confdefs.h. */
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1 >conftest.err
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_cxx_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 cat >conftest.$ac_ext <<_ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2906 rm -f conftest.$ac_objext
2907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2908 (eval $ac_compile) 2>conftest.er1
2910 grep -v '^ *+' conftest.er1 >conftest.err
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -z "$ac_cxx_werror_flag"
2916 || test ! -s conftest.err'
2917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }; } &&
2922 { ac_try='test -s conftest.$ac_objext'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; }; then
2930 echo "$as_me: failed program was:" >&5
2931 sed 's/^/| /' conftest.$ac_ext >&5
2934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2937 if test -n "$ac_declaration"; then
2938 echo '#ifdef __cplusplus' >>confdefs.h
2939 echo $ac_declaration >>confdefs.h
2940 echo '#endif' >>confdefs.h
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949 CXXFLAGS="$save_CXXFLAGS"
2955 am__api_version="1.9"
2956 # Find a good install program. We prefer a C program (faster),
2957 # so one script is as good as another. But avoid the broken or
2958 # incompatible versions:
2959 # SysV /etc/install, /usr/sbin/install
2960 # SunOS /usr/etc/install
2961 # IRIX /sbin/install
2963 # AmigaOS /C/install, which installs bootblocks on floppy discs
2964 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2965 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2966 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2967 # OS/2's system install, which has a completely different semantic
2968 # ./install, which can be erroneously created by make from ./install.sh.
2969 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2970 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2971 if test -z "$INSTALL"; then
2972 if test "${ac_cv_path_install+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 # Account for people who put trailing slashes in PATH elements.
2982 ./ | .// | /cC/* | \
2983 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2984 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2987 # OSF1 and SCO ODT 3.0 have their own names for install.
2988 # Don't use installbsd from OSF since it installs stuff as root
2990 for ac_prog in ginstall scoinst install; do
2991 for ac_exec_ext in '' $ac_executable_extensions; do
2992 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2993 if test $ac_prog = install &&
2994 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995 # AIX install. It has an incompatible calling convention.
2997 elif test $ac_prog = install &&
2998 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2999 # program-specific install script used by HP pwplus--don't use.
3002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3014 if test "${ac_cv_path_install+set}" = set; then
3015 INSTALL=$ac_cv_path_install
3017 # As a last resort, use the slow shell script. We don't cache a
3018 # path for INSTALL within a source directory, because that will
3019 # break other packages using the cache if that directory is
3020 # removed, or if the path is relative.
3021 INSTALL=$ac_install_sh
3024 echo "$as_me:$LINENO: result: $INSTALL" >&5
3025 echo "${ECHO_T}$INSTALL" >&6
3027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3028 # It thinks the first close brace ends the variable substitution.
3029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3035 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3036 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3039 echo timestamp > conftest.file
3040 # Do `set' in a subshell so we don't clobber the current shell's
3041 # arguments. Must try -L first in case configure is actually a
3042 # symlink; some systems play weird games with the mod time of symlinks
3043 # (eg FreeBSD returns the mod time of the symlink's containing
3046 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3047 if test "$*" = "X"; then
3049 set X `ls -t $srcdir/configure conftest.file`
3052 if test "$*" != "X $srcdir/configure conftest.file" \
3053 && test "$*" != "X conftest.file $srcdir/configure"; then
3055 # If neither matched, then we have a broken ls. This can happen
3056 # if, for instance, CONFIG_SHELL is bash and it inherits a
3057 # broken ls alias from the environment. This has actually
3058 # happened. Such a system could not be considered "sane".
3059 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3060 alias in your environment" >&5
3061 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3062 alias in your environment" >&2;}
3063 { (exit 1); exit 1; }; }
3066 test "$2" = conftest.file
3072 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3073 Check your system clock" >&5
3074 echo "$as_me: error: newly created file is older than distributed files!
3075 Check your system clock" >&2;}
3076 { (exit 1); exit 1; }; }
3078 echo "$as_me:$LINENO: result: yes" >&5
3079 echo "${ECHO_T}yes" >&6
3080 test "$program_prefix" != NONE &&
3081 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3082 # Use a double $ so make ignores it.
3083 test "$program_suffix" != NONE &&
3084 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3085 # Double any \ or $. echo might interpret backslashes.
3086 # By default was `s,x,x', remove it if useless.
3087 cat <<\_ACEOF >conftest.sed
3088 s/[\\$]/&&/g;s/;s,x,x,$//
3090 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3093 # expand $ac_aux_dir to an absolute path
3094 am_aux_dir=`cd $ac_aux_dir && pwd`
3096 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3097 # Use eval to expand $SHELL
3098 if eval "$MISSING --run true"; then
3099 am_missing_run="$MISSING --run "
3102 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3103 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3106 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3107 # We used to keeping the `.' as first argument, in order to
3108 # allow $(mkdir_p) to be used without argument. As in
3109 # $(mkdir_p) $(somedir)
3110 # where $(somedir) is conditionally defined. However this is wrong
3112 # 1. if the package is installed by a user who cannot write `.'
3113 # make install will fail,
3114 # 2. the above comment should most certainly read
3115 # $(mkdir_p) $(DESTDIR)$(somedir)
3116 # so it does not work when $(somedir) is undefined and
3117 # $(DESTDIR) is not.
3118 # To support the latter case, we have to write
3119 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3120 # so the `.' trick is pointless.
3121 mkdir_p='mkdir -p --'
3123 # On NextStep and OpenStep, the `mkdir' command does not
3124 # recognize any option. It will interpret all options as
3125 # directories to create, and then abort because `.' already
3127 for d in ./-p ./--version;
3129 test -d $d && rmdir $d
3131 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3132 if test -f "$ac_aux_dir/mkinstalldirs"; then
3133 mkdir_p='$(mkinstalldirs)'
3135 mkdir_p='$(install_sh) -d'
3139 for ac_prog in gawk mawk nawk awk
3141 # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_AWK+set}" = set; then
3146 echo $ECHO_N "(cached) $ECHO_C" >&6
3148 if test -n "$AWK"; then
3149 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_AWK="$ac_prog"
3159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 if test -n "$AWK"; then
3169 echo "$as_me:$LINENO: result: $AWK" >&5
3170 echo "${ECHO_T}$AWK" >&6
3172 echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3176 test -n "$AWK" && break
3179 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3180 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3181 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3182 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3185 cat >conftest.make <<\_ACEOF
3187 @echo 'ac_maketemp="$(MAKE)"'
3189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3190 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3191 if test -n "$ac_maketemp"; then
3192 eval ac_cv_prog_make_${ac_make}_set=yes
3194 eval ac_cv_prog_make_${ac_make}_set=no
3198 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3199 echo "$as_me:$LINENO: result: yes" >&5
3200 echo "${ECHO_T}yes" >&6
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 SET_MAKE="MAKE=${MAKE-make}"
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3215 rmdir .tst 2>/dev/null
3217 DEPDIR="${am__leading_dot}deps"
3219 ac_config_commands="$ac_config_commands depfiles"
3222 am_make=${MAKE-make}
3223 cat > confinc << 'END'
3228 # If we don't find an include directive, just comment out the code.
3229 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3230 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3234 # First try GNU make style include.
3235 echo "include confinc" > confmf
3236 # We grep out `Entering directory' and `Leaving directory'
3237 # messages which can occur if `w' ends up in MAKEFLAGS.
3238 # In particular we don't look at `^make:' because GNU make might
3239 # be invoked under some other name (usually "gmake"), in which
3240 # case it prints its new name instead of `make'.
3241 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3246 # Now try BSD make style include.
3247 if test "$am__include" = "#"; then
3248 echo '.include "confinc"' > confmf
3249 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3250 am__include=.include
3257 echo "$as_me:$LINENO: result: $_am_result" >&5
3258 echo "${ECHO_T}$_am_result" >&6
3259 rm -f confinc confmf
3261 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3262 if test "${enable_dependency_tracking+set}" = set; then
3263 enableval="$enable_dependency_tracking"
3266 if test "x$enable_dependency_tracking" != xno; then
3267 am_depcomp="$ac_aux_dir/depcomp"
3272 if test "x$enable_dependency_tracking" != xno; then
3282 # test to see if srcdir already configured
3283 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3284 test -f $srcdir/config.status; then
3285 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3286 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3287 { (exit 1); exit 1; }; }
3290 # test whether we have cygpath
3291 if test -z "$CYGPATH_W"; then
3292 if (cygpath --version) >/dev/null 2>/dev/null; then
3293 CYGPATH_W='cygpath -w'
3300 # Define the identity of the package.
3302 VERSION='version-unused'
3305 cat >>confdefs.h <<_ACEOF
3306 #define PACKAGE "$PACKAGE"
3310 cat >>confdefs.h <<_ACEOF
3311 #define VERSION "$VERSION"
3314 # Some tools Automake needs.
3316 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3319 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3322 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3325 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3328 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3330 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3332 # Installed binaries are usually stripped using `strip' when the user
3333 # run `make install-strip'. However `strip' might not be the right
3334 # tool to use in cross-compilation environments, therefore Automake
3335 # will honor the `STRIP' environment variable to overrule this program.
3336 if test "$cross_compiling" != no; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}strip; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_prog_STRIP+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3345 if test -n "$STRIP"; then
3346 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 STRIP=$ac_cv_prog_STRIP
3365 if test -n "$STRIP"; then
3366 echo "$as_me:$LINENO: result: $STRIP" >&5
3367 echo "${ECHO_T}$STRIP" >&6
3369 echo "$as_me:$LINENO: result: no" >&5
3370 echo "${ECHO_T}no" >&6
3374 if test -z "$ac_cv_prog_STRIP"; then
3376 # Extract the first word of "strip", so it can be a program name with args.
3377 set dummy strip; ac_word=$2
3378 echo "$as_me:$LINENO: checking for $ac_word" >&5
3379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3380 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3381 echo $ECHO_N "(cached) $ECHO_C" >&6
3383 if test -n "$ac_ct_STRIP"; then
3384 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 test -z "$as_dir" && as_dir=.
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_ac_ct_STRIP="strip"
3394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3403 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3404 if test -n "$ac_ct_STRIP"; then
3405 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3406 echo "${ECHO_T}$ac_ct_STRIP" >&6
3408 echo "$as_me:$LINENO: result: no" >&5
3409 echo "${ECHO_T}no" >&6
3414 STRIP="$ac_cv_prog_STRIP"
3418 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3420 # We need awk for the "check" target. The system "awk" is bad on
3422 # Always define AMTAR for backward compatibility.
3424 AMTAR=${AMTAR-"${am_missing_run}tar"}
3426 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3431 depcc="$CC" am_compiler_list=
3433 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3434 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3435 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3436 echo $ECHO_N "(cached) $ECHO_C" >&6
3438 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3439 # We make a subdir and do the tests there. Otherwise we can end up
3440 # making bogus files that we don't know about and never remove. For
3441 # instance it was reported that on HP-UX the gcc test will end up
3442 # making a dummy file named `D' -- because `-MD' means `put the output
3445 # Copy depcomp to subdir because otherwise we won't find it if we're
3446 # using a relative directory.
3447 cp "$am_depcomp" conftest.dir
3449 # We will build objects and dependencies in a subdirectory because
3450 # it helps to detect inapplicable dependency modes. For instance
3451 # both Tru64's cc and ICC support -MD to output dependencies as a
3452 # side effect of compilation, but ICC will put the dependencies in
3453 # the current directory while Tru64 will put them in the object
3457 am_cv_CC_dependencies_compiler_type=none
3458 if test "$am_compiler_list" = ""; then
3459 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3461 for depmode in $am_compiler_list; do
3462 # Setup a source with many dependencies, because some compilers
3463 # like to wrap large dependency lists on column 80 (with \), and
3464 # we should not choose a depcomp mode which is confused by this.
3466 # We need to recreate these files for each test, as the compiler may
3467 # overwrite some of them when testing with obscure command lines.
3468 # This happens at least with the AIX C compiler.
3470 for i in 1 2 3 4 5 6; do
3471 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3472 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3473 # Solaris 8's {/usr,}/bin/sh.
3474 touch sub/conftst$i.h
3476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3480 # after this tag, mechanisms are not by side-effect, so they'll
3481 # only be used when explicitly requested
3482 if test "x$enable_dependency_tracking" = xyes; then
3490 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3491 # mode. It turns out that the SunPro C++ compiler does not properly
3492 # handle `-M -o', and we need to detect this.
3493 if depmode=$depmode \
3494 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3495 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3496 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3497 >/dev/null 2>conftest.err &&
3498 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3499 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3501 # icc doesn't choke on unknown options, it will just issue warnings
3502 # or remarks (even with -Werror). So we grep stderr for any message
3503 # that says an option was ignored or not supported.
3504 # When given -MP, icc 7.0 and 7.1 complain thusly:
3505 # icc: Command line warning: ignoring option '-M'; no argument required
3506 # The diagnosis changed in icc 8.0:
3507 # icc: Command line remark: option '-MP' not supported
3508 if (grep 'ignoring option' conftest.err ||
3509 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3510 am_cv_CC_dependencies_compiler_type=$depmode
3519 am_cv_CC_dependencies_compiler_type=none
3523 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3524 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3525 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3530 test "x$enable_dependency_tracking" != xno \
3531 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3533 am__fastdepCC_FALSE='#'
3535 am__fastdepCC_TRUE='#'
3536 am__fastdepCC_FALSE=
3540 depcc="$CXX" am_compiler_list=
3542 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3543 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3544 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3548 # We make a subdir and do the tests there. Otherwise we can end up
3549 # making bogus files that we don't know about and never remove. For
3550 # instance it was reported that on HP-UX the gcc test will end up
3551 # making a dummy file named `D' -- because `-MD' means `put the output
3554 # Copy depcomp to subdir because otherwise we won't find it if we're
3555 # using a relative directory.
3556 cp "$am_depcomp" conftest.dir
3558 # We will build objects and dependencies in a subdirectory because
3559 # it helps to detect inapplicable dependency modes. For instance
3560 # both Tru64's cc and ICC support -MD to output dependencies as a
3561 # side effect of compilation, but ICC will put the dependencies in
3562 # the current directory while Tru64 will put them in the object
3566 am_cv_CXX_dependencies_compiler_type=none
3567 if test "$am_compiler_list" = ""; then
3568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3570 for depmode in $am_compiler_list; do
3571 # Setup a source with many dependencies, because some compilers
3572 # like to wrap large dependency lists on column 80 (with \), and
3573 # we should not choose a depcomp mode which is confused by this.
3575 # We need to recreate these files for each test, as the compiler may
3576 # overwrite some of them when testing with obscure command lines.
3577 # This happens at least with the AIX C compiler.
3579 for i in 1 2 3 4 5 6; do
3580 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3581 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3582 # Solaris 8's {/usr,}/bin/sh.
3583 touch sub/conftst$i.h
3585 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3589 # after this tag, mechanisms are not by side-effect, so they'll
3590 # only be used when explicitly requested
3591 if test "x$enable_dependency_tracking" = xyes; then
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 if depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3606 >/dev/null 2>conftest.err &&
3607 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3608 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3609 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3610 # icc doesn't choke on unknown options, it will just issue warnings
3611 # or remarks (even with -Werror). So we grep stderr for any message
3612 # that says an option was ignored or not supported.
3613 # When given -MP, icc 7.0 and 7.1 complain thusly:
3614 # icc: Command line warning: ignoring option '-M'; no argument required
3615 # The diagnosis changed in icc 8.0:
3616 # icc: Command line remark: option '-MP' not supported
3617 if (grep 'ignoring option' conftest.err ||
3618 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3619 am_cv_CXX_dependencies_compiler_type=$depmode
3628 am_cv_CXX_dependencies_compiler_type=none
3632 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3633 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3634 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3639 test "x$enable_dependency_tracking" != xno \
3640 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3641 am__fastdepCXX_TRUE=
3642 am__fastdepCXX_FALSE='#'
3644 am__fastdepCXX_TRUE='#'
3645 am__fastdepCXX_FALSE=
3651 if test -n "$ac_tool_prefix"; then
3652 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3653 set dummy ${ac_tool_prefix}as; ac_word=$2
3654 echo "$as_me:$LINENO: checking for $ac_word" >&5
3655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3656 if test "${ac_cv_prog_AS+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 if test -n "$AS"; then
3660 ac_cv_prog_AS="$AS" # Let the user override the test.
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 test -z "$as_dir" && as_dir=.
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_AS="${ac_tool_prefix}as"
3670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 if test -n "$AS"; then
3680 echo "$as_me:$LINENO: result: $AS" >&5
3681 echo "${ECHO_T}$AS" >&6
3683 echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6
3688 if test -z "$ac_cv_prog_AS"; then
3690 # Extract the first word of "as", so it can be a program name with args.
3691 set dummy as; ac_word=$2
3692 echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3694 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 if test -n "$ac_ct_AS"; then
3698 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3707 ac_cv_prog_ac_ct_AS="as"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3717 if test -n "$ac_ct_AS"; then
3718 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3719 echo "${ECHO_T}$ac_ct_AS" >&6
3721 echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6
3730 if test -n "$ac_tool_prefix"; then
3731 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3732 set dummy ${ac_tool_prefix}ar; ac_word=$2
3733 echo "$as_me:$LINENO: checking for $ac_word" >&5
3734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735 if test "${ac_cv_prog_AR+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 if test -n "$AR"; then
3739 ac_cv_prog_AR="$AR" # Let the user override the test.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_prog_AR="${ac_tool_prefix}ar"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 if test -n "$AR"; then
3759 echo "$as_me:$LINENO: result: $AR" >&5
3760 echo "${ECHO_T}$AR" >&6
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3767 if test -z "$ac_cv_prog_AR"; then
3769 # Extract the first word of "ar", so it can be a program name with args.
3770 set dummy ar; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 if test -n "$ac_ct_AR"; then
3777 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783 test -z "$as_dir" && as_dir=.
3784 for ac_exec_ext in '' $ac_executable_extensions; do
3785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3786 ac_cv_prog_ac_ct_AR="ar"
3787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3796 if test -n "$ac_ct_AR"; then
3797 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3798 echo "${ECHO_T}$ac_ct_AR" >&6
3800 echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6
3809 if test -n "$ac_tool_prefix"; then
3810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3812 echo "$as_me:$LINENO: checking for $ac_word" >&5
3813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3814 if test "${ac_cv_prog_RANLIB+set}" = set; then
3815 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 if test -n "$RANLIB"; then
3818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 RANLIB=$ac_cv_prog_RANLIB
3837 if test -n "$RANLIB"; then
3838 echo "$as_me:$LINENO: result: $RANLIB" >&5
3839 echo "${ECHO_T}$RANLIB" >&6
3841 echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6
3846 if test -z "$ac_cv_prog_RANLIB"; then
3847 ac_ct_RANLIB=$RANLIB
3848 # Extract the first word of "ranlib", so it can be a program name with args.
3849 set dummy ranlib; ac_word=$2
3850 echo "$as_me:$LINENO: checking for $ac_word" >&5
3851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3855 if test -n "$ac_ct_RANLIB"; then
3856 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 ac_cv_prog_ac_ct_RANLIB="ranlib"
3866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3876 if test -n "$ac_ct_RANLIB"; then
3877 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3878 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3880 echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6
3884 RANLIB=$ac_ct_RANLIB
3886 RANLIB="$ac_cv_prog_RANLIB"
3890 # Find a good install program. We prefer a C program (faster),
3891 # so one script is as good as another. But avoid the broken or
3892 # incompatible versions:
3893 # SysV /etc/install, /usr/sbin/install
3894 # SunOS /usr/etc/install
3895 # IRIX /sbin/install
3897 # AmigaOS /C/install, which installs bootblocks on floppy discs
3898 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3899 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3900 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3901 # OS/2's system install, which has a completely different semantic
3902 # ./install, which can be erroneously created by make from ./install.sh.
3903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 # Account for people who put trailing slashes in PATH elements.
3916 ./ | .// | /cC/* | \
3917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3921 # OSF1 and SCO ODT 3.0 have their own names for install.
3922 # Don't use installbsd from OSF since it installs stuff as root
3924 for ac_prog in ginstall scoinst install; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3927 if test $ac_prog = install &&
3928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929 # AIX install. It has an incompatible calling convention.
3931 elif test $ac_prog = install &&
3932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933 # program-specific install script used by HP pwplus--don't use.
3936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3948 if test "${ac_cv_path_install+set}" = set; then
3949 INSTALL=$ac_cv_path_install
3951 # As a last resort, use the slow shell script. We don't cache a
3952 # path for INSTALL within a source directory, because that will
3953 # break other packages using the cache if that directory is
3954 # removed, or if the path is relative.
3955 INSTALL=$ac_install_sh
3958 echo "$as_me:$LINENO: result: $INSTALL" >&5
3959 echo "${ECHO_T}$INSTALL" >&6
3961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962 # It thinks the first close brace ends the variable substitution.
3963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3970 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3971 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3972 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3973 if test "${enable_maintainer_mode+set}" = set; then
3974 enableval="$enable_maintainer_mode"
3975 USE_MAINTAINER_MODE=$enableval
3977 USE_MAINTAINER_MODE=no
3979 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3980 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3983 if test $USE_MAINTAINER_MODE = yes; then
3984 MAINTAINER_MODE_TRUE=
3985 MAINTAINER_MODE_FALSE='#'
3987 MAINTAINER_MODE_TRUE='#'
3988 MAINTAINER_MODE_FALSE=
3991 MAINT=$MAINTAINER_MODE_TRUE
3997 # configure.host sets the following important variables
3998 # libgcj_cflags - host specific C compiler flags
3999 # libgcj_cxxflags - host specific C++ compiler flags
4000 # libgcj_javaflags - host specific Java compiler flags
4006 . ${srcdir}/configure.host
4008 LIBGCJ_CFLAGS="${libgcj_cflags}"
4009 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4010 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4011 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4017 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4020 # Only use libltdl for non-newlib builds.
4021 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4022 case $enable_ltdl_convenience in
4023 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4024 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4025 { (exit 1); exit 1; }; } ;;
4026 "") enable_ltdl_convenience=yes
4027 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4029 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4030 INCLTDL='-I${top_srcdir}/''libltdl'
4035 cat >>confdefs.h <<\_ACEOF
4039 # Sigh. Libtool's macro doesn't do the right thing.
4040 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4041 # FIXME: this is a hack.
4042 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4043 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4048 # Check whether --enable-shared or --disable-shared was given.
4049 if test "${enable_shared+set}" = set; then
4050 enableval="$enable_shared"
4051 p=${PACKAGE-default}
4053 yes) enable_shared=yes ;;
4054 no) enable_shared=no ;;
4057 # Look at the argument we got. We use all the common list separators.
4058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4059 for pkg in $enableval; do
4060 if test "X$pkg" = "X$p"; then
4070 # Check whether --enable-static or --disable-static was given.
4071 if test "${enable_static+set}" = set; then
4072 enableval="$enable_static"
4073 p=${PACKAGE-default}
4075 yes) enable_static=yes ;;
4076 no) enable_static=no ;;
4079 # Look at the argument we got. We use all the common list separators.
4080 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4081 for pkg in $enableval; do
4082 if test "X$pkg" = "X$p"; then
4092 # Check whether --enable-fast-install or --disable-fast-install was given.
4093 if test "${enable_fast_install+set}" = set; then
4094 enableval="$enable_fast_install"
4095 p=${PACKAGE-default}
4097 yes) enable_fast_install=yes ;;
4098 no) enable_fast_install=no ;;
4100 enable_fast_install=no
4101 # Look at the argument we got. We use all the common list separators.
4102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4103 for pkg in $enableval; do
4104 if test "X$pkg" = "X$p"; then
4105 enable_fast_install=yes
4112 enable_fast_install=yes
4115 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4116 if test "${with_gnu_ld+set}" = set; then
4117 withval="$with_gnu_ld"
4118 test "$withval" = no || with_gnu_ld=yes
4123 if test "$GCC" = yes; then
4124 # Check if gcc -print-prog-name=ld gives a path.
4125 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4126 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4129 # gcc leaves a trailing carriage return which upsets mingw
4130 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4132 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4135 # Accept absolute paths.
4136 [\\/]* | [A-Za-z]:[\\/]*)
4137 re_direlt='/[^/][^/]*/\.\./'
4138 # Canonicalize the path of ld
4139 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4140 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4141 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4143 test -z "$LD" && LD="$ac_prog"
4146 # If it fails, then pretend we aren't using GCC.
4150 # If it is relative, then search for the first ld in PATH.
4154 elif test "$with_gnu_ld" = yes; then
4155 echo "$as_me:$LINENO: checking for GNU ld" >&5
4156 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4158 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4159 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4161 if test "${lt_cv_path_LD+set}" = set; then
4162 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 if test -z "$LD"; then
4165 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4166 for ac_dir in $PATH; do
4167 test -z "$ac_dir" && ac_dir=.
4168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4169 lt_cv_path_LD="$ac_dir/$ac_prog"
4170 # Check to see if the program is GNU ld. I'd rather use --version,
4171 # but apparently some GNU ld's only accept -v.
4172 # Break only if it was the GNU/non-GNU ld that we prefer.
4173 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4174 test "$with_gnu_ld" != no && break
4176 test "$with_gnu_ld" != yes && break
4182 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4187 if test -n "$LD"; then
4188 echo "$as_me:$LINENO: result: $LD" >&5
4189 echo "${ECHO_T}$LD" >&6
4191 echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4194 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4195 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4196 { (exit 1); exit 1; }; }
4197 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4198 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4199 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4203 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4204 lt_cv_prog_gnu_ld=yes
4206 lt_cv_prog_gnu_ld=no
4209 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4210 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4211 with_gnu_ld=$lt_cv_prog_gnu_ld
4214 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4216 if test "${lt_cv_ld_reload_flag+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 lt_cv_ld_reload_flag='-r'
4221 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4223 reload_flag=$lt_cv_ld_reload_flag
4224 test -n "$reload_flag" && reload_flag=" $reload_flag"
4226 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4227 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4228 if test "${lt_cv_path_NM+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$NM"; then
4232 # Let the user override the test.
4235 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4236 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4237 test -z "$ac_dir" && ac_dir=.
4238 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4239 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4240 # Check to see if the nm accepts a BSD-compat flag.
4241 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4242 # nm: unknown option "B" ignored
4243 # Tru64's nm complains that /dev/null is an invalid object file
4244 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4245 lt_cv_path_NM="$tmp_nm -B"
4247 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4248 lt_cv_path_NM="$tmp_nm -p"
4251 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4252 continue # so that we can try to find one that supports BSD flags
4257 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4262 echo "$as_me:$LINENO: result: $NM" >&5
4263 echo "${ECHO_T}$NM" >&6
4265 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4266 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4267 if test "${lt_cv_deplibs_check_method+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4270 lt_cv_file_magic_cmd='$MAGIC_CMD'
4271 lt_cv_file_magic_test_file=
4272 lt_cv_deplibs_check_method='unknown'
4273 # Need to set the preceding variable on all platforms that support
4274 # interlibrary dependencies.
4275 # 'none' -- dependencies not supported.
4276 # `unknown' -- same as none, but documents that we really don't know.
4277 # 'pass_all' -- all dependencies passed with no checks.
4278 # 'test_compile' -- check by making test program.
4279 # 'file_magic [regex]' -- check by looking for files in library path
4280 # which responds to the $file_magic_cmd with a given egrep regex.
4281 # If you have `file' or equivalent on your system and you're not sure
4282 # whether `pass_all' will *always* work, you probably want this one.
4286 lt_cv_deplibs_check_method=pass_all
4290 lt_cv_deplibs_check_method=pass_all
4294 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4295 lt_cv_file_magic_cmd='/usr/bin/file -L'
4296 lt_cv_file_magic_test_file=/shlib/libc.so
4299 cygwin* | mingw* |pw32*)
4300 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4301 lt_cv_file_magic_cmd='$OBJDUMP -f'
4304 darwin* | rhapsody*)
4305 # this will be overwritten by pass_all, but leave it in just in case
4306 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4307 lt_cv_file_magic_cmd='/usr/bin/file -L'
4309 rhapsody* | darwin1.012)
4310 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4313 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4316 lt_cv_deplibs_check_method=pass_all
4319 freebsd* | kfreebsd*-gnu)
4320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323 # Not sure whether the presence of OpenBSD here was a mistake.
4324 # Let's accept both of them until this is cleared up.
4325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4331 lt_cv_deplibs_check_method=pass_all
4336 lt_cv_deplibs_check_method=pass_all
4342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4343 lt_cv_file_magic_cmd=/usr/bin/file
4344 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4347 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4348 lt_cv_file_magic_cmd=/usr/bin/file
4349 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4357 # this will be overridden with pass_all, but let us keep it just in case
4358 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4362 *-32|*"-32 ") libmagic=32-bit;;
4363 *-n32|*"-n32 ") libmagic=N32;;
4364 *-64|*"-64 ") libmagic=64-bit;;
4365 *) libmagic=never-match;;
4367 # this will be overridden with pass_all, but let us keep it just in case
4368 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4371 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4372 lt_cv_deplibs_check_method=pass_all
4375 # This must be Linux ELF.
4377 lt_cv_deplibs_check_method=pass_all
4380 netbsd* | knetbsd*-gnu)
4381 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4382 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4384 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4390 lt_cv_file_magic_cmd=/usr/bin/file
4391 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4394 osf3* | osf4* | osf5*)
4395 # this will be overridden with pass_all, but let us keep it just in case
4396 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4397 lt_cv_file_magic_test_file=/shlib/libc.so
4398 lt_cv_deplibs_check_method=pass_all
4402 lt_cv_deplibs_check_method=pass_all
4406 lt_cv_deplibs_check_method=pass_all
4407 lt_cv_file_magic_test_file=/lib/libc.so
4410 sysv5uw[78]* | sysv4*uw2*)
4411 lt_cv_deplibs_check_method=pass_all
4414 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4415 case $host_vendor in
4417 lt_cv_deplibs_check_method=pass_all
4420 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]'
4421 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4428 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4429 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4430 file_magic_cmd=$lt_cv_file_magic_cmd
4431 deplibs_check_method=$lt_cv_deplibs_check_method
4436 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4438 # Only perform the check for file, if the check method requires it
4439 case $deplibs_check_method in
4441 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4442 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4443 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4444 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4449 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4452 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4455 ac_save_MAGIC_CMD="$MAGIC_CMD"
4456 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4457 ac_dummy="/usr/bin:$PATH"
4458 for ac_dir in $ac_dummy; do
4459 test -z "$ac_dir" && ac_dir=.
4460 if test -f $ac_dir/${ac_tool_prefix}file; then
4461 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4462 if test -n "$file_magic_test_file"; then
4463 case $deplibs_check_method in
4465 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4468 egrep "$file_magic_regex" > /dev/null; then
4473 *** Warning: the command libtool uses to detect shared libraries,
4474 *** $file_magic_cmd, produces output that libtool cannot recognize.
4475 *** The result is that libtool may fail to recognize shared libraries
4476 *** as such. This will affect the creation of libtool libraries that
4477 *** depend on shared libraries, but programs linked with such libtool
4478 *** libraries will work regardless of this problem. Nevertheless, you
4479 *** may want to report the problem to your system manager and/or to
4480 *** bug-libtool@gnu.org
4490 MAGIC_CMD="$ac_save_MAGIC_CMD"
4495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4496 if test -n "$MAGIC_CMD"; then
4497 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4498 echo "${ECHO_T}$MAGIC_CMD" >&6
4500 echo "$as_me:$LINENO: result: no" >&5
4501 echo "${ECHO_T}no" >&6
4504 if test -z "$lt_cv_path_MAGIC_CMD"; then
4505 if test -n "$ac_tool_prefix"; then
4506 echo "$as_me:$LINENO: checking for file" >&5
4507 echo $ECHO_N "checking for file... $ECHO_C" >&6
4508 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4516 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4519 ac_save_MAGIC_CMD="$MAGIC_CMD"
4520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4521 ac_dummy="/usr/bin:$PATH"
4522 for ac_dir in $ac_dummy; do
4523 test -z "$ac_dir" && ac_dir=.
4524 if test -f $ac_dir/file; then
4525 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4526 if test -n "$file_magic_test_file"; then
4527 case $deplibs_check_method in
4529 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4531 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4532 egrep "$file_magic_regex" > /dev/null; then
4537 *** Warning: the command libtool uses to detect shared libraries,
4538 *** $file_magic_cmd, produces output that libtool cannot recognize.
4539 *** The result is that libtool may fail to recognize shared libraries
4540 *** as such. This will affect the creation of libtool libraries that
4541 *** depend on shared libraries, but programs linked with such libtool
4542 *** libraries will work regardless of this problem. Nevertheless, you
4543 *** may want to report the problem to your system manager and/or to
4544 *** bug-libtool@gnu.org
4554 MAGIC_CMD="$ac_save_MAGIC_CMD"
4559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4560 if test -n "$MAGIC_CMD"; then
4561 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4562 echo "${ECHO_T}$MAGIC_CMD" >&6
4564 echo "$as_me:$LINENO: result: no" >&5
4565 echo "${ECHO_T}no" >&6
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4580 echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4582 if test "${ac_cv_prog_RANLIB+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 if test -n "$RANLIB"; then
4586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 RANLIB=$ac_cv_prog_RANLIB
4605 if test -n "$RANLIB"; then
4606 echo "$as_me:$LINENO: result: $RANLIB" >&5
4607 echo "${ECHO_T}$RANLIB" >&6
4609 echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6
4614 if test -z "$ac_cv_prog_RANLIB"; then
4615 ac_ct_RANLIB=$RANLIB
4616 # Extract the first word of "ranlib", so it can be a program name with args.
4617 set dummy ranlib; ac_word=$2
4618 echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4620 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 if test -n "$ac_ct_RANLIB"; then
4624 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4633 ac_cv_prog_ac_ct_RANLIB="ranlib"
4634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4643 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4644 if test -n "$ac_ct_RANLIB"; then
4645 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4646 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4648 echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6
4652 RANLIB=$ac_ct_RANLIB
4654 RANLIB="$ac_cv_prog_RANLIB"
4657 if test -n "$ac_tool_prefix"; then
4658 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4659 set dummy ${ac_tool_prefix}strip; ac_word=$2
4660 echo "$as_me:$LINENO: checking for $ac_word" >&5
4661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4662 if test "${ac_cv_prog_STRIP+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 if test -n "$STRIP"; then
4666 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4675 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 STRIP=$ac_cv_prog_STRIP
4685 if test -n "$STRIP"; then
4686 echo "$as_me:$LINENO: result: $STRIP" >&5
4687 echo "${ECHO_T}$STRIP" >&6
4689 echo "$as_me:$LINENO: result: no" >&5
4690 echo "${ECHO_T}no" >&6
4694 if test -z "$ac_cv_prog_STRIP"; then
4696 # Extract the first word of "strip", so it can be a program name with args.
4697 set dummy strip; ac_word=$2
4698 echo "$as_me:$LINENO: checking for $ac_word" >&5
4699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4700 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 if test -n "$ac_ct_STRIP"; then
4704 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4713 ac_cv_prog_ac_ct_STRIP="strip"
4714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4723 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4724 if test -n "$ac_ct_STRIP"; then
4725 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4726 echo "${ECHO_T}$ac_ct_STRIP" >&6
4728 echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6
4734 STRIP="$ac_cv_prog_STRIP"
4738 # Check for any special flags to pass to ltconfig.
4739 libtool_flags="--cache-file=$cache_file"
4740 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4741 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4742 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4743 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4744 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4747 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4748 if test "${enable_libtool_lock+set}" = set; then
4749 enableval="$enable_libtool_lock"
4752 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4753 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4756 # Check whether --with-pic or --without-pic was given.
4757 if test "${with_pic+set}" = set; then
4763 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4764 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4766 # Some flags need to be propagated to the compiler or linker for good
4770 # Find out which ABI we are using.
4771 echo '#line 4771 "configure"' > conftest.$ac_ext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); }; then
4777 if test "$lt_cv_prog_gnu_ld" = yes; then
4778 case `/usr/bin/file conftest.$ac_objext` in
4780 LD="${LD-ld} -melf32bsmip"
4783 LD="${LD-ld} -melf32bmipn32"
4786 LD="${LD-ld} -melf64bmip"
4790 case `/usr/bin/file conftest.$ac_objext` in
4807 # Find out which ABI we are using.
4808 echo 'int i;' > conftest.$ac_ext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); }; then
4814 case "`/usr/bin/file conftest.o`" in
4826 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4827 # Find out which ABI we are using.
4828 echo 'int i;' > conftest.$ac_ext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4830 (eval $ac_compile) 2>&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; then
4834 case "`/usr/bin/file conftest.o`" in
4838 LD="${LD-ld} -m elf_i386"
4840 ppc64-*linux*|powerpc64-*linux*)
4841 LD="${LD-ld} -m elf32ppclinux"
4844 LD="${LD-ld} -m elf_s390"
4847 LD="${LD-ld} -m elf32_sparc"
4854 LD="${LD-ld} -m elf_x86_64"
4856 ppc*-*linux*|powerpc*-*linux*)
4857 LD="${LD-ld} -m elf64ppc"
4860 LD="${LD-ld} -m elf64_s390"
4863 LD="${LD-ld} -m elf64_sparc"
4873 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4874 SAVE_CFLAGS="$CFLAGS"
4875 CFLAGS="$CFLAGS -belf"
4876 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4877 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4878 if test "${lt_cv_cc_needs_belf+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 ac_cpp='$CPP $CPPFLAGS'
4885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4889 if test x$gcc_no_link = xyes; then
4890 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4892 { (exit 1); exit 1; }; }
4894 cat >conftest.$ac_ext <<_ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4909 rm -f conftest.$ac_objext conftest$ac_exeext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4911 (eval $ac_link) 2>conftest.er1
4913 grep -v '^ *+' conftest.er1 >conftest.err
4915 cat conftest.err >&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); } &&
4918 { ac_try='test -z "$ac_c_werror_flag"
4919 || test ! -s conftest.err'
4920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924 (exit $ac_status); }; } &&
4925 { ac_try='test -s conftest$ac_exeext'
4926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); }; }; then
4931 lt_cv_cc_needs_belf=yes
4933 echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4936 lt_cv_cc_needs_belf=no
4938 rm -f conftest.err conftest.$ac_objext \
4939 conftest$ac_exeext conftest.$ac_ext
4941 ac_cpp='$CPP $CPPFLAGS'
4942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4947 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4948 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4949 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4950 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4951 CFLAGS="$SAVE_CFLAGS"
4959 # Save cache, so that ltconfig can load it
4960 cat >confcache <<\_ACEOF
4961 # This file is a shell script that caches the results of configure
4962 # tests run on this system so they can be shared between configure
4963 # scripts and configure runs, see configure's option --config-cache.
4964 # It is not useful on other systems. If it contains results you don't
4965 # want to keep, you may remove or edit it.
4967 # config.status only pays attention to the cache file if you give it
4968 # the --recheck option to rerun configure.
4970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4976 # The following way of writing the cache mishandles newlines in values,
4977 # but we know of no workaround that is simple, portable, and efficient.
4978 # So, don't put newlines in cache variables' values.
4979 # Ultrix sh set writes to stderr and can't be redirected directly,
4980 # and sets the high bit in the cache file unless we assign to the vars.
4983 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4985 # `set' does not quote correctly, so add quotes (double-quote
4986 # substitution turns \\\\ into \\, and sed turns \\ into \).
4989 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4992 # `set' quotes correctly as required by POSIX, so do not add quotes.
4994 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5001 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5003 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5005 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5006 if test -w $cache_file; then
5007 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5008 cat confcache >$cache_file
5010 echo "not updating unwritable cache $cache_file"
5015 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5016 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5017 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5018 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5019 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5020 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5021 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5022 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5023 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5024 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5025 echo "$as_me: error: libtool configure failed" >&2;}
5026 { (exit 1); exit 1; }; }
5028 # Reload cache, that may have been modified by ltconfig
5029 if test -r "$cache_file"; then
5030 # Some versions of bash will fail to source /dev/null (special
5031 # files actually), so we avoid doing that.
5032 if test -f "$cache_file"; then
5033 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5034 echo "$as_me: loading cache $cache_file" >&6;}
5036 [\\/]* | ?:[\\/]* ) . $cache_file;;
5037 *) . ./$cache_file;;
5041 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5042 echo "$as_me: creating cache $cache_file" >&6;}
5047 # This can be used to rebuild libtool when needed
5048 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5050 # Always use our own libtool.
5051 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5053 # Redirect the config.log output again, so that the ltconfig log is not
5054 # clobbered by the next message.
5055 exec 5>>./config.log
5058 ac_cpp='$CXXCPP $CPPFLAGS'
5059 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5060 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5061 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5062 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5063 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5064 if test -z "$CXXCPP"; then
5065 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 # Double quotes because CXXCPP needs to be expanded
5069 for CXXCPP in "$CXX -E" "/lib/cpp"
5072 for ac_cxx_preproc_warn_flag in '' yes
5074 # Use a header file that comes with gcc, so configuring glibc
5075 # with a fresh cross-compiler works.
5076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5077 # <limits.h> exists even on freestanding compilers.
5078 # On the NeXT, cc -E runs the code through the compiler's parser,
5079 # not just through cpp. "Syntax error" is here to catch this case.
5080 cat >conftest.$ac_ext <<_ACEOF
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5087 # include <limits.h>
5089 # include <assert.h>
5093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096 grep -v '^ *+' conftest.er1 >conftest.err
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null; then
5101 if test -s conftest.err; then
5102 ac_cpp_err=$ac_cxx_preproc_warn_flag
5103 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5110 if test -z "$ac_cpp_err"; then
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 # Broken: fails on valid input.
5119 rm -f conftest.err conftest.$ac_ext
5121 # OK, works on sane cases. Now check whether non-existent headers
5122 # can be detected and how.
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 #include <ac_nonexistent.h>
5131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5134 grep -v '^ *+' conftest.er1 >conftest.err
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } >/dev/null; then
5139 if test -s conftest.err; then
5140 ac_cpp_err=$ac_cxx_preproc_warn_flag
5141 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5148 if test -z "$ac_cpp_err"; then
5149 # Broken: success on invalid input.
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5155 # Passes both tests.
5159 rm -f conftest.err conftest.$ac_ext
5162 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5163 rm -f conftest.err conftest.$ac_ext
5164 if $ac_preproc_ok; then
5169 ac_cv_prog_CXXCPP=$CXXCPP
5172 CXXCPP=$ac_cv_prog_CXXCPP
5174 ac_cv_prog_CXXCPP=$CXXCPP
5176 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5177 echo "${ECHO_T}$CXXCPP" >&6
5179 for ac_cxx_preproc_warn_flag in '' yes
5181 # Use a header file that comes with gcc, so configuring glibc
5182 # with a fresh cross-compiler works.
5183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5184 # <limits.h> exists even on freestanding compilers.
5185 # On the NeXT, cc -E runs the code through the compiler's parser,
5186 # not just through cpp. "Syntax error" is here to catch this case.
5187 cat >conftest.$ac_ext <<_ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5194 # include <limits.h>
5196 # include <assert.h>
5200 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5201 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5203 grep -v '^ *+' conftest.er1 >conftest.err
5205 cat conftest.err >&5
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } >/dev/null; then
5208 if test -s conftest.err; then
5209 ac_cpp_err=$ac_cxx_preproc_warn_flag
5210 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5217 if test -z "$ac_cpp_err"; then
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 # Broken: fails on valid input.
5226 rm -f conftest.err conftest.$ac_ext
5228 # OK, works on sane cases. Now check whether non-existent headers
5229 # can be detected and how.
5230 cat >conftest.$ac_ext <<_ACEOF
5233 cat confdefs.h >>conftest.$ac_ext
5234 cat >>conftest.$ac_ext <<_ACEOF
5235 /* end confdefs.h. */
5236 #include <ac_nonexistent.h>
5238 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5241 grep -v '^ *+' conftest.er1 >conftest.err
5243 cat conftest.err >&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } >/dev/null; then
5246 if test -s conftest.err; then
5247 ac_cpp_err=$ac_cxx_preproc_warn_flag
5248 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5255 if test -z "$ac_cpp_err"; then
5256 # Broken: success on invalid input.
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 # Passes both tests.
5266 rm -f conftest.err conftest.$ac_ext
5269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5270 rm -f conftest.err conftest.$ac_ext
5271 if $ac_preproc_ok; then
5274 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5275 See \`config.log' for more details." >&5
5276 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5277 See \`config.log' for more details." >&2;}
5278 { (exit 1); exit 1; }; }
5282 ac_cpp='$CPP $CPPFLAGS'
5283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5289 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5291 lt_save_CFLAGS="$CFLAGS"
5292 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5293 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5294 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5295 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5296 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5297 deplibs_check_method="$deplibs_check_method" \
5298 file_magic_cmd="$file_magic_cmd" \
5299 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5300 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5301 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5302 echo "$as_me: error: libtool tag configuration failed" >&2;}
5303 { (exit 1); exit 1; }; }
5305 CFLAGS="$lt_save_CFLAGS"
5307 # Redirect the config.log output again, so that the ltconfig log is not
5308 # clobbered by the next message.
5309 exec 5>>./config.log
5319 # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5323 if test "${ac_cv_prog_GCJ+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 if test -n "$GCJ"; then
5327 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_GCJ="$ac_prog"
5337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 if test -n "$GCJ"; then
5347 echo "$as_me:$LINENO: result: $GCJ" >&5
5348 echo "${ECHO_T}$GCJ" >&6
5350 echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6
5354 test -n "$GCJ" && break
5356 test -n "$GCJ" || GCJ="gcj"
5358 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5359 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5360 { (exit 1); exit 1; }; }
5361 if test "x${GCJFLAGS-unset}" = xunset; then
5366 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5368 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5369 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5370 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5371 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5374 # We make a subdir and do the tests there. Otherwise we can end up
5375 # making bogus files that we don't know about and never remove. For
5376 # instance it was reported that on HP-UX the gcc test will end up
5377 # making a dummy file named `D' -- because `-MD' means `put the output
5380 # Copy depcomp to subdir because otherwise we won't find it if we're
5381 # using a relative directory.
5382 cp "$am_depcomp" conftest.dir
5384 # We will build objects and dependencies in a subdirectory because
5385 # it helps to detect inapplicable dependency modes. For instance
5386 # both Tru64's cc and ICC support -MD to output dependencies as a
5387 # side effect of compilation, but ICC will put the dependencies in
5388 # the current directory while Tru64 will put them in the object
5392 am_cv_GCJ_dependencies_compiler_type=none
5393 if test "$am_compiler_list" = ""; then
5394 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5396 for depmode in $am_compiler_list; do
5397 # Setup a source with many dependencies, because some compilers
5398 # like to wrap large dependency lists on column 80 (with \), and
5399 # we should not choose a depcomp mode which is confused by this.
5401 # We need to recreate these files for each test, as the compiler may
5402 # overwrite some of them when testing with obscure command lines.
5403 # This happens at least with the AIX C compiler.
5405 for i in 1 2 3 4 5 6; do
5406 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5407 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5408 # Solaris 8's {/usr,}/bin/sh.
5409 touch sub/conftst$i.h
5411 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5415 # after this tag, mechanisms are not by side-effect, so they'll
5416 # only be used when explicitly requested
5417 if test "x$enable_dependency_tracking" = xyes; then
5425 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5426 # mode. It turns out that the SunPro C++ compiler does not properly
5427 # handle `-M -o', and we need to detect this.
5428 if depmode=$depmode \
5429 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5430 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5431 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5432 >/dev/null 2>conftest.err &&
5433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5434 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5436 # icc doesn't choke on unknown options, it will just issue warnings
5437 # or remarks (even with -Werror). So we grep stderr for any message
5438 # that says an option was ignored or not supported.
5439 # When given -MP, icc 7.0 and 7.1 complain thusly:
5440 # icc: Command line warning: ignoring option '-M'; no argument required
5441 # The diagnosis changed in icc 8.0:
5442 # icc: Command line remark: option '-MP' not supported
5443 if (grep 'ignoring option' conftest.err ||
5444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5445 am_cv_GCJ_dependencies_compiler_type=$depmode
5454 am_cv_GCJ_dependencies_compiler_type=none
5458 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5459 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5460 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5465 test "x$enable_dependency_tracking" != xno \
5466 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5467 am__fastdepGCJ_TRUE=
5468 am__fastdepGCJ_FALSE='#'
5470 am__fastdepGCJ_TRUE='#'
5471 am__fastdepGCJ_FALSE=
5477 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5479 lt_save_CFLAGS="$CFLAGS"
5480 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5481 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5482 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5483 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5484 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5485 deplibs_check_method="$deplibs_check_method" \
5486 file_magic_cmd="$file_magic_cmd" \
5487 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5488 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5489 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5490 echo "$as_me: error: libtool tag configuration failed" >&2;}
5491 { (exit 1); exit 1; }; }
5493 CFLAGS="$lt_save_CFLAGS"
5495 # Redirect the config.log output again, so that the ltconfig log is not
5496 # clobbered by the next message.
5497 exec 5>>./config.log
5501 if test "x$CC" != xcc; then
5502 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5503 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5505 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5506 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5508 set dummy $CC; ac_cc=`echo $2 |
5509 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5510 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5528 # Make sure it works both with $CC and with simple cc.
5529 # We do the test twice because some compilers refuse to overwrite an
5530 # existing .o file with -o, though they will create one.
5531 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5532 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); };
5543 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5544 if test "x$CC" != xcc; then
5545 # Test first that cc exists at all.
5546 if { ac_try='cc -c conftest.$ac_ext >&5'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; }; then
5552 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5553 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } &&
5558 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); };
5567 # cc exists but doesn't like -o.
5568 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5573 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5578 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5579 echo "$as_me:$LINENO: result: yes" >&5
5580 echo "${ECHO_T}yes" >&6
5582 echo "$as_me:$LINENO: result: no" >&5
5583 echo "${ECHO_T}no" >&6
5585 cat >>confdefs.h <<\_ACEOF
5586 #define NO_MINUS_C_MINUS_O 1
5591 # FIXME: we rely on the cache variable name because
5592 # there is no other way.
5594 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5595 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5596 # Losing compiler, so override with the script.
5597 # FIXME: It is wrong to rewrite CC.
5598 # But if we don't then we get into trouble of one sort or another.
5599 # A longer-term fix would be to have automake use am__CC in this case,
5600 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5601 CC="$am_aux_dir/compile $CC"
5606 subdirs="$subdirs libltdl"
5609 # The -no-testsuite modules omit the test subdir.
5612 if test -d $srcdir/testsuite; then
5614 TESTSUBDIR_FALSE='#'
5621 # Should the runtime set system properties by examining the
5622 # environment variable GCJ_PROPERTIES?
5623 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5624 if test "${enable_getenv_properties+set}" = set; then
5625 enableval="$enable_getenv_properties"
5629 # Whether GCJ_PROPERTIES is used depends on the target.
5630 if test -z "$enable_getenv_properties"; then
5631 enable_getenv_properties=${enable_getenv_properties_default-yes}
5633 if test "$enable_getenv_properties" = no; then
5635 cat >>confdefs.h <<\_ACEOF
5636 #define DISABLE_GETENV_PROPERTIES 1
5641 # Whether we should use arguments to main()
5642 if test -z "$enable_main_args"; then
5643 enable_main_args=${enable_main_args_default-yes}
5645 if test "$enable_main_args" = no; then
5647 cat >>confdefs.h <<\_ACEOF
5648 #define DISABLE_MAIN_ARGS 1
5654 # Should we use hashtable-based synchronization?
5655 # Currently works only for Linux X86/ia64
5656 # Typically faster and more space-efficient
5657 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5658 if test "${enable_hash_synchronization+set}" = set; then
5659 enableval="$enable_hash_synchronization"
5663 if test -z "$enable_hash_synchronization"; then
5664 enable_hash_synchronization=$enable_hash_synchronization_default
5667 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5668 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5669 if test "${enable_libgcj_multifile+set}" = set; then
5670 enableval="$enable_libgcj_multifile"
5671 case "${enableval}" in
5672 yes) enable_libgcj_multifile=yes ;;
5673 no) enable_libgcj_multifile=no ;;
5674 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5675 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5676 { (exit 1); exit 1; }; } ;;
5679 enable_libgcj_multifile=no
5683 if test "$enable_libgcj_multifile" = yes; then
5693 # Check whether --with-java-home or --without-java-home was given.
5694 if test "${with_java_home+set}" = set; then
5695 withval="$with_java_home"
5696 JAVA_HOME="${withval}"
5702 if test ! -z "$JAVA_HOME"; then
5704 JAVA_HOME_SET_FALSE='#'
5706 JAVA_HOME_SET_TRUE='#'
5707 JAVA_HOME_SET_FALSE=
5712 # What is the native OS API for MinGW?
5714 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5715 if test "${with_win32_nlsapi+set}" = set; then
5716 withval="$with_win32_nlsapi"
5717 case "${withval}" in
5718 ansi) with_win32_nlsapi=ansi ;;
5719 unicows) with_win32_nlsapi=unicows ;;
5720 unicode) with_win32_nlsapi=unicode ;;
5721 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5722 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5723 { (exit 1); exit 1; }; } ;;
5726 with_win32_nlsapi=ansi
5729 case "${with_win32_nlsapi}" in
5732 cat >>confdefs.h <<\_ACEOF
5733 #define MINGW_LIBGCJ_UNICODE 1
5739 # configure.host sets slow_pthread_self if the synchronization code should
5740 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5741 if test "${slow_pthread_self}" = "yes"; then
5743 cat >>confdefs.h <<\_ACEOF
5744 #define SLOW_PTHREAD_SELF 1
5750 # See if the user has requested runtime debugging.
5753 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5754 if test "${enable_libgcj_debug+set}" = set; then
5755 enableval="$enable_libgcj_debug"
5756 if test "$enable_libgcj_debug" = yes; then
5758 cat >>confdefs.h <<\_ACEOF
5766 # Check for gc debugging. This option is handled both here and in the GC.
5767 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5768 if test "${enable_gc_debug+set}" = set; then
5769 enableval="$enable_gc_debug"
5770 if test "$enable_gc_debug" = "yes"; then
5772 cat >>confdefs.h <<\_ACEOF
5773 #define LIBGCJ_GC_DEBUG 1
5779 # See if the user has the interpreter included.
5780 # Check whether --enable-interpreter or --disable-interpreter was given.
5781 if test "${enable_interpreter+set}" = set; then
5782 enableval="$enable_interpreter"
5783 if test "$enable_interpreter" = yes; then
5784 # This can also be set in configure.host.
5785 libgcj_interpreter=yes
5786 elif test "$enable_interpreter" = no; then
5787 libgcj_interpreter=no
5791 if test "$libgcj_interpreter" = yes; then
5793 cat >>confdefs.h <<\_ACEOF
5794 #define INTERPRETER 1
5798 INTERPRETER="$libgcj_interpreter"
5801 echo "$as_me:$LINENO: checking for exception model to use" >&5
5802 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5804 ac_cpp='$CXXCPP $CPPFLAGS'
5805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5810 if test "${enable_sjlj_exceptions+set}" = set; then
5811 enableval="$enable_sjlj_exceptions"
5814 cat > conftest.$ac_ext << EOF
5815 #line 5815 "configure"
5824 old_CXXFLAGS="$CXXFLAGS"
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; then
5831 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5832 enable_sjlj_exceptions=yes
5833 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5834 enable_sjlj_exceptions=no
5837 CXXFLAGS="$old_CXXFLAGS"
5840 if test x$enable_sjlj_exceptions = xyes; then
5842 cat >>confdefs.h <<\_ACEOF
5843 #define SJLJ_EXCEPTIONS 1
5846 ac_exception_model_name=sjlj
5847 elif test x$enable_sjlj_exceptions = xno; then
5848 ac_exception_model_name="call frame"
5850 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5851 echo "$as_me: error: unable to detect exception model" >&2;}
5852 { (exit 1); exit 1; }; }
5855 ac_cpp='$CPP $CPPFLAGS'
5856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5860 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5861 echo "${ECHO_T}$ac_exception_model_name" >&6
5863 # If we are non using SJLJ exceptions, and this host does not have support
5864 # for unwinding from a signal handler, enable checked dereferences and divides.
5865 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5866 CHECKREFSPEC=-fcheck-references
5867 DIVIDESPEC=-fuse-divide-subroutine
5871 # See if the user wants to disable java.net. This is the mildly
5872 # ugly way that we admit that target-side configuration sucks.
5873 # Check whether --enable-java-net or --disable-java-net was given.
5874 if test "${enable_java_net+set}" = set; then
5875 enableval="$enable_java_net"
5879 # Whether java.net is built by default can depend on the target.
5880 if test -z "$enable_java_net"; then
5881 enable_java_net=${enable_java_net_default-yes}
5883 if test "$enable_java_net" = no; then
5885 cat >>confdefs.h <<\_ACEOF
5886 #define DISABLE_JAVA_NET 1
5891 # See if the user wants to configure without libffi. Some
5892 # architectures don't support it, and default values are set in
5895 # Check whether --with-libffi or --without-libffi was given.
5896 if test "${with_libffi+set}" = set; then
5897 withval="$with_libffi"
5900 with_libffi=${with_libffi_default-yes}
5905 if test "$with_libffi" != no; then
5907 cat >>confdefs.h <<\_ACEOF
5908 #define USE_LIBFFI 1
5911 LIBFFI=../libffi/libffi_convenience.la
5912 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5917 # See if the user wants to disable JVMPI support.
5918 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5919 if test "${enable_jvmpi+set}" = set; then
5920 enableval="$enable_jvmpi"
5924 if test "$enable_jvmpi" != no; then
5926 cat >>confdefs.h <<\_ACEOF
5927 #define ENABLE_JVMPI 1
5932 # If the target is an eCos system, use the appropriate eCos
5934 # FIXME: this should not be a local option but a global target
5935 # system; at present there is no eCos target.
5936 TARGET_ECOS=${PROCESS-"no"}
5938 # Check whether --with-ecos or --without-ecos was given.
5939 if test "${with_ecos+set}" = set; then
5940 withval="$with_ecos"
5941 TARGET_ECOS="$with_ecos"
5947 PLATFORM_INNER_NAT_HDRS=
5948 case "$TARGET_ECOS" in
5955 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5956 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5957 LD_PROG=`$CC --print-prog-name=ld`
5958 LD_VERSION=`$LD_PROG --version`
5959 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5960 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5961 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5964 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5968 if test "x$LD_OK" != x; then
5969 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5970 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5972 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5973 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5974 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5975 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5977 cat >>confdefs.h <<\_ACEOF
5978 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5987 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5995 cat >>confdefs.h <<\_ACEOF
6003 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6007 ac_cpp='$CPP $CPPFLAGS'
6008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6012 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6013 # On Suns, sometimes $CPP names a directory.
6014 if test -n "$CPP" && test -d "$CPP"; then
6017 if test -z "$CPP"; then
6018 if test "${ac_cv_prog_CPP+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 # Double quotes because CPP needs to be expanded
6022 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6025 for ac_c_preproc_warn_flag in '' yes
6027 # Use a header file that comes with gcc, so configuring glibc
6028 # with a fresh cross-compiler works.
6029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 # <limits.h> exists even on freestanding compilers.
6031 # On the NeXT, cc -E runs the code through the compiler's parser,
6032 # not just through cpp. "Syntax error" is here to catch this case.
6033 cat >conftest.$ac_ext <<_ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */
6040 # include <limits.h>
6042 # include <assert.h>
6046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } >/dev/null; then
6054 if test -s conftest.err; then
6055 ac_cpp_err=$ac_c_preproc_warn_flag
6056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6063 if test -z "$ac_cpp_err"; then
6066 echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6069 # Broken: fails on valid input.
6072 rm -f conftest.err conftest.$ac_ext
6074 # OK, works on sane cases. Now check whether non-existent headers
6075 # can be detected and how.
6076 cat >conftest.$ac_ext <<_ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <ac_nonexistent.h>
6084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } >/dev/null; then
6092 if test -s conftest.err; then
6093 ac_cpp_err=$ac_c_preproc_warn_flag
6094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6101 if test -z "$ac_cpp_err"; then
6102 # Broken: success on invalid input.
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6108 # Passes both tests.
6112 rm -f conftest.err conftest.$ac_ext
6115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6116 rm -f conftest.err conftest.$ac_ext
6117 if $ac_preproc_ok; then
6129 echo "$as_me:$LINENO: result: $CPP" >&5
6130 echo "${ECHO_T}$CPP" >&6
6132 for ac_c_preproc_warn_flag in '' yes
6134 # Use a header file that comes with gcc, so configuring glibc
6135 # with a fresh cross-compiler works.
6136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6137 # <limits.h> exists even on freestanding compilers.
6138 # On the NeXT, cc -E runs the code through the compiler's parser,
6139 # not just through cpp. "Syntax error" is here to catch this case.
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6147 # include <limits.h>
6149 # include <assert.h>
6153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6156 grep -v '^ *+' conftest.er1 >conftest.err
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } >/dev/null; then
6161 if test -s conftest.err; then
6162 ac_cpp_err=$ac_c_preproc_warn_flag
6163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6170 if test -z "$ac_cpp_err"; then
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 # Broken: fails on valid input.
6179 rm -f conftest.err conftest.$ac_ext
6181 # OK, works on sane cases. Now check whether non-existent headers
6182 # can be detected and how.
6183 cat >conftest.$ac_ext <<_ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 #include <ac_nonexistent.h>
6191 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6192 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6194 grep -v '^ *+' conftest.er1 >conftest.err
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } >/dev/null; then
6199 if test -s conftest.err; then
6200 ac_cpp_err=$ac_c_preproc_warn_flag
6201 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6208 if test -z "$ac_cpp_err"; then
6209 # Broken: success on invalid input.
6212 echo "$as_me: failed program was:" >&5
6213 sed 's/^/| /' conftest.$ac_ext >&5
6215 # Passes both tests.
6219 rm -f conftest.err conftest.$ac_ext
6222 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6223 rm -f conftest.err conftest.$ac_ext
6224 if $ac_preproc_ok; then
6227 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6228 See \`config.log' for more details." >&5
6229 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6230 See \`config.log' for more details." >&2;}
6231 { (exit 1); exit 1; }; }
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6241 echo "$as_me:$LINENO: checking for egrep" >&5
6242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6243 if test "${ac_cv_prog_egrep+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6247 then ac_cv_prog_egrep='grep -E'
6248 else ac_cv_prog_egrep='egrep'
6251 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6252 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6253 EGREP=$ac_cv_prog_egrep
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "uint32_t" >/dev/null 2>&1; then
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HAVE_INT32_DEFINED 1
6275 cat >conftest.$ac_ext <<_ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 #include <inttypes.h>
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "uint32_t" >/dev/null 2>&1; then
6287 cat >>confdefs.h <<\_ACEOF
6288 #define HAVE_INT32_DEFINED 1
6294 cat >conftest.$ac_ext <<_ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 #include <sys/types.h>
6303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6304 $EGREP "u_int32_t" >/dev/null 2>&1; then
6306 cat >>confdefs.h <<\_ACEOF
6307 #define HAVE_BSD_INT32_DEFINED 1
6313 cat >conftest.$ac_ext <<_ACEOF
6316 cat confdefs.h >>conftest.$ac_ext
6317 cat >>conftest.$ac_ext <<_ACEOF
6318 /* end confdefs.h. */
6319 #include <sys/config.h>
6322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6323 $EGREP "u_int32_t" >/dev/null 2>&1; then
6325 cat >>confdefs.h <<\_ACEOF
6326 #define HAVE_BSD_INT32_DEFINED 1
6335 if test "$PLATFORM" = Win32; then
6336 USING_WIN32_PLATFORM_TRUE=
6337 USING_WIN32_PLATFORM_FALSE='#'
6339 USING_WIN32_PLATFORM_TRUE='#'
6340 USING_WIN32_PLATFORM_FALSE=
6345 if test "$PLATFORM" = Posix; then
6346 USING_POSIX_PLATFORM_TRUE=
6347 USING_POSIX_PLATFORM_FALSE='#'
6349 USING_POSIX_PLATFORM_TRUE='#'
6350 USING_POSIX_PLATFORM_FALSE=
6355 if test "$PLATFORM" = Ecos; then
6356 USING_ECOS_PLATFORM_TRUE=
6357 USING_ECOS_PLATFORM_FALSE='#'
6359 USING_ECOS_PLATFORM_TRUE='#'
6360 USING_ECOS_PLATFORM_FALSE=
6365 *-darwin*) DARWIN_CRT=true ;;
6366 *) DARWIN_CRT=false ;;
6370 if $DARWIN_CRT; then
6371 USING_DARWIN_CRT_TRUE=
6372 USING_DARWIN_CRT_FALSE='#'
6374 USING_DARWIN_CRT_TRUE='#'
6375 USING_DARWIN_CRT_FALSE=
6379 # These may not be defined in a non-ANS conformant embedded system.
6380 # FIXME: Should these case a runtime exception in that case?
6381 cat >conftest.$ac_ext <<_ACEOF
6384 cat confdefs.h >>conftest.$ac_ext
6385 cat >>conftest.$ac_ext <<_ACEOF
6386 /* end confdefs.h. */
6390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391 $EGREP "mktime" >/dev/null 2>&1; then
6393 cat >>confdefs.h <<\_ACEOF
6394 #define HAVE_MKTIME 1
6400 cat >conftest.$ac_ext <<_ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6410 $EGREP "localtime" >/dev/null 2>&1; then
6412 cat >>confdefs.h <<\_ACEOF
6413 #define HAVE_LOCALTIME 1
6420 # Create the subdirectory for natFile.cc, or the attempt
6421 # to create the link will fail.
6422 test -d java || mkdir java
6423 test -d java/io || mkdir java/io
6424 test -d gnu || mkdir gnu
6425 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6428 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6429 test -d java/lang || mkdir java/lang
6430 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6432 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6435 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6436 test -d java/net || mkdir java/net
6437 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6439 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6442 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6443 test -d gnu/java || mkdir gnu/java
6444 test -d gnu/java/net || mkdir gnu/java/net
6445 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6447 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6450 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6451 test -d gnu/java/nio || mkdir gnu/java/nio
6452 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6454 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6456 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6457 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6462 SYSTEMSPEC="-lgdi32 -lws2_32"
6463 if test "${with_win32_nlsapi}" = "unicows"; then
6464 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6473 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6477 # Check whether --with-system-zlib or --without-system-zlib was given.
6478 if test "${with_system_zlib+set}" = set; then
6479 withval="$with_system_zlib"
6487 echo "$as_me:$LINENO: checking for X" >&5
6488 echo $ECHO_N "checking for X... $ECHO_C" >&6
6491 # Check whether --with-x or --without-x was given.
6492 if test "${with_x+set}" = set; then
6496 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6497 if test "x$with_x" = xno; then
6498 # The user explicitly disabled X.
6501 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6502 # Both variables are already set.
6505 if test "${ac_cv_have_x+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 # One or both of the vars are not set, and there is no cached value.
6509 ac_x_includes=no ac_x_libraries=no
6511 if mkdir conftest.dir; then
6513 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6514 cat >Imakefile <<'_ACEOF'
6516 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6518 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6519 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6520 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6521 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6522 for ac_extension in a so sl; do
6523 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6524 test -f $ac_im_libdir/libX11.$ac_extension; then
6525 ac_im_usrlibdir=$ac_im_libdir; break
6528 # Screen out bogus values from the imake configuration. They are
6529 # bogus both because they are the default anyway, and because
6530 # using them would break gcc on systems where it needs fixed includes.
6531 case $ac_im_incroot in
6533 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6535 case $ac_im_usrlibdir in
6537 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6544 # Standard set of common directories for X headers.
6545 # Check X11 before X11Rn because it is often a symlink to the current release.
6557 /usr/local/X11/include
6558 /usr/local/X11R6/include
6559 /usr/local/X11R5/include
6560 /usr/local/X11R4/include
6562 /usr/local/include/X11
6563 /usr/local/include/X11R6
6564 /usr/local/include/X11R5
6565 /usr/local/include/X11R4
6569 /usr/XFree86/include/X11
6573 /usr/unsupported/include
6575 /usr/local/x11r5/include
6576 /usr/lpp/Xamples/include
6578 /usr/openwin/include
6579 /usr/openwin/share/include'
6581 if test "$ac_x_includes" = no; then
6582 # Guess where to find include files, by looking for Intrinsic.h.
6583 # First, try using that file with no special directory specified.
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <X11/Intrinsic.h>
6592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6595 grep -v '^ *+' conftest.er1 >conftest.err
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } >/dev/null; then
6600 if test -s conftest.err; then
6601 ac_cpp_err=$ac_c_preproc_warn_flag
6602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6609 if test -z "$ac_cpp_err"; then
6610 # We can compile using X headers with no special include directory.
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 for ac_dir in $ac_x_header_dirs; do
6617 if test -r "$ac_dir/X11/Intrinsic.h"; then
6618 ac_x_includes=$ac_dir
6623 rm -f conftest.err conftest.$ac_ext
6624 fi # $ac_x_includes = no
6626 if test "$ac_x_libraries" = no; then
6627 # Check for the libraries.
6628 # See if we find them without any special options.
6629 # Don't add to $LIBS permanently.
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. */
6643 #include <X11/Intrinsic.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"
6662 || test ! -s conftest.err'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; } &&
6668 { ac_try='test -s conftest$ac_exeext'
6669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); }; }; then
6675 # We can link X programs with no special library path.
6678 echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6682 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6684 # Don't even attempt the hair of trying to link an X program!
6685 for ac_extension in a so sl; do
6686 if test -r $ac_dir/libXt.$ac_extension; then
6687 ac_x_libraries=$ac_dir
6693 rm -f conftest.err conftest.$ac_objext \
6694 conftest$ac_exeext conftest.$ac_ext
6695 fi # $ac_x_libraries = no
6697 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6698 # Didn't find X anywhere. Cache the known absence of X.
6699 ac_cv_have_x="have_x=no"
6701 # Record where we found X for the cache.
6702 ac_cv_have_x="have_x=yes \
6703 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6708 eval "$ac_cv_have_x"
6711 if test "$have_x" != yes; then
6712 echo "$as_me:$LINENO: result: $have_x" >&5
6713 echo "${ECHO_T}$have_x" >&6
6716 # If each of the values was on the command line, it overrides each guess.
6717 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6718 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6719 # Update the cache value to reflect the command line values.
6720 ac_cv_have_x="have_x=yes \
6721 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6722 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6723 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6726 if test "$no_x" = yes; then
6727 # Not all programs may use this symbol, but it does not hurt to define it.
6729 cat >>confdefs.h <<\_ACEOF
6730 #define X_DISPLAY_MISSING 1
6733 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6735 if test -n "$x_includes"; then
6736 X_CFLAGS="$X_CFLAGS -I$x_includes"
6739 # It would also be nice to do this for all -L options, not just this one.
6740 if test -n "$x_libraries"; then
6741 X_LIBS="$X_LIBS -L$x_libraries"
6742 # For Solaris; some versions of Sun CC require a space after -R and
6743 # others require no space. Words are not sufficient . . . .
6744 case `(uname -sr) 2>/dev/null` in
6746 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6747 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6748 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6749 if test x$gcc_no_link = xyes; then
6750 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6751 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6752 { (exit 1); exit 1; }; }
6754 cat >conftest.$ac_ext <<_ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6769 rm -f conftest.$ac_objext conftest$ac_exeext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6771 (eval $ac_link) 2>conftest.er1
6773 grep -v '^ *+' conftest.er1 >conftest.err
6775 cat conftest.err >&5
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); } &&
6778 { ac_try='test -z "$ac_c_werror_flag"
6779 || test ! -s conftest.err'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; } &&
6785 { ac_try='test -s conftest$ac_exeext'
6786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 (exit $ac_status); }; }; then
6793 echo "$as_me: failed program was:" >&5
6794 sed 's/^/| /' conftest.$ac_ext >&5
6798 rm -f conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
6800 if test $ac_R_nospace = yes; then
6801 echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6
6803 X_LIBS="$X_LIBS -R$x_libraries"
6805 LIBS="$ac_xsave_LIBS -R $x_libraries"
6806 if test x$gcc_no_link = xyes; then
6807 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6809 { (exit 1); exit 1; }; }
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828 (eval $ac_link) 2>conftest.er1
6830 grep -v '^ *+' conftest.er1 >conftest.err
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -z "$ac_c_werror_flag"
6836 || test ! -s conftest.err'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; } &&
6842 { ac_try='test -s conftest$ac_exeext'
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6855 rm -f conftest.err conftest.$ac_objext \
6856 conftest$ac_exeext conftest.$ac_ext
6857 if test $ac_R_space = yes; then
6858 echo "$as_me:$LINENO: result: yes" >&5
6859 echo "${ECHO_T}yes" >&6
6860 X_LIBS="$X_LIBS -R $x_libraries"
6862 echo "$as_me:$LINENO: result: neither works" >&5
6863 echo "${ECHO_T}neither works" >&6
6870 # Check for system-dependent libraries X programs must link with.
6871 # Do this before checking for the system-independent R6 libraries
6872 # (-lICE), since we may need -lsocket or whatever for X linking.
6874 if test "$ISC" = yes; then
6875 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6877 # Martyn Johnson says this is needed for Ultrix, if the X
6878 # libraries were built with DECnet support. And Karl Berry says
6879 # the Alpha needs dnet_stub (dnet does not exist).
6880 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6881 if test x$gcc_no_link = xyes; then
6882 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6883 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6884 { (exit 1); exit 1; }; }
6886 cat >conftest.$ac_ext <<_ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6893 /* Override any gcc2 internal prototype to avoid an error. */
6897 /* We use char because int might match the return type of a gcc2
6898 builtin and then its argument prototype would still apply. */
6899 char XOpenDisplay ();
6908 rm -f conftest.$ac_objext conftest$ac_exeext
6909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6910 (eval $ac_link) 2>conftest.er1
6912 grep -v '^ *+' conftest.er1 >conftest.err
6914 cat conftest.err >&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try='test -z "$ac_c_werror_flag"
6918 || test ! -s conftest.err'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; } &&
6924 { ac_try='test -s conftest$ac_exeext'
6925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); }; }; then
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6935 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6936 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6937 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 ac_check_lib_save_LIBS=$LIBS
6942 if test x$gcc_no_link = xyes; then
6943 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6944 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6945 { (exit 1); exit 1; }; }
6947 cat >conftest.$ac_ext <<_ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6954 /* Override any gcc2 internal prototype to avoid an error. */
6958 /* We use char because int might match the return type of a gcc2
6959 builtin and then its argument prototype would still apply. */
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>conftest.er1
6973 grep -v '^ *+' conftest.er1 >conftest.err
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_cv_lib_dnet_dnet_ntoa=yes
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 ac_cv_lib_dnet_dnet_ntoa=no
6998 rm -f conftest.err conftest.$ac_objext \
6999 conftest$ac_exeext conftest.$ac_ext
7000 LIBS=$ac_check_lib_save_LIBS
7002 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7003 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7004 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7005 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7008 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7009 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7010 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7011 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 ac_check_lib_save_LIBS=$LIBS
7015 LIBS="-ldnet_stub $LIBS"
7016 if test x$gcc_no_link = xyes; then
7017 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7018 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7019 { (exit 1); exit 1; }; }
7021 cat >conftest.$ac_ext <<_ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h. */
7028 /* Override any gcc2 internal prototype to avoid an error. */
7032 /* We use char because int might match the return type of a gcc2
7033 builtin and then its argument prototype would still apply. */
7043 rm -f conftest.$ac_objext conftest$ac_exeext
7044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7045 (eval $ac_link) 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -z "$ac_c_werror_flag"
7053 || test ! -s conftest.err'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7067 echo "$as_me: failed program was:" >&5
7068 sed 's/^/| /' conftest.$ac_ext >&5
7070 ac_cv_lib_dnet_stub_dnet_ntoa=no
7072 rm -f conftest.err conftest.$ac_objext \
7073 conftest$ac_exeext conftest.$ac_ext
7074 LIBS=$ac_check_lib_save_LIBS
7076 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7077 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7078 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7079 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7084 rm -f conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7086 LIBS="$ac_xsave_LIBS"
7088 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7089 # to get the SysV transport functions.
7090 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7092 # The nsl library prevents programs from opening the X display
7093 # on Irix 5.2, according to T.E. Dickey.
7094 # The functions gethostbyname, getservbyname, and inet_addr are
7095 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7096 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7097 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7098 if test "${ac_cv_func_gethostbyname+set}" = set; then
7099 echo $ECHO_N "(cached) $ECHO_C" >&6
7101 if test x$gcc_no_link = xyes; then
7102 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7103 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7104 { (exit 1); exit 1; }; }
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7114 #define gethostbyname innocuous_gethostbyname
7116 /* System header to define __stub macros and hopefully few prototypes,
7117 which can conflict with char gethostbyname (); below.
7118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7119 <limits.h> exists even on freestanding compilers. */
7122 # include <limits.h>
7124 # include <assert.h>
7127 #undef gethostbyname
7129 /* Override any gcc2 internal prototype to avoid an error. */
7134 /* We use char because int might match the return type of a gcc2
7135 builtin and then its argument prototype would still apply. */
7136 char gethostbyname ();
7137 /* The GNU C library defines this for functions which it implements
7138 to always fail with ENOSYS. Some functions are actually named
7139 something starting with __ and the normal name is an alias. */
7140 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7143 char (*f) () = gethostbyname;
7152 return f != gethostbyname;
7157 rm -f conftest.$ac_objext conftest$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>conftest.er1
7161 grep -v '^ *+' conftest.er1 >conftest.err
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_c_werror_flag"
7167 || test ! -s conftest.err'
7168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); }; } &&
7173 { ac_try='test -s conftest$ac_exeext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_cv_func_gethostbyname=yes
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_cv_func_gethostbyname=no
7186 rm -f conftest.err conftest.$ac_objext \
7187 conftest$ac_exeext conftest.$ac_ext
7189 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7190 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7192 if test $ac_cv_func_gethostbyname = no; then
7193 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7194 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7195 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7196 echo $ECHO_N "(cached) $ECHO_C" >&6
7198 ac_check_lib_save_LIBS=$LIBS
7200 if test x$gcc_no_link = xyes; then
7201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7203 { (exit 1); exit 1; }; }
7205 cat >conftest.$ac_ext <<_ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7212 /* Override any gcc2 internal prototype to avoid an error. */
7216 /* We use char because int might match the return type of a gcc2
7217 builtin and then its argument prototype would still apply. */
7218 char gethostbyname ();
7227 rm -f conftest.$ac_objext conftest$ac_exeext
7228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7229 (eval $ac_link) 2>conftest.er1
7231 grep -v '^ *+' conftest.er1 >conftest.err
7233 cat conftest.err >&5
7234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } &&
7236 { ac_try='test -z "$ac_c_werror_flag"
7237 || test ! -s conftest.err'
7238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); }; } &&
7243 { ac_try='test -s conftest$ac_exeext'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; }; then
7249 ac_cv_lib_nsl_gethostbyname=yes
7251 echo "$as_me: failed program was:" >&5
7252 sed 's/^/| /' conftest.$ac_ext >&5
7254 ac_cv_lib_nsl_gethostbyname=no
7256 rm -f conftest.err conftest.$ac_objext \
7257 conftest$ac_exeext conftest.$ac_ext
7258 LIBS=$ac_check_lib_save_LIBS
7260 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7261 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7262 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7266 if test $ac_cv_lib_nsl_gethostbyname = no; then
7267 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7268 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7269 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7270 echo $ECHO_N "(cached) $ECHO_C" >&6
7272 ac_check_lib_save_LIBS=$LIBS
7274 if test x$gcc_no_link = xyes; then
7275 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7276 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7277 { (exit 1); exit 1; }; }
7279 cat >conftest.$ac_ext <<_ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7286 /* Override any gcc2 internal prototype to avoid an error. */
7290 /* We use char because int might match the return type of a gcc2
7291 builtin and then its argument prototype would still apply. */
7292 char gethostbyname ();
7301 rm -f conftest.$ac_objext conftest$ac_exeext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7303 (eval $ac_link) 2>conftest.er1
7305 grep -v '^ *+' conftest.er1 >conftest.err
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -z "$ac_c_werror_flag"
7311 || test ! -s conftest.err'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; } &&
7317 { ac_try='test -s conftest$ac_exeext'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; }; then
7323 ac_cv_lib_bsd_gethostbyname=yes
7325 echo "$as_me: failed program was:" >&5
7326 sed 's/^/| /' conftest.$ac_ext >&5
7328 ac_cv_lib_bsd_gethostbyname=no
7330 rm -f conftest.err conftest.$ac_objext \
7331 conftest$ac_exeext conftest.$ac_ext
7332 LIBS=$ac_check_lib_save_LIBS
7334 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7335 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7336 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7337 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7343 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7344 # socket/setsockopt and other routines are undefined under SCO ODT
7345 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7346 # on later versions), says Simon Leinen: it contains gethostby*
7347 # variants that don't use the name server (or something). -lsocket
7348 # must be given before -lnsl if both are needed. We assume that
7349 # if connect needs -lnsl, so does gethostbyname.
7350 echo "$as_me:$LINENO: checking for connect" >&5
7351 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7352 if test "${ac_cv_func_connect+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7355 if test x$gcc_no_link = xyes; then
7356 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7357 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7358 { (exit 1); exit 1; }; }
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7366 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7368 #define connect innocuous_connect
7370 /* System header to define __stub macros and hopefully few prototypes,
7371 which can conflict with char connect (); below.
7372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7373 <limits.h> exists even on freestanding compilers. */
7376 # include <limits.h>
7378 # include <assert.h>
7383 /* Override any gcc2 internal prototype to avoid an error. */
7388 /* We use char because int might match the return type of a gcc2
7389 builtin and then its argument prototype would still apply. */
7391 /* The GNU C library defines this for functions which it implements
7392 to always fail with ENOSYS. Some functions are actually named
7393 something starting with __ and the normal name is an alias. */
7394 #if defined (__stub_connect) || defined (__stub___connect)
7397 char (*f) () = connect;
7406 return f != connect;
7411 rm -f conftest.$ac_objext conftest$ac_exeext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413 (eval $ac_link) 2>conftest.er1
7415 grep -v '^ *+' conftest.er1 >conftest.err
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try='test -z "$ac_c_werror_flag"
7421 || test ! -s conftest.err'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; } &&
7427 { ac_try='test -s conftest$ac_exeext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 ac_cv_func_connect=yes
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 ac_cv_func_connect=no
7440 rm -f conftest.err conftest.$ac_objext \
7441 conftest$ac_exeext conftest.$ac_ext
7443 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7444 echo "${ECHO_T}$ac_cv_func_connect" >&6
7446 if test $ac_cv_func_connect = no; then
7447 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7448 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7449 if test "${ac_cv_lib_socket_connect+set}" = set; then
7450 echo $ECHO_N "(cached) $ECHO_C" >&6
7452 ac_check_lib_save_LIBS=$LIBS
7453 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7454 if test x$gcc_no_link = xyes; then
7455 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7456 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7457 { (exit 1); exit 1; }; }
7459 cat >conftest.$ac_ext <<_ACEOF
7462 cat confdefs.h >>conftest.$ac_ext
7463 cat >>conftest.$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7466 /* Override any gcc2 internal prototype to avoid an error. */
7470 /* We use char because int might match the return type of a gcc2
7471 builtin and then its argument prototype would still apply. */
7481 rm -f conftest.$ac_objext conftest$ac_exeext
7482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7483 (eval $ac_link) 2>conftest.er1
7485 grep -v '^ *+' conftest.er1 >conftest.err
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
7490 { ac_try='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest$ac_exeext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_cv_lib_socket_connect=yes
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 ac_cv_lib_socket_connect=no
7510 rm -f conftest.err conftest.$ac_objext \
7511 conftest$ac_exeext conftest.$ac_ext
7512 LIBS=$ac_check_lib_save_LIBS
7514 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7515 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7516 if test $ac_cv_lib_socket_connect = yes; then
7517 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7522 # Guillermo Gomez says -lposix is necessary on A/UX.
7523 echo "$as_me:$LINENO: checking for remove" >&5
7524 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7525 if test "${ac_cv_func_remove+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 if test x$gcc_no_link = xyes; then
7529 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7530 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7531 { (exit 1); exit 1; }; }
7533 cat >conftest.$ac_ext <<_ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7540 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7541 #define remove innocuous_remove
7543 /* System header to define __stub macros and hopefully few prototypes,
7544 which can conflict with char remove (); below.
7545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7546 <limits.h> exists even on freestanding compilers. */
7549 # include <limits.h>
7551 # include <assert.h>
7556 /* Override any gcc2 internal prototype to avoid an error. */
7561 /* We use char because int might match the return type of a gcc2
7562 builtin and then its argument prototype would still apply. */
7564 /* The GNU C library defines this for functions which it implements
7565 to always fail with ENOSYS. Some functions are actually named
7566 something starting with __ and the normal name is an alias. */
7567 #if defined (__stub_remove) || defined (__stub___remove)
7570 char (*f) () = remove;
7584 rm -f conftest.$ac_objext conftest$ac_exeext
7585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7586 (eval $ac_link) 2>conftest.er1
7588 grep -v '^ *+' conftest.er1 >conftest.err
7590 cat conftest.err >&5
7591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 (exit $ac_status); } &&
7593 { ac_try='test -z "$ac_c_werror_flag"
7594 || test ! -s conftest.err'
7595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); }; } &&
7600 { ac_try='test -s conftest$ac_exeext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7606 ac_cv_func_remove=yes
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7611 ac_cv_func_remove=no
7613 rm -f conftest.err conftest.$ac_objext \
7614 conftest$ac_exeext conftest.$ac_ext
7616 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7617 echo "${ECHO_T}$ac_cv_func_remove" >&6
7619 if test $ac_cv_func_remove = no; then
7620 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7621 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7622 if test "${ac_cv_lib_posix_remove+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 ac_check_lib_save_LIBS=$LIBS
7626 LIBS="-lposix $LIBS"
7627 if test x$gcc_no_link = xyes; then
7628 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7629 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7630 { (exit 1); exit 1; }; }
7632 cat >conftest.$ac_ext <<_ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h. */
7639 /* Override any gcc2 internal prototype to avoid an error. */
7643 /* We use char because int might match the return type of a gcc2
7644 builtin and then its argument prototype would still apply. */
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656 (eval $ac_link) 2>conftest.er1
7658 grep -v '^ *+' conftest.er1 >conftest.err
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } &&
7663 { ac_try='test -z "$ac_c_werror_flag"
7664 || test ! -s conftest.err'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; } &&
7670 { ac_try='test -s conftest$ac_exeext'
7671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }; }; then
7676 ac_cv_lib_posix_remove=yes
7678 echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_cv_lib_posix_remove=no
7683 rm -f conftest.err conftest.$ac_objext \
7684 conftest$ac_exeext conftest.$ac_ext
7685 LIBS=$ac_check_lib_save_LIBS
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7688 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7689 if test $ac_cv_lib_posix_remove = yes; then
7690 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7695 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7696 echo "$as_me:$LINENO: checking for shmat" >&5
7697 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7698 if test "${ac_cv_func_shmat+set}" = set; then
7699 echo $ECHO_N "(cached) $ECHO_C" >&6
7701 if test x$gcc_no_link = xyes; then
7702 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7703 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7704 { (exit 1); exit 1; }; }
7706 cat >conftest.$ac_ext <<_ACEOF
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7714 #define shmat innocuous_shmat
7716 /* System header to define __stub macros and hopefully few prototypes,
7717 which can conflict with char shmat (); below.
7718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7719 <limits.h> exists even on freestanding compilers. */
7722 # include <limits.h>
7724 # include <assert.h>
7729 /* Override any gcc2 internal prototype to avoid an error. */
7734 /* We use char because int might match the return type of a gcc2
7735 builtin and then its argument prototype would still apply. */
7737 /* The GNU C library defines this for functions which it implements
7738 to always fail with ENOSYS. Some functions are actually named
7739 something starting with __ and the normal name is an alias. */
7740 #if defined (__stub_shmat) || defined (__stub___shmat)
7743 char (*f) () = shmat;
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7759 (eval $ac_link) 2>conftest.er1
7761 grep -v '^ *+' conftest.er1 >conftest.err
7763 cat conftest.err >&5
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); } &&
7766 { ac_try='test -z "$ac_c_werror_flag"
7767 || test ! -s conftest.err'
7768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; } &&
7773 { ac_try='test -s conftest$ac_exeext'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; }; then
7779 ac_cv_func_shmat=yes
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.$ac_ext >&5
7786 rm -f conftest.err conftest.$ac_objext \
7787 conftest$ac_exeext conftest.$ac_ext
7789 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7790 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7792 if test $ac_cv_func_shmat = no; then
7793 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7794 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7795 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 ac_check_lib_save_LIBS=$LIBS
7800 if test x$gcc_no_link = xyes; then
7801 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7802 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7803 { (exit 1); exit 1; }; }
7805 cat >conftest.$ac_ext <<_ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h. */
7812 /* Override any gcc2 internal prototype to avoid an error. */
7816 /* We use char because int might match the return type of a gcc2
7817 builtin and then its argument prototype would still apply. */
7827 rm -f conftest.$ac_objext conftest$ac_exeext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7829 (eval $ac_link) 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest$ac_exeext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_cv_lib_ipc_shmat=yes
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7854 ac_cv_lib_ipc_shmat=no
7856 rm -f conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7860 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7861 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7862 if test $ac_cv_lib_ipc_shmat = yes; then
7863 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7869 # Check for libraries that X11R6 Xt/Xaw programs need.
7870 ac_save_LDFLAGS=$LDFLAGS
7871 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7872 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7873 # check for ICE first), but we must link in the order -lSM -lICE or
7874 # we get undefined symbols. So assume we have SM if we have ICE.
7875 # These have to be linked with before -lX11, unlike the other
7876 # libraries we check for below, so use a different variable.
7877 # John Interrante, Karl Berry
7878 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7879 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7880 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 ac_check_lib_save_LIBS=$LIBS
7884 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7885 if test x$gcc_no_link = xyes; then
7886 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7887 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7888 { (exit 1); exit 1; }; }
7890 cat >conftest.$ac_ext <<_ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7897 /* Override any gcc2 internal prototype to avoid an error. */
7901 /* We use char because int might match the return type of a gcc2
7902 builtin and then its argument prototype would still apply. */
7903 char IceConnectionNumber ();
7907 IceConnectionNumber ();
7912 rm -f conftest.$ac_objext conftest$ac_exeext
7913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7914 (eval $ac_link) 2>conftest.er1
7916 grep -v '^ *+' conftest.er1 >conftest.err
7918 cat conftest.err >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); } &&
7921 { ac_try='test -z "$ac_c_werror_flag"
7922 || test ! -s conftest.err'
7923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); }; } &&
7928 { ac_try='test -s conftest$ac_exeext'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; }; then
7934 ac_cv_lib_ICE_IceConnectionNumber=yes
7936 echo "$as_me: failed program was:" >&5
7937 sed 's/^/| /' conftest.$ac_ext >&5
7939 ac_cv_lib_ICE_IceConnectionNumber=no
7941 rm -f conftest.err conftest.$ac_objext \
7942 conftest$ac_exeext conftest.$ac_ext
7943 LIBS=$ac_check_lib_save_LIBS
7945 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7946 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7947 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7948 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7951 LDFLAGS=$ac_save_LDFLAGS
7956 # Determine which AWT peer libraries to build
7957 # Check whether --enable-java-awt or --disable-java-awt was given.
7958 if test "${enable_java_awt+set}" = set; then
7959 enableval="$enable_java_awt"
7963 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7966 # The default toolkit to use is the first one specified.
7970 for peer in $peerlibs ; do
7973 if test "$no_x" = yes; then
7974 echo "*** xlib peers requested but no X library available" 1>&2
7978 if test -z "$TOOLKIT"; then
7979 TOOLKIT=gnu.awt.xlib.XToolkit
7984 if test "$no_x" = yes; then
7985 echo "*** xlib peers requested but no X library available" 1>&2
7989 if test -z "$TOOLKIT"; then
7990 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7992 test -d jniinclude || mkdir jniinclude
8001 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8008 if test "$use_xlib_awt" = yes; then
8018 if test "$use_gtk_awt" = yes; then
8027 # determine whether to enable the cairo GTK Graphics2D backend
8028 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8029 if test "${enable_gtk_cairo+set}" = set; then
8030 enableval="$enable_gtk_cairo"
8035 if test "x${enable_gtk_cairo}" = xyes; then
8043 if test "x${enable_gtk_cairo}" = xyes
8048 if test -z "$PKG_CONFIG"; then
8049 # Extract the first word of "pkg-config", so it can be a program name with args.
8050 set dummy pkg-config; ac_word=$2
8051 echo "$as_me:$LINENO: checking for $ac_word" >&5
8052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8079 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8081 if test -n "$PKG_CONFIG"; then
8082 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8083 echo "${ECHO_T}$PKG_CONFIG" >&6
8085 echo "$as_me:$LINENO: result: no" >&5
8086 echo "${ECHO_T}no" >&6
8091 if test "$PKG_CONFIG" = "no" ; then
8092 echo "*** The pkg-config script could not be found. Make sure it is"
8093 echo "*** in your path, or set the PKG_CONFIG environment variable"
8094 echo "*** to the full path to pkg-config."
8095 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8097 PKG_CONFIG_MIN_VERSION=0.9.0
8098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8099 echo "$as_me:$LINENO: checking for cairo" >&5
8100 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8102 if $PKG_CONFIG --exists "cairo" ; then
8103 echo "$as_me:$LINENO: result: yes" >&5
8104 echo "${ECHO_T}yes" >&6
8107 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8108 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8109 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8110 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8111 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8113 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8114 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8115 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8116 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8117 echo "${ECHO_T}$CAIRO_LIBS" >&6
8121 ## If we have a custom action on failure, don't print errors, but
8122 ## do set a variable so people can do so.
8123 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8124 echo $CAIRO_PKG_ERRORS
8130 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8131 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8135 if test $succeeded = yes; then
8138 { { 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
8139 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;}
8140 { (exit 1); exit 1; }; }
8146 if test -z "$PKG_CONFIG"; then
8147 # Extract the first word of "pkg-config", so it can be a program name with args.
8148 set dummy pkg-config; ac_word=$2
8149 echo "$as_me:$LINENO: checking for $ac_word" >&5
8150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8151 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8156 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8177 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8179 if test -n "$PKG_CONFIG"; then
8180 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8181 echo "${ECHO_T}$PKG_CONFIG" >&6
8183 echo "$as_me:$LINENO: result: no" >&5
8184 echo "${ECHO_T}no" >&6
8189 if test "$PKG_CONFIG" = "no" ; then
8190 echo "*** The pkg-config script could not be found. Make sure it is"
8191 echo "*** in your path, or set the PKG_CONFIG environment variable"
8192 echo "*** to the full path to pkg-config."
8193 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8195 PKG_CONFIG_MIN_VERSION=0.9.0
8196 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8197 echo "$as_me:$LINENO: checking for pangoft2" >&5
8198 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8200 if $PKG_CONFIG --exists "pangoft2" ; then
8201 echo "$as_me:$LINENO: result: yes" >&5
8202 echo "${ECHO_T}yes" >&6
8205 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8206 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8207 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8208 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8209 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8211 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8212 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8213 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8214 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8215 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8219 ## If we have a custom action on failure, don't print errors, but
8220 ## do set a variable so people can do so.
8221 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8222 echo $PANGOFT2_PKG_ERRORS
8228 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8229 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8233 if test $succeeded = yes; then
8236 { { 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
8237 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;}
8238 { (exit 1); exit 1; }; }
8247 # FIXME: this should be _libs on some hosts.
8250 # Allow the GC to be disabled. Can be useful when debugging.
8251 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8252 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8253 # Check whether --enable-java-gc or --disable-java-gc was given.
8254 if test "${enable_java_gc+set}" = set; then
8255 enableval="$enable_java_gc"
8268 echo "$as_me:$LINENO: result: boehm" >&5
8269 echo "${ECHO_T}boehm" >&6
8270 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8271 JC1GCSPEC='-fuse-boehm-gc'
8272 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8273 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8276 # The POSIX thread support needs to know this.
8278 cat >>confdefs.h <<\_ACEOF
8279 #define HAVE_BOEHM_GC 1
8284 echo "$as_me:$LINENO: result: none" >&5
8285 echo "${ECHO_T}none" >&6
8289 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8290 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8291 { (exit 1); exit 1; }; }
8300 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8304 if test "$GC" = boehm; then
8306 USING_BOEHMGC_FALSE='#'
8308 USING_BOEHMGC_TRUE='#'
8309 USING_BOEHMGC_FALSE=
8314 if test "$GC" = no; then
8316 USING_NOGC_FALSE='#'
8324 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8325 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8326 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8327 echo "$as_me:$LINENO: result: $THREADS" >&5
8328 echo "${ECHO_T}$THREADS" >&6
8334 posix | posix95 | pthreads)
8339 cat >>confdefs.h <<\_ACEOF
8340 #define LINUX_THREADS 1
8348 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8349 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8350 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8351 { (exit 1); exit 1; }; }
8354 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8355 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8356 { (exit 1); exit 1; }; }
8371 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8374 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8375 # merely adds pthread_* functions) but it does have a -pthread switch
8376 # which is required at link-time to select -lc_r *instead* of -lc.
8377 THREADLDFLAGS=-pthread
8378 # Don't set THREADSPEC here as might be expected since -pthread is
8379 # not processed when found within a spec file, it must come from
8380 # the command line. For now, the user must provide the -pthread
8381 # switch to link code compiled with gcj. In future, consider adding
8382 # support for weak references to pthread_* functions ala gthr.h API.
8383 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8386 # FreeBSD 5 implements a model much closer to other modern UNIX
8387 # which support threads. However, it still does not support
8389 THREADLDFLAGS=-pthread
8393 THREADCXXFLAGS=-pthread
8394 # boehm-gc needs some functions from librt, so link that too.
8395 THREADLIBS='-lpthread -lrt'
8396 THREADSPEC='-lpthread -lrt'
8399 THREADLIBS=-lpthread
8400 THREADSPEC=-lpthread
8403 THREADH=posix-threads.h
8404 # MIT pthreads doesn't seem to have the mutexattr functions.
8405 # But for now we don't check for it. We just assume you aren't
8406 # using MIT pthreads.
8408 cat >>confdefs.h <<\_ACEOF
8409 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8413 # If we're using the Boehm GC, then we happen to know that it
8414 # defines _REENTRANT, so we don't bother. Eww.
8415 if test "$GC" != boehm; then
8417 cat >>confdefs.h <<\_ACEOF
8418 #define _REENTRANT 1
8423 cat >>confdefs.h <<\_ACEOF
8424 #define _POSIX_PTHREAD_SEMANTICS 1
8430 THREADH=win32-threads.h
8434 THREADH=no-threads.h
8437 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8447 if test "$THREADS" = posix; then
8448 USING_POSIX_THREADS_TRUE=
8449 USING_POSIX_THREADS_FALSE='#'
8451 USING_POSIX_THREADS_TRUE='#'
8452 USING_POSIX_THREADS_FALSE=
8457 if test "$THREADS" = win32; then
8458 USING_WIN32_THREADS_TRUE=
8459 USING_WIN32_THREADS_FALSE='#'
8461 USING_WIN32_THREADS_TRUE='#'
8462 USING_WIN32_THREADS_FALSE=
8467 if test "$THREADS" = none; then
8468 USING_NO_THREADS_TRUE=
8469 USING_NO_THREADS_FALSE='#'
8471 USING_NO_THREADS_TRUE='#'
8472 USING_NO_THREADS_FALSE=
8476 if test -d sysdep; then true; else mkdir sysdep; fi
8477 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8479 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8483 # Hash synchronization is only useful with posix threads right now.
8484 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8485 HASH_SYNC_SPEC=-fhash-synchronization
8487 cat >>confdefs.h <<\_ACEOF
8488 #define JV_HASH_SYNCHRONIZATION 1
8496 if test "$GCC" = yes; then
8505 # We're in the tree with gcc, and need to include some of its headers.
8506 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8508 if test "x${with_newlib}" = "xyes"; then
8509 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8510 # may not work correctly, because the compiler may not be able to
8513 # We assume newlib. This lets us hard-code the functions we know
8516 cat >>confdefs.h <<\_ACEOF
8517 #define HAVE_MEMMOVE 1
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_MEMCPY 1
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_STRERROR 1
8531 cat >>confdefs.h <<\_ACEOF
8536 cat >>confdefs.h <<\_ACEOF
8537 #define HAVE_GMTIME_R 1
8541 cat >>confdefs.h <<\_ACEOF
8542 #define HAVE_LOCALTIME_R 1
8546 cat >>confdefs.h <<\_ACEOF
8547 #define HAVE_USLEEP_DECL 1
8550 # This is only for POSIX threads.
8552 cat >>confdefs.h <<\_ACEOF
8553 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8556 # We also assume we are using gcc, which provides alloca.
8557 cat >>confdefs.h <<\_ACEOF
8558 #define HAVE_ALLOCA 1
8562 # Assume we do not have getuid and friends.
8564 cat >>confdefs.h <<\_ACEOF
8602 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8603 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8604 access stat mkdir rename rmdir unlink realpath utime chmod \
8605 nl_langinfo setlocale \
8606 inet_pton uname inet_ntoa \
8607 fork execvp pipe sigaction ftruncate
8609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8610 echo "$as_me:$LINENO: checking for $ac_func" >&5
8611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8612 if eval "test \"\${$as_ac_var+set}\" = set"; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 if test x$gcc_no_link = xyes; then
8616 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8617 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8618 { (exit 1); exit 1; }; }
8620 cat >conftest.$ac_ext <<_ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8627 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8628 #define $ac_func innocuous_$ac_func
8630 /* System header to define __stub macros and hopefully few prototypes,
8631 which can conflict with char $ac_func (); below.
8632 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8633 <limits.h> exists even on freestanding compilers. */
8636 # include <limits.h>
8638 # include <assert.h>
8643 /* Override any gcc2 internal prototype to avoid an error. */
8648 /* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */
8651 /* The GNU C library defines this for functions which it implements
8652 to always fail with ENOSYS. Some functions are actually named
8653 something starting with __ and the normal name is an alias. */
8654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8657 char (*f) () = $ac_func;
8666 return f != $ac_func;
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8673 (eval $ac_link) 2>conftest.er1
8675 grep -v '^ *+' conftest.er1 >conftest.err
8677 cat conftest.err >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); } &&
8680 { ac_try='test -z "$ac_c_werror_flag"
8681 || test ! -s conftest.err'
8682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686 (exit $ac_status); }; } &&
8687 { ac_try='test -s conftest$ac_exeext'
8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); }; }; then
8693 eval "$as_ac_var=yes"
8695 echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8698 eval "$as_ac_var=no"
8700 rm -f conftest.err conftest.$ac_objext \
8701 conftest$ac_exeext conftest.$ac_ext
8703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8704 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8705 if test `eval echo '${'$as_ac_var'}'` = yes; then
8706 cat >>confdefs.h <<_ACEOF
8707 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8715 for ac_func in inet_aton inet_addr
8717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8718 echo "$as_me:$LINENO: checking for $ac_func" >&5
8719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8720 if eval "test \"\${$as_ac_var+set}\" = set"; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 if test x$gcc_no_link = xyes; then
8724 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8725 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8726 { (exit 1); exit 1; }; }
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8736 #define $ac_func innocuous_$ac_func
8738 /* System header to define __stub macros and hopefully few prototypes,
8739 which can conflict with char $ac_func (); below.
8740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8741 <limits.h> exists even on freestanding compilers. */
8744 # include <limits.h>
8746 # include <assert.h>
8751 /* Override any gcc2 internal prototype to avoid an error. */
8756 /* We use char because int might match the return type of a gcc2
8757 builtin and then its argument prototype would still apply. */
8759 /* The GNU C library defines this for functions which it implements
8760 to always fail with ENOSYS. Some functions are actually named
8761 something starting with __ and the normal name is an alias. */
8762 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8765 char (*f) () = $ac_func;
8774 return f != $ac_func;
8779 rm -f conftest.$ac_objext conftest$ac_exeext
8780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8781 (eval $ac_link) 2>conftest.er1
8783 grep -v '^ *+' conftest.er1 >conftest.err
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } &&
8788 { ac_try='test -z "$ac_c_werror_flag"
8789 || test ! -s conftest.err'
8790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); }; } &&
8795 { ac_try='test -s conftest$ac_exeext'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; }; then
8801 eval "$as_ac_var=yes"
8803 echo "$as_me: failed program was:" >&5
8804 sed 's/^/| /' conftest.$ac_ext >&5
8806 eval "$as_ac_var=no"
8808 rm -f conftest.err conftest.$ac_objext \
8809 conftest$ac_exeext conftest.$ac_ext
8811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8813 if test `eval echo '${'$as_ac_var'}'` = yes; then
8814 cat >>confdefs.h <<_ACEOF
8815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8821 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8823 if test "${ac_cv_header_stdc+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 cat >conftest.$ac_ext <<_ACEOF
8829 cat confdefs.h >>conftest.$ac_ext
8830 cat >>conftest.$ac_ext <<_ACEOF
8831 /* end confdefs.h. */
8845 rm -f conftest.$ac_objext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8847 (eval $ac_compile) 2>conftest.er1
8849 grep -v '^ *+' conftest.er1 >conftest.err
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag"
8855 || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest.$ac_objext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_cv_header_stdc=yes
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 ac_cv_header_stdc=no
8874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8876 if test $ac_cv_header_stdc = yes; then
8877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8878 cat >conftest.$ac_ext <<_ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8888 $EGREP "memchr" >/dev/null 2>&1; then
8891 ac_cv_header_stdc=no
8897 if test $ac_cv_header_stdc = yes; then
8898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8899 cat >conftest.$ac_ext <<_ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8909 $EGREP "free" >/dev/null 2>&1; then
8912 ac_cv_header_stdc=no
8918 if test $ac_cv_header_stdc = yes; then
8919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8920 if test "$cross_compiling" = yes; then
8923 cat >conftest.$ac_ext <<_ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8930 #if ((' ' & 0x0FF) == 0x020)
8931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8934 # define ISLOWER(c) \
8935 (('a' <= (c) && (c) <= 'i') \
8936 || ('j' <= (c) && (c) <= 'r') \
8937 || ('s' <= (c) && (c) <= 'z'))
8938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8946 for (i = 0; i < 256; i++)
8947 if (XOR (islower (i), ISLOWER (i))
8948 || toupper (i) != TOUPPER (i))
8953 rm -f conftest$ac_exeext
8954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8955 (eval $ac_link) 2>&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); }; }; then
8966 echo "$as_me: program exited with status $ac_status" >&5
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8971 ac_cv_header_stdc=no
8973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8978 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8979 if test $ac_cv_header_stdc = yes; then
8981 cat >>confdefs.h <<\_ACEOF
8982 #define STDC_HEADERS 1
8987 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8998 inttypes.h stdint.h unistd.h
9000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9001 echo "$as_me:$LINENO: checking for $ac_header" >&5
9002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 cat >conftest.$ac_ext <<_ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h. */
9012 $ac_includes_default
9014 #include <$ac_header>
9016 rm -f conftest.$ac_objext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9018 (eval $ac_compile) 2>conftest.er1
9020 grep -v '^ *+' conftest.er1 >conftest.err
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } &&
9025 { ac_try='test -z "$ac_c_werror_flag"
9026 || test ! -s conftest.err'
9027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); }; } &&
9032 { ac_try='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 eval "$as_ac_Header=yes"
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9043 eval "$as_ac_Header=no"
9045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9050 cat >>confdefs.h <<_ACEOF
9051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9062 for ac_header in execinfo.h unistd.h dlfcn.h
9064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9066 echo "$as_me:$LINENO: checking for $ac_header" >&5
9067 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9068 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9074 # Is the header compilable?
9075 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9077 cat >conftest.$ac_ext <<_ACEOF
9080 cat confdefs.h >>conftest.$ac_ext
9081 cat >>conftest.$ac_ext <<_ACEOF
9082 /* end confdefs.h. */
9083 $ac_includes_default
9084 #include <$ac_header>
9086 rm -f conftest.$ac_objext
9087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9088 (eval $ac_compile) 2>conftest.er1
9090 grep -v '^ *+' conftest.er1 >conftest.err
9092 cat conftest.err >&5
9093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } &&
9095 { ac_try='test -z "$ac_c_werror_flag"
9096 || test ! -s conftest.err'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; } &&
9102 { ac_try='test -s conftest.$ac_objext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 ac_header_compiler=yes
9110 echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9113 ac_header_compiler=no
9115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9117 echo "${ECHO_T}$ac_header_compiler" >&6
9119 # Is the header present?
9120 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9121 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9122 cat >conftest.$ac_ext <<_ACEOF
9125 cat confdefs.h >>conftest.$ac_ext
9126 cat >>conftest.$ac_ext <<_ACEOF
9127 /* end confdefs.h. */
9128 #include <$ac_header>
9130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9131 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9133 grep -v '^ *+' conftest.er1 >conftest.err
9135 cat conftest.err >&5
9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137 (exit $ac_status); } >/dev/null; then
9138 if test -s conftest.err; then
9139 ac_cpp_err=$ac_c_preproc_warn_flag
9140 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9147 if test -z "$ac_cpp_err"; then
9148 ac_header_preproc=yes
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9153 ac_header_preproc=no
9155 rm -f conftest.err conftest.$ac_ext
9156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9157 echo "${ECHO_T}$ac_header_preproc" >&6
9159 # So? What about this header?
9160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9163 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9166 ac_header_preproc=yes
9169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9174 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9176 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9180 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9183 ## ---------------------------------- ##
9184 ## Report this to the libjava lists. ##
9185 ## ---------------------------------- ##
9188 sed "s/^/$as_me: WARNING: /" >&2
9191 echo "$as_me:$LINENO: checking for $ac_header" >&5
9192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 eval "$as_ac_Header=\$ac_header_preproc"
9198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9202 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9203 cat >>confdefs.h <<_ACEOF
9204 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9211 echo "$as_me:$LINENO: checking for backtrace" >&5
9212 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9213 if test "${ac_cv_func_backtrace+set}" = set; then
9214 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 if test x$gcc_no_link = xyes; then
9217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9219 { (exit 1); exit 1; }; }
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9229 #define backtrace innocuous_backtrace
9231 /* System header to define __stub macros and hopefully few prototypes,
9232 which can conflict with char backtrace (); below.
9233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234 <limits.h> exists even on freestanding compilers. */
9237 # include <limits.h>
9239 # include <assert.h>
9244 /* Override any gcc2 internal prototype to avoid an error. */
9249 /* We use char because int might match the return type of a gcc2
9250 builtin and then its argument prototype would still apply. */
9252 /* The GNU C library defines this for functions which it implements
9253 to always fail with ENOSYS. Some functions are actually named
9254 something starting with __ and the normal name is an alias. */
9255 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9258 char (*f) () = backtrace;
9267 return f != backtrace;
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9274 (eval $ac_link) 2>conftest.er1
9276 grep -v '^ *+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } &&
9281 { ac_try='test -z "$ac_c_werror_flag"
9282 || test ! -s conftest.err'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; } &&
9288 { ac_try='test -s conftest$ac_exeext'
9289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); }; }; then
9294 ac_cv_func_backtrace=yes
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 ac_cv_func_backtrace=no
9301 rm -f conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
9304 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9305 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9306 if test $ac_cv_func_backtrace = yes; then
9310 # Has broken backtrace()
9313 # Has broken backtrace(), but we supply our own.
9314 if test -d sysdep; then true; else mkdir -p sysdep; fi
9315 supply_backtrace=yes
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_BACKTRACE 1
9324 cat >>confdefs.h <<\_ACEOF
9325 #define HAVE_BACKTRACE 1
9335 # Has backtrace() defined in libgcj itself
9337 cat >>confdefs.h <<\_ACEOF
9338 #define HAVE_BACKTRACE 1
9347 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9348 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9349 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 ac_check_lib_save_LIBS=$LIBS
9354 if test x$gcc_no_link = xyes; then
9355 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9356 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9357 { (exit 1); exit 1; }; }
9359 cat >conftest.$ac_ext <<_ACEOF
9362 cat confdefs.h >>conftest.$ac_ext
9363 cat >>conftest.$ac_ext <<_ACEOF
9364 /* end confdefs.h. */
9366 /* Override any gcc2 internal prototype to avoid an error. */
9370 /* We use char because int might match the return type of a gcc2
9371 builtin and then its argument prototype would still apply. */
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383 (eval $ac_link) 2>conftest.er1
9385 grep -v '^ *+' conftest.er1 >conftest.err
9387 cat conftest.err >&5
9388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9389 (exit $ac_status); } &&
9390 { ac_try='test -z "$ac_c_werror_flag"
9391 || test ! -s conftest.err'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; } &&
9397 { ac_try='test -s conftest$ac_exeext'
9398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9402 (exit $ac_status); }; }; then
9403 ac_cv_lib_dl_dladdr=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9408 ac_cv_lib_dl_dladdr=no
9410 rm -f conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
9412 LIBS=$ac_check_lib_save_LIBS
9414 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9415 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9416 if test $ac_cv_lib_dl_dladdr = yes; then
9418 if test "x${disable_dladdr}" = "xyes"; then
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_DLADDR 1
9431 if test x"$build" = x"$host"; then
9432 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9433 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9434 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 test "$cross_compiling" = yes &&
9438 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9439 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9440 { (exit 1); exit 1; }; }
9441 if test -r "/proc/self/exe"; then
9442 ac_cv_file__proc_self_exe=yes
9444 ac_cv_file__proc_self_exe=no
9447 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9448 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9449 if test $ac_cv_file__proc_self_exe = yes; then
9451 cat >>confdefs.h <<_ACEOF
9452 #define HAVE__PROC_SELF_EXE 1
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_PROC_SELF_EXE 1
9467 cat >>confdefs.h <<\_ACEOF
9468 #define HAVE_PROC_SELF_EXE 1
9476 if test "X$prefix" = "XNONE"; then
9477 acl_final_prefix="$ac_default_prefix"
9479 acl_final_prefix="$prefix"
9481 if test "X$exec_prefix" = "XNONE"; then
9482 acl_final_exec_prefix='${prefix}'
9484 acl_final_exec_prefix="$exec_prefix"
9486 acl_save_prefix="$prefix"
9487 prefix="$acl_final_prefix"
9488 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9489 prefix="$acl_save_prefix"
9492 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9493 if test "${with_gnu_ld+set}" = set; then
9494 withval="$with_gnu_ld"
9495 test "$withval" = no || with_gnu_ld=yes
9499 # Prepare PATH_SEPARATOR.
9500 # The user is always right.
9501 if test "${PATH_SEPARATOR+set}" != set; then
9502 echo "#! /bin/sh" >conf$$.sh
9503 echo "exit 0" >>conf$$.sh
9505 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9513 if test "$GCC" = yes; then
9514 # Check if gcc -print-prog-name=ld gives a path.
9515 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9516 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9519 # gcc leaves a trailing carriage return which upsets mingw
9520 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9522 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9525 # Accept absolute paths.
9526 [\\/]* | [A-Za-z]:[\\/]*)
9527 re_direlt='/[^/][^/]*/\.\./'
9528 # Canonicalize the path of ld
9529 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9530 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9531 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9533 test -z "$LD" && LD="$ac_prog"
9536 # If it fails, then pretend we aren't using GCC.
9540 # If it is relative, then search for the first ld in PATH.
9544 elif test "$with_gnu_ld" = yes; then
9545 echo "$as_me:$LINENO: checking for GNU ld" >&5
9546 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9548 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9549 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9551 if test "${acl_cv_path_LD+set}" = set; then
9552 echo $ECHO_N "(cached) $ECHO_C" >&6
9554 if test -z "$LD"; then
9555 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9556 for ac_dir in $PATH; do
9557 test -z "$ac_dir" && ac_dir=.
9558 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9559 acl_cv_path_LD="$ac_dir/$ac_prog"
9560 # Check to see if the program is GNU ld. I'd rather use --version,
9561 # but apparently some GNU ld's only accept -v.
9562 # Break only if it was the GNU/non-GNU ld that we prefer.
9563 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9564 test "$with_gnu_ld" != no && break
9566 test "$with_gnu_ld" != yes && break
9572 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9576 LD="$acl_cv_path_LD"
9577 if test -n "$LD"; then
9578 echo "$as_me:$LINENO: result: $LD" >&5
9579 echo "${ECHO_T}$LD" >&6
9581 echo "$as_me:$LINENO: result: no" >&5
9582 echo "${ECHO_T}no" >&6
9584 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9585 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9586 { (exit 1); exit 1; }; }
9587 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9588 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9589 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9593 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9594 acl_cv_prog_gnu_ld=yes
9596 acl_cv_prog_gnu_ld=no
9599 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9600 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9601 with_gnu_ld=$acl_cv_prog_gnu_ld
9605 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9606 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9607 if test "${acl_cv_rpath+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9612 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9618 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9619 echo "${ECHO_T}$acl_cv_rpath" >&6
9621 libext="$acl_cv_libext"
9622 shlibext="$acl_cv_shlibext"
9623 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9624 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9625 hardcode_direct="$acl_cv_hardcode_direct"
9626 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9627 # Check whether --enable-rpath or --disable-rpath was given.
9628 if test "${enable_rpath+set}" = set; then
9629 enableval="$enable_rpath"
9643 acl_save_prefix="$prefix"
9644 prefix="$acl_final_prefix"
9645 acl_save_exec_prefix="$exec_prefix"
9646 exec_prefix="$acl_final_exec_prefix"
9648 eval additional_includedir=\"$includedir\"
9649 eval additional_libdir=\"$libdir\"
9651 exec_prefix="$acl_save_exec_prefix"
9652 prefix="$acl_save_prefix"
9655 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9656 if test "${with_libiconv_prefix+set}" = set; then
9657 withval="$with_libiconv_prefix"
9659 if test "X$withval" = "Xno"; then
9662 if test "X$withval" = "X"; then
9664 acl_save_prefix="$prefix"
9665 prefix="$acl_final_prefix"
9666 acl_save_exec_prefix="$exec_prefix"
9667 exec_prefix="$acl_final_exec_prefix"
9669 eval additional_includedir=\"$includedir\"
9670 eval additional_libdir=\"$libdir\"
9672 exec_prefix="$acl_save_exec_prefix"
9673 prefix="$acl_save_prefix"
9676 additional_includedir="$withval/include"
9677 additional_libdir="$withval/lib"
9687 names_already_handled=
9688 names_next_round='iconv '
9689 while test -n "$names_next_round"; do
9690 names_this_round="$names_next_round"
9692 for name in $names_this_round; do
9694 for n in $names_already_handled; do
9695 if test "$n" = "$name"; then
9700 if test -z "$already_handled"; then
9701 names_already_handled="$names_already_handled $name"
9702 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9703 eval value=\"\$HAVE_LIB$uppername\"
9704 if test -n "$value"; then
9705 if test "$value" = yes; then
9706 eval value=\"\$LIB$uppername\"
9707 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9708 eval value=\"\$LTLIB$uppername\"
9709 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9718 if test $use_additional = yes; then
9719 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9720 found_dir="$additional_libdir"
9721 found_so="$additional_libdir/lib$name.$shlibext"
9722 if test -f "$additional_libdir/lib$name.la"; then
9723 found_la="$additional_libdir/lib$name.la"
9726 if test -f "$additional_libdir/lib$name.$libext"; then
9727 found_dir="$additional_libdir"
9728 found_a="$additional_libdir/lib$name.$libext"
9729 if test -f "$additional_libdir/lib$name.la"; then
9730 found_la="$additional_libdir/lib$name.la"
9735 if test "X$found_dir" = "X"; then
9736 for x in $LDFLAGS $LTLIBICONV; do
9738 acl_save_prefix="$prefix"
9739 prefix="$acl_final_prefix"
9740 acl_save_exec_prefix="$exec_prefix"
9741 exec_prefix="$acl_final_exec_prefix"
9743 exec_prefix="$acl_save_exec_prefix"
9744 prefix="$acl_save_prefix"
9748 dir=`echo "X$x" | sed -e 's/^X-L//'`
9749 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9751 found_so="$dir/lib$name.$shlibext"
9752 if test -f "$dir/lib$name.la"; then
9753 found_la="$dir/lib$name.la"
9756 if test -f "$dir/lib$name.$libext"; then
9758 found_a="$dir/lib$name.$libext"
9759 if test -f "$dir/lib$name.la"; then
9760 found_la="$dir/lib$name.la"
9766 if test "X$found_dir" != "X"; then
9771 if test "X$found_dir" != "X"; then
9772 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9773 if test "X$found_so" != "X"; then
9774 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9775 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9778 for x in $ltrpathdirs; do
9779 if test "X$x" = "X$found_dir"; then
9784 if test -z "$haveit"; then
9785 ltrpathdirs="$ltrpathdirs $found_dir"
9787 if test "$hardcode_direct" = yes; then
9788 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9790 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9791 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9793 for x in $rpathdirs; do
9794 if test "X$x" = "X$found_dir"; then
9799 if test -z "$haveit"; then
9800 rpathdirs="$rpathdirs $found_dir"
9804 for x in $LDFLAGS $LIBICONV; do
9806 acl_save_prefix="$prefix"
9807 prefix="$acl_final_prefix"
9808 acl_save_exec_prefix="$exec_prefix"
9809 exec_prefix="$acl_final_exec_prefix"
9811 exec_prefix="$acl_save_exec_prefix"
9812 prefix="$acl_save_prefix"
9814 if test "X$x" = "X-L$found_dir"; then
9819 if test -z "$haveit"; then
9820 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9822 if test "$hardcode_minus_L" != no; then
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9825 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9831 if test "X$found_a" != "X"; then
9832 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9834 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9837 additional_includedir=
9838 case "$found_dir" in
9840 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9841 additional_includedir="$basedir/include"
9844 if test "X$additional_includedir" != "X"; then
9845 if test "X$additional_includedir" != "X/usr/include"; then
9847 if test "X$additional_includedir" = "X/usr/local/include"; then
9848 if test -n "$GCC"; then
9850 linux*) haveit=yes;;
9854 if test -z "$haveit"; then
9855 for x in $CPPFLAGS $INCICONV; do
9857 acl_save_prefix="$prefix"
9858 prefix="$acl_final_prefix"
9859 acl_save_exec_prefix="$exec_prefix"
9860 exec_prefix="$acl_final_exec_prefix"
9862 exec_prefix="$acl_save_exec_prefix"
9863 prefix="$acl_save_prefix"
9865 if test "X$x" = "X-I$additional_includedir"; then
9870 if test -z "$haveit"; then
9871 if test -d "$additional_includedir"; then
9872 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9878 if test -n "$found_la"; then
9879 save_libdir="$libdir"
9881 */* | *\\*) . "$found_la" ;;
9882 *) . "./$found_la" ;;
9884 libdir="$save_libdir"
9885 for dep in $dependency_libs; do
9888 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9889 if test "X$additional_libdir" != "X/usr/lib"; then
9891 if test "X$additional_libdir" = "X/usr/local/lib"; then
9892 if test -n "$GCC"; then
9894 linux*) haveit=yes;;
9898 if test -z "$haveit"; then
9900 for x in $LDFLAGS $LIBICONV; do
9902 acl_save_prefix="$prefix"
9903 prefix="$acl_final_prefix"
9904 acl_save_exec_prefix="$exec_prefix"
9905 exec_prefix="$acl_final_exec_prefix"
9907 exec_prefix="$acl_save_exec_prefix"
9908 prefix="$acl_save_prefix"
9910 if test "X$x" = "X-L$additional_libdir"; then
9915 if test -z "$haveit"; then
9916 if test -d "$additional_libdir"; then
9917 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9921 for x in $LDFLAGS $LTLIBICONV; do
9923 acl_save_prefix="$prefix"
9924 prefix="$acl_final_prefix"
9925 acl_save_exec_prefix="$exec_prefix"
9926 exec_prefix="$acl_final_exec_prefix"
9928 exec_prefix="$acl_save_exec_prefix"
9929 prefix="$acl_save_prefix"
9931 if test "X$x" = "X-L$additional_libdir"; then
9936 if test -z "$haveit"; then
9937 if test -d "$additional_libdir"; then
9938 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9945 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9946 if test "$enable_rpath" != no; then
9948 for x in $rpathdirs; do
9949 if test "X$x" = "X$dir"; then
9954 if test -z "$haveit"; then
9955 rpathdirs="$rpathdirs $dir"
9958 for x in $ltrpathdirs; do
9959 if test "X$x" = "X$dir"; then
9964 if test -z "$haveit"; then
9965 ltrpathdirs="$ltrpathdirs $dir"
9970 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9973 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9976 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9977 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9983 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9984 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9990 if test "X$rpathdirs" != "X"; then
9991 if test -n "$hardcode_libdir_separator"; then
9993 for found_dir in $rpathdirs; do
9994 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9996 acl_save_libdir="$libdir"
9998 eval flag=\"$hardcode_libdir_flag_spec\"
9999 libdir="$acl_save_libdir"
10000 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10002 for found_dir in $rpathdirs; do
10003 acl_save_libdir="$libdir"
10004 libdir="$found_dir"
10005 eval flag=\"$hardcode_libdir_flag_spec\"
10006 libdir="$acl_save_libdir"
10007 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10011 if test "X$ltrpathdirs" != "X"; then
10012 for found_dir in $ltrpathdirs; do
10013 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10023 am_save_CPPFLAGS="$CPPFLAGS"
10025 for element in $INCICONV; do
10027 for x in $CPPFLAGS; do
10029 acl_save_prefix="$prefix"
10030 prefix="$acl_final_prefix"
10031 acl_save_exec_prefix="$exec_prefix"
10032 exec_prefix="$acl_final_exec_prefix"
10034 exec_prefix="$acl_save_exec_prefix"
10035 prefix="$acl_save_prefix"
10037 if test "X$x" = "X$element"; then
10042 if test -z "$haveit"; then
10043 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10048 echo "$as_me:$LINENO: checking for iconv" >&5
10049 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10050 if test "${am_cv_func_iconv+set}" = set; then
10051 echo $ECHO_N "(cached) $ECHO_C" >&6
10054 am_cv_func_iconv="no, consider installing GNU libiconv"
10056 if test x$gcc_no_link = xyes; then
10057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10059 { (exit 1); exit 1; }; }
10061 cat >conftest.$ac_ext <<_ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10067 #include <stdlib.h>
10072 iconv_t cd = iconv_open("","");
10073 iconv(cd,NULL,NULL,NULL,NULL);
10079 rm -f conftest.$ac_objext conftest$ac_exeext
10080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10081 (eval $ac_link) 2>conftest.er1
10083 grep -v '^ *+' conftest.er1 >conftest.err
10085 cat conftest.err >&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); } &&
10088 { ac_try='test -z "$ac_c_werror_flag"
10089 || test ! -s conftest.err'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; } &&
10095 { ac_try='test -s conftest$ac_exeext'
10096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10097 (eval $ac_try) 2>&5
10099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); }; }; then
10101 am_cv_func_iconv=yes
10103 echo "$as_me: failed program was:" >&5
10104 sed 's/^/| /' conftest.$ac_ext >&5
10107 rm -f conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 if test "$am_cv_func_iconv" != yes; then
10110 am_save_LIBS="$LIBS"
10111 LIBS="$LIBS $LIBICONV"
10112 if test x$gcc_no_link = xyes; then
10113 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10114 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10115 { (exit 1); exit 1; }; }
10117 cat >conftest.$ac_ext <<_ACEOF
10120 cat confdefs.h >>conftest.$ac_ext
10121 cat >>conftest.$ac_ext <<_ACEOF
10122 /* end confdefs.h. */
10123 #include <stdlib.h>
10128 iconv_t cd = iconv_open("","");
10129 iconv(cd,NULL,NULL,NULL,NULL);
10135 rm -f conftest.$ac_objext conftest$ac_exeext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10137 (eval $ac_link) 2>conftest.er1
10139 grep -v '^ *+' conftest.er1 >conftest.err
10141 cat conftest.err >&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); } &&
10144 { ac_try='test -z "$ac_c_werror_flag"
10145 || test ! -s conftest.err'
10146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147 (eval $ac_try) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); }; } &&
10151 { ac_try='test -s conftest$ac_exeext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 am_cv_lib_iconv=yes
10158 am_cv_func_iconv=yes
10160 echo "$as_me: failed program was:" >&5
10161 sed 's/^/| /' conftest.$ac_ext >&5
10164 rm -f conftest.err conftest.$ac_objext \
10165 conftest$ac_exeext conftest.$ac_ext
10166 LIBS="$am_save_LIBS"
10170 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10171 echo "${ECHO_T}$am_cv_func_iconv" >&6
10172 if test "$am_cv_func_iconv" = yes; then
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_ICONV 1
10179 if test "$am_cv_lib_iconv" = yes; then
10180 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10181 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10182 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10183 echo "${ECHO_T}$LIBICONV" >&6
10185 CPPFLAGS="$am_save_CPPFLAGS"
10192 if test "$am_cv_func_iconv" = yes; then
10193 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10194 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10195 if test "${am_cv_proto_iconv+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 cat >conftest.$ac_ext <<_ACEOF
10202 cat confdefs.h >>conftest.$ac_ext
10203 cat >>conftest.$ac_ext <<_ACEOF
10204 /* end confdefs.h. */
10206 #include <stdlib.h>
10212 #if defined(__STDC__) || defined(__cplusplus)
10213 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10226 rm -f conftest.$ac_objext
10227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10228 (eval $ac_compile) 2>conftest.er1
10230 grep -v '^ *+' conftest.er1 >conftest.err
10232 cat conftest.err >&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } &&
10235 { ac_try='test -z "$ac_c_werror_flag"
10236 || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest.$ac_objext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 am_cv_proto_iconv_arg1=""
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10253 am_cv_proto_iconv_arg1="const"
10255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10256 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);"
10259 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10260 echo "$as_me:$LINENO: result: ${ac_t:-
10261 }$am_cv_proto_iconv" >&5
10262 echo "${ECHO_T}${ac_t:-
10263 }$am_cv_proto_iconv" >&6
10265 cat >>confdefs.h <<_ACEOF
10266 #define ICONV_CONST $am_cv_proto_iconv_arg1
10272 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10273 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10274 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10275 echo $ECHO_N "(cached) $ECHO_C" >&6
10277 if test x$gcc_no_link = xyes; then
10278 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10279 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10280 { (exit 1); exit 1; }; }
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 #include <locale.h>
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299 (eval $ac_link) 2>conftest.er1
10301 grep -v '^ *+' conftest.er1 >conftest.err
10303 cat conftest.err >&5
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } &&
10306 { ac_try='test -z "$ac_c_werror_flag"
10307 || test ! -s conftest.err'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; } &&
10313 { ac_try='test -s conftest$ac_exeext'
10314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315 (eval $ac_try) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); }; }; then
10319 am_cv_val_LC_MESSAGES=yes
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 am_cv_val_LC_MESSAGES=no
10326 rm -f conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10329 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10330 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10331 if test $am_cv_val_LC_MESSAGES = yes; then
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_LC_MESSAGES 1
10339 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10340 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10341 if test "${ac_cv_struct_tm+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10344 cat >conftest.$ac_ext <<_ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10350 #include <sys/types.h>
10356 struct tm *tp; tp->tm_sec;
10361 rm -f conftest.$ac_objext
10362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10363 (eval $ac_compile) 2>conftest.er1
10365 grep -v '^ *+' conftest.er1 >conftest.err
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } &&
10370 { ac_try='test -z "$ac_c_werror_flag"
10371 || test ! -s conftest.err'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; } &&
10377 { ac_try='test -s conftest.$ac_objext'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; }; then
10383 ac_cv_struct_tm=time.h
10385 echo "$as_me: failed program was:" >&5
10386 sed 's/^/| /' conftest.$ac_ext >&5
10388 ac_cv_struct_tm=sys/time.h
10390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10392 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10393 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10394 if test $ac_cv_struct_tm = sys/time.h; then
10396 cat >>confdefs.h <<\_ACEOF
10397 #define TM_IN_SYS_TIME 1
10402 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10403 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10404 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 cat >conftest.$ac_ext <<_ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10413 #include <sys/types.h>
10414 #include <$ac_cv_struct_tm>
10420 static struct tm ac_aggr;
10421 if (ac_aggr.tm_zone)
10427 rm -f conftest.$ac_objext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10429 (eval $ac_compile) 2>conftest.er1
10431 grep -v '^ *+' conftest.er1 >conftest.err
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -z "$ac_c_werror_flag"
10437 || test ! -s conftest.err'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; } &&
10443 { ac_try='test -s conftest.$ac_objext'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; }; then
10449 ac_cv_member_struct_tm_tm_zone=yes
10451 echo "$as_me: failed program was:" >&5
10452 sed 's/^/| /' conftest.$ac_ext >&5
10454 cat >conftest.$ac_ext <<_ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h. */
10460 #include <sys/types.h>
10461 #include <$ac_cv_struct_tm>
10467 static struct tm ac_aggr;
10468 if (sizeof ac_aggr.tm_zone)
10474 rm -f conftest.$ac_objext
10475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10476 (eval $ac_compile) 2>conftest.er1
10478 grep -v '^ *+' conftest.er1 >conftest.err
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag"
10484 || test ! -s conftest.err'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; } &&
10490 { ac_try='test -s conftest.$ac_objext'
10491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10492 (eval $ac_try) 2>&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); }; }; then
10496 ac_cv_member_struct_tm_tm_zone=yes
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_cv_member_struct_tm_tm_zone=no
10503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10507 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10508 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10509 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10511 cat >>confdefs.h <<_ACEOF
10512 #define HAVE_STRUCT_TM_TM_ZONE 1
10518 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10520 cat >>confdefs.h <<\_ACEOF
10521 #define HAVE_TM_ZONE 1
10525 echo "$as_me:$LINENO: checking for tzname" >&5
10526 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10527 if test "${ac_cv_var_tzname+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 if test x$gcc_no_link = xyes; then
10531 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10532 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10533 { (exit 1); exit 1; }; }
10535 cat >conftest.$ac_ext <<_ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10542 #ifndef tzname /* For SGI. */
10543 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10556 (eval $ac_link) 2>conftest.er1
10558 grep -v '^ *+' conftest.er1 >conftest.err
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } &&
10563 { ac_try='test -z "$ac_c_werror_flag"
10564 || test ! -s conftest.err'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; } &&
10570 { ac_try='test -s conftest$ac_exeext'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; }; then
10576 ac_cv_var_tzname=yes
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10581 ac_cv_var_tzname=no
10583 rm -f conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10586 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10587 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10588 if test $ac_cv_var_tzname = yes; then
10590 cat >>confdefs.h <<\_ACEOF
10591 #define HAVE_TZNAME 1
10600 for ac_func in gethostbyname_r
10602 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10603 echo "$as_me:$LINENO: checking for $ac_func" >&5
10604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10605 if eval "test \"\${$as_ac_var+set}\" = set"; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10608 if test x$gcc_no_link = xyes; then
10609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10611 { (exit 1); exit 1; }; }
10613 cat >conftest.$ac_ext <<_ACEOF
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10621 #define $ac_func innocuous_$ac_func
10623 /* System header to define __stub macros and hopefully few prototypes,
10624 which can conflict with char $ac_func (); below.
10625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10626 <limits.h> exists even on freestanding compilers. */
10629 # include <limits.h>
10631 # include <assert.h>
10636 /* Override any gcc2 internal prototype to avoid an error. */
10641 /* We use char because int might match the return type of a gcc2
10642 builtin and then its argument prototype would still apply. */
10644 /* The GNU C library defines this for functions which it implements
10645 to always fail with ENOSYS. Some functions are actually named
10646 something starting with __ and the normal name is an alias. */
10647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10650 char (*f) () = $ac_func;
10659 return f != $ac_func;
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag"
10674 || test ! -s conftest.err'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest$ac_exeext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 eval "$as_ac_var=yes"
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 eval "$as_ac_var=no"
10693 rm -f conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10698 if test `eval echo '${'$as_ac_var'}'` = yes; then
10699 cat >>confdefs.h <<_ACEOF
10700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10704 cat >>confdefs.h <<\_ACEOF
10705 #define HAVE_GETHOSTBYNAME_R 1
10708 # There are two different kinds of gethostbyname_r.
10709 # We look for the one that returns `int'.
10710 # Hopefully this check is robust enough.
10711 cat >conftest.$ac_ext <<_ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10721 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10724 cat >>confdefs.h <<\_ACEOF
10725 #define GETHOSTBYNAME_R_RETURNS_INT 1
10732 case " $GCINCS " in
10733 *" -D_REENTRANT "*) ;;
10735 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10736 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10737 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 ac_cpp='$CXXCPP $CPPFLAGS'
10742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10746 cat >conftest.$ac_ext <<_ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10756 gethostbyname_r("", 0, 0);
10761 rm -f conftest.$ac_objext
10762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10763 (eval $ac_compile) 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } &&
10770 { ac_try='test -z "$ac_cxx_werror_flag"
10771 || test ! -s conftest.err'
10772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773 (eval $ac_try) 2>&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); }; } &&
10777 { ac_try='test -s conftest.$ac_objext'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 libjava_cv_gethostbyname_r_needs_reentrant=no
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 CPPFLAGS_SAVE="$CPPFLAGS"
10789 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10790 cat >conftest.$ac_ext <<_ACEOF
10793 cat confdefs.h >>conftest.$ac_ext
10794 cat >>conftest.$ac_ext <<_ACEOF
10795 /* end confdefs.h. */
10800 gethostbyname_r("", 0, 0);
10805 rm -f conftest.$ac_objext
10806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10807 (eval $ac_compile) 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_cxx_werror_flag"
10815 || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest.$ac_objext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 libjava_cv_gethostbyname_r_needs_reentrant=yes
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 libjava_cv_gethostbyname_r_needs_reentrant=fail
10834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10835 CPPFLAGS="$CPPFLAGS_SAVE"
10838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840 ac_cpp='$CPP $CPPFLAGS'
10841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10847 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10848 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10849 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10851 cat >>confdefs.h <<\_ACEOF
10852 #define _REENTRANT 1
10859 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10860 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10861 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10872 # define _REENTRANT 1
10878 struct hostent_data data;
10883 rm -f conftest.$ac_objext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10885 (eval $ac_compile) 2>conftest.er1
10887 grep -v '^ *+' conftest.er1 >conftest.err
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } &&
10892 { ac_try='test -z "$ac_c_werror_flag"
10893 || test ! -s conftest.err'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest.$ac_objext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 libjava_cv_struct_hostent_data=yes
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 libjava_cv_struct_hostent_data=no
10912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10914 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10915 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10916 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10918 cat >>confdefs.h <<\_ACEOF
10919 #define HAVE_STRUCT_HOSTENT_DATA 1
10928 # FIXME: libjava source code expects to find a prototype for
10929 # gethostbyaddr_r in netdb.h. The outer check ensures that
10930 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10931 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10932 # linkage check is enough, yet C++ code requires proper prototypes.)
10933 cat >conftest.$ac_ext <<_ACEOF
10936 cat confdefs.h >>conftest.$ac_ext
10937 cat >>conftest.$ac_ext <<_ACEOF
10938 /* end confdefs.h. */
10942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10943 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10946 for ac_func in gethostbyaddr_r
10948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 echo "$as_me:$LINENO: checking for $ac_func" >&5
10950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10951 if eval "test \"\${$as_ac_var+set}\" = set"; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10954 if test x$gcc_no_link = xyes; then
10955 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10956 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10957 { (exit 1); exit 1; }; }
10959 cat >conftest.$ac_ext <<_ACEOF
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10967 #define $ac_func innocuous_$ac_func
10969 /* System header to define __stub macros and hopefully few prototypes,
10970 which can conflict with char $ac_func (); below.
10971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10972 <limits.h> exists even on freestanding compilers. */
10975 # include <limits.h>
10977 # include <assert.h>
10982 /* Override any gcc2 internal prototype to avoid an error. */
10987 /* We use char because int might match the return type of a gcc2
10988 builtin and then its argument prototype would still apply. */
10990 /* The GNU C library defines this for functions which it implements
10991 to always fail with ENOSYS. Some functions are actually named
10992 something starting with __ and the normal name is an alias. */
10993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10996 char (*f) () = $ac_func;
11005 return f != $ac_func;
11010 rm -f conftest.$ac_objext conftest$ac_exeext
11011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11012 (eval $ac_link) 2>conftest.er1
11014 grep -v '^ *+' conftest.er1 >conftest.err
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag"
11020 || test ! -s conftest.err'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest$ac_exeext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 eval "$as_ac_var=yes"
11034 echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11037 eval "$as_ac_var=no"
11039 rm -f conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11044 if test `eval echo '${'$as_ac_var'}'` = yes; then
11045 cat >>confdefs.h <<_ACEOF
11046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11050 cat >>confdefs.h <<\_ACEOF
11051 #define HAVE_GETHOSTBYADDR_R 1
11054 # There are two different kinds of gethostbyaddr_r.
11055 # We look for the one that returns `int'.
11056 # Hopefully this check is robust enough.
11057 cat >conftest.$ac_ext <<_ACEOF
11060 cat confdefs.h >>conftest.$ac_ext
11061 cat >>conftest.$ac_ext <<_ACEOF
11062 /* end confdefs.h. */
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11070 cat >>confdefs.h <<\_ACEOF
11071 #define GETHOSTBYADDR_R_RETURNS_INT 1
11085 for ac_func in gethostname
11087 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11088 echo "$as_me:$LINENO: checking for $ac_func" >&5
11089 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11090 if eval "test \"\${$as_ac_var+set}\" = set"; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11093 if test x$gcc_no_link = xyes; then
11094 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11095 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11096 { (exit 1); exit 1; }; }
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11114 # include <limits.h>
11116 # include <assert.h>
11121 /* Override any gcc2 internal prototype to avoid an error. */
11126 /* We use char because int might match the return type of a gcc2
11127 builtin and then its argument prototype would still apply. */
11129 /* The GNU C library defines this for functions which it implements
11130 to always fail with ENOSYS. Some functions are actually named
11131 something starting with __ and the normal name is an alias. */
11132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11135 char (*f) () = $ac_func;
11144 return f != $ac_func;
11149 rm -f conftest.$ac_objext conftest$ac_exeext
11150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11151 (eval $ac_link) 2>conftest.er1
11153 grep -v '^ *+' conftest.er1 >conftest.err
11155 cat conftest.err >&5
11156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11157 (exit $ac_status); } &&
11158 { ac_try='test -z "$ac_c_werror_flag"
11159 || test ! -s conftest.err'
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; } &&
11165 { ac_try='test -s conftest$ac_exeext'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; }; then
11171 eval "$as_ac_var=yes"
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 eval "$as_ac_var=no"
11178 rm -f conftest.err conftest.$ac_objext \
11179 conftest$ac_exeext conftest.$ac_ext
11181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11183 if test `eval echo '${'$as_ac_var'}'` = yes; then
11184 cat >>confdefs.h <<_ACEOF
11185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_GETHOSTNAME 1
11193 cat >conftest.$ac_ext <<_ACEOF
11196 cat confdefs.h >>conftest.$ac_ext
11197 cat >>conftest.$ac_ext <<_ACEOF
11198 /* end confdefs.h. */
11199 #include <unistd.h>
11202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11203 $EGREP "gethostname" >/dev/null 2>&1; then
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_GETHOSTNAME_DECL 1
11218 for ac_func in usleep
11220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221 echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11223 if eval "test \"\${$as_ac_var+set}\" = set"; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 if test x$gcc_no_link = xyes; then
11227 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11228 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11229 { (exit 1); exit 1; }; }
11231 cat >conftest.$ac_ext <<_ACEOF
11234 cat confdefs.h >>conftest.$ac_ext
11235 cat >>conftest.$ac_ext <<_ACEOF
11236 /* end confdefs.h. */
11237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11239 #define $ac_func innocuous_$ac_func
11241 /* System header to define __stub macros and hopefully few prototypes,
11242 which can conflict with char $ac_func (); below.
11243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11244 <limits.h> exists even on freestanding compilers. */
11247 # include <limits.h>
11249 # include <assert.h>
11254 /* Override any gcc2 internal prototype to avoid an error. */
11259 /* We use char because int might match the return type of a gcc2
11260 builtin and then its argument prototype would still apply. */
11262 /* The GNU C library defines this for functions which it implements
11263 to always fail with ENOSYS. Some functions are actually named
11264 something starting with __ and the normal name is an alias. */
11265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11268 char (*f) () = $ac_func;
11277 return f != $ac_func;
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11284 (eval $ac_link) 2>conftest.er1
11286 grep -v '^ *+' conftest.er1 >conftest.err
11288 cat conftest.err >&5
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); } &&
11291 { ac_try='test -z "$ac_c_werror_flag"
11292 || test ! -s conftest.err'
11293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11294 (eval $ac_try) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); }; } &&
11298 { ac_try='test -s conftest$ac_exeext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 eval "$as_ac_var=yes"
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 eval "$as_ac_var=no"
11311 rm -f conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11315 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11316 if test `eval echo '${'$as_ac_var'}'` = yes; then
11317 cat >>confdefs.h <<_ACEOF
11318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11321 cat >conftest.$ac_ext <<_ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 #include <unistd.h>
11330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11331 $EGREP "usleep" >/dev/null 2>&1; then
11334 cat >>confdefs.h <<\_ACEOF
11335 #define HAVE_USLEEP_DECL 1
11345 # Look for these functions in the thread library, but only bother
11346 # if using POSIX threads.
11347 if test "$THREADS" = posix; then
11349 LIBS="$LIBS $THREADLIBS"
11350 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11354 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11357 echo "$as_me:$LINENO: checking for $ac_func" >&5
11358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11359 if eval "test \"\${$as_ac_var+set}\" = set"; then
11360 echo $ECHO_N "(cached) $ECHO_C" >&6
11362 if test x$gcc_no_link = xyes; then
11363 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11364 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11365 { (exit 1); exit 1; }; }
11367 cat >conftest.$ac_ext <<_ACEOF
11370 cat confdefs.h >>conftest.$ac_ext
11371 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */
11373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11375 #define $ac_func innocuous_$ac_func
11377 /* System header to define __stub macros and hopefully few prototypes,
11378 which can conflict with char $ac_func (); below.
11379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11380 <limits.h> exists even on freestanding compilers. */
11383 # include <limits.h>
11385 # include <assert.h>
11390 /* Override any gcc2 internal prototype to avoid an error. */
11395 /* We use char because int might match the return type of a gcc2
11396 builtin and then its argument prototype would still apply. */
11398 /* The GNU C library defines this for functions which it implements
11399 to always fail with ENOSYS. Some functions are actually named
11400 something starting with __ and the normal name is an alias. */
11401 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11404 char (*f) () = $ac_func;
11413 return f != $ac_func;
11418 rm -f conftest.$ac_objext conftest$ac_exeext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11420 (eval $ac_link) 2>conftest.er1
11422 grep -v '^ *+' conftest.er1 >conftest.err
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } &&
11427 { ac_try='test -z "$ac_c_werror_flag"
11428 || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest$ac_exeext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11440 eval "$as_ac_var=yes"
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 eval "$as_ac_var=no"
11447 rm -f conftest.err conftest.$ac_objext \
11448 conftest$ac_exeext conftest.$ac_ext
11450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11452 if test `eval echo '${'$as_ac_var'}'` = yes; then
11453 cat >>confdefs.h <<_ACEOF
11454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11461 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11462 # Solaris 7 the name librt is preferred.
11464 for ac_func in sched_yield
11466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11467 echo "$as_me:$LINENO: checking for $ac_func" >&5
11468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11469 if eval "test \"\${$as_ac_var+set}\" = set"; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 if test x$gcc_no_link = xyes; then
11473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11475 { (exit 1); exit 1; }; }
11477 cat >conftest.$ac_ext <<_ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11484 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11485 #define $ac_func innocuous_$ac_func
11487 /* System header to define __stub macros and hopefully few prototypes,
11488 which can conflict with char $ac_func (); below.
11489 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11490 <limits.h> exists even on freestanding compilers. */
11493 # include <limits.h>
11495 # include <assert.h>
11500 /* Override any gcc2 internal prototype to avoid an error. */
11505 /* We use char because int might match the return type of a gcc2
11506 builtin and then its argument prototype would still apply. */
11508 /* The GNU C library defines this for functions which it implements
11509 to always fail with ENOSYS. Some functions are actually named
11510 something starting with __ and the normal name is an alias. */
11511 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11514 char (*f) () = $ac_func;
11523 return f != $ac_func;
11528 rm -f conftest.$ac_objext conftest$ac_exeext
11529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11530 (eval $ac_link) 2>conftest.er1
11532 grep -v '^ *+' conftest.er1 >conftest.err
11534 cat conftest.err >&5
11535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536 (exit $ac_status); } &&
11537 { ac_try='test -z "$ac_c_werror_flag"
11538 || test ! -s conftest.err'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; } &&
11544 { ac_try='test -s conftest$ac_exeext'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; }; then
11550 eval "$as_ac_var=yes"
11552 echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11555 eval "$as_ac_var=no"
11557 rm -f conftest.err conftest.$ac_objext \
11558 conftest$ac_exeext conftest.$ac_ext
11560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11562 if test `eval echo '${'$as_ac_var'}'` = yes; then
11563 cat >>confdefs.h <<_ACEOF
11564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11569 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11570 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11571 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 ac_check_lib_save_LIBS=$LIBS
11576 if test x$gcc_no_link = xyes; then
11577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11579 { (exit 1); exit 1; }; }
11581 cat >conftest.$ac_ext <<_ACEOF
11584 cat confdefs.h >>conftest.$ac_ext
11585 cat >>conftest.$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11588 /* Override any gcc2 internal prototype to avoid an error. */
11592 /* We use char because int might match the return type of a gcc2
11593 builtin and then its argument prototype would still apply. */
11594 char sched_yield ();
11603 rm -f conftest.$ac_objext conftest$ac_exeext
11604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11605 (eval $ac_link) 2>conftest.er1
11607 grep -v '^ *+' conftest.er1 >conftest.err
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag"
11613 || test ! -s conftest.err'
11614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11615 (eval $ac_try) 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest$ac_exeext'
11620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11621 (eval $ac_try) 2>&5
11623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11624 (exit $ac_status); }; }; then
11625 ac_cv_lib_rt_sched_yield=yes
11627 echo "$as_me: failed program was:" >&5
11628 sed 's/^/| /' conftest.$ac_ext >&5
11630 ac_cv_lib_rt_sched_yield=no
11632 rm -f conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
11634 LIBS=$ac_check_lib_save_LIBS
11636 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11637 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11638 if test $ac_cv_lib_rt_sched_yield = yes; then
11640 cat >>confdefs.h <<\_ACEOF
11641 #define HAVE_SCHED_YIELD 1
11644 THREADLIBS="$THREADLIBS -lrt"
11645 THREADSPEC="$THREADSPEC -lrt"
11648 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11649 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11650 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11651 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 ac_check_lib_save_LIBS=$LIBS
11654 LIBS="-lposix4 $LIBS"
11655 if test x$gcc_no_link = xyes; then
11656 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11657 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11658 { (exit 1); exit 1; }; }
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 /* Override any gcc2 internal prototype to avoid an error. */
11671 /* We use char because int might match the return type of a gcc2
11672 builtin and then its argument prototype would still apply. */
11673 char sched_yield ();
11682 rm -f conftest.$ac_objext conftest$ac_exeext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11684 (eval $ac_link) 2>conftest.er1
11686 grep -v '^ *+' conftest.er1 >conftest.err
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag"
11692 || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 ac_cv_lib_posix4_sched_yield=yes
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 ac_cv_lib_posix4_sched_yield=no
11711 rm -f conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
11713 LIBS=$ac_check_lib_save_LIBS
11715 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11716 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11717 if test $ac_cv_lib_posix4_sched_yield = yes; then
11719 cat >>confdefs.h <<\_ACEOF
11720 #define HAVE_SCHED_YIELD 1
11723 THREADLIBS="$THREADLIBS -lposix4"
11724 THREADSPEC="$THREADSPEC -lposix4"
11734 # We can save a little space at runtime if the mutex has m_count
11735 # or __m_count. This is a nice hack for Linux.
11736 cat >conftest.$ac_ext <<_ACEOF
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 #include <pthread.h>
11747 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11753 rm -f conftest.$ac_objext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_c_werror_flag"
11763 || test ! -s conftest.err'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest.$ac_objext'
11770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11776 cat >>confdefs.h <<\_ACEOF
11777 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11785 cat >conftest.$ac_ext <<_ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 #include <pthread.h>
11796 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11802 rm -f conftest.$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>conftest.er1
11806 grep -v '^ *+' conftest.er1 >conftest.err
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag"
11812 || test ! -s conftest.err'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try='test -s conftest.$ac_objext'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11825 cat >>confdefs.h <<\_ACEOF
11826 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11839 # We require a way to get the time.
11844 for ac_func in gettimeofday time ftime
11846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11847 echo "$as_me:$LINENO: checking for $ac_func" >&5
11848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11849 if eval "test \"\${$as_ac_var+set}\" = set"; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 if test x$gcc_no_link = xyes; then
11853 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11854 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11855 { (exit 1); exit 1; }; }
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11864 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11865 #define $ac_func innocuous_$ac_func
11867 /* System header to define __stub macros and hopefully few prototypes,
11868 which can conflict with char $ac_func (); below.
11869 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11870 <limits.h> exists even on freestanding compilers. */
11873 # include <limits.h>
11875 # include <assert.h>
11880 /* Override any gcc2 internal prototype to avoid an error. */
11885 /* We use char because int might match the return type of a gcc2
11886 builtin and then its argument prototype would still apply. */
11888 /* The GNU C library defines this for functions which it implements
11889 to always fail with ENOSYS. Some functions are actually named
11890 something starting with __ and the normal name is an alias. */
11891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11894 char (*f) () = $ac_func;
11903 return f != $ac_func;
11908 rm -f conftest.$ac_objext conftest$ac_exeext
11909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11910 (eval $ac_link) 2>conftest.er1
11912 grep -v '^ *+' conftest.er1 >conftest.err
11914 cat conftest.err >&5
11915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916 (exit $ac_status); } &&
11917 { ac_try='test -z "$ac_c_werror_flag"
11918 || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest$ac_exeext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 eval "$as_ac_var=yes"
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 eval "$as_ac_var=no"
11937 rm -f conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11940 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11941 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11942 if test `eval echo '${'$as_ac_var'}'` = yes; then
11943 cat >>confdefs.h <<_ACEOF
11944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11950 if test "$time_found" = no; then
11951 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11952 echo "$as_me: error: no function found to get the time" >&2;}
11953 { (exit 1); exit 1; }; }
11957 for ac_func in memmove
11959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11960 echo "$as_me:$LINENO: checking for $ac_func" >&5
11961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11962 if eval "test \"\${$as_ac_var+set}\" = set"; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11965 if test x$gcc_no_link = xyes; then
11966 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11967 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11968 { (exit 1); exit 1; }; }
11970 cat >conftest.$ac_ext <<_ACEOF
11973 cat confdefs.h >>conftest.$ac_ext
11974 cat >>conftest.$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11978 #define $ac_func innocuous_$ac_func
11980 /* System header to define __stub macros and hopefully few prototypes,
11981 which can conflict with char $ac_func (); below.
11982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11983 <limits.h> exists even on freestanding compilers. */
11986 # include <limits.h>
11988 # include <assert.h>
11993 /* Override any gcc2 internal prototype to avoid an error. */
11998 /* We use char because int might match the return type of a gcc2
11999 builtin and then its argument prototype would still apply. */
12001 /* The GNU C library defines this for functions which it implements
12002 to always fail with ENOSYS. Some functions are actually named
12003 something starting with __ and the normal name is an alias. */
12004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12007 char (*f) () = $ac_func;
12016 return f != $ac_func;
12021 rm -f conftest.$ac_objext conftest$ac_exeext
12022 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12023 (eval $ac_link) 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -z "$ac_c_werror_flag"
12031 || test ! -s conftest.err'
12032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12033 (eval $ac_try) 2>&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); }; } &&
12037 { ac_try='test -s conftest$ac_exeext'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; }; then
12043 eval "$as_ac_var=yes"
12045 echo "$as_me: failed program was:" >&5
12046 sed 's/^/| /' conftest.$ac_ext >&5
12048 eval "$as_ac_var=no"
12050 rm -f conftest.err conftest.$ac_objext \
12051 conftest$ac_exeext conftest.$ac_ext
12053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12054 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12055 if test `eval echo '${'$as_ac_var'}'` = yes; then
12056 cat >>confdefs.h <<_ACEOF
12057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12064 # We require memcpy.
12067 for ac_func in memcpy
12069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12070 echo "$as_me:$LINENO: checking for $ac_func" >&5
12071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12072 if eval "test \"\${$as_ac_var+set}\" = set"; then
12073 echo $ECHO_N "(cached) $ECHO_C" >&6
12075 if test x$gcc_no_link = xyes; then
12076 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12077 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12078 { (exit 1); exit 1; }; }
12080 cat >conftest.$ac_ext <<_ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12088 #define $ac_func innocuous_$ac_func
12090 /* System header to define __stub macros and hopefully few prototypes,
12091 which can conflict with char $ac_func (); below.
12092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12093 <limits.h> exists even on freestanding compilers. */
12096 # include <limits.h>
12098 # include <assert.h>
12103 /* Override any gcc2 internal prototype to avoid an error. */
12108 /* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */
12111 /* The GNU C library defines this for functions which it implements
12112 to always fail with ENOSYS. Some functions are actually named
12113 something starting with __ and the normal name is an alias. */
12114 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12117 char (*f) () = $ac_func;
12126 return f != $ac_func;
12131 rm -f conftest.$ac_objext conftest$ac_exeext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12133 (eval $ac_link) 2>conftest.er1
12135 grep -v '^ *+' conftest.er1 >conftest.err
12137 cat conftest.err >&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } &&
12140 { ac_try='test -z "$ac_c_werror_flag"
12141 || test ! -s conftest.err'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; } &&
12147 { ac_try='test -s conftest$ac_exeext'
12148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12149 (eval $ac_try) 2>&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); }; }; then
12153 eval "$as_ac_var=yes"
12155 echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.$ac_ext >&5
12158 eval "$as_ac_var=no"
12160 rm -f conftest.err conftest.$ac_objext \
12161 conftest$ac_exeext conftest.$ac_ext
12163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12165 if test `eval echo '${'$as_ac_var'}'` = yes; then
12166 cat >>confdefs.h <<_ACEOF
12167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12173 if test "$memcpy_found" = no; then
12174 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12175 echo "$as_me: error: memcpy is required" >&2;}
12176 { (exit 1); exit 1; }; }
12179 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12180 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 ac_check_lib_save_LIBS=$LIBS
12186 if test x$gcc_no_link = xyes; then
12187 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12188 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12189 { (exit 1); exit 1; }; }
12191 cat >conftest.$ac_ext <<_ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12198 /* Override any gcc2 internal prototype to avoid an error. */
12202 /* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12215 (eval $ac_link) 2>conftest.er1
12217 grep -v '^ *+' conftest.er1 >conftest.err
12219 cat conftest.err >&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
12222 { ac_try='test -z "$ac_c_werror_flag"
12223 || test ! -s conftest.err'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_lib_dl_dlopen=yes
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.$ac_ext >&5
12240 ac_cv_lib_dl_dlopen=no
12242 rm -f conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12246 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12248 if test $ac_cv_lib_dl_dlopen = yes; then
12251 cat >>confdefs.h <<\_ACEOF
12252 #define HAVE_DLOPEN 1
12258 # Some library-finding code we stole from Tcl.
12259 #--------------------------------------------------------------------
12260 # Check for the existence of the -lsocket and -lnsl libraries.
12261 # The order here is important, so that they end up in the right
12262 # order in the command line generated by make. Here are some
12263 # special considerations:
12264 # 1. Use "connect" and "accept" to check for -lsocket, and
12265 # "gethostbyname" to check for -lnsl.
12266 # 2. Use each function name only once: can't redo a check because
12267 # autoconf caches the results of the last check and won't redo it.
12268 # 3. Use -lnsl and -lsocket only if they supply procedures that
12269 # aren't already present in the normal libraries. This is because
12270 # IRIX 5.2 has libraries, but they aren't needed and they're
12271 # bogus: they goof up name resolution if used.
12272 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12273 # To get around this problem, check for both libraries together
12274 # if -lsocket doesn't work by itself.
12275 #--------------------------------------------------------------------
12277 echo "$as_me:$LINENO: checking for socket libraries" >&5
12278 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12279 if test "${gcj_cv_lib_sockets+set}" = set; then
12280 echo $ECHO_N "(cached) $ECHO_C" >&6
12282 gcj_cv_lib_sockets=
12284 unset ac_cv_func_connect
12285 echo "$as_me:$LINENO: checking for connect" >&5
12286 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12287 if test "${ac_cv_func_connect+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 if test x$gcc_no_link = xyes; then
12291 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12292 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12293 { (exit 1); exit 1; }; }
12295 cat >conftest.$ac_ext <<_ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12303 #define connect innocuous_connect
12305 /* System header to define __stub macros and hopefully few prototypes,
12306 which can conflict with char connect (); below.
12307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12308 <limits.h> exists even on freestanding compilers. */
12311 # include <limits.h>
12313 # include <assert.h>
12318 /* Override any gcc2 internal prototype to avoid an error. */
12323 /* We use char because int might match the return type of a gcc2
12324 builtin and then its argument prototype would still apply. */
12326 /* The GNU C library defines this for functions which it implements
12327 to always fail with ENOSYS. Some functions are actually named
12328 something starting with __ and the normal name is an alias. */
12329 #if defined (__stub_connect) || defined (__stub___connect)
12332 char (*f) () = connect;
12341 return f != connect;
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12348 (eval $ac_link) 2>conftest.er1
12350 grep -v '^ *+' conftest.er1 >conftest.err
12352 cat conftest.err >&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); } &&
12355 { ac_try='test -z "$ac_c_werror_flag"
12356 || test ! -s conftest.err'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; } &&
12362 { ac_try='test -s conftest$ac_exeext'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; }; then
12368 ac_cv_func_connect=yes
12370 echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12373 ac_cv_func_connect=no
12375 rm -f conftest.err conftest.$ac_objext \
12376 conftest$ac_exeext conftest.$ac_ext
12378 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12379 echo "${ECHO_T}$ac_cv_func_connect" >&6
12380 if test $ac_cv_func_connect = yes; then
12386 if test "$gcj_checkSocket" = 1; then
12387 unset ac_cv_func_connect
12388 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12389 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12390 if test "${ac_cv_lib_socket_main+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 ac_check_lib_save_LIBS=$LIBS
12394 LIBS="-lsocket $LIBS"
12395 if test x$gcc_no_link = xyes; then
12396 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12397 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12398 { (exit 1); exit 1; }; }
12400 cat >conftest.$ac_ext <<_ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418 (eval $ac_link) 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
12425 { ac_try='test -z "$ac_c_werror_flag"
12426 || test ! -s conftest.err'
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest$ac_exeext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
12438 ac_cv_lib_socket_main=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ac_cv_lib_socket_main=no
12445 rm -f conftest.err conftest.$ac_objext \
12446 conftest$ac_exeext conftest.$ac_ext
12447 LIBS=$ac_check_lib_save_LIBS
12449 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12450 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12451 if test $ac_cv_lib_socket_main = yes; then
12452 gcj_cv_lib_sockets="-lsocket"
12458 if test "$gcj_checkBoth" = 1; then
12460 LIBS="$LIBS -lsocket -lnsl"
12461 unset ac_cv_func_accept
12462 echo "$as_me:$LINENO: checking for accept" >&5
12463 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12464 if test "${ac_cv_func_accept+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 if test x$gcc_no_link = xyes; then
12468 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12469 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12470 { (exit 1); exit 1; }; }
12472 cat >conftest.$ac_ext <<_ACEOF
12475 cat confdefs.h >>conftest.$ac_ext
12476 cat >>conftest.$ac_ext <<_ACEOF
12477 /* end confdefs.h. */
12478 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12480 #define accept innocuous_accept
12482 /* System header to define __stub macros and hopefully few prototypes,
12483 which can conflict with char accept (); below.
12484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 <limits.h> exists even on freestanding compilers. */
12488 # include <limits.h>
12490 # include <assert.h>
12495 /* Override any gcc2 internal prototype to avoid an error. */
12500 /* We use char because int might match the return type of a gcc2
12501 builtin and then its argument prototype would still apply. */
12503 /* The GNU C library defines this for functions which it implements
12504 to always fail with ENOSYS. Some functions are actually named
12505 something starting with __ and the normal name is an alias. */
12506 #if defined (__stub_accept) || defined (__stub___accept)
12509 char (*f) () = accept;
12518 return f != accept;
12523 rm -f conftest.$ac_objext conftest$ac_exeext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12525 (eval $ac_link) 2>conftest.er1
12527 grep -v '^ *+' conftest.er1 >conftest.err
12529 cat conftest.err >&5
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); } &&
12532 { ac_try='test -z "$ac_c_werror_flag"
12533 || test ! -s conftest.err'
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_cv_func_accept=yes
12547 echo "$as_me: failed program was:" >&5
12548 sed 's/^/| /' conftest.$ac_ext >&5
12550 ac_cv_func_accept=no
12552 rm -f conftest.err conftest.$ac_objext \
12553 conftest$ac_exeext conftest.$ac_ext
12555 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12556 echo "${ECHO_T}$ac_cv_func_accept" >&6
12557 if test $ac_cv_func_accept = yes; then
12559 gcj_cv_lib_sockets="-lsocket -lnsl"
12562 unset ac_cv_func_accept
12565 unset ac_cv_func_gethostbyname
12567 LIBS="$LIBS $gcj_cv_lib_sockets"
12568 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12569 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12570 if test "${ac_cv_func_gethostbyname+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 if test x$gcc_no_link = xyes; then
12574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12576 { (exit 1); exit 1; }; }
12578 cat >conftest.$ac_ext <<_ACEOF
12581 cat confdefs.h >>conftest.$ac_ext
12582 cat >>conftest.$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12584 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12586 #define gethostbyname innocuous_gethostbyname
12588 /* System header to define __stub macros and hopefully few prototypes,
12589 which can conflict with char gethostbyname (); below.
12590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12591 <limits.h> exists even on freestanding compilers. */
12594 # include <limits.h>
12596 # include <assert.h>
12599 #undef gethostbyname
12601 /* Override any gcc2 internal prototype to avoid an error. */
12606 /* We use char because int might match the return type of a gcc2
12607 builtin and then its argument prototype would still apply. */
12608 char gethostbyname ();
12609 /* The GNU C library defines this for functions which it implements
12610 to always fail with ENOSYS. Some functions are actually named
12611 something starting with __ and the normal name is an alias. */
12612 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12615 char (*f) () = gethostbyname;
12624 return f != gethostbyname;
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12631 (eval $ac_link) 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -z "$ac_c_werror_flag"
12639 || test ! -s conftest.err'
12640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12641 (eval $ac_try) 2>&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); }; } &&
12645 { ac_try='test -s conftest$ac_exeext'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; }; then
12651 ac_cv_func_gethostbyname=yes
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12656 ac_cv_func_gethostbyname=no
12658 rm -f conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12661 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12662 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12663 if test $ac_cv_func_gethostbyname = yes; then
12666 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12667 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12668 if test "${ac_cv_lib_nsl_main+set}" = set; then
12669 echo $ECHO_N "(cached) $ECHO_C" >&6
12671 ac_check_lib_save_LIBS=$LIBS
12673 if test x$gcc_no_link = xyes; then
12674 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12675 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12676 { (exit 1); exit 1; }; }
12678 cat >conftest.$ac_ext <<_ACEOF
12681 cat confdefs.h >>conftest.$ac_ext
12682 cat >>conftest.$ac_ext <<_ACEOF
12683 /* end confdefs.h. */
12694 rm -f conftest.$ac_objext conftest$ac_exeext
12695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12696 (eval $ac_link) 2>conftest.er1
12698 grep -v '^ *+' conftest.er1 >conftest.err
12700 cat conftest.err >&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); } &&
12703 { ac_try='test -z "$ac_c_werror_flag"
12704 || test ! -s conftest.err'
12705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12706 (eval $ac_try) 2>&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); }; } &&
12710 { ac_try='test -s conftest$ac_exeext'
12711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12712 (eval $ac_try) 2>&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); }; }; then
12716 ac_cv_lib_nsl_main=yes
12718 echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12721 ac_cv_lib_nsl_main=no
12723 rm -f conftest.err conftest.$ac_objext \
12724 conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12727 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12728 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12729 if test $ac_cv_lib_nsl_main = yes; then
12730 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12735 unset ac_cv_func_gethostbyname
12739 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12740 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12741 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12743 if test "$with_system_zlib" = yes; then
12744 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12745 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12746 if test "${ac_cv_lib_z_deflate+set}" = set; then
12747 echo $ECHO_N "(cached) $ECHO_C" >&6
12749 ac_check_lib_save_LIBS=$LIBS
12751 if test x$gcc_no_link = xyes; then
12752 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12753 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12754 { (exit 1); exit 1; }; }
12756 cat >conftest.$ac_ext <<_ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12763 /* Override any gcc2 internal prototype to avoid an error. */
12767 /* We use char because int might match the return type of a gcc2
12768 builtin and then its argument prototype would still apply. */
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12780 (eval $ac_link) 2>conftest.er1
12782 grep -v '^ *+' conftest.er1 >conftest.err
12784 cat conftest.err >&5
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); } &&
12787 { ac_try='test -z "$ac_c_werror_flag"
12788 || test ! -s conftest.err'
12789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12790 (eval $ac_try) 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; } &&
12794 { ac_try='test -s conftest$ac_exeext'
12795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12796 (eval $ac_try) 2>&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); }; }; then
12800 ac_cv_lib_z_deflate=yes
12802 echo "$as_me: failed program was:" >&5
12803 sed 's/^/| /' conftest.$ac_ext >&5
12805 ac_cv_lib_z_deflate=no
12807 rm -f conftest.err conftest.$ac_objext \
12808 conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12811 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12812 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12813 if test $ac_cv_lib_z_deflate = yes; then
12821 # Test for Gtk stuff, if asked for.
12822 if test "$use_gtk_awt" = yes; then
12826 if test -z "$PKG_CONFIG"; then
12827 # Extract the first word of "pkg-config", so it can be a program name with args.
12828 set dummy pkg-config; ac_word=$2
12829 echo "$as_me:$LINENO: checking for $ac_word" >&5
12830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12831 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 case $PKG_CONFIG in
12836 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12846 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12857 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12859 if test -n "$PKG_CONFIG"; then
12860 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12861 echo "${ECHO_T}$PKG_CONFIG" >&6
12863 echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6
12869 if test "$PKG_CONFIG" = "no" ; then
12870 echo "*** The pkg-config script could not be found. Make sure it is"
12871 echo "*** in your path, or set the PKG_CONFIG environment variable"
12872 echo "*** to the full path to pkg-config."
12873 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12875 PKG_CONFIG_MIN_VERSION=0.9.0
12876 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12877 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12878 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12880 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12881 echo "$as_me:$LINENO: result: yes" >&5
12882 echo "${ECHO_T}yes" >&6
12885 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12886 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12887 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12888 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12889 echo "${ECHO_T}$GTK_CFLAGS" >&6
12891 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12892 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12893 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12894 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12895 echo "${ECHO_T}$GTK_LIBS" >&6
12899 ## If we have a custom action on failure, don't print errors, but
12900 ## do set a variable so people can do so.
12901 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12902 echo $GTK_PKG_ERRORS
12908 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12909 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12913 if test $succeeded = yes; then
12916 { { 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
12917 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;}
12918 { (exit 1); exit 1; }; }
12927 if test -z "$PKG_CONFIG"; then
12928 # Extract the first word of "pkg-config", so it can be a program name with args.
12929 set dummy pkg-config; ac_word=$2
12930 echo "$as_me:$LINENO: checking for $ac_word" >&5
12931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 case $PKG_CONFIG in
12937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941 for as_dir in $PATH
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12958 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12960 if test -n "$PKG_CONFIG"; then
12961 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12962 echo "${ECHO_T}$PKG_CONFIG" >&6
12964 echo "$as_me:$LINENO: result: no" >&5
12965 echo "${ECHO_T}no" >&6
12970 if test "$PKG_CONFIG" = "no" ; then
12971 echo "*** The pkg-config script could not be found. Make sure it is"
12972 echo "*** in your path, or set the PKG_CONFIG environment variable"
12973 echo "*** to the full path to pkg-config."
12974 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12976 PKG_CONFIG_MIN_VERSION=0.9.0
12977 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12978 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12979 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12981 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12982 echo "$as_me:$LINENO: result: yes" >&5
12983 echo "${ECHO_T}yes" >&6
12986 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12987 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12988 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12989 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12990 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12992 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12993 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12994 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12995 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12996 echo "${ECHO_T}$GLIB_LIBS" >&6
13000 ## If we have a custom action on failure, don't print errors, but
13001 ## do set a variable so people can do so.
13002 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13003 echo $GLIB_PKG_ERRORS
13009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13014 if test $succeeded = yes; then
13017 { { 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
13018 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;}
13019 { (exit 1); exit 1; }; }
13028 if test -z "$PKG_CONFIG"; then
13029 # Extract the first word of "pkg-config", so it can be a program name with args.
13030 set dummy pkg-config; ac_word=$2
13031 echo "$as_me:$LINENO: checking for $ac_word" >&5
13032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13033 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 case $PKG_CONFIG in
13038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13042 for as_dir in $PATH
13045 test -z "$as_dir" && as_dir=.
13046 for ac_exec_ext in '' $ac_executable_extensions; do
13047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13048 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13061 if test -n "$PKG_CONFIG"; then
13062 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13063 echo "${ECHO_T}$PKG_CONFIG" >&6
13065 echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6
13071 if test "$PKG_CONFIG" = "no" ; then
13072 echo "*** The pkg-config script could not be found. Make sure it is"
13073 echo "*** in your path, or set the PKG_CONFIG environment variable"
13074 echo "*** to the full path to pkg-config."
13075 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13077 PKG_CONFIG_MIN_VERSION=0.9.0
13078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13079 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13080 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13082 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13083 echo "$as_me:$LINENO: result: yes" >&5
13084 echo "${ECHO_T}yes" >&6
13087 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13088 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13089 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13090 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13091 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13093 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13094 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13095 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13096 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13097 echo "${ECHO_T}$LIBART_LIBS" >&6
13101 ## If we have a custom action on failure, don't print errors, but
13102 ## do set a variable so people can do so.
13103 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13104 echo $LIBART_PKG_ERRORS
13110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13115 if test $succeeded = yes; then
13118 { { 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
13119 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;}
13120 { (exit 1); exit 1; }; }
13126 # We require the XTest Extension to support java.awt.Robot.
13127 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13128 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13129 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lXtst ${X_LIBS} $LIBS"
13134 if test x$gcc_no_link = xyes; then
13135 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13136 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13137 { (exit 1); exit 1; }; }
13139 cat >conftest.$ac_ext <<_ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13146 /* Override any gcc2 internal prototype to avoid an error. */
13150 /* We use char because int might match the return type of a gcc2
13151 builtin and then its argument prototype would still apply. */
13152 char XTestQueryExtension ();
13156 XTestQueryExtension ();
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163 (eval $ac_link) 2>conftest.er1
13165 grep -v '^ *+' conftest.er1 >conftest.err
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -z "$ac_c_werror_flag"
13171 || test ! -s conftest.err'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; } &&
13177 { ac_try='test -s conftest$ac_exeext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_cv_lib_Xtst_XTestQueryExtension=yes
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 ac_cv_lib_Xtst_XTestQueryExtension=no
13190 rm -f conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13194 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13195 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13196 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13199 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13200 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13201 { (exit 1); exit 1; }; }
13206 # On Solaris, and maybe other architectures, the Boehm collector
13208 if test "$GC" = boehm; then
13209 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13210 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13211 if test "${ac_cv_lib_dl_main+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 ac_check_lib_save_LIBS=$LIBS
13216 if test x$gcc_no_link = xyes; then
13217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13219 { (exit 1); exit 1; }; }
13221 cat >conftest.$ac_ext <<_ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h. */
13237 rm -f conftest.$ac_objext conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239 (eval $ac_link) 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } &&
13246 { ac_try='test -z "$ac_c_werror_flag"
13247 || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest$ac_exeext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_lib_dl_main=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_cv_lib_dl_main=no
13266 rm -f conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13270 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13271 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13272 if test $ac_cv_lib_dl_main = yes; then
13273 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13280 if test "$supply_backtrace" = yes; then
13281 SUPPLY_BACKTRACE_TRUE=
13282 SUPPLY_BACKTRACE_FALSE='#'
13284 SUPPLY_BACKTRACE_TRUE='#'
13285 SUPPLY_BACKTRACE_FALSE=
13289 if test -z "${with_multisubdir}"; then
13292 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13297 # Which gcj do we use?
13299 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13300 if test -n "${with_cross_host}"; then
13301 # We are being configured with a cross compiler. We can't
13302 # use ac_exeext, because that is for the target platform.
13305 case "${with_cross_host}" in
13306 *mingw* | *cygwin*)
13307 cross_host_exeext=.exe
13310 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13311 if test x"$build_noncanonical" = x"$with_cross_host"; then
13312 # Ordinary cross (host!=target and host=build)
13315 # Canadian cross (host!=target and host!=build)
13322 # We are being configured with a native or crossed-native compiler
13323 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13324 if test x"$build" = x"$host"; then
13325 # True native build (host=target and host=build)
13328 # Crossed-native build (host=target and host!=build)
13335 case "${which_gcj}" in
13337 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13338 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13339 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13342 if test "x${with_newlib}" = "xyes"; then
13343 # FIXME (comment): Why is this needed?
13344 GCC_UNWIND_INCLUDE=
13345 GCJ="${target_noncanonical}-gcj"
13347 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13349 ZIP='$(target_noncanonical)-fastjar'
13350 GCJH='$(target_noncanonical)-gcjh'
13353 GCJ="gcj -B`${PWDCMD-pwd}`/"
13354 ## In this case, gcj is found outside the build tree. However, zip is
13355 ## found in the build tree.
13356 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13364 # Create it, so that compile/link tests don't fail
13365 test -f libgcj.spec || touch libgcj.spec
13367 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13369 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13370 *) CLASSPATH_SEPARATOR=':' ;;
13374 # We must search the source tree for java.lang, since we still don't
13375 # have libgcj.jar nor java/lang/*.class
13376 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13377 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13379 # Since some classes depend on this one, we need its source available
13380 # before we can do any GCJ compilation test :-(
13381 if test ! -f gnu/classpath/Configuration.java; then
13382 test -d gnu || mkdir gnu
13383 test -d gnu/classpath || mkdir gnu/classpath
13384 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13385 -e 's,@TOOLKIT@,$TOOLKIT,' \
13386 < $srcdir/gnu/classpath/Configuration.java.in \
13387 > gnu/classpath/Configuration.java
13388 # We do not want to redirect the output of the grep below to /dev/null,
13389 # but we add /dev/null to the input list so that grep will print the
13390 # filename of Configuration.java in case it finds any matches.
13391 if grep @ gnu/classpath/Configuration.java /dev/null; then
13392 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13393 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13394 { (exit 1); exit 1; }; }
13398 if test -n "$ac_tool_prefix"; then
13399 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13400 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13401 echo "$as_me:$LINENO: checking for $ac_word" >&5
13402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13403 if test "${ac_cv_prog_GCJ+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 if test -n "$GCJ"; then
13407 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13413 test -z "$as_dir" && as_dir=.
13414 for ac_exec_ext in '' $ac_executable_extensions; do
13415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13425 GCJ=$ac_cv_prog_GCJ
13426 if test -n "$GCJ"; then
13427 echo "$as_me:$LINENO: result: $GCJ" >&5
13428 echo "${ECHO_T}$GCJ" >&6
13430 echo "$as_me:$LINENO: result: no" >&5
13431 echo "${ECHO_T}no" >&6
13435 if test -z "$ac_cv_prog_GCJ"; then
13437 # Extract the first word of "gcj", so it can be a program name with args.
13438 set dummy gcj; ac_word=$2
13439 echo "$as_me:$LINENO: checking for $ac_word" >&5
13440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13441 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 if test -n "$ac_ct_GCJ"; then
13445 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13451 test -z "$as_dir" && as_dir=.
13452 for ac_exec_ext in '' $ac_executable_extensions; do
13453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454 ac_cv_prog_ac_ct_GCJ="gcj"
13455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13461 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13464 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13465 if test -n "$ac_ct_GCJ"; then
13466 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13467 echo "${ECHO_T}$ac_ct_GCJ" >&6
13469 echo "$as_me:$LINENO: result: no" >&5
13470 echo "${ECHO_T}no" >&6
13475 GCJ="$ac_cv_prog_GCJ"
13478 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13483 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13485 echo "$as_me:$LINENO: checking size of void *" >&5
13486 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13487 if test "${ac_cv_sizeof_void_p+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13491 cat >conftest.$ac_ext <<_ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 #include "confdefs.h"
13498 #include <sys/types.h>
13504 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>conftest.er1
13513 grep -v '^ *+' conftest.er1 >conftest.err
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_sizeof_void_p=$ac_size
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13538 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13543 if test x$ac_cv_sizeof_void_p = x ; then
13544 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13545 echo "$as_me: error: cannot determine a size for void *" >&2;}
13546 { (exit 1); exit 1; }; }
13548 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13549 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13551 cat >>confdefs.h <<_ACEOF
13552 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13557 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13558 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13559 if test "${ac_cv_c_bigendian+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 ac_cv_c_bigendian=unknown
13563 # See if sys/param.h defines the BYTE_ORDER macro.
13564 cat >conftest.$ac_ext <<_ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 #include <sys/types.h>
13571 #include <sys/param.h>
13576 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13577 bogus endian macros
13583 rm -f conftest.$ac_objext
13584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13585 (eval $ac_compile) 2>conftest.er1
13587 grep -v '^ *+' conftest.er1 >conftest.err
13589 cat conftest.err >&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); } &&
13592 { ac_try='test -z "$ac_c_werror_flag"
13593 || test ! -s conftest.err'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest.$ac_objext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 # It does; now see whether it defined to BIG_ENDIAN or not.
13606 cat >conftest.$ac_ext <<_ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 #include <sys/types.h>
13613 #include <sys/param.h>
13618 #if BYTE_ORDER != BIG_ENDIAN
13625 rm -f conftest.$ac_objext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag"
13635 || test ! -s conftest.err'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest.$ac_objext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_cv_c_bigendian=yes
13649 echo "$as_me: failed program was:" >&5
13650 sed 's/^/| /' conftest.$ac_ext >&5
13652 ac_cv_c_bigendian=no
13654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13661 if test $ac_cv_c_bigendian = unknown; then
13662 if test "$cross_compiling" = yes; then
13663 echo $ac_n "cross-compiling... " 2>&6
13665 cat >conftest.$ac_ext <<_ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13672 /* Are we little or big endian? From Harbison&Steele. */
13676 char c[sizeof (long)];
13679 exit (u.c[sizeof (long) - 1] == 1);
13682 rm -f conftest$ac_exeext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13684 (eval $ac_link) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_cv_c_bigendian=no
13695 echo "$as_me: program exited with status $ac_status" >&5
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ( exit $ac_status )
13700 ac_cv_c_bigendian=yes
13702 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13706 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13707 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13708 if test $ac_cv_c_bigendian = unknown; then
13709 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13710 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13712 cat >conftest.c <<EOF
13713 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13714 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13715 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13716 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13717 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13718 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13719 int main() { _ascii (); _ebcdic (); return 0; }
13721 if test -f conftest.c ; then
13722 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13723 if test `grep -l BIGenDianSyS conftest.o` ; then
13724 echo $ac_n ' big endian probe OK, ' 1>&6
13725 ac_cv_c_bigendian=yes
13727 if test `grep -l LiTTleEnDian conftest.o` ; then
13728 echo $ac_n ' little endian probe OK, ' 1>&6
13729 if test $ac_cv_c_bigendian = yes ; then
13730 ac_cv_c_bigendian=unknown;
13732 ac_cv_c_bigendian=no
13735 echo $ac_n 'guessing bigendian ... ' >&6
13738 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13739 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13741 if test $ac_cv_c_bigendian = yes; then
13743 cat >>confdefs.h <<\_ACEOF
13744 #define WORDS_BIGENDIAN 1
13748 cat >>confdefs.h <<\_ACEOF
13749 #define HOST_WORDS_BIG_ENDIAN 1
13757 cat >>confdefs.h <<_ACEOF
13758 #define BYTEORDER $BYTEORDER
13761 if test $ac_cv_c_bigendian = unknown; then
13762 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13763 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13764 { (exit 1); exit 1; }; }
13772 if test -z "$ZLIBSPEC"; then
13773 # Use zlib from the GCC tree.
13774 ZINCS='-I$(top_srcdir)/../zlib'
13775 ZLIBS=../zlib/libzgcj_convenience.la
13778 SYS_ZLIBS="$ZLIBSPEC"
13790 if test "$NATIVE" = yes; then
13800 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13801 NEEDS_DATA_START_TRUE=
13802 NEEDS_DATA_START_FALSE='#'
13804 NEEDS_DATA_START_TRUE='#'
13805 NEEDS_DATA_START_FALSE=
13810 # Process the option "--enable-version-specific-runtime-libs"
13811 # Calculate toolexeclibdir
13812 case ${version_specific_libs} in
13814 # Need the gcc compiler version to know where to install libraries
13815 # and header files if --enable-version-specific-runtime-libs option
13817 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
13818 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13819 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
13820 toolexeclibdir=$toolexecmainlibdir
13823 if test -n "$with_cross_host" &&
13824 test x"$with_cross_host" != x"no"; then
13825 # Install a library built with a cross compiler in tooldir, not libdir.
13826 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13827 toolexecmainlibdir='$(toolexecdir)/lib'
13829 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13830 toolexecmainlibdir='$(libdir)'
13832 multi_os_directory=`$CC -print-multi-os-directory`
13833 case $multi_os_directory in
13834 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13835 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13843 # Determine gcj version number.
13844 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13845 GCJVERSION=$gcjversion
13848 cat >>confdefs.h <<_ACEOF
13849 #define GCJVERSION "$GCJVERSION"
13854 cat >>confdefs.h <<\_ACEOF
13855 #define JV_VERSION "1.4.2"
13859 cat >>confdefs.h <<\_ACEOF
13860 #define JV_API_VERSION "1.4"
13865 case "${with_gxx_include_dir}" in
13867 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13868 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13869 { (exit 1); exit 1; }; }
13872 case "${enable_version_specific_runtime_libs}" in
13873 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
13875 libstdcxx_incdir='c++/$(gcc_version)'
13876 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
13878 *) gxx_include_dir=${with_gxx_include_dir} ;;
13884 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13885 # On that system, sys/ioctl.h will not include sys/filio.h unless
13886 # BSD_COMP is defined; just including sys/filio.h is simpler.
13887 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13888 # for now. If you change this, you also must update natFile.cc.
13909 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
13910 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
13911 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
13912 pwd.h sys/config.h stdint.h langinfo.h locale.h \
13915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13917 echo "$as_me:$LINENO: checking for $ac_header" >&5
13918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13920 echo $ECHO_N "(cached) $ECHO_C" >&6
13922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13925 # Is the header compilable?
13926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13928 cat >conftest.$ac_ext <<_ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13935 #include <$ac_header>
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939 (eval $ac_compile) 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag"
13947 || test ! -s conftest.err'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_header_compiler=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 ac_header_compiler=no
13966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13967 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13968 echo "${ECHO_T}$ac_header_compiler" >&6
13970 # Is the header present?
13971 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13973 cat >conftest.$ac_ext <<_ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 #include <$ac_header>
13981 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13982 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13984 grep -v '^ *+' conftest.er1 >conftest.err
13986 cat conftest.err >&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } >/dev/null; then
13989 if test -s conftest.err; then
13990 ac_cpp_err=$ac_c_preproc_warn_flag
13991 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13998 if test -z "$ac_cpp_err"; then
13999 ac_header_preproc=yes
14001 echo "$as_me: failed program was:" >&5
14002 sed 's/^/| /' conftest.$ac_ext >&5
14004 ac_header_preproc=no
14006 rm -f conftest.err conftest.$ac_ext
14007 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008 echo "${ECHO_T}$ac_header_preproc" >&6
14010 # So? What about this header?
14011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14017 ac_header_preproc=yes
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14034 ## ---------------------------------- ##
14035 ## Report this to the libjava lists. ##
14036 ## ---------------------------------- ##
14039 sed "s/^/$as_me: WARNING: /" >&2
14042 echo "$as_me:$LINENO: checking for $ac_header" >&5
14043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 eval "$as_ac_Header=\$ac_header_preproc"
14049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14054 cat >>confdefs.h <<_ACEOF
14055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14063 for ac_header in inttypes.h
14065 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14067 echo "$as_me:$LINENO: checking for $ac_header" >&5
14068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
14072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14073 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14075 # Is the header compilable?
14076 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14077 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14078 cat >conftest.$ac_ext <<_ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 $ac_includes_default
14085 #include <$ac_header>
14087 rm -f conftest.$ac_objext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14089 (eval $ac_compile) 2>conftest.er1
14091 grep -v '^ *+' conftest.er1 >conftest.err
14093 cat conftest.err >&5
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
14096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest.$ac_objext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_header_compiler=yes
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_header_compiler=no
14116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14118 echo "${ECHO_T}$ac_header_compiler" >&6
14120 # Is the header present?
14121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14123 cat >conftest.$ac_ext <<_ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h. */
14129 #include <$ac_header>
14131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14134 grep -v '^ *+' conftest.er1 >conftest.err
14136 cat conftest.err >&5
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } >/dev/null; then
14139 if test -s conftest.err; then
14140 ac_cpp_err=$ac_c_preproc_warn_flag
14141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14148 if test -z "$ac_cpp_err"; then
14149 ac_header_preproc=yes
14151 echo "$as_me: failed program was:" >&5
14152 sed 's/^/| /' conftest.$ac_ext >&5
14154 ac_header_preproc=no
14156 rm -f conftest.err conftest.$ac_ext
14157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14158 echo "${ECHO_T}$ac_header_preproc" >&6
14160 # So? What about this header?
14161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14167 ac_header_preproc=yes
14170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14177 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14184 ## ---------------------------------- ##
14185 ## Report this to the libjava lists. ##
14186 ## ---------------------------------- ##
14189 sed "s/^/$as_me: WARNING: /" >&2
14192 echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 eval "$as_ac_Header=\$ac_header_preproc"
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14204 cat >>confdefs.h <<_ACEOF
14205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14209 cat >>confdefs.h <<\_ACEOF
14210 #define HAVE_INTTYPES_H 1
14214 cat >>confdefs.h <<\_ACEOF
14215 #define JV_HAVE_INTTYPES_H 1
14223 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14224 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14225 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 cat >conftest.$ac_ext <<_ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14234 #include <sys/types.h>
14235 #include <sys/wait.h>
14236 #ifndef WEXITSTATUS
14237 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14240 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14248 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14253 rm -f conftest.$ac_objext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14255 (eval $ac_compile) 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_header_sys_wait_h=yes
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_cv_header_sys_wait_h=no
14282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14284 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14285 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14286 if test $ac_cv_header_sys_wait_h = yes; then
14288 cat >>confdefs.h <<\_ACEOF
14289 #define HAVE_SYS_WAIT_H 1
14295 echo "$as_me:$LINENO: checking for ssize_t" >&5
14296 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14297 if test "${ac_cv_type_ssize_t+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 cat >conftest.$ac_ext <<_ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 $ac_includes_default
14312 if (sizeof (ssize_t))
14318 rm -f conftest.$ac_objext
14319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14320 (eval $ac_compile) 2>conftest.er1
14322 grep -v '^ *+' conftest.er1 >conftest.err
14324 cat conftest.err >&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); } &&
14327 { ac_try='test -z "$ac_c_werror_flag"
14328 || test ! -s conftest.err'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; } &&
14334 { ac_try='test -s conftest.$ac_objext'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; }; then
14340 ac_cv_type_ssize_t=yes
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14345 ac_cv_type_ssize_t=no
14347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14349 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14350 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14351 if test $ac_cv_type_ssize_t = yes; then
14355 cat >>confdefs.h <<_ACEOF
14356 #define ssize_t int
14362 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14363 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14364 cat >conftest.$ac_ext <<_ACEOF
14367 cat confdefs.h >>conftest.$ac_ext
14368 cat >>conftest.$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 #include <sys/types.h>
14372 #include <stdlib.h>
14373 #include <stddef.h>
14375 #if HAVE_NETINET_IN_H
14376 #include <netinet/in.h>
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388 (eval $ac_compile) 2>conftest.er1
14390 grep -v '^ *+' conftest.er1 >conftest.err
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -z "$ac_c_werror_flag"
14396 || test ! -s conftest.err'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try='test -s conftest.$ac_objext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14409 cat >>confdefs.h <<\_ACEOF
14410 #define HAVE_IN_ADDR_T 1
14413 echo "$as_me:$LINENO: result: yes" >&5
14414 echo "${ECHO_T}yes" >&6
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 echo "$as_me:$LINENO: result: no" >&5
14420 echo "${ECHO_T}no" >&6
14422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14424 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14425 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14426 cat >conftest.$ac_ext <<_ACEOF
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14432 #include <netinet/in.h>
14436 struct ip_mreq mreq;
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443 (eval $ac_compile) 2>conftest.er1
14445 grep -v '^ *+' conftest.er1 >conftest.err
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -z "$ac_c_werror_flag"
14451 || test ! -s conftest.err'
14452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14453 (eval $ac_try) 2>&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); }; } &&
14457 { ac_try='test -s conftest.$ac_objext'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; }; then
14464 cat >>confdefs.h <<\_ACEOF
14465 #define HAVE_STRUCT_IP_MREQ 1
14468 echo "$as_me:$LINENO: result: yes" >&5
14469 echo "${ECHO_T}yes" >&6
14471 echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14474 echo "$as_me:$LINENO: result: no" >&5
14475 echo "${ECHO_T}no" >&6
14477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14479 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14480 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14481 cat >conftest.$ac_ext <<_ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14487 #include <netinet/in.h>
14491 struct ipv6_mreq mreq6;
14496 rm -f conftest.$ac_objext
14497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14498 (eval $ac_compile) 2>conftest.er1
14500 grep -v '^ *+' conftest.er1 >conftest.err
14502 cat conftest.err >&5
14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504 (exit $ac_status); } &&
14505 { ac_try='test -z "$ac_c_werror_flag"
14506 || test ! -s conftest.err'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; } &&
14512 { ac_try='test -s conftest.$ac_objext'
14513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14514 (eval $ac_try) 2>&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); }; }; then
14519 cat >>confdefs.h <<\_ACEOF
14520 #define HAVE_STRUCT_IPV6_MREQ 1
14523 echo "$as_me:$LINENO: result: yes" >&5
14524 echo "${ECHO_T}yes" >&6
14526 echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14529 echo "$as_me:$LINENO: result: no" >&5
14530 echo "${ECHO_T}no" >&6
14532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14534 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14535 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14536 cat >conftest.$ac_ext <<_ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h. */
14542 #include <netinet/in.h>
14546 struct sockaddr_in6 addr6;
14551 rm -f conftest.$ac_objext
14552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14553 (eval $ac_compile) 2>conftest.er1
14555 grep -v '^ *+' conftest.er1 >conftest.err
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } &&
14560 { ac_try='test -z "$ac_c_werror_flag"
14561 || test ! -s conftest.err'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; } &&
14567 { ac_try='test -s conftest.$ac_objext'
14568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14569 (eval $ac_try) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); }; }; then
14574 cat >>confdefs.h <<\_ACEOF
14575 #define HAVE_INET6 1
14578 echo "$as_me:$LINENO: result: yes" >&5
14579 echo "${ECHO_T}yes" >&6
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 echo "$as_me:$LINENO: result: no" >&5
14585 echo "${ECHO_T}no" >&6
14587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14589 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14590 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14597 #define _POSIX_PII_SOCKET
14598 #include <sys/types.h>
14599 #include <sys/socket.h>
14608 rm -f conftest.$ac_objext
14609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14610 (eval $ac_compile) 2>conftest.er1
14612 grep -v '^ *+' conftest.er1 >conftest.err
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } &&
14617 { ac_try='test -z "$ac_c_werror_flag"
14618 || test ! -s conftest.err'
14619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14620 (eval $ac_try) 2>&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); }; } &&
14624 { ac_try='test -s conftest.$ac_objext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14631 cat >>confdefs.h <<\_ACEOF
14632 #define HAVE_SOCKLEN_T 1
14635 echo "$as_me:$LINENO: result: yes" >&5
14636 echo "${ECHO_T}yes" >&6
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14641 echo "$as_me:$LINENO: result: no" >&5
14642 echo "${ECHO_T}no" >&6
14644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14646 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14647 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14648 cat >conftest.$ac_ext <<_ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14658 struct tm tim; tim.tm_gmtoff = 0;
14663 rm -f conftest.$ac_objext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14665 (eval $ac_compile) 2>conftest.er1
14667 grep -v '^ *+' conftest.er1 >conftest.err
14669 cat conftest.err >&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); } &&
14672 { ac_try='test -z "$ac_c_werror_flag"
14673 || test ! -s conftest.err'
14674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14675 (eval $ac_try) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); }; } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14686 cat >>confdefs.h <<\_ACEOF
14687 #define STRUCT_TM_HAS_GMTOFF 1
14690 echo "$as_me:$LINENO: result: yes" >&5
14691 echo "${ECHO_T}yes" >&6
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14696 echo "$as_me:$LINENO: result: no" >&5
14697 echo "${ECHO_T}no" >&6
14698 echo "$as_me:$LINENO: checking for global timezone variable" >&5
14699 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14710 void i(){long z2 = 2*timezone;}
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>conftest.er1
14719 grep -v '^ *+' conftest.er1 >conftest.err
14721 cat conftest.err >&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } &&
14724 { ac_try='test -z "$ac_c_werror_flag"
14725 || test ! -s conftest.err'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; } &&
14731 { ac_try='test -s conftest.$ac_objext'
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_TIMEZONE 1
14742 echo "$as_me:$LINENO: result: yes" >&5
14743 echo "${ECHO_T}yes" >&6
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14748 echo "$as_me:$LINENO: result: no" >&5
14749 echo "${ECHO_T}no" >&6
14750 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14751 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14752 cat >conftest.$ac_ext <<_ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14762 long z2 = _timezone;
14767 rm -f conftest.$ac_objext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769 (eval $ac_compile) 2>conftest.er1
14771 grep -v '^ *+' conftest.er1 >conftest.err
14773 cat conftest.err >&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try='test -z "$ac_c_werror_flag"
14777 || test ! -s conftest.err'
14778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14779 (eval $ac_try) 2>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); }; } &&
14783 { ac_try='test -s conftest.$ac_objext'
14784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785 (eval $ac_try) 2>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); }; }; then
14790 cat >>confdefs.h <<\_ACEOF
14791 #define HAVE_UNDERSCORE_TIMEZONE 1
14794 echo "$as_me:$LINENO: result: yes" >&5
14795 echo "${ECHO_T}yes" >&6
14797 echo "$as_me: failed program was:" >&5
14798 sed 's/^/| /' conftest.$ac_ext >&5
14800 echo "$as_me:$LINENO: result: no" >&5
14801 echo "${ECHO_T}no" >&6
14803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14807 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14809 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14810 # for constant arguments. Useless!
14811 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14812 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14813 if test "${ac_cv_working_alloca_h+set}" = set; then
14814 echo $ECHO_N "(cached) $ECHO_C" >&6
14816 if test x$gcc_no_link = xyes; then
14817 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14818 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14819 { (exit 1); exit 1; }; }
14821 cat >conftest.$ac_ext <<_ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 #include <alloca.h>
14831 char *p = (char *) alloca (2 * sizeof (int));
14836 rm -f conftest.$ac_objext conftest$ac_exeext
14837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838 (eval $ac_link) 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } &&
14845 { ac_try='test -z "$ac_c_werror_flag"
14846 || test ! -s conftest.err'
14847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14848 (eval $ac_try) 2>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); }; } &&
14852 { ac_try='test -s conftest$ac_exeext'
14853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14854 (eval $ac_try) 2>&5
14856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14857 (exit $ac_status); }; }; then
14858 ac_cv_working_alloca_h=yes
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_cv_working_alloca_h=no
14865 rm -f conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
14868 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14869 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14870 if test $ac_cv_working_alloca_h = yes; then
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_ALLOCA_H 1
14878 echo "$as_me:$LINENO: checking for alloca" >&5
14879 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14880 if test "${ac_cv_func_alloca_works+set}" = set; then
14881 echo $ECHO_N "(cached) $ECHO_C" >&6
14883 if test x$gcc_no_link = xyes; then
14884 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14885 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14886 { (exit 1); exit 1; }; }
14888 cat >conftest.$ac_ext <<_ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14895 # define alloca __builtin_alloca
14898 # include <malloc.h>
14899 # define alloca _alloca
14902 # include <alloca.h>
14907 # ifndef alloca /* predefined by HP cc +Olibcalls */
14918 char *p = (char *) alloca (1);
14923 rm -f conftest.$ac_objext conftest$ac_exeext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14925 (eval $ac_link) 2>conftest.er1
14927 grep -v '^ *+' conftest.er1 >conftest.err
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } &&
14932 { ac_try='test -z "$ac_c_werror_flag"
14933 || test ! -s conftest.err'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; } &&
14939 { ac_try='test -s conftest$ac_exeext'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; }; then
14945 ac_cv_func_alloca_works=yes
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14950 ac_cv_func_alloca_works=no
14952 rm -f conftest.err conftest.$ac_objext \
14953 conftest$ac_exeext conftest.$ac_ext
14955 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14956 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14958 if test $ac_cv_func_alloca_works = yes; then
14960 cat >>confdefs.h <<\_ACEOF
14961 #define HAVE_ALLOCA 1
14965 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14966 # that cause trouble. Some versions do not even contain alloca or
14967 # contain a buggy version. If you still want to use their alloca,
14968 # use ar to extract alloca.o from them instead of compiling alloca.c.
14970 ALLOCA=alloca.$ac_objext
14972 cat >>confdefs.h <<\_ACEOF
14977 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14978 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14979 if test "${ac_cv_os_cray+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 cat >conftest.$ac_ext <<_ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 #if defined(CRAY) && ! defined(CRAY2)
14995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14996 $EGREP "webecray" >/dev/null 2>&1; then
15004 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15005 echo "${ECHO_T}$ac_cv_os_cray" >&6
15006 if test $ac_cv_os_cray = yes; then
15007 for ac_func in _getb67 GETB67 getb67; do
15008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15009 echo "$as_me:$LINENO: checking for $ac_func" >&5
15010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15011 if eval "test \"\${$as_ac_var+set}\" = set"; then
15012 echo $ECHO_N "(cached) $ECHO_C" >&6
15014 if test x$gcc_no_link = xyes; then
15015 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15016 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15017 { (exit 1); exit 1; }; }
15019 cat >conftest.$ac_ext <<_ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15027 #define $ac_func innocuous_$ac_func
15029 /* System header to define __stub macros and hopefully few prototypes,
15030 which can conflict with char $ac_func (); below.
15031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15032 <limits.h> exists even on freestanding compilers. */
15035 # include <limits.h>
15037 # include <assert.h>
15042 /* Override any gcc2 internal prototype to avoid an error. */
15047 /* We use char because int might match the return type of a gcc2
15048 builtin and then its argument prototype would still apply. */
15050 /* The GNU C library defines this for functions which it implements
15051 to always fail with ENOSYS. Some functions are actually named
15052 something starting with __ and the normal name is an alias. */
15053 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15056 char (*f) () = $ac_func;
15065 return f != $ac_func;
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"
15080 || test ! -s conftest.err'
15081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15082 (eval $ac_try) 2>&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); }; } &&
15086 { ac_try='test -s conftest$ac_exeext'
15087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15088 (eval $ac_try) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }; }; then
15092 eval "$as_ac_var=yes"
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 eval "$as_ac_var=no"
15099 rm -f conftest.err conftest.$ac_objext \
15100 conftest$ac_exeext conftest.$ac_ext
15102 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15103 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15104 if test `eval echo '${'$as_ac_var'}'` = yes; then
15106 cat >>confdefs.h <<_ACEOF
15107 #define CRAY_STACKSEG_END $ac_func
15116 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15117 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15118 if test "${ac_cv_c_stack_direction+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15121 if test "$cross_compiling" = yes; then
15122 ac_cv_c_stack_direction=0
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15131 find_stack_direction ()
15133 static char *addr = 0;
15138 return find_stack_direction ();
15141 return (&dummy > addr) ? 1 : -1;
15147 exit (find_stack_direction () < 0);
15150 rm -f conftest$ac_exeext
15151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15152 (eval $ac_link) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
15161 ac_cv_c_stack_direction=1
15163 echo "$as_me: program exited with status $ac_status" >&5
15164 echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15167 ( exit $ac_status )
15168 ac_cv_c_stack_direction=-1
15170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15173 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15174 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15176 cat >>confdefs.h <<_ACEOF
15177 #define STACK_DIRECTION $ac_cv_c_stack_direction
15183 if test x$gcc_no_link = xyes; then
15184 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15185 ac_cv_func_mmap_fixed_mapped=no
15188 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15191 for ac_header in stdlib.h unistd.h
15193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15195 echo "$as_me:$LINENO: checking for $ac_header" >&5
15196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15198 echo $ECHO_N "(cached) $ECHO_C" >&6
15200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15203 # Is the header compilable?
15204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15206 cat >conftest.$ac_ext <<_ACEOF
15209 cat confdefs.h >>conftest.$ac_ext
15210 cat >>conftest.$ac_ext <<_ACEOF
15211 /* end confdefs.h. */
15212 $ac_includes_default
15213 #include <$ac_header>
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217 (eval $ac_compile) 2>conftest.er1
15219 grep -v '^ *+' conftest.er1 >conftest.err
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag"
15225 || test ! -s conftest.err'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_header_compiler=yes
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15242 ac_header_compiler=no
15244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15246 echo "${ECHO_T}$ac_header_compiler" >&6
15248 # Is the header present?
15249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15251 cat >conftest.$ac_ext <<_ACEOF
15254 cat confdefs.h >>conftest.$ac_ext
15255 cat >>conftest.$ac_ext <<_ACEOF
15256 /* end confdefs.h. */
15257 #include <$ac_header>
15259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15262 grep -v '^ *+' conftest.er1 >conftest.err
15264 cat conftest.err >&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } >/dev/null; then
15267 if test -s conftest.err; then
15268 ac_cpp_err=$ac_c_preproc_warn_flag
15269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15276 if test -z "$ac_cpp_err"; then
15277 ac_header_preproc=yes
15279 echo "$as_me: failed program was:" >&5
15280 sed 's/^/| /' conftest.$ac_ext >&5
15282 ac_header_preproc=no
15284 rm -f conftest.err conftest.$ac_ext
15285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15286 echo "${ECHO_T}$ac_header_preproc" >&6
15288 # So? What about this header?
15289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15295 ac_header_preproc=yes
15298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15312 ## ---------------------------------- ##
15313 ## Report this to the libjava lists. ##
15314 ## ---------------------------------- ##
15317 sed "s/^/$as_me: WARNING: /" >&2
15320 echo "$as_me:$LINENO: checking for $ac_header" >&5
15321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15325 eval "$as_ac_Header=\$ac_header_preproc"
15327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15332 cat >>confdefs.h <<_ACEOF
15333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15341 for ac_func in getpagesize
15343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15344 echo "$as_me:$LINENO: checking for $ac_func" >&5
15345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15346 if eval "test \"\${$as_ac_var+set}\" = set"; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15349 if test x$gcc_no_link = xyes; then
15350 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15351 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15352 { (exit 1); exit 1; }; }
15354 cat >conftest.$ac_ext <<_ACEOF
15357 cat confdefs.h >>conftest.$ac_ext
15358 cat >>conftest.$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15362 #define $ac_func innocuous_$ac_func
15364 /* System header to define __stub macros and hopefully few prototypes,
15365 which can conflict with char $ac_func (); below.
15366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15367 <limits.h> exists even on freestanding compilers. */
15370 # include <limits.h>
15372 # include <assert.h>
15377 /* Override any gcc2 internal prototype to avoid an error. */
15382 /* We use char because int might match the return type of a gcc2
15383 builtin and then its argument prototype would still apply. */
15385 /* The GNU C library defines this for functions which it implements
15386 to always fail with ENOSYS. Some functions are actually named
15387 something starting with __ and the normal name is an alias. */
15388 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15391 char (*f) () = $ac_func;
15400 return f != $ac_func;
15405 rm -f conftest.$ac_objext conftest$ac_exeext
15406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15407 (eval $ac_link) 2>conftest.er1
15409 grep -v '^ *+' conftest.er1 >conftest.err
15411 cat conftest.err >&5
15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413 (exit $ac_status); } &&
15414 { ac_try='test -z "$ac_c_werror_flag"
15415 || test ! -s conftest.err'
15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417 (eval $ac_try) 2>&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); }; } &&
15421 { ac_try='test -s conftest$ac_exeext'
15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15423 (eval $ac_try) 2>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); }; }; then
15427 eval "$as_ac_var=yes"
15429 echo "$as_me: failed program was:" >&5
15430 sed 's/^/| /' conftest.$ac_ext >&5
15432 eval "$as_ac_var=no"
15434 rm -f conftest.err conftest.$ac_objext \
15435 conftest$ac_exeext conftest.$ac_ext
15437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15438 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15439 if test `eval echo '${'$as_ac_var'}'` = yes; then
15440 cat >>confdefs.h <<_ACEOF
15441 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15447 echo "$as_me:$LINENO: checking for working mmap" >&5
15448 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15449 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15450 echo $ECHO_N "(cached) $ECHO_C" >&6
15452 if test "$cross_compiling" = yes; then
15453 ac_cv_func_mmap_fixed_mapped=no
15455 cat >conftest.$ac_ext <<_ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 $ac_includes_default
15462 /* malloc might have been renamed as rpl_malloc. */
15465 /* Thanks to Mike Haertel and Jim Avera for this test.
15466 Here is a matrix of mmap possibilities:
15467 mmap private not fixed
15468 mmap private fixed at somewhere currently unmapped
15469 mmap private fixed at somewhere already mapped
15470 mmap shared not fixed
15471 mmap shared fixed at somewhere currently unmapped
15472 mmap shared fixed at somewhere already mapped
15473 For private mappings, we should verify that changes cannot be read()
15474 back from the file, nor mmap's back from the file at a different
15475 address. (There have been systems where private was not correctly
15476 implemented like the infamous i386 svr4.0, and systems where the
15477 VM page cache was not coherent with the file system buffer cache
15478 like early versions of FreeBSD and possibly contemporary NetBSD.)
15479 For shared mappings, we should conversely verify that changes get
15480 propagated back to all the places they're supposed to be.
15482 Grep wants private fixed already mapped.
15483 The main things grep needs to know about mmap are:
15484 * does it exist and is it safe to write into the mmap'd area
15485 * how to use it (BSD variants) */
15488 #include <sys/mman.h>
15490 #if !STDC_HEADERS && !HAVE_STDLIB_H
15494 /* This mess was copied from the GNU getpagesize.h. */
15495 #if !HAVE_GETPAGESIZE
15496 /* Assume that all systems that can run configure have sys/param.h. */
15497 # if !HAVE_SYS_PARAM_H
15498 # define HAVE_SYS_PARAM_H 1
15501 # ifdef _SC_PAGESIZE
15502 # define getpagesize() sysconf(_SC_PAGESIZE)
15503 # else /* no _SC_PAGESIZE */
15504 # if HAVE_SYS_PARAM_H
15505 # include <sys/param.h>
15506 # ifdef EXEC_PAGESIZE
15507 # define getpagesize() EXEC_PAGESIZE
15508 # else /* no EXEC_PAGESIZE */
15510 # define getpagesize() NBPG * CLSIZE
15513 # endif /* no CLSIZE */
15514 # else /* no NBPG */
15516 # define getpagesize() NBPC
15517 # else /* no NBPC */
15519 # define getpagesize() PAGESIZE
15520 # endif /* PAGESIZE */
15521 # endif /* no NBPC */
15522 # endif /* no NBPG */
15523 # endif /* no EXEC_PAGESIZE */
15524 # else /* no HAVE_SYS_PARAM_H */
15525 # define getpagesize() 8192 /* punt totally */
15526 # endif /* no HAVE_SYS_PARAM_H */
15527 # endif /* no _SC_PAGESIZE */
15529 #endif /* no HAVE_GETPAGESIZE */
15534 char *data, *data2, *data3;
15538 pagesize = getpagesize ();
15540 /* First, make a file with some known garbage in it. */
15541 data = (char *) malloc (pagesize);
15544 for (i = 0; i < pagesize; ++i)
15545 *(data + i) = rand ();
15547 fd = creat ("conftest.mmap", 0600);
15550 if (write (fd, data, pagesize) != pagesize)
15554 /* Next, try to mmap the file at a fixed address which already has
15555 something else allocated at it. If we can, also make sure that
15556 we see the same garbage. */
15557 fd = open ("conftest.mmap", O_RDWR);
15560 data2 = (char *) malloc (2 * pagesize);
15563 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15564 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15565 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15567 for (i = 0; i < pagesize; ++i)
15568 if (*(data + i) != *(data2 + i))
15571 /* Finally, make sure that changes to the mapped area do not
15572 percolate back to the file as seen by read(). (This is a bug on
15573 some variants of i386 svr4.0.) */
15574 for (i = 0; i < pagesize; ++i)
15575 *(data2 + i) = *(data2 + i) + 1;
15576 data3 = (char *) malloc (pagesize);
15579 if (read (fd, data3, pagesize) != pagesize)
15581 for (i = 0; i < pagesize; ++i)
15582 if (*(data + i) != *(data3 + i))
15588 rm -f conftest$ac_exeext
15589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15590 (eval $ac_link) 2>&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_cv_func_mmap_fixed_mapped=yes
15601 echo "$as_me: program exited with status $ac_status" >&5
15602 echo "$as_me: failed program was:" >&5
15603 sed 's/^/| /' conftest.$ac_ext >&5
15605 ( exit $ac_status )
15606 ac_cv_func_mmap_fixed_mapped=no
15608 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15611 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15612 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15613 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15615 cat >>confdefs.h <<\_ACEOF
15616 #define HAVE_MMAP 1
15620 rm -f conftest.mmap
15624 for ac_prog in perl
15626 # Extract the first word of "$ac_prog", so it can be a program name with args.
15627 set dummy $ac_prog; ac_word=$2
15628 echo "$as_me:$LINENO: checking for $ac_word" >&5
15629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15630 if test "${ac_cv_prog_PERL+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 if test -n "$PERL"; then
15634 ac_cv_prog_PERL="$PERL" # Let the user override the test.
15636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15637 for as_dir in $PATH
15640 test -z "$as_dir" && as_dir=.
15641 for ac_exec_ext in '' $ac_executable_extensions; do
15642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15643 ac_cv_prog_PERL="$ac_prog"
15644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15652 PERL=$ac_cv_prog_PERL
15653 if test -n "$PERL"; then
15654 echo "$as_me:$LINENO: result: $PERL" >&5
15655 echo "${ECHO_T}$PERL" >&6
15657 echo "$as_me:$LINENO: result: no" >&5
15658 echo "${ECHO_T}no" >&6
15661 test -n "$PERL" && break
15663 test -n "$PERL" || PERL="false"
15667 SIGNAL_HANDLER_AUX=
15671 SIGNAL_HANDLER=include/i386-signal.h
15673 sparc*-sun-solaris*)
15674 SIGNAL_HANDLER=include/sparc-signal.h
15677 # SYSDEP_SOURCES=sysdep/ia64.c
15678 # test -d sysdep || mkdir sysdep
15681 SIGNAL_HANDLER=include/pa-signal.h
15684 SIGNAL_HANDLER=include/dwarf2-signal.h
15687 SIGNAL_HANDLER=include/powerpc-signal.h
15690 SIGNAL_HANDLER=include/dwarf2-signal.h
15693 SIGNAL_HANDLER=include/s390-signal.h
15696 SIGNAL_HANDLER=include/x86_64-signal.h
15697 SIGNAL_HANDLER_AUX=include/i386-signal.h
15700 SIGNAL_HANDLER=include/dwarf2-signal.h
15703 SIGNAL_HANDLER=include/sh-signal.h
15706 SIGNAL_HANDLER=include/win32-signal.h
15709 SIGNAL_HANDLER=include/mips-signal.h
15712 SIGNAL_HANDLER=include/darwin-signal.h
15715 SIGNAL_HANDLER=include/default-signal.h
15719 # If we're using sjlj exceptions, forget what we just learned.
15720 if test "$enable_sjlj_exceptions" = yes; then
15721 SIGNAL_HANDLER=include/default-signal.h
15722 SIGNAL_HANDLER_AUX=
15725 # Define here any compiler flags that you need in order to make backtrace() work.
15728 x86_64*-*-linux*|i?86-*)
15729 BACKTRACESPEC=-fno-omit-frame-pointer
15736 if test -z "$SIGNAL_HANDLER_AUX"; then
15737 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15740 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15743 if test "${multilib}" = "yes"; then
15744 multilib_arg="--enable-multilib"
15751 here=`${PWDCMD-pwd}`
15754 # We get this from the environment.
15757 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15760 ac_config_commands="$ac_config_commands default"
15763 cat >confcache <<\_ACEOF
15764 # This file is a shell script that caches the results of configure
15765 # tests run on this system so they can be shared between configure
15766 # scripts and configure runs, see configure's option --config-cache.
15767 # It is not useful on other systems. If it contains results you don't
15768 # want to keep, you may remove or edit it.
15770 # config.status only pays attention to the cache file if you give it
15771 # the --recheck option to rerun configure.
15773 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15774 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15775 # following values.
15779 # The following way of writing the cache mishandles newlines in values,
15780 # but we know of no workaround that is simple, portable, and efficient.
15781 # So, don't put newlines in cache variables' values.
15782 # Ultrix sh set writes to stderr and can't be redirected directly,
15783 # and sets the high bit in the cache file unless we assign to the vars.
15786 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15788 # `set' does not quote correctly, so add quotes (double-quote
15789 # substitution turns \\\\ into \\, and sed turns \\ into \).
15792 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15795 # `set' quotes correctly as required by POSIX, so do not add quotes.
15797 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15804 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15806 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15808 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15809 if test -w $cache_file; then
15810 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15811 cat confcache >$cache_file
15813 echo "not updating unwritable cache $cache_file"
15818 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15819 # Let make expand exec_prefix.
15820 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15822 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15823 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15824 # trailing colons and then remove the whole line if VPATH becomes empty
15825 # (actually we leave an empty line to preserve line numbers).
15826 if test "x$srcdir" = x.; then
15827 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15828 s/:*\$(srcdir):*/:/;
15829 s/:*\${srcdir}:*/:/;
15831 s/^\([^=]*=[ ]*\):*/\1/;
15837 DEFS=-DHAVE_CONFIG_H
15841 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15842 # 1. Remove the extension, and $U if already installed.
15843 ac_i=`echo "$ac_i" |
15844 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15846 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15847 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15849 LIBOBJS=$ac_libobjs
15851 LTLIBOBJS=$ac_ltlibobjs
15854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15855 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15856 Usually this means the macro was only invoked conditionally." >&5
15857 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15858 Usually this means the macro was only invoked conditionally." >&2;}
15859 { (exit 1); exit 1; }; }
15861 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15862 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15863 Usually this means the macro was only invoked conditionally." >&5
15864 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15865 Usually this means the macro was only invoked conditionally." >&2;}
15866 { (exit 1); exit 1; }; }
15868 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15869 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15870 Usually this means the macro was only invoked conditionally." >&5
15871 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15872 Usually this means the macro was only invoked conditionally." >&2;}
15873 { (exit 1); exit 1; }; }
15875 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15876 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15877 Usually this means the macro was only invoked conditionally." >&5
15878 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15879 Usually this means the macro was only invoked conditionally." >&2;}
15880 { (exit 1); exit 1; }; }
15882 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15883 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15884 Usually this means the macro was only invoked conditionally." >&5
15885 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15886 Usually this means the macro was only invoked conditionally." >&2;}
15887 { (exit 1); exit 1; }; }
15889 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15890 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15891 Usually this means the macro was only invoked conditionally." >&5
15892 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15893 Usually this means the macro was only invoked conditionally." >&2;}
15894 { (exit 1); exit 1; }; }
15896 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15897 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15898 Usually this means the macro was only invoked conditionally." >&5
15899 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15900 Usually this means the macro was only invoked conditionally." >&2;}
15901 { (exit 1); exit 1; }; }
15903 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
15904 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
15905 Usually this means the macro was only invoked conditionally." >&5
15906 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
15907 Usually this means the macro was only invoked conditionally." >&2;}
15908 { (exit 1); exit 1; }; }
15910 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15911 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15912 Usually this means the macro was only invoked conditionally." >&5
15913 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15914 Usually this means the macro was only invoked conditionally." >&2;}
15915 { (exit 1); exit 1; }; }
15917 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15918 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15919 Usually this means the macro was only invoked conditionally." >&5
15920 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15921 Usually this means the macro was only invoked conditionally." >&2;}
15922 { (exit 1); exit 1; }; }
15924 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15925 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15926 Usually this means the macro was only invoked conditionally." >&5
15927 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15928 Usually this means the macro was only invoked conditionally." >&2;}
15929 { (exit 1); exit 1; }; }
15931 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
15932 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
15933 Usually this means the macro was only invoked conditionally." >&5
15934 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
15935 Usually this means the macro was only invoked conditionally." >&2;}
15936 { (exit 1); exit 1; }; }
15938 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15939 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15940 Usually this means the macro was only invoked conditionally." >&5
15941 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15942 Usually this means the macro was only invoked conditionally." >&2;}
15943 { (exit 1); exit 1; }; }
15945 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15946 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15947 Usually this means the macro was only invoked conditionally." >&5
15948 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15949 Usually this means the macro was only invoked conditionally." >&2;}
15950 { (exit 1); exit 1; }; }
15952 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15953 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15954 Usually this means the macro was only invoked conditionally." >&5
15955 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15956 Usually this means the macro was only invoked conditionally." >&2;}
15957 { (exit 1); exit 1; }; }
15959 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15960 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15961 Usually this means the macro was only invoked conditionally." >&5
15962 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15963 Usually this means the macro was only invoked conditionally." >&2;}
15964 { (exit 1); exit 1; }; }
15966 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15967 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15968 Usually this means the macro was only invoked conditionally." >&5
15969 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15970 Usually this means the macro was only invoked conditionally." >&2;}
15971 { (exit 1); exit 1; }; }
15973 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15974 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15975 Usually this means the macro was only invoked conditionally." >&5
15976 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15977 Usually this means the macro was only invoked conditionally." >&2;}
15978 { (exit 1); exit 1; }; }
15980 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15981 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15982 Usually this means the macro was only invoked conditionally." >&5
15983 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15984 Usually this means the macro was only invoked conditionally." >&2;}
15985 { (exit 1); exit 1; }; }
15987 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15988 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15989 Usually this means the macro was only invoked conditionally." >&5
15990 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15991 Usually this means the macro was only invoked conditionally." >&2;}
15992 { (exit 1); exit 1; }; }
15994 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15995 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15996 Usually this means the macro was only invoked conditionally." >&5
15997 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15998 Usually this means the macro was only invoked conditionally." >&2;}
15999 { (exit 1); exit 1; }; }
16001 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16002 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16003 Usually this means the macro was only invoked conditionally." >&5
16004 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16005 Usually this means the macro was only invoked conditionally." >&2;}
16006 { (exit 1); exit 1; }; }
16008 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16009 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16010 Usually this means the macro was only invoked conditionally." >&5
16011 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16012 Usually this means the macro was only invoked conditionally." >&2;}
16013 { (exit 1); exit 1; }; }
16015 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16016 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16017 Usually this means the macro was only invoked conditionally." >&5
16018 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16019 Usually this means the macro was only invoked conditionally." >&2;}
16020 { (exit 1); exit 1; }; }
16023 : ${CONFIG_STATUS=./config.status}
16024 ac_clean_files_save=$ac_clean_files
16025 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16026 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16027 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16028 cat >$CONFIG_STATUS <<_ACEOF
16030 # Generated by $as_me.
16031 # Run this file to recreate the current configuration.
16032 # Compiler output produced by configure, useful for debugging
16033 # configure, is in config.log if it exists.
16036 ac_cs_recheck=false
16038 SHELL=\${CONFIG_SHELL-$SHELL}
16041 cat >>$CONFIG_STATUS <<\_ACEOF
16042 ## --------------------- ##
16043 ## M4sh Initialization. ##
16044 ## --------------------- ##
16046 # Be Bourne compatible
16047 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16050 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16051 # is contrary to our usage. Disable this feature.
16052 alias -g '${1+"$@"}'='"$@"'
16053 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16056 DUALCASE=1; export DUALCASE # for MKS sh
16058 # Support unset when possible.
16059 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16066 # Work around bugs in pre-3.0 UWIN ksh.
16067 $as_unset ENV MAIL MAILPATH
16074 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16075 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16076 LC_TELEPHONE LC_TIME
16078 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16079 eval $as_var=C; export $as_var
16085 # Required to use basename.
16086 if expr a : '\(a\)' >/dev/null 2>&1; then
16092 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16093 as_basename=basename
16099 # Name of the executable.
16100 as_me=`$as_basename "$0" ||
16101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16102 X"$0" : 'X\(//\)$' \| \
16103 X"$0" : 'X\(/\)$' \| \
16104 . : '\(.\)' 2>/dev/null ||
16106 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16107 /^X\/\(\/\/\)$/{ s//\1/; q; }
16108 /^X\/\(\/\).*/{ s//\1/; q; }
16112 # PATH needs CR, and LINENO needs CR and PATH.
16113 # Avoid depending upon Character Ranges.
16114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16117 as_cr_digits='0123456789'
16118 as_cr_alnum=$as_cr_Letters$as_cr_digits
16120 # The user is always right.
16121 if test "${PATH_SEPARATOR+set}" != set; then
16122 echo "#! /bin/sh" >conf$$.sh
16123 echo "exit 0" >>conf$$.sh
16125 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16134 as_lineno_1=$LINENO
16135 as_lineno_2=$LINENO
16136 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16137 test "x$as_lineno_1" != "x$as_lineno_2" &&
16138 test "x$as_lineno_3" = "x$as_lineno_2" || {
16139 # Find who we are. Look in the path if we contain no path at all
16142 *[\\/]* ) as_myself=$0 ;;
16143 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16144 for as_dir in $PATH
16147 test -z "$as_dir" && as_dir=.
16148 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16153 # We did not find ourselves, most probably we were run as `sh COMMAND'
16154 # in which case we are not to be found in the path.
16155 if test "x$as_myself" = x; then
16158 if test ! -f "$as_myself"; then
16159 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16160 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16161 { (exit 1); exit 1; }; }
16163 case $CONFIG_SHELL in
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16169 test -z "$as_dir" && as_dir=.
16170 for as_base in sh bash ksh sh5; do
16173 if ("$as_dir/$as_base" -c '
16174 as_lineno_1=$LINENO
16175 as_lineno_2=$LINENO
16176 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16177 test "x$as_lineno_1" != "x$as_lineno_2" &&
16178 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16179 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16180 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16181 CONFIG_SHELL=$as_dir/$as_base
16182 export CONFIG_SHELL
16183 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16191 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16192 # uniformly replaced by the line number. The first 'sed' inserts a
16193 # line-number line before each line; the second 'sed' does the real
16194 # work. The second script uses 'N' to pair each line-number line
16195 # with the numbered line, and appends trailing '-' during
16196 # substitution so that $LINENO is not a special case at line end.
16197 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16198 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16199 sed '=' <$as_myself |
16204 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16207 s,^['$as_cr_digits']*\n,,
16208 ' >$as_me.lineno &&
16209 chmod +x $as_me.lineno ||
16210 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16211 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16212 { (exit 1); exit 1; }; }
16214 # Don't try to exec as it changes $[0], causing all sort of problems
16215 # (the dirname of $[0] is not the place where we might find the
16216 # original and so on. Autoconf is especially sensible to this).
16218 # Exit status is that of the last command.
16223 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16224 *c*,-n*) ECHO_N= ECHO_C='
16226 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16227 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16230 if expr a : '\(a\)' >/dev/null 2>&1; then
16236 rm -f conf$$ conf$$.exe conf$$.file
16238 if ln -s conf$$.file conf$$ 2>/dev/null; then
16239 # We could just check for DJGPP; but this test a) works b) is more generic
16240 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16241 if test -f conf$$.exe; then
16242 # Don't use ln at all; we don't have any links
16247 elif ln conf$$.file conf$$ 2>/dev/null; then
16252 rm -f conf$$ conf$$.exe conf$$.file
16254 if mkdir -p . 2>/dev/null; then
16257 test -d ./-p && rmdir ./-p
16261 as_executable_p="test -f"
16263 # Sed expression to map a string onto a valid CPP name.
16264 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16266 # Sed expression to map a string onto a valid variable name.
16267 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16271 # We need space, tab and new line, in precisely that order.
16281 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16282 # report actual input values of CONFIG_FILES etc. instead of their
16283 # values after options handling. Logging --version etc. is OK.
16287 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16288 ## Running $as_me. ##
16293 This file was extended by libjava $as_me version-unused, which was
16294 generated by GNU Autoconf 2.59. Invocation command line was
16296 CONFIG_FILES = $CONFIG_FILES
16297 CONFIG_HEADERS = $CONFIG_HEADERS
16298 CONFIG_LINKS = $CONFIG_LINKS
16299 CONFIG_COMMANDS = $CONFIG_COMMANDS
16303 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16307 # Files that config.status was made for.
16308 if test -n "$ac_config_files"; then
16309 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16312 if test -n "$ac_config_headers"; then
16313 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16316 if test -n "$ac_config_links"; then
16317 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16320 if test -n "$ac_config_commands"; then
16321 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16324 cat >>$CONFIG_STATUS <<\_ACEOF
16327 \`$as_me' instantiates files from templates according to the
16328 current configuration.
16330 Usage: $0 [OPTIONS] [FILE]...
16332 -h, --help print this help, then exit
16333 -V, --version print version number, then exit
16334 -q, --quiet do not print progress messages
16335 -d, --debug don't remove temporary files
16336 --recheck update $as_me by reconfiguring in the same conditions
16337 --file=FILE[:TEMPLATE]
16338 instantiate the configuration file FILE
16339 --header=FILE[:TEMPLATE]
16340 instantiate the configuration header FILE
16342 Configuration files:
16345 Configuration headers:
16348 Configuration links:
16351 Configuration commands:
16354 Report bugs to <bug-autoconf@gnu.org>."
16357 cat >>$CONFIG_STATUS <<_ACEOF
16359 libjava config.status version-unused
16360 configured by $0, generated by GNU Autoconf 2.59,
16361 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16363 Copyright (C) 2003 Free Software Foundation, Inc.
16364 This config.status script is free software; the Free Software Foundation
16365 gives unlimited permission to copy, distribute and modify it."
16370 cat >>$CONFIG_STATUS <<\_ACEOF
16371 # If no file are specified by the user, then we need to provide default
16372 # value. By we need to know if files were specified by the user.
16378 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16379 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16387 *) # This is not an option, so the user has probably given explicit
16390 ac_need_defaults=false;;
16394 # Handling of the options.
16396 cat >>$CONFIG_STATUS <<\_ACEOF
16397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16399 --version | --vers* | -V )
16400 echo "$ac_cs_version"; exit 0 ;;
16402 # Conflict between --help and --header
16403 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16404 Try \`$0 --help' for more information." >&5
16405 echo "$as_me: error: ambiguous option: $1
16406 Try \`$0 --help' for more information." >&2;}
16407 { (exit 1); exit 1; }; };;
16408 --help | --hel | -h )
16409 echo "$ac_cs_usage"; exit 0 ;;
16410 --debug | --d* | -d )
16412 --file | --fil | --fi | --f )
16414 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16415 ac_need_defaults=false;;
16416 --header | --heade | --head | --hea )
16418 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16419 ac_need_defaults=false;;
16420 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16421 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16424 # This is an error.
16425 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16426 Try \`$0 --help' for more information." >&5
16427 echo "$as_me: error: unrecognized option: $1
16428 Try \`$0 --help' for more information." >&2;}
16429 { (exit 1); exit 1; }; } ;;
16431 *) ac_config_targets="$ac_config_targets $1" ;;
16437 ac_configure_extra_args=
16439 if $ac_cs_silent; then
16441 ac_configure_extra_args="$ac_configure_extra_args --silent"
16445 cat >>$CONFIG_STATUS <<_ACEOF
16446 if \$ac_cs_recheck; then
16447 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16448 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16453 cat >>$CONFIG_STATUS <<_ACEOF
16455 # INIT-COMMANDS section.
16458 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16462 with_multisubdir=${with_multisubdir}
16463 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16464 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16465 libgcj_basedir=${libgcj_basedir}
16468 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16475 cat >>$CONFIG_STATUS <<\_ACEOF
16476 for ac_config_target in $ac_config_targets
16478 case "$ac_config_target" in
16479 # Handling of arguments.
16480 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16481 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16482 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16483 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16484 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16485 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16486 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16487 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16488 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16489 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16490 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16491 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16492 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16493 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16494 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16495 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16496 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
16497 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16498 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16499 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16500 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16501 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16502 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16503 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16504 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16505 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16506 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16507 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16508 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16509 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16510 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16511 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16512 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16513 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16514 { (exit 1); exit 1; }; };;
16518 # If the user did not use the arguments to specify the items to instantiate,
16519 # then the envvar interface is used. Set only those that are not.
16520 # We use the long form for the default assignment because of an extremely
16521 # bizarre bug on SunOS 4.1.3.
16522 if $ac_need_defaults; then
16523 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16524 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16525 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16526 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16529 # Have a temporary directory for convenience. Make it in the build tree
16530 # simply because there is no reason to put it here, and in addition,
16531 # creating and moving files from /tmp can sometimes cause problems.
16532 # Create a temporary directory, and hook for its removal unless debugging.
16535 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16536 trap '{ (exit 1); exit 1; }' 1 2 13 15
16539 # Create a (secure) tmp directory for tmp files.
16542 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16543 test -n "$tmp" && test -d "$tmp"
16546 tmp=./confstat$$-$RANDOM
16547 (umask 077 && mkdir $tmp)
16550 echo "$me: cannot create a temporary directory in ." >&2
16551 { (exit 1); exit 1; }
16556 cat >>$CONFIG_STATUS <<_ACEOF
16559 # CONFIG_FILES section.
16562 # No need to generate the scripts if there are no CONFIG_FILES.
16563 # This happens for instance when ./config.status config.h
16564 if test -n "\$CONFIG_FILES"; then
16565 # Protect against being on the right side of a sed subst in config.status.
16566 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16567 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16568 s,@SHELL@,$SHELL,;t t
16569 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16570 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16571 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16572 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16573 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16574 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16575 s,@exec_prefix@,$exec_prefix,;t t
16576 s,@prefix@,$prefix,;t t
16577 s,@program_transform_name@,$program_transform_name,;t t
16578 s,@bindir@,$bindir,;t t
16579 s,@sbindir@,$sbindir,;t t
16580 s,@libexecdir@,$libexecdir,;t t
16581 s,@datadir@,$datadir,;t t
16582 s,@sysconfdir@,$sysconfdir,;t t
16583 s,@sharedstatedir@,$sharedstatedir,;t t
16584 s,@localstatedir@,$localstatedir,;t t
16585 s,@libdir@,$libdir,;t t
16586 s,@includedir@,$includedir,;t t
16587 s,@oldincludedir@,$oldincludedir,;t t
16588 s,@infodir@,$infodir,;t t
16589 s,@mandir@,$mandir,;t t
16590 s,@build_alias@,$build_alias,;t t
16591 s,@host_alias@,$host_alias,;t t
16592 s,@target_alias@,$target_alias,;t t
16593 s,@DEFS@,$DEFS,;t t
16594 s,@ECHO_C@,$ECHO_C,;t t
16595 s,@ECHO_N@,$ECHO_N,;t t
16596 s,@ECHO_T@,$ECHO_T,;t t
16597 s,@LIBS@,$LIBS,;t t
16598 s,@build@,$build,;t t
16599 s,@build_cpu@,$build_cpu,;t t
16600 s,@build_vendor@,$build_vendor,;t t
16601 s,@build_os@,$build_os,;t t
16602 s,@build_subdir@,$build_subdir,;t t
16603 s,@host_subdir@,$host_subdir,;t t
16604 s,@target_subdir@,$target_subdir,;t t
16605 s,@libgcj_basedir@,$libgcj_basedir,;t t
16606 s,@host@,$host,;t t
16607 s,@host_cpu@,$host_cpu,;t t
16608 s,@host_vendor@,$host_vendor,;t t
16609 s,@host_os@,$host_os,;t t
16610 s,@target@,$target,;t t
16611 s,@target_cpu@,$target_cpu,;t t
16612 s,@target_vendor@,$target_vendor,;t t
16613 s,@target_os@,$target_os,;t t
16614 s,@target_noncanonical@,$target_noncanonical,;t t
16615 s,@LN_S@,$LN_S,;t t
16616 s,@mkinstalldirs@,$mkinstalldirs,;t t
16618 s,@ac_ct_CC@,$ac_ct_CC,;t t
16619 s,@EXEEXT@,$EXEEXT,;t t
16620 s,@OBJEXT@,$OBJEXT,;t t
16622 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16623 s,@CFLAGS@,$CFLAGS,;t t
16624 s,@CXXFLAGS@,$CXXFLAGS,;t t
16625 s,@LDFLAGS@,$LDFLAGS,;t t
16626 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16627 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16628 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16629 s,@CYGPATH_W@,$CYGPATH_W,;t t
16630 s,@PACKAGE@,$PACKAGE,;t t
16631 s,@VERSION@,$VERSION,;t t
16632 s,@ACLOCAL@,$ACLOCAL,;t t
16633 s,@AUTOCONF@,$AUTOCONF,;t t
16634 s,@AUTOMAKE@,$AUTOMAKE,;t t
16635 s,@AUTOHEADER@,$AUTOHEADER,;t t
16636 s,@MAKEINFO@,$MAKEINFO,;t t
16637 s,@install_sh@,$install_sh,;t t
16638 s,@STRIP@,$STRIP,;t t
16639 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16640 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16641 s,@mkdir_p@,$mkdir_p,;t t
16643 s,@SET_MAKE@,$SET_MAKE,;t t
16644 s,@am__leading_dot@,$am__leading_dot,;t t
16645 s,@AMTAR@,$AMTAR,;t t
16646 s,@am__tar@,$am__tar,;t t
16647 s,@am__untar@,$am__untar,;t t
16648 s,@DEPDIR@,$DEPDIR,;t t
16649 s,@am__include@,$am__include,;t t
16650 s,@am__quote@,$am__quote,;t t
16651 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16652 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16653 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16654 s,@CCDEPMODE@,$CCDEPMODE,;t t
16655 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16656 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16657 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16658 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16659 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16661 s,@ac_ct_AS@,$ac_ct_AS,;t t
16663 s,@ac_ct_AR@,$ac_ct_AR,;t t
16664 s,@RANLIB@,$RANLIB,;t t
16665 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16666 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16667 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16668 s,@MAINT@,$MAINT,;t t
16669 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16670 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16671 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16672 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16673 s,@INCLTDL@,$INCLTDL,;t t
16674 s,@LIBLTDL@,$LIBLTDL,;t t
16675 s,@DIRLTDL@,$DIRLTDL,;t t
16676 s,@LIBTOOL@,$LIBTOOL,;t t
16677 s,@CXXCPP@,$CXXCPP,;t t
16678 s,@CPPFLAGS@,$CPPFLAGS,;t t
16680 s,@GCJFLAGS@,$GCJFLAGS,;t t
16681 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16682 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16683 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16684 s,@subdirs@,$subdirs,;t t
16685 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16686 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16687 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16688 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16689 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
16690 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
16691 s,@JAVA_HOME@,$JAVA_HOME,;t t
16692 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16693 s,@INTERPRETER@,$INTERPRETER,;t t
16694 s,@LIBFFI@,$LIBFFI,;t t
16695 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16696 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16698 s,@EGREP@,$EGREP,;t t
16699 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16700 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16701 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16702 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16703 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16704 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16705 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16706 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16707 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16708 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16709 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16710 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16711 s,@X_CFLAGS@,$X_CFLAGS,;t t
16712 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16713 s,@X_LIBS@,$X_LIBS,;t t
16714 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16715 s,@TOOLKIT@,$TOOLKIT,;t t
16716 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16717 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16718 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16719 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16720 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16721 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16722 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16723 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16724 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16725 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16726 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16727 s,@GCLIBS@,$GCLIBS,;t t
16728 s,@GCINCS@,$GCINCS,;t t
16729 s,@GCDEPS@,$GCDEPS,;t t
16730 s,@GCSPEC@,$GCSPEC,;t t
16731 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16732 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16733 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16734 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16735 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16736 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16737 s,@THREADLIBS@,$THREADLIBS,;t t
16738 s,@THREADINCS@,$THREADINCS,;t t
16739 s,@THREADDEPS@,$THREADDEPS,;t t
16740 s,@THREADSPEC@,$THREADSPEC,;t t
16741 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16742 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16743 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16744 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16745 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16746 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16747 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16748 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16749 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16750 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16751 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16752 s,@LIBICONV@,$LIBICONV,;t t
16753 s,@LTLIBICONV@,$LTLIBICONV,;t t
16754 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16755 s,@GTK_LIBS@,$GTK_LIBS,;t t
16756 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16757 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16758 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16759 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16760 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16761 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16762 s,@GCJH@,$GCJH,;t t
16764 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16765 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16766 s,@ZLIBS@,$ZLIBS,;t t
16767 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16768 s,@ZINCS@,$ZINCS,;t t
16769 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16770 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16771 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16772 s,@IEEESPEC@,$IEEESPEC,;t t
16773 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16774 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16775 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16776 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16777 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16778 s,@toolexecdir@,$toolexecdir,;t t
16779 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16780 s,@toolexeclibdir@,$toolexeclibdir,;t t
16781 s,@GCJVERSION@,$GCJVERSION,;t t
16782 s,@gxx_include_dir@,$gxx_include_dir,;t t
16783 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16784 s,@ALLOCA@,$ALLOCA,;t t
16785 s,@PERL@,$PERL,;t t
16786 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16787 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16788 s,@here@,$here,;t t
16789 s,@LIBOBJS@,$LIBOBJS,;t t
16790 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16795 cat >>$CONFIG_STATUS <<\_ACEOF
16796 # Split the substitutions into bite-sized pieces for seds with
16797 # small command number limits, like on Digital OSF/1 and HP-UX.
16798 ac_max_sed_lines=48
16799 ac_sed_frag=1 # Number of current file.
16800 ac_beg=1 # First line for current file.
16801 ac_end=$ac_max_sed_lines # Line after last line for current file.
16804 while $ac_more_lines; do
16805 if test $ac_beg -gt 1; then
16806 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16808 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16810 if test ! -s $tmp/subs.frag; then
16811 ac_more_lines=false
16813 # The purpose of the label and of the branching condition is to
16814 # speed up the sed processing (if there are no `@' at all, there
16815 # is no need to browse any of the substitutions).
16816 # These are the two extra sed commands mentioned above.
16818 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16819 if test -z "$ac_sed_cmds"; then
16820 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16822 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16824 ac_sed_frag=`expr $ac_sed_frag + 1`
16826 ac_end=`expr $ac_end + $ac_max_sed_lines`
16829 if test -z "$ac_sed_cmds"; then
16832 fi # test -n "$CONFIG_FILES"
16835 cat >>$CONFIG_STATUS <<\_ACEOF
16836 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16837 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16839 - | *:- | *:-:* ) # input from stdin
16841 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16842 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16843 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16844 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16845 * ) ac_file_in=$ac_file.in ;;
16848 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16849 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16851 X"$ac_file" : 'X\(//\)[^/]' \| \
16852 X"$ac_file" : 'X\(//\)$' \| \
16853 X"$ac_file" : 'X\(/\)' \| \
16854 . : '\(.\)' 2>/dev/null ||
16856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16858 /^X\(\/\/\)$/{ s//\1/; q; }
16859 /^X\(\/\).*/{ s//\1/; q; }
16861 { if $as_mkdir_p; then
16866 while test ! -d "$as_dir"; do
16867 as_dirs="$as_dir $as_dirs"
16868 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16870 X"$as_dir" : 'X\(//\)[^/]' \| \
16871 X"$as_dir" : 'X\(//\)$' \| \
16872 X"$as_dir" : 'X\(/\)' \| \
16873 . : '\(.\)' 2>/dev/null ||
16875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16877 /^X\(\/\/\)$/{ s//\1/; q; }
16878 /^X\(\/\).*/{ s//\1/; q; }
16881 test ! -n "$as_dirs" || mkdir $as_dirs
16882 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16883 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16884 { (exit 1); exit 1; }; }; }
16888 if test "$ac_dir" != .; then
16889 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16890 # A "../" for each directory in $ac_dir_suffix.
16891 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16893 ac_dir_suffix= ac_top_builddir=
16897 .) # No --srcdir option. We are building in place.
16899 if test -z "$ac_top_builddir"; then
16902 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16904 [\\/]* | ?:[\\/]* ) # Absolute path.
16905 ac_srcdir=$srcdir$ac_dir_suffix;
16906 ac_top_srcdir=$srcdir ;;
16907 *) # Relative path.
16908 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16909 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16912 # Do not use `cd foo && pwd` to compute absolute paths, because
16913 # the directories may not exist.
16915 .) ac_abs_builddir="$ac_dir";;
16918 .) ac_abs_builddir=`pwd`;;
16919 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16920 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16923 case $ac_abs_builddir in
16924 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16926 case ${ac_top_builddir}. in
16927 .) ac_abs_top_builddir=$ac_abs_builddir;;
16928 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16929 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16932 case $ac_abs_builddir in
16933 .) ac_abs_srcdir=$ac_srcdir;;
16936 .) ac_abs_srcdir=$ac_abs_builddir;;
16937 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16938 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16941 case $ac_abs_builddir in
16942 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16944 case $ac_top_srcdir in
16945 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16946 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16947 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16954 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16957 if test x"$ac_file" != x-; then
16958 { echo "$as_me:$LINENO: creating $ac_file" >&5
16959 echo "$as_me: creating $ac_file" >&6;}
16962 # Let's still pretend it is `configure' which instantiates (i.e., don't
16963 # use $as_me), people would be surprised to read:
16964 # /* config.h. Generated by config.status. */
16965 if test x"$ac_file" = x-; then
16968 configure_input="$ac_file. "
16970 configure_input=$configure_input"Generated from `echo $ac_file_in |
16971 sed 's,.*/,,'` by configure."
16973 # First look for the input files in the build tree, otherwise in the
16975 ac_file_inputs=`IFS=:
16976 for f in $ac_file_in; do
16978 -) echo $tmp/stdin ;;
16980 # Absolute (can't be DOS-style, as IFS=:)
16981 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16982 echo "$as_me: error: cannot find input file: $f" >&2;}
16983 { (exit 1); exit 1; }; }
16986 if test -f "$f"; then
16989 elif test -f "$srcdir/$f"; then
16994 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16995 echo "$as_me: error: cannot find input file: $f" >&2;}
16996 { (exit 1); exit 1; }; }
16999 done` || { (exit 1); exit 1; }
17001 cat >>$CONFIG_STATUS <<_ACEOF
17005 cat >>$CONFIG_STATUS <<\_ACEOF
17007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17008 s,@configure_input@,$configure_input,;t t
17009 s,@srcdir@,$ac_srcdir,;t t
17010 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17011 s,@top_srcdir@,$ac_top_srcdir,;t t
17012 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17013 s,@builddir@,$ac_builddir,;t t
17014 s,@abs_builddir@,$ac_abs_builddir,;t t
17015 s,@top_builddir@,$ac_top_builddir,;t t
17016 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17017 s,@INSTALL@,$ac_INSTALL,;t t
17018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17020 if test x"$ac_file" != x-; then
17021 mv $tmp/out $ac_file
17029 cat >>$CONFIG_STATUS <<\_ACEOF
17032 # CONFIG_HEADER section.
17035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17038 # ac_d sets the value in "#define NAME VALUE" lines.
17039 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17040 ac_dB='[ ].*$,\1#\2'
17043 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17044 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17045 ac_uB='$,\1#\2define\3'
17049 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17052 - | *:- | *:-:* ) # input from stdin
17054 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17056 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17058 * ) ac_file_in=$ac_file.in ;;
17061 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17062 echo "$as_me: creating $ac_file" >&6;}
17064 # First look for the input files in the build tree, otherwise in the
17066 ac_file_inputs=`IFS=:
17067 for f in $ac_file_in; do
17069 -) echo $tmp/stdin ;;
17071 # Absolute (can't be DOS-style, as IFS=:)
17072 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17073 echo "$as_me: error: cannot find input file: $f" >&2;}
17074 { (exit 1); exit 1; }; }
17075 # Do quote $f, to prevent DOS paths from being IFS'd.
17078 if test -f "$f"; then
17081 elif test -f "$srcdir/$f"; then
17086 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17087 echo "$as_me: error: cannot find input file: $f" >&2;}
17088 { (exit 1); exit 1; }; }
17091 done` || { (exit 1); exit 1; }
17092 # Remove the trailing spaces.
17093 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17097 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17098 # `conftest.undefs', that substitutes the proper values into
17099 # config.h.in to produce config.h. The first handles `#define'
17100 # templates, and the second `#undef' templates.
17101 # And first: Protect against being on the right side of a sed subst in
17102 # config.status. Protect against being in an unquoted here document
17103 # in config.status.
17104 rm -f conftest.defines conftest.undefs
17105 # Using a here document instead of a string reduces the quoting nightmare.
17106 # Putting comments in sed scripts is not portable.
17108 # `end' is used to avoid that the second main sed command (meant for
17109 # 0-ary CPP macros) applies to n-ary macro definitions.
17110 # See the Autoconf documentation for `clear'.
17111 cat >confdef2sed.sed <<\_ACEOF
17116 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17118 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17121 # If some macros were called several times there might be several times
17122 # the same #defines, which is useless. Nevertheless, we may not want to
17123 # sort them, since we want the *last* AC-DEFINE to be honored.
17124 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17125 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17126 rm -f confdef2sed.sed
17128 # This sed command replaces #undef with comments. This is necessary, for
17129 # example, in the case of _POSIX_SOURCE, which is predefined and required
17130 # on some systems where configure will not decide to define it.
17131 cat >>conftest.undefs <<\_ACEOF
17132 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17135 # Break up conftest.defines because some shells have a limit on the size
17136 # of here documents, and old seds have small limits too (100 cmds).
17137 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17138 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17139 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17140 echo ' :' >>$CONFIG_STATUS
17141 rm -f conftest.tail
17142 while grep . conftest.defines >/dev/null
17144 # Write a limited-size here document to $tmp/defines.sed.
17145 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17146 # Speed up: don't consider the non `#define' lines.
17147 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17148 # Work around the forget-to-reset-the-flag bug.
17149 echo 't clr' >>$CONFIG_STATUS
17150 echo ': clr' >>$CONFIG_STATUS
17151 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17153 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17155 mv $tmp/out $tmp/in
17157 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17158 rm -f conftest.defines
17159 mv conftest.tail conftest.defines
17161 rm -f conftest.defines
17162 echo ' fi # grep' >>$CONFIG_STATUS
17163 echo >>$CONFIG_STATUS
17165 # Break up conftest.undefs because some shells have a limit on the size
17166 # of here documents, and old seds have small limits too (100 cmds).
17167 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17168 rm -f conftest.tail
17169 while grep . conftest.undefs >/dev/null
17171 # Write a limited-size here document to $tmp/undefs.sed.
17172 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17173 # Speed up: don't consider the non `#undef'
17174 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17175 # Work around the forget-to-reset-the-flag bug.
17176 echo 't clr' >>$CONFIG_STATUS
17177 echo ': clr' >>$CONFIG_STATUS
17178 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17180 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17182 mv $tmp/out $tmp/in
17184 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17185 rm -f conftest.undefs
17186 mv conftest.tail conftest.undefs
17188 rm -f conftest.undefs
17190 cat >>$CONFIG_STATUS <<\_ACEOF
17191 # Let's still pretend it is `configure' which instantiates (i.e., don't
17192 # use $as_me), people would be surprised to read:
17193 # /* config.h. Generated by config.status. */
17194 if test x"$ac_file" = x-; then
17195 echo "/* Generated by configure. */" >$tmp/config.h
17197 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17199 cat $tmp/in >>$tmp/config.h
17201 if test x"$ac_file" != x-; then
17202 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17203 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17204 echo "$as_me: $ac_file is unchanged" >&6;}
17206 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17208 X"$ac_file" : 'X\(//\)[^/]' \| \
17209 X"$ac_file" : 'X\(//\)$' \| \
17210 X"$ac_file" : 'X\(/\)' \| \
17211 . : '\(.\)' 2>/dev/null ||
17213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17214 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17215 /^X\(\/\/\)$/{ s//\1/; q; }
17216 /^X\(\/\).*/{ s//\1/; q; }
17218 { if $as_mkdir_p; then
17223 while test ! -d "$as_dir"; do
17224 as_dirs="$as_dir $as_dirs"
17225 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17226 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17227 X"$as_dir" : 'X\(//\)[^/]' \| \
17228 X"$as_dir" : 'X\(//\)$' \| \
17229 X"$as_dir" : 'X\(/\)' \| \
17230 . : '\(.\)' 2>/dev/null ||
17232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17233 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17234 /^X\(\/\/\)$/{ s//\1/; q; }
17235 /^X\(\/\).*/{ s//\1/; q; }
17238 test ! -n "$as_dirs" || mkdir $as_dirs
17239 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17240 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17241 { (exit 1); exit 1; }; }; }
17244 mv $tmp/config.h $ac_file
17248 rm -f $tmp/config.h
17250 # Compute $ac_file's index in $config_headers.
17252 for _am_header in $config_headers :; do
17253 case $_am_header in
17254 $ac_file | $ac_file:* )
17257 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17260 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17261 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17262 X$ac_file : 'X\(//\)[^/]' \| \
17263 X$ac_file : 'X\(//\)$' \| \
17264 X$ac_file : 'X\(/\)' \| \
17265 . : '\(.\)' 2>/dev/null ||
17267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17269 /^X\(\/\/\)$/{ s//\1/; q; }
17270 /^X\(\/\).*/{ s//\1/; q; }
17271 s/.*/./; q'`/stamp-h$_am_stamp_count
17274 cat >>$CONFIG_STATUS <<\_ACEOF
17277 # CONFIG_LINKS section.
17280 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17281 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17282 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17284 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17285 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17287 if test ! -r $srcdir/$ac_source; then
17288 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17289 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17290 { (exit 1); exit 1; }; }
17294 # Make relative symlinks.
17295 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17296 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17297 X"$ac_dest" : 'X\(//\)[^/]' \| \
17298 X"$ac_dest" : 'X\(//\)$' \| \
17299 X"$ac_dest" : 'X\(/\)' \| \
17300 . : '\(.\)' 2>/dev/null ||
17302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17304 /^X\(\/\/\)$/{ s//\1/; q; }
17305 /^X\(\/\).*/{ s//\1/; q; }
17307 { if $as_mkdir_p; then
17308 mkdir -p "$ac_dest_dir"
17310 as_dir="$ac_dest_dir"
17312 while test ! -d "$as_dir"; do
17313 as_dirs="$as_dir $as_dirs"
17314 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17316 X"$as_dir" : 'X\(//\)[^/]' \| \
17317 X"$as_dir" : 'X\(//\)$' \| \
17318 X"$as_dir" : 'X\(/\)' \| \
17319 . : '\(.\)' 2>/dev/null ||
17321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17323 /^X\(\/\/\)$/{ s//\1/; q; }
17324 /^X\(\/\).*/{ s//\1/; q; }
17327 test ! -n "$as_dirs" || mkdir $as_dirs
17328 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17329 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17330 { (exit 1); exit 1; }; }; }
17334 if test "$ac_dest_dir" != .; then
17335 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17336 # A "../" for each directory in $ac_dir_suffix.
17337 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17339 ac_dir_suffix= ac_top_builddir=
17343 .) # No --srcdir option. We are building in place.
17345 if test -z "$ac_top_builddir"; then
17348 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17350 [\\/]* | ?:[\\/]* ) # Absolute path.
17351 ac_srcdir=$srcdir$ac_dir_suffix;
17352 ac_top_srcdir=$srcdir ;;
17353 *) # Relative path.
17354 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17355 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17358 # Do not use `cd foo && pwd` to compute absolute paths, because
17359 # the directories may not exist.
17361 .) ac_abs_builddir="$ac_dest_dir";;
17363 case "$ac_dest_dir" in
17364 .) ac_abs_builddir=`pwd`;;
17365 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17366 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17369 case $ac_abs_builddir in
17370 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17372 case ${ac_top_builddir}. in
17373 .) ac_abs_top_builddir=$ac_abs_builddir;;
17374 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17375 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17378 case $ac_abs_builddir in
17379 .) ac_abs_srcdir=$ac_srcdir;;
17382 .) ac_abs_srcdir=$ac_abs_builddir;;
17383 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17384 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17387 case $ac_abs_builddir in
17388 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17390 case $ac_top_srcdir in
17391 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17392 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17393 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17399 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17400 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17403 # Try a symlink, then a hard link, then a copy.
17404 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17405 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17406 cp -p $srcdir/$ac_source $ac_dest ||
17407 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17408 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17409 { (exit 1); exit 1; }; }
17412 cat >>$CONFIG_STATUS <<\_ACEOF
17415 # CONFIG_COMMANDS section.
17417 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17418 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17419 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17420 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17421 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17422 X"$ac_dest" : 'X\(//\)[^/]' \| \
17423 X"$ac_dest" : 'X\(//\)$' \| \
17424 X"$ac_dest" : 'X\(/\)' \| \
17425 . : '\(.\)' 2>/dev/null ||
17427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17428 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17429 /^X\(\/\/\)$/{ s//\1/; q; }
17430 /^X\(\/\).*/{ s//\1/; q; }
17432 { if $as_mkdir_p; then
17437 while test ! -d "$as_dir"; do
17438 as_dirs="$as_dir $as_dirs"
17439 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17440 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17441 X"$as_dir" : 'X\(//\)[^/]' \| \
17442 X"$as_dir" : 'X\(//\)$' \| \
17443 X"$as_dir" : 'X\(/\)' \| \
17444 . : '\(.\)' 2>/dev/null ||
17446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17447 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17448 /^X\(\/\/\)$/{ s//\1/; q; }
17449 /^X\(\/\).*/{ s//\1/; q; }
17452 test ! -n "$as_dirs" || mkdir $as_dirs
17453 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17454 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17455 { (exit 1); exit 1; }; }; }
17459 if test "$ac_dir" != .; then
17460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17461 # A "../" for each directory in $ac_dir_suffix.
17462 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17464 ac_dir_suffix= ac_top_builddir=
17468 .) # No --srcdir option. We are building in place.
17470 if test -z "$ac_top_builddir"; then
17473 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17475 [\\/]* | ?:[\\/]* ) # Absolute path.
17476 ac_srcdir=$srcdir$ac_dir_suffix;
17477 ac_top_srcdir=$srcdir ;;
17478 *) # Relative path.
17479 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17480 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17483 # Do not use `cd foo && pwd` to compute absolute paths, because
17484 # the directories may not exist.
17486 .) ac_abs_builddir="$ac_dir";;
17489 .) ac_abs_builddir=`pwd`;;
17490 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17491 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17494 case $ac_abs_builddir in
17495 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17497 case ${ac_top_builddir}. in
17498 .) ac_abs_top_builddir=$ac_abs_builddir;;
17499 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17500 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17503 case $ac_abs_builddir in
17504 .) ac_abs_srcdir=$ac_srcdir;;
17507 .) ac_abs_srcdir=$ac_abs_builddir;;
17508 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17509 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17512 case $ac_abs_builddir in
17513 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17515 case $ac_top_srcdir in
17516 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17517 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17518 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17523 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17524 echo "$as_me: executing $ac_dest commands" >&6;}
17526 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17527 # Strip MF so we end up with the name of the file.
17528 mf=`echo "$mf" | sed -e 's/:.*$//'`
17529 # Check whether this is an Automake generated Makefile or not.
17530 # We used to match only the files named `Makefile.in', but
17531 # some people rename them; so instead we look at the file content.
17532 # Grep'ing the first line is not enough: some people post-process
17533 # each Makefile.in and add a new line on top of each file to say so.
17534 # So let's grep whole file.
17535 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17536 dirpart=`(dirname "$mf") 2>/dev/null ||
17537 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17538 X"$mf" : 'X\(//\)[^/]' \| \
17539 X"$mf" : 'X\(//\)$' \| \
17540 X"$mf" : 'X\(/\)' \| \
17541 . : '\(.\)' 2>/dev/null ||
17543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17545 /^X\(\/\/\)$/{ s//\1/; q; }
17546 /^X\(\/\).*/{ s//\1/; q; }
17551 # Extract the definition of DEPDIR, am__include, and am__quote
17552 # from the Makefile without running `make'.
17553 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17554 test -z "$DEPDIR" && continue
17555 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17556 test -z "am__include" && continue
17557 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17558 # When using ansi2knr, U may be empty or an underscore; expand it
17559 U=`sed -n 's/^U = //p' < "$mf"`
17560 # Find all dependency output files, they are included files with
17561 # $(DEPDIR) in their names. We invoke sed twice because it is the
17562 # simplest approach to changing $(DEPDIR) to its actual value in the
17564 for file in `sed -n "
17565 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17566 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17567 # Make sure the directory exists.
17568 test -f "$dirpart/$file" && continue
17569 fdir=`(dirname "$file") 2>/dev/null ||
17570 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17571 X"$file" : 'X\(//\)[^/]' \| \
17572 X"$file" : 'X\(//\)$' \| \
17573 X"$file" : 'X\(/\)' \| \
17574 . : '\(.\)' 2>/dev/null ||
17576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17578 /^X\(\/\/\)$/{ s//\1/; q; }
17579 /^X\(\/\).*/{ s//\1/; q; }
17581 { if $as_mkdir_p; then
17582 mkdir -p $dirpart/$fdir
17584 as_dir=$dirpart/$fdir
17586 while test ! -d "$as_dir"; do
17587 as_dirs="$as_dir $as_dirs"
17588 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17590 X"$as_dir" : 'X\(//\)[^/]' \| \
17591 X"$as_dir" : 'X\(//\)$' \| \
17592 X"$as_dir" : 'X\(/\)' \| \
17593 . : '\(.\)' 2>/dev/null ||
17595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17597 /^X\(\/\/\)$/{ s//\1/; q; }
17598 /^X\(\/\).*/{ s//\1/; q; }
17601 test ! -n "$as_dirs" || mkdir $as_dirs
17602 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17603 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17604 { (exit 1); exit 1; }; }; }
17606 # echo "creating $dirpart/$file"
17607 echo '# dummy' > "$dirpart/$file"
17611 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17612 case " $CONFIG_FILES " in
17614 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17615 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17618 for ac_multi_file in $CONFIG_FILES; do
17619 case $ac_multi_file in
17621 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
17629 cat >>$CONFIG_STATUS <<\_ACEOF
17631 { (exit 0); exit 0; }
17633 chmod +x $CONFIG_STATUS
17634 ac_clean_files=$ac_clean_files_save
17637 # configure is writing to config.log, and then calls config.status.
17638 # config.status does its own redirection, appending to config.log.
17639 # Unfortunately, on DOS this fails, as config.log is still kept open
17640 # by configure, so config.status won't be able to write to it; its
17641 # output is simply discarded. So we exec the FD to /dev/null,
17642 # effectively closing config.log, so it can be properly (re)opened and
17643 # appended to by config.status. When coming back to configure, we
17644 # need to make the FD available again.
17645 if test "$no_create" != yes; then
17647 ac_config_status_args=
17648 test "$silent" = yes &&
17649 ac_config_status_args="$ac_config_status_args --quiet"
17651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17654 # would make configure fail if this is the last instruction.
17655 $ac_cs_success || { (exit 1); exit 1; }
17659 # CONFIG_SUBDIRS section.
17661 if test "$no_recursion" != yes; then
17663 # Remove --cache-file and --srcdir arguments so they do not pile up.
17664 ac_sub_configure_args=
17666 for ac_arg in $ac_configure_args; do
17667 if test -n "$ac_prev"; then
17672 -cache-file | --cache-file | --cache-fil | --cache-fi \
17673 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17674 ac_prev=cache_file ;;
17675 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17676 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17679 --config-cache | -C)
17681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17685 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17687 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17689 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17693 # Always prepend --prefix to ensure using the same prefix
17694 # in subdir configurations.
17695 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17698 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17700 # Do not complain, so a configure script can configure whichever
17701 # parts of a large source tree are present.
17702 test -d $srcdir/$ac_dir || continue
17704 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17705 echo "$as_me: configuring in $ac_dir" >&6;}
17706 { if $as_mkdir_p; then
17711 while test ! -d "$as_dir"; do
17712 as_dirs="$as_dir $as_dirs"
17713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17714 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17715 X"$as_dir" : 'X\(//\)[^/]' \| \
17716 X"$as_dir" : 'X\(//\)$' \| \
17717 X"$as_dir" : 'X\(/\)' \| \
17718 . : '\(.\)' 2>/dev/null ||
17720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17722 /^X\(\/\/\)$/{ s//\1/; q; }
17723 /^X\(\/\).*/{ s//\1/; q; }
17726 test ! -n "$as_dirs" || mkdir $as_dirs
17727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17728 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17729 { (exit 1); exit 1; }; }; }
17733 if test "$ac_dir" != .; then
17734 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17735 # A "../" for each directory in $ac_dir_suffix.
17736 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17738 ac_dir_suffix= ac_top_builddir=
17742 .) # No --srcdir option. We are building in place.
17744 if test -z "$ac_top_builddir"; then
17747 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17749 [\\/]* | ?:[\\/]* ) # Absolute path.
17750 ac_srcdir=$srcdir$ac_dir_suffix;
17751 ac_top_srcdir=$srcdir ;;
17752 *) # Relative path.
17753 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17754 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17757 # Do not use `cd foo && pwd` to compute absolute paths, because
17758 # the directories may not exist.
17760 .) ac_abs_builddir="$ac_dir";;
17763 .) ac_abs_builddir=`pwd`;;
17764 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17765 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17768 case $ac_abs_builddir in
17769 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17771 case ${ac_top_builddir}. in
17772 .) ac_abs_top_builddir=$ac_abs_builddir;;
17773 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17774 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17777 case $ac_abs_builddir in
17778 .) ac_abs_srcdir=$ac_srcdir;;
17781 .) ac_abs_srcdir=$ac_abs_builddir;;
17782 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17783 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17786 case $ac_abs_builddir in
17787 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17789 case $ac_top_srcdir in
17790 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17791 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17792 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17799 # Check for guested configure; otherwise get Cygnus style configure.
17800 if test -f $ac_srcdir/configure.gnu; then
17801 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17802 elif test -f $ac_srcdir/configure; then
17803 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17804 elif test -f $ac_srcdir/configure.in; then
17805 ac_sub_configure=$ac_configure
17807 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17808 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17812 # The recursion is here.
17813 if test -n "$ac_sub_configure"; then
17814 # Make the cache file name correct relative to the subdirectory.
17815 case $cache_file in
17816 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17817 *) # Relative path.
17818 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17821 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17822 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17823 # The eval makes quoting arguments work.
17824 eval $ac_sub_configure $ac_sub_configure_args \
17825 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17826 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17827 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17828 { (exit 1); exit 1; }; }