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 libgcj_basedir build build_cpu build_vendor build_os 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 COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE 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 tool_include_dir gcc_version 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 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-win32-nlsapi=ansi or unicows or unicode
893 native MinGW libgcj Win32 OS API (default is ansi)
894 --without-libffi don't use libffi
895 --with-ecos enable runtime eCos target support
896 --with-system-zlib use installed libz
897 --with-x use the X Window System
898 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
899 --without-libiconv-prefix don't search for libiconv in includedir and libdir
901 Some influential environment variables:
902 CC C compiler command
903 CFLAGS C compiler flags
904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
905 nonstandard directory <lib dir>
906 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
907 headers in a nonstandard directory <include dir>
908 CXX C++ compiler command
909 CXXFLAGS C++ compiler flags
910 CXXCPP C++ preprocessor
913 Use these variables to override the choices made by `configure' or to help
914 it to find libraries and programs with nonstandard names/locations.
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
926 if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 ac_dir_suffix= ac_top_builddir=
935 .) # No --srcdir option. We are building in place.
937 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
953 .) ac_abs_builddir="$ac_dir";;
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
1000 $ac_configure --help
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1011 libjava configure version-unused
1012 generated by GNU Autoconf 2.59
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1025 It was created by libjava $as_me version-unused, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1085 ac_must_keep_next=false
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1114 -* ) ac_must_keep_next=true ;;
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1143 # The following way of writing the cache mishandles newlines in values,
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1166 for ac_var in $ac_subst_vars
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1173 if test -n "$ac_subst_files"; then
1180 for ac_var in $ac_subst_files
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1188 if test -s confdefs.h; then
1195 sed "/^$/d" confdefs.h | sort
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1216 # Predefined preprocessor variables.
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1252 for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1278 # Check that the precious variables saved in the cache have kept the same
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1300 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1301 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1302 echo "$as_me: former value: $ac_old_val" >&2;}
1303 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1304 echo "$as_me: current value: $ac_new_val" >&2;}
1305 ac_cache_corrupted=:
1308 # Pass precious variables to config.status.
1309 if test "$ac_new_set" = set; then
1311 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1312 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1313 *) ac_arg=$ac_var=$ac_new_val ;;
1315 case " $ac_configure_args " in
1316 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1317 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1321 if $ac_cache_corrupted; then
1322 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1323 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1324 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1325 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1326 { (exit 1); exit 1; }; }
1330 ac_cpp='$CPP $CPPFLAGS'
1331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364 # We use these options to decide which functions to include.
1366 # Check whether --with-target-subdir or --without-target-subdir was given.
1367 if test "${with_target_subdir+set}" = set; then
1368 withval="$with_target_subdir"
1372 # We may get other options which we don't document:
1373 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1375 # When building with srcdir == objdir, links to the source files will
1376 # be created in directories within the target_subdir. We have to
1377 # adjust toplevel_srcdir accordingly, so that configure finds
1378 # install-sh and other auxiliary files that live in the top-level
1380 if test "${srcdir}" = "."; then
1381 if test -z "${with_target_subdir}"; then
1384 if test "${with_target_subdir}" != "."; then
1385 toprel="${with_multisrctop}../.."
1387 toprel="${with_multisrctop}.."
1394 libgcj_basedir=$srcdir/$toprel/./libjava
1398 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1399 if test -f $ac_dir/install-sh; then
1401 ac_install_sh="$ac_aux_dir/install-sh -c"
1403 elif test -f $ac_dir/install.sh; then
1405 ac_install_sh="$ac_aux_dir/install.sh -c"
1407 elif test -f $ac_dir/shtool; then
1409 ac_install_sh="$ac_aux_dir/shtool install -c"
1413 if test -z "$ac_aux_dir"; then
1414 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1415 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1416 { (exit 1); exit 1; }; }
1418 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1419 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1420 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1422 # Make sure we can run config.sub.
1423 $ac_config_sub sun4 >/dev/null 2>&1 ||
1424 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1425 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1426 { (exit 1); exit 1; }; }
1428 echo "$as_me:$LINENO: checking build system type" >&5
1429 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1430 if test "${ac_cv_build+set}" = set; then
1431 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 ac_cv_build_alias=$build_alias
1434 test -z "$ac_cv_build_alias" &&
1435 ac_cv_build_alias=`$ac_config_guess`
1436 test -z "$ac_cv_build_alias" &&
1437 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1438 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1439 { (exit 1); exit 1; }; }
1440 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1441 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1443 { (exit 1); exit 1; }; }
1446 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1447 echo "${ECHO_T}$ac_cv_build" >&6
1449 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 echo "$as_me:$LINENO: checking host system type" >&5
1455 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1456 if test "${ac_cv_host+set}" = set; then
1457 echo $ECHO_N "(cached) $ECHO_C" >&6
1459 ac_cv_host_alias=$host_alias
1460 test -z "$ac_cv_host_alias" &&
1461 ac_cv_host_alias=$ac_cv_build_alias
1462 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1463 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1465 { (exit 1); exit 1; }; }
1468 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1469 echo "${ECHO_T}$ac_cv_host" >&6
1471 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1476 echo "$as_me:$LINENO: checking target system type" >&5
1477 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1478 if test "${ac_cv_target+set}" = set; then
1479 echo $ECHO_N "(cached) $ECHO_C" >&6
1481 ac_cv_target_alias=$target_alias
1482 test "x$ac_cv_target_alias" = "x" &&
1483 ac_cv_target_alias=$ac_cv_host_alias
1484 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1485 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1486 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1487 { (exit 1); exit 1; }; }
1490 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1491 echo "${ECHO_T}$ac_cv_target" >&6
1492 target=$ac_cv_target
1493 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1494 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1495 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1498 # The aliases save the names the user supplied, while $host etc.
1499 # will get canonicalized.
1500 test -n "$target_alias" &&
1501 test "$program_prefix$program_suffix$program_transform_name" = \
1503 program_prefix=${target_alias}-
1504 case ${build_alias} in
1505 "") build_noncanonical=${build} ;;
1506 *) build_noncanonical=${build_alias} ;;
1509 case ${host_alias} in
1510 "") host_noncanonical=${build_noncanonical} ;;
1511 *) host_noncanonical=${host_alias} ;;
1514 case ${target_alias} in
1515 "") target_noncanonical=${host_noncanonical} ;;
1516 *) target_noncanonical=${target_alias} ;;
1522 # This works around the fact that libtool configuration may change LD
1523 # for this particular configuration, but some shells, instead of
1524 # keeping the changes in LD private, export them just because LD is
1526 ORIGINAL_LD_FOR_MULTILIBS=$LD
1528 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1529 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1531 if test "$LN_S" = "ln -s"; then
1532 echo "$as_me:$LINENO: result: yes" >&5
1533 echo "${ECHO_T}yes" >&6
1535 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1536 echo "${ECHO_T}no, using $LN_S" >&6
1540 # This works around an automake problem.
1541 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1545 # Check whether --with-cross-host or --without-cross-host was given.
1546 if test "${with_cross_host+set}" = set; then
1547 withval="$with_cross_host"
1552 # Check whether --with-newlib or --without-newlib was given.
1553 if test "${with_newlib+set}" = set; then
1554 withval="$with_newlib"
1558 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1559 if test "${enable_version_specific_runtime_libs+set}" = set; then
1560 enableval="$enable_version_specific_runtime_libs"
1561 case "$enableval" in
1562 yes) version_specific_libs=yes ;;
1563 no) version_specific_libs=no ;;
1564 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1565 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1566 { (exit 1); exit 1; }; };;
1569 version_specific_libs=no
1573 # Default to --enable-multilib
1574 # Check whether --enable-multilib or --disable-multilib was given.
1575 if test "${enable_multilib+set}" = set; then
1576 enableval="$enable_multilib"
1577 case "${enableval}" in
1578 yes) multilib=yes ;;
1580 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1581 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1582 { (exit 1); exit 1; }; } ;;
1587 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1590 # (1) We use an abnormal CXX (without library references), so we
1591 # must cache it under a different name.
1592 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1593 # the non-multilib-adjusted value will be used in multilibs.
1594 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1595 # (4) As another side effect, automake doesn't automatically include them
1597 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1598 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1599 # used in later tests. This may not be necessary in libjava; I don't know.
1603 save_CXXFLAGS="$CXXFLAGS"
1604 CXXFLAGS="$CXXFLAGS -fno-builtin"
1606 ac_cpp='$CPP $CPPFLAGS'
1607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1610 if test -n "$ac_tool_prefix"; then
1611 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1612 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1613 echo "$as_me:$LINENO: checking for $ac_word" >&5
1614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1615 if test "${ac_cv_prog_CC+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC="$CC" # Let the user override the test.
1621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 test -z "$as_dir" && as_dir=.
1626 for ac_exec_ext in '' $ac_executable_extensions; do
1627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1628 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 if test -n "$CC"; then
1639 echo "$as_me:$LINENO: result: $CC" >&5
1640 echo "${ECHO_T}$CC" >&6
1642 echo "$as_me:$LINENO: result: no" >&5
1643 echo "${ECHO_T}no" >&6
1647 if test -z "$ac_cv_prog_CC"; then
1649 # Extract the first word of "gcc", so it can be a program name with args.
1650 set dummy gcc; ac_word=$2
1651 echo "$as_me:$LINENO: checking for $ac_word" >&5
1652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1654 echo $ECHO_N "(cached) $ECHO_C" >&6
1656 if test -n "$ac_ct_CC"; then
1657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 ac_cv_prog_ac_ct_CC="gcc"
1667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1676 if test -n "$ac_ct_CC"; then
1677 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1678 echo "${ECHO_T}$ac_ct_CC" >&6
1680 echo "$as_me:$LINENO: result: no" >&5
1681 echo "${ECHO_T}no" >&6
1689 if test -z "$CC"; then
1690 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1692 set dummy ${ac_tool_prefix}cc; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_CC+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$CC"; then
1699 ac_cv_prog_CC="$CC" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_CC="${ac_tool_prefix}cc"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test -n "$CC"; then
1719 echo "$as_me:$LINENO: result: $CC" >&5
1720 echo "${ECHO_T}$CC" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1727 if test -z "$ac_cv_prog_CC"; then
1729 # Extract the first word of "cc", so it can be a program name with args.
1730 set dummy cc; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$ac_ct_CC"; then
1737 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_CC="cc"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1755 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756 if test -n "$ac_ct_CC"; then
1757 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1758 echo "${ECHO_T}$ac_ct_CC" >&6
1760 echo "$as_me:$LINENO: result: no" >&5
1761 echo "${ECHO_T}no" >&6
1770 if test -z "$CC"; then
1771 # Extract the first word of "cc", so it can be a program name with args.
1772 set dummy cc; ac_word=$2
1773 echo "$as_me:$LINENO: checking for $ac_word" >&5
1774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775 if test "${ac_cv_prog_CC+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
1778 if test -n "$CC"; then
1779 ac_cv_prog_CC="$CC" # Let the user override the test.
1782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1786 test -z "$as_dir" && as_dir=.
1787 for ac_exec_ext in '' $ac_executable_extensions; do
1788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1790 ac_prog_rejected=yes
1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1800 if test $ac_prog_rejected = yes; then
1801 # We found a bogon in the path, so make sure we never use it.
1802 set dummy $ac_cv_prog_CC
1804 if test $# != 0; then
1805 # We chose a different compiler from the bogus one.
1806 # However, it has the same basename, so the bogon will be chosen
1807 # first if we set CC to just the basename; use the full file name.
1809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1815 if test -n "$CC"; then
1816 echo "$as_me:$LINENO: result: $CC" >&5
1817 echo "${ECHO_T}$CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1824 if test -z "$CC"; then
1825 if test -n "$ac_tool_prefix"; then
1828 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1829 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$CC"; then
1836 ac_cv_prog_CC="$CC" # Let the user override the test.
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 if test -n "$CC"; then
1856 echo "$as_me:$LINENO: result: $CC" >&5
1857 echo "${ECHO_T}$CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 test -n "$CC" && break
1866 if test -z "$CC"; then
1870 # Extract the first word of "$ac_prog", so it can be a program name with args.
1871 set dummy $ac_prog; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test -n "$ac_ct_CC"; then
1878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_ac_ct_CC="$ac_prog"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1897 if test -n "$ac_ct_CC"; then
1898 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1899 echo "${ECHO_T}$ac_ct_CC" >&6
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1905 test -n "$ac_ct_CC" && break
1914 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: no acceptable C compiler found in \$PATH
1917 See \`config.log' for more details." >&2;}
1918 { (exit 1); exit 1; }; }
1920 # Provide some information about the compiler.
1921 echo "$as_me:$LINENO:" \
1922 "checking for C compiler version" >&5
1923 ac_compiler=`set X $ac_compile; echo $2`
1924 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1925 (eval $ac_compiler --version </dev/null >&5) 2>&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }
1929 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1930 (eval $ac_compiler -v </dev/null >&5) 2>&5
1932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933 (exit $ac_status); }
1934 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1935 (eval $ac_compiler -V </dev/null >&5) 2>&5
1937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938 (exit $ac_status); }
1940 cat >conftest.$ac_ext <<_ACEOF
1943 cat confdefs.h >>conftest.$ac_ext
1944 cat >>conftest.$ac_ext <<_ACEOF
1945 /* end confdefs.h. */
1956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1957 (eval $ac_link) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }; then
1966 if test x$gcc_no_link = xyes; then
1967 # Setting cross_compile will disable run tests; it will
1968 # also disable AC_CHECK_FILE but that's generally
1969 # correct if we can't link.
1973 cat >conftest.$ac_ext <<_ACEOF
1976 cat confdefs.h >>conftest.$ac_ext
1977 cat >>conftest.$ac_ext <<_ACEOF
1978 /* end confdefs.h. */
1988 ac_clean_files_save=$ac_clean_files
1989 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1990 # Try to create an executable without -o first, disregard a.out.
1991 # It will help us diagnose broken compilers, and finding out an intuition
1993 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1994 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1995 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1996 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1997 (eval $ac_link_default) 2>&5
1999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2000 (exit $ac_status); }; then
2001 # Find the output, starting from the most likely. This scheme is
2002 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2005 # Be careful to initialize this variable, since it used to be cached.
2006 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2008 # b.out is created by i960 compilers.
2009 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2011 test -f "$ac_file" || continue
2013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2016 # This is the source file.
2019 # We found the default executable, but exeext='' is most
2023 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2024 # FIXME: I believe we export ac_cv_exeext for Libtool,
2025 # but it would be cool to find out if it's true. Does anybody
2026 # maintain Libtool? --akim.
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2037 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: C compiler cannot create executables
2040 See \`config.log' for more details." >&2;}
2041 { (exit 77); exit 77; }; }
2044 ac_exeext=$ac_cv_exeext
2045 echo "$as_me:$LINENO: result: $ac_file" >&5
2046 echo "${ECHO_T}$ac_file" >&6
2048 # Check the compiler produces executables we can run. If not, either
2049 # the compiler is broken, or we cross compile.
2050 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2051 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2052 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2053 # If not cross compiling, check that we can run a simple program.
2054 if test "$cross_compiling" != yes; then
2055 if { ac_try='./$ac_file'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; }; then
2063 if test "$cross_compiling" = maybe; then
2066 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2067 If you meant to cross compile, use \`--host'.
2068 See \`config.log' for more details." >&5
2069 echo "$as_me: error: cannot run C compiled programs.
2070 If you meant to cross compile, use \`--host'.
2071 See \`config.log' for more details." >&2;}
2072 { (exit 1); exit 1; }; }
2076 echo "$as_me:$LINENO: result: yes" >&5
2077 echo "${ECHO_T}yes" >&6
2079 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2080 ac_clean_files=$ac_clean_files_save
2081 # Check the compiler produces executables we can run. If not, either
2082 # the compiler is broken, or we cross compile.
2083 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2085 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2086 echo "${ECHO_T}$cross_compiling" >&6
2088 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2091 (eval $ac_link) 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; then
2095 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2096 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2097 # work properly (i.e., refer to `conftest.exe'), while it won't with
2099 for ac_file in conftest.exe conftest conftest.*; do
2100 test -f "$ac_file" || continue
2102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2103 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2111 See \`config.log' for more details." >&5
2112 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2113 See \`config.log' for more details." >&2;}
2114 { (exit 1); exit 1; }; }
2117 rm -f conftest$ac_cv_exeext
2118 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2119 echo "${ECHO_T}$ac_cv_exeext" >&6
2121 rm -f conftest.$ac_ext
2122 EXEEXT=$ac_cv_exeext
2125 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2126 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2127 if test "${ac_cv_objext+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 cat >conftest.$ac_ext <<_ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2145 rm -f conftest.o conftest.obj
2146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147 (eval $ac_compile) 2>&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2154 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2162 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2163 See \`config.log' for more details." >&5
2164 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2165 See \`config.log' for more details." >&2;}
2166 { (exit 1); exit 1; }; }
2169 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2171 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2172 echo "${ECHO_T}$ac_cv_objext" >&6
2173 OBJEXT=$ac_cv_objext
2175 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2176 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2177 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 cat >conftest.$ac_ext <<_ACEOF
2183 cat confdefs.h >>conftest.$ac_ext
2184 cat >>conftest.$ac_ext <<_ACEOF
2185 /* end confdefs.h. */
2198 rm -f conftest.$ac_objext
2199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>conftest.er1
2202 grep -v '^ *+' conftest.er1 >conftest.err
2204 cat conftest.err >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); } &&
2207 { ac_try='test -z "$ac_c_werror_flag"
2208 || test ! -s conftest.err'
2209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); }; } &&
2214 { ac_try='test -s conftest.$ac_objext'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; }; then
2222 echo "$as_me: failed program was:" >&5
2223 sed 's/^/| /' conftest.$ac_ext >&5
2227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2231 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2232 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2233 GCC=`test $ac_compiler_gnu = yes && echo yes`
2234 ac_test_CFLAGS=${CFLAGS+set}
2235 ac_save_CFLAGS=$CFLAGS
2237 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2238 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2239 if test "${ac_cv_prog_cc_g+set}" = set; then
2240 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 cat >conftest.$ac_ext <<_ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2257 rm -f conftest.$ac_objext
2258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2259 (eval $ac_compile) 2>conftest.er1
2261 grep -v '^ *+' conftest.er1 >conftest.err
2263 cat conftest.err >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
2266 { ac_try='test -z "$ac_c_werror_flag"
2267 || test ! -s conftest.err'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2281 echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2288 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2289 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2290 if test "$ac_test_CFLAGS" = set; then
2291 CFLAGS=$ac_save_CFLAGS
2292 elif test $ac_cv_prog_cc_g = yes; then
2293 if test "$GCC" = yes; then
2299 if test "$GCC" = yes; then
2305 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2306 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2307 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 ac_cv_prog_cc_stdc=no
2312 cat >conftest.$ac_ext <<_ACEOF
2315 cat confdefs.h >>conftest.$ac_ext
2316 cat >>conftest.$ac_ext <<_ACEOF
2317 /* end confdefs.h. */
2320 #include <sys/types.h>
2321 #include <sys/stat.h>
2322 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2323 struct buf { int x; };
2324 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2325 static char *e (p, i)
2331 static char *f (char * (*g) (char **, int), char **p, ...)
2336 s = g (p, va_arg (v,int));
2341 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2342 function prototypes and stuff, but not '\xHH' hex character constants.
2343 These don't provoke an error unfortunately, instead are silently treated
2344 as 'x'. The following induces an error, until -std1 is added to get
2345 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2346 array size at least. It's necessary to write '\x00'==0 to get something
2347 that's true only with -std1. */
2348 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2350 int test (int i, double x);
2351 struct s1 {int (*f) (int a);};
2352 struct s2 {int (*f) (double a);};
2353 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2359 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2364 # Don't try gcc -ansi; that turns off useful extensions and
2365 # breaks some systems' header files.
2366 # AIX -qlanglvl=ansi
2367 # Ultrix and OSF/1 -std1
2368 # HP-UX 10.20 and later -Ae
2369 # HP-UX older versions -Aa -D_HPUX_SOURCE
2370 # SVR4 -Xc -D__EXTENSIONS__
2371 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2373 CC="$ac_save_CC $ac_arg"
2374 rm -f conftest.$ac_objext
2375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2376 (eval $ac_compile) 2>conftest.er1
2378 grep -v '^ *+' conftest.er1 >conftest.err
2380 cat conftest.err >&5
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); } &&
2383 { ac_try='test -z "$ac_c_werror_flag"
2384 || test ! -s conftest.err'
2385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); }; } &&
2390 { ac_try='test -s conftest.$ac_objext'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; }; then
2396 ac_cv_prog_cc_stdc=$ac_arg
2399 echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2403 rm -f conftest.err conftest.$ac_objext
2405 rm -f conftest.$ac_ext conftest.$ac_objext
2410 case "x$ac_cv_prog_cc_stdc" in
2412 echo "$as_me:$LINENO: result: none needed" >&5
2413 echo "${ECHO_T}none needed" >&6 ;;
2415 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2416 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2417 CC="$CC $ac_cv_prog_cc_stdc" ;;
2420 # Some people use a C++ compiler to compile C. Since we use `exit',
2421 # in C++ we need to declare it. In case someone uses the same compiler
2422 # for both compiling C and C++ we need to have the C++ compiler decide
2423 # the declaration of exit, since it's the most demanding environment.
2424 cat >conftest.$ac_ext <<_ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>conftest.er1
2433 grep -v '^ *+' conftest.er1 >conftest.err
2435 cat conftest.err >&5
2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
2438 { ac_try='test -z "$ac_c_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 for ac_declaration in \
2453 'extern "C" void std::exit (int) throw (); using std::exit;' \
2454 'extern "C" void std::exit (int); using std::exit;' \
2455 'extern "C" void exit (int) throw ();' \
2456 'extern "C" void exit (int);' \
2459 cat >conftest.$ac_ext <<_ACEOF
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2475 rm -f conftest.$ac_objext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477 (eval $ac_compile) 2>conftest.er1
2479 grep -v '^ *+' conftest.er1 >conftest.err
2481 cat conftest.err >&5
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); } &&
2484 { ac_try='test -z "$ac_c_werror_flag"
2485 || test ! -s conftest.err'
2486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }; } &&
2491 { ac_try='test -s conftest.$ac_objext'
2492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); }; }; then
2499 echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2505 cat >conftest.$ac_ext <<_ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2520 rm -f conftest.$ac_objext
2521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522 (eval $ac_compile) 2>conftest.er1
2524 grep -v '^ *+' conftest.er1 >conftest.err
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -z "$ac_c_werror_flag"
2530 || test ! -s conftest.err'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; } &&
2536 { ac_try='test -s conftest.$ac_objext'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2551 if test -n "$ac_declaration"; then
2552 echo '#ifdef __cplusplus' >>confdefs.h
2553 echo $ac_declaration >>confdefs.h
2554 echo '#endif' >>confdefs.h
2558 echo "$as_me: failed program was:" >&5
2559 sed 's/^/| /' conftest.$ac_ext >&5
2562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570 ac_cpp='$CXXCPP $CPPFLAGS'
2571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2574 if test -n "$ac_tool_prefix"; then
2575 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2577 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2578 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2579 echo "$as_me:$LINENO: checking for $ac_word" >&5
2580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2581 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 if test -n "$CXX"; then
2585 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2591 test -z "$as_dir" && as_dir=.
2592 for ac_exec_ext in '' $ac_executable_extensions; do
2593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2594 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 CXX=$glibcxx_cv_prog_CXX
2604 if test -n "$CXX"; then
2605 echo "$as_me:$LINENO: result: $CXX" >&5
2606 echo "${ECHO_T}$CXX" >&6
2608 echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6
2612 test -n "$CXX" && break
2615 if test -z "$CXX"; then
2617 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2619 # Extract the first word of "$ac_prog", so it can be a program name with args.
2620 set dummy $ac_prog; ac_word=$2
2621 echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2623 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 if test -n "$ac_ct_CXX"; then
2627 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2636 ac_cv_prog_ac_ct_CXX="$ac_prog"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2646 if test -n "$ac_ct_CXX"; then
2647 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2648 echo "${ECHO_T}$ac_ct_CXX" >&6
2650 echo "$as_me:$LINENO: result: no" >&5
2651 echo "${ECHO_T}no" >&6
2654 test -n "$ac_ct_CXX" && break
2656 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO:" \
2664 "checking for C++ compiler version" >&5
2665 ac_compiler=`set X $ac_compile; echo $2`
2666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2667 (eval $ac_compiler --version </dev/null >&5) 2>&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2672 (eval $ac_compiler -v </dev/null >&5) 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2677 (eval $ac_compiler -V </dev/null >&5) 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); }
2682 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2683 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2684 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2705 rm -f conftest.$ac_objext
2706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2707 (eval $ac_compile) 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_cxx_werror_flag"
2715 || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
2722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2729 echo "$as_me: failed program was:" >&5
2730 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2735 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2738 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2739 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2740 GXX=`test $ac_compiler_gnu = yes && echo yes`
2741 ac_test_CXXFLAGS=${CXXFLAGS+set}
2742 ac_save_CXXFLAGS=$CXXFLAGS
2744 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2745 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2746 if test "${ac_cv_prog_cxx_g+set}" = set; then
2747 echo $ECHO_N "(cached) $ECHO_C" >&6
2749 cat >conftest.$ac_ext <<_ACEOF
2752 cat confdefs.h >>conftest.$ac_ext
2753 cat >>conftest.$ac_ext <<_ACEOF
2754 /* end confdefs.h. */
2764 rm -f conftest.$ac_objext
2765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766 (eval $ac_compile) 2>conftest.er1
2768 grep -v '^ *+' conftest.er1 >conftest.err
2770 cat conftest.err >&5
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } &&
2773 { ac_try='test -z "$ac_cxx_werror_flag"
2774 || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2786 ac_cv_prog_cxx_g=yes
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2795 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2796 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2797 if test "$ac_test_CXXFLAGS" = set; then
2798 CXXFLAGS=$ac_save_CXXFLAGS
2799 elif test $ac_cv_prog_cxx_g = yes; then
2800 if test "$GXX" = yes; then
2806 if test "$GXX" = yes; then
2812 for ac_declaration in \
2814 'extern "C" void std::exit (int) throw (); using std::exit;' \
2815 'extern "C" void std::exit (int); using std::exit;' \
2816 'extern "C" void exit (int) throw ();' \
2817 'extern "C" void exit (int);' \
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2836 rm -f conftest.$ac_objext
2837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2838 (eval $ac_compile) 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } &&
2845 { ac_try='test -z "$ac_cxx_werror_flag"
2846 || test ! -s conftest.err'
2847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; } &&
2852 { ac_try='test -s conftest.$ac_objext'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; }; then
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2881 rm -f conftest.$ac_objext
2882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2883 (eval $ac_compile) 2>conftest.er1
2885 grep -v '^ *+' conftest.er1 >conftest.err
2887 cat conftest.err >&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -z "$ac_cxx_werror_flag"
2891 || test ! -s conftest.err'
2892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }; } &&
2897 { ac_try='test -s conftest.$ac_objext'
2898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }; }; then
2905 echo "$as_me: failed program was:" >&5
2906 sed 's/^/| /' conftest.$ac_ext >&5
2909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2912 if test -n "$ac_declaration"; then
2913 echo '#ifdef __cplusplus' >>confdefs.h
2914 echo $ac_declaration >>confdefs.h
2915 echo '#endif' >>confdefs.h
2919 ac_cpp='$CPP $CPPFLAGS'
2920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2924 CXXFLAGS="$save_CXXFLAGS"
2930 am__api_version="1.9"
2931 # Find a good install program. We prefer a C program (faster),
2932 # so one script is as good as another. But avoid the broken or
2933 # incompatible versions:
2934 # SysV /etc/install, /usr/sbin/install
2935 # SunOS /usr/etc/install
2936 # IRIX /sbin/install
2938 # AmigaOS /C/install, which installs bootblocks on floppy discs
2939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2942 # OS/2's system install, which has a completely different semantic
2943 # ./install, which can be erroneously created by make from ./install.sh.
2944 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2945 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2946 if test -z "$INSTALL"; then
2947 if test "${ac_cv_path_install+set}" = set; then
2948 echo $ECHO_N "(cached) $ECHO_C" >&6
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir=.
2955 # Account for people who put trailing slashes in PATH elements.
2957 ./ | .// | /cC/* | \
2958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2959 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2962 # OSF1 and SCO ODT 3.0 have their own names for install.
2963 # Don't use installbsd from OSF since it installs stuff as root
2965 for ac_prog in ginstall scoinst install; do
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2968 if test $ac_prog = install &&
2969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2970 # AIX install. It has an incompatible calling convention.
2972 elif test $ac_prog = install &&
2973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2974 # program-specific install script used by HP pwplus--don't use.
2977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2989 if test "${ac_cv_path_install+set}" = set; then
2990 INSTALL=$ac_cv_path_install
2992 # As a last resort, use the slow shell script. We don't cache a
2993 # path for INSTALL within a source directory, because that will
2994 # break other packages using the cache if that directory is
2995 # removed, or if the path is relative.
2996 INSTALL=$ac_install_sh
2999 echo "$as_me:$LINENO: result: $INSTALL" >&5
3000 echo "${ECHO_T}$INSTALL" >&6
3002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3003 # It thinks the first close brace ends the variable substitution.
3004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3008 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3010 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3011 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3014 echo timestamp > conftest.file
3015 # Do `set' in a subshell so we don't clobber the current shell's
3016 # arguments. Must try -L first in case configure is actually a
3017 # symlink; some systems play weird games with the mod time of symlinks
3018 # (eg FreeBSD returns the mod time of the symlink's containing
3021 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3022 if test "$*" = "X"; then
3024 set X `ls -t $srcdir/configure conftest.file`
3027 if test "$*" != "X $srcdir/configure conftest.file" \
3028 && test "$*" != "X conftest.file $srcdir/configure"; then
3030 # If neither matched, then we have a broken ls. This can happen
3031 # if, for instance, CONFIG_SHELL is bash and it inherits a
3032 # broken ls alias from the environment. This has actually
3033 # happened. Such a system could not be considered "sane".
3034 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3035 alias in your environment" >&5
3036 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3037 alias in your environment" >&2;}
3038 { (exit 1); exit 1; }; }
3041 test "$2" = conftest.file
3047 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3048 Check your system clock" >&5
3049 echo "$as_me: error: newly created file is older than distributed files!
3050 Check your system clock" >&2;}
3051 { (exit 1); exit 1; }; }
3053 echo "$as_me:$LINENO: result: yes" >&5
3054 echo "${ECHO_T}yes" >&6
3055 test "$program_prefix" != NONE &&
3056 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3057 # Use a double $ so make ignores it.
3058 test "$program_suffix" != NONE &&
3059 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3060 # Double any \ or $. echo might interpret backslashes.
3061 # By default was `s,x,x', remove it if useless.
3062 cat <<\_ACEOF >conftest.sed
3063 s/[\\$]/&&/g;s/;s,x,x,$//
3065 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3068 # expand $ac_aux_dir to an absolute path
3069 am_aux_dir=`cd $ac_aux_dir && pwd`
3071 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3072 # Use eval to expand $SHELL
3073 if eval "$MISSING --run true"; then
3074 am_missing_run="$MISSING --run "
3077 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3078 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3081 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3082 # We used to keeping the `.' as first argument, in order to
3083 # allow $(mkdir_p) to be used without argument. As in
3084 # $(mkdir_p) $(somedir)
3085 # where $(somedir) is conditionally defined. However this is wrong
3087 # 1. if the package is installed by a user who cannot write `.'
3088 # make install will fail,
3089 # 2. the above comment should most certainly read
3090 # $(mkdir_p) $(DESTDIR)$(somedir)
3091 # so it does not work when $(somedir) is undefined and
3092 # $(DESTDIR) is not.
3093 # To support the latter case, we have to write
3094 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3095 # so the `.' trick is pointless.
3096 mkdir_p='mkdir -p --'
3098 # On NextStep and OpenStep, the `mkdir' command does not
3099 # recognize any option. It will interpret all options as
3100 # directories to create, and then abort because `.' already
3102 for d in ./-p ./--version;
3104 test -d $d && rmdir $d
3106 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3107 if test -f "$ac_aux_dir/mkinstalldirs"; then
3108 mkdir_p='$(mkinstalldirs)'
3110 mkdir_p='$(install_sh) -d'
3114 for ac_prog in gawk mawk nawk awk
3116 # Extract the first word of "$ac_prog", so it can be a program name with args.
3117 set dummy $ac_prog; ac_word=$2
3118 echo "$as_me:$LINENO: checking for $ac_word" >&5
3119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3120 if test "${ac_cv_prog_AWK+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 if test -n "$AWK"; then
3124 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_AWK="$ac_prog"
3134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test -n "$AWK"; then
3144 echo "$as_me:$LINENO: result: $AWK" >&5
3145 echo "${ECHO_T}$AWK" >&6
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3151 test -n "$AWK" && break
3154 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3155 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3156 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3157 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3160 cat >conftest.make <<\_ACEOF
3162 @echo 'ac_maketemp="$(MAKE)"'
3164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3165 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3166 if test -n "$ac_maketemp"; then
3167 eval ac_cv_prog_make_${ac_make}_set=yes
3169 eval ac_cv_prog_make_${ac_make}_set=no
3173 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3174 echo "$as_me:$LINENO: result: yes" >&5
3175 echo "${ECHO_T}yes" >&6
3178 echo "$as_me:$LINENO: result: no" >&5
3179 echo "${ECHO_T}no" >&6
3180 SET_MAKE="MAKE=${MAKE-make}"
3183 rm -rf .tst 2>/dev/null
3184 mkdir .tst 2>/dev/null
3185 if test -d .tst; then
3190 rmdir .tst 2>/dev/null
3192 DEPDIR="${am__leading_dot}deps"
3194 ac_config_commands="$ac_config_commands depfiles"
3197 am_make=${MAKE-make}
3198 cat > confinc << 'END'
3203 # If we don't find an include directive, just comment out the code.
3204 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3205 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3209 # First try GNU make style include.
3210 echo "include confinc" > confmf
3211 # We grep out `Entering directory' and `Leaving directory'
3212 # messages which can occur if `w' ends up in MAKEFLAGS.
3213 # In particular we don't look at `^make:' because GNU make might
3214 # be invoked under some other name (usually "gmake"), in which
3215 # case it prints its new name instead of `make'.
3216 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3221 # Now try BSD make style include.
3222 if test "$am__include" = "#"; then
3223 echo '.include "confinc"' > confmf
3224 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3225 am__include=.include
3232 echo "$as_me:$LINENO: result: $_am_result" >&5
3233 echo "${ECHO_T}$_am_result" >&6
3234 rm -f confinc confmf
3236 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3237 if test "${enable_dependency_tracking+set}" = set; then
3238 enableval="$enable_dependency_tracking"
3241 if test "x$enable_dependency_tracking" != xno; then
3242 am_depcomp="$ac_aux_dir/depcomp"
3247 if test "x$enable_dependency_tracking" != xno; then
3257 # test to see if srcdir already configured
3258 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3259 test -f $srcdir/config.status; then
3260 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3261 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3262 { (exit 1); exit 1; }; }
3265 # test whether we have cygpath
3266 if test -z "$CYGPATH_W"; then
3267 if (cygpath --version) >/dev/null 2>/dev/null; then
3268 CYGPATH_W='cygpath -w'
3275 # Define the identity of the package.
3277 VERSION='version-unused'
3280 cat >>confdefs.h <<_ACEOF
3281 #define PACKAGE "$PACKAGE"
3285 cat >>confdefs.h <<_ACEOF
3286 #define VERSION "$VERSION"
3289 # Some tools Automake needs.
3291 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3294 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3300 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3303 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3305 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3307 # Installed binaries are usually stripped using `strip' when the user
3308 # run `make install-strip'. However `strip' might not be the right
3309 # tool to use in cross-compilation environments, therefore Automake
3310 # will honor the `STRIP' environment variable to overrule this program.
3311 if test "$cross_compiling" != no; then
3312 if test -n "$ac_tool_prefix"; then
3313 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}strip; ac_word=$2
3315 echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3317 if test "${ac_cv_prog_STRIP+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$STRIP"; then
3321 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir=.
3328 for ac_exec_ext in '' $ac_executable_extensions; do
3329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3339 STRIP=$ac_cv_prog_STRIP
3340 if test -n "$STRIP"; then
3341 echo "$as_me:$LINENO: result: $STRIP" >&5
3342 echo "${ECHO_T}$STRIP" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3349 if test -z "$ac_cv_prog_STRIP"; then
3351 # Extract the first word of "strip", so it can be a program name with args.
3352 set dummy strip; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 if test -n "$ac_ct_STRIP"; then
3359 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_STRIP="strip"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3378 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3379 if test -n "$ac_ct_STRIP"; then
3380 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3381 echo "${ECHO_T}$ac_ct_STRIP" >&6
3383 echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6
3389 STRIP="$ac_cv_prog_STRIP"
3393 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3395 # We need awk for the "check" target. The system "awk" is bad on
3397 # Always define AMTAR for backward compatibility.
3399 AMTAR=${AMTAR-"${am_missing_run}tar"}
3401 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3406 depcc="$CC" am_compiler_list=
3408 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3409 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3410 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
3413 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3414 # We make a subdir and do the tests there. Otherwise we can end up
3415 # making bogus files that we don't know about and never remove. For
3416 # instance it was reported that on HP-UX the gcc test will end up
3417 # making a dummy file named `D' -- because `-MD' means `put the output
3420 # Copy depcomp to subdir because otherwise we won't find it if we're
3421 # using a relative directory.
3422 cp "$am_depcomp" conftest.dir
3424 # We will build objects and dependencies in a subdirectory because
3425 # it helps to detect inapplicable dependency modes. For instance
3426 # both Tru64's cc and ICC support -MD to output dependencies as a
3427 # side effect of compilation, but ICC will put the dependencies in
3428 # the current directory while Tru64 will put them in the object
3432 am_cv_CC_dependencies_compiler_type=none
3433 if test "$am_compiler_list" = ""; then
3434 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3436 for depmode in $am_compiler_list; do
3437 # Setup a source with many dependencies, because some compilers
3438 # like to wrap large dependency lists on column 80 (with \), and
3439 # we should not choose a depcomp mode which is confused by this.
3441 # We need to recreate these files for each test, as the compiler may
3442 # overwrite some of them when testing with obscure command lines.
3443 # This happens at least with the AIX C compiler.
3445 for i in 1 2 3 4 5 6; do
3446 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3447 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3448 # Solaris 8's {/usr,}/bin/sh.
3449 touch sub/conftst$i.h
3451 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3455 # after this tag, mechanisms are not by side-effect, so they'll
3456 # only be used when explicitly requested
3457 if test "x$enable_dependency_tracking" = xyes; then
3465 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3466 # mode. It turns out that the SunPro C++ compiler does not properly
3467 # handle `-M -o', and we need to detect this.
3468 if depmode=$depmode \
3469 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3471 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3472 >/dev/null 2>conftest.err &&
3473 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3474 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3475 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3476 # icc doesn't choke on unknown options, it will just issue warnings
3477 # or remarks (even with -Werror). So we grep stderr for any message
3478 # that says an option was ignored or not supported.
3479 # When given -MP, icc 7.0 and 7.1 complain thusly:
3480 # icc: Command line warning: ignoring option '-M'; no argument required
3481 # The diagnosis changed in icc 8.0:
3482 # icc: Command line remark: option '-MP' not supported
3483 if (grep 'ignoring option' conftest.err ||
3484 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3485 am_cv_CC_dependencies_compiler_type=$depmode
3494 am_cv_CC_dependencies_compiler_type=none
3498 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3499 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3500 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3505 test "x$enable_dependency_tracking" != xno \
3506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3508 am__fastdepCC_FALSE='#'
3510 am__fastdepCC_TRUE='#'
3511 am__fastdepCC_FALSE=
3515 depcc="$CXX" am_compiler_list=
3517 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3518 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3519 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3523 # We make a subdir and do the tests there. Otherwise we can end up
3524 # making bogus files that we don't know about and never remove. For
3525 # instance it was reported that on HP-UX the gcc test will end up
3526 # making a dummy file named `D' -- because `-MD' means `put the output
3529 # Copy depcomp to subdir because otherwise we won't find it if we're
3530 # using a relative directory.
3531 cp "$am_depcomp" conftest.dir
3533 # We will build objects and dependencies in a subdirectory because
3534 # it helps to detect inapplicable dependency modes. For instance
3535 # both Tru64's cc and ICC support -MD to output dependencies as a
3536 # side effect of compilation, but ICC will put the dependencies in
3537 # the current directory while Tru64 will put them in the object
3541 am_cv_CXX_dependencies_compiler_type=none
3542 if test "$am_compiler_list" = ""; then
3543 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3545 for depmode in $am_compiler_list; do
3546 # Setup a source with many dependencies, because some compilers
3547 # like to wrap large dependency lists on column 80 (with \), and
3548 # we should not choose a depcomp mode which is confused by this.
3550 # We need to recreate these files for each test, as the compiler may
3551 # overwrite some of them when testing with obscure command lines.
3552 # This happens at least with the AIX C compiler.
3554 for i in 1 2 3 4 5 6; do
3555 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3556 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3557 # Solaris 8's {/usr,}/bin/sh.
3558 touch sub/conftst$i.h
3560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3564 # after this tag, mechanisms are not by side-effect, so they'll
3565 # only be used when explicitly requested
3566 if test "x$enable_dependency_tracking" = xyes; then
3574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3575 # mode. It turns out that the SunPro C++ compiler does not properly
3576 # handle `-M -o', and we need to detect this.
3577 if depmode=$depmode \
3578 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3580 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3581 >/dev/null 2>conftest.err &&
3582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3583 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3585 # icc doesn't choke on unknown options, it will just issue warnings
3586 # or remarks (even with -Werror). So we grep stderr for any message
3587 # that says an option was ignored or not supported.
3588 # When given -MP, icc 7.0 and 7.1 complain thusly:
3589 # icc: Command line warning: ignoring option '-M'; no argument required
3590 # The diagnosis changed in icc 8.0:
3591 # icc: Command line remark: option '-MP' not supported
3592 if (grep 'ignoring option' conftest.err ||
3593 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3594 am_cv_CXX_dependencies_compiler_type=$depmode
3603 am_cv_CXX_dependencies_compiler_type=none
3607 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3608 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3609 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3614 test "x$enable_dependency_tracking" != xno \
3615 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3616 am__fastdepCXX_TRUE=
3617 am__fastdepCXX_FALSE='#'
3619 am__fastdepCXX_TRUE='#'
3620 am__fastdepCXX_FALSE=
3626 if test -n "$ac_tool_prefix"; then
3627 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3628 set dummy ${ac_tool_prefix}as; ac_word=$2
3629 echo "$as_me:$LINENO: checking for $ac_word" >&5
3630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3631 if test "${ac_cv_prog_AS+set}" = set; then
3632 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 if test -n "$AS"; then
3635 ac_cv_prog_AS="$AS" # Let the user override the test.
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_prog_AS="${ac_tool_prefix}as"
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 if test -n "$AS"; then
3655 echo "$as_me:$LINENO: result: $AS" >&5
3656 echo "${ECHO_T}$AS" >&6
3658 echo "$as_me:$LINENO: result: no" >&5
3659 echo "${ECHO_T}no" >&6
3663 if test -z "$ac_cv_prog_AS"; then
3665 # Extract the first word of "as", so it can be a program name with args.
3666 set dummy as; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 if test -n "$ac_ct_AS"; then
3673 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_ac_ct_AS="as"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3692 if test -n "$ac_ct_AS"; then
3693 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3694 echo "${ECHO_T}$ac_ct_AS" >&6
3696 echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6
3705 if test -n "$ac_tool_prefix"; then
3706 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3707 set dummy ${ac_tool_prefix}ar; ac_word=$2
3708 echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3710 if test "${ac_cv_prog_AR+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 if test -n "$AR"; then
3714 ac_cv_prog_AR="$AR" # Let the user override the test.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_prog_AR="${ac_tool_prefix}ar"
3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3733 if test -n "$AR"; then
3734 echo "$as_me:$LINENO: result: $AR" >&5
3735 echo "${ECHO_T}$AR" >&6
3737 echo "$as_me:$LINENO: result: no" >&5
3738 echo "${ECHO_T}no" >&6
3742 if test -z "$ac_cv_prog_AR"; then
3744 # Extract the first word of "ar", so it can be a program name with args.
3745 set dummy ar; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 if test -n "$ac_ct_AR"; then
3752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_ac_ct_AR="ar"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3771 if test -n "$ac_ct_AR"; then
3772 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3773 echo "${ECHO_T}$ac_ct_AR" >&6
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3787 echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3789 if test "${ac_cv_prog_RANLIB+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 if test -n "$RANLIB"; then
3793 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 RANLIB=$ac_cv_prog_RANLIB
3812 if test -n "$RANLIB"; then
3813 echo "$as_me:$LINENO: result: $RANLIB" >&5
3814 echo "${ECHO_T}$RANLIB" >&6
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3821 if test -z "$ac_cv_prog_RANLIB"; then
3822 ac_ct_RANLIB=$RANLIB
3823 # Extract the first word of "ranlib", so it can be a program name with args.
3824 set dummy ranlib; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 if test -n "$ac_ct_RANLIB"; then
3831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for ac_exec_ext in '' $ac_executable_extensions; do
3839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3840 ac_cv_prog_ac_ct_RANLIB="ranlib"
3841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3851 if test -n "$ac_ct_RANLIB"; then
3852 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3853 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3855 echo "$as_me:$LINENO: result: no" >&5
3856 echo "${ECHO_T}no" >&6
3859 RANLIB=$ac_ct_RANLIB
3861 RANLIB="$ac_cv_prog_RANLIB"
3865 # Find a good install program. We prefer a C program (faster),
3866 # so one script is as good as another. But avoid the broken or
3867 # incompatible versions:
3868 # SysV /etc/install, /usr/sbin/install
3869 # SunOS /usr/etc/install
3870 # IRIX /sbin/install
3872 # AmigaOS /C/install, which installs bootblocks on floppy discs
3873 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3874 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3875 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3876 # OS/2's system install, which has a completely different semantic
3877 # ./install, which can be erroneously created by make from ./install.sh.
3878 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3879 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3880 if test -z "$INSTALL"; then
3881 if test "${ac_cv_path_install+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir=.
3889 # Account for people who put trailing slashes in PATH elements.
3891 ./ | .// | /cC/* | \
3892 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3893 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3896 # OSF1 and SCO ODT 3.0 have their own names for install.
3897 # Don't use installbsd from OSF since it installs stuff as root
3899 for ac_prog in ginstall scoinst install; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3902 if test $ac_prog = install &&
3903 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3904 # AIX install. It has an incompatible calling convention.
3906 elif test $ac_prog = install &&
3907 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3908 # program-specific install script used by HP pwplus--don't use.
3911 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3923 if test "${ac_cv_path_install+set}" = set; then
3924 INSTALL=$ac_cv_path_install
3926 # As a last resort, use the slow shell script. We don't cache a
3927 # path for INSTALL within a source directory, because that will
3928 # break other packages using the cache if that directory is
3929 # removed, or if the path is relative.
3930 INSTALL=$ac_install_sh
3933 echo "$as_me:$LINENO: result: $INSTALL" >&5
3934 echo "${ECHO_T}$INSTALL" >&6
3936 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3937 # It thinks the first close brace ends the variable substitution.
3938 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3940 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3942 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3945 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3946 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3947 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3948 if test "${enable_maintainer_mode+set}" = set; then
3949 enableval="$enable_maintainer_mode"
3950 USE_MAINTAINER_MODE=$enableval
3952 USE_MAINTAINER_MODE=no
3954 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3955 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3958 if test $USE_MAINTAINER_MODE = yes; then
3959 MAINTAINER_MODE_TRUE=
3960 MAINTAINER_MODE_FALSE='#'
3962 MAINTAINER_MODE_TRUE='#'
3963 MAINTAINER_MODE_FALSE=
3966 MAINT=$MAINTAINER_MODE_TRUE
3972 # configure.host sets the following important variables
3973 # libgcj_cflags - host specific C compiler flags
3974 # libgcj_cxxflags - host specific C++ compiler flags
3975 # libgcj_javaflags - host specific Java compiler flags
3981 . ${srcdir}/configure.host
3983 LIBGCJ_CFLAGS="${libgcj_cflags}"
3984 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3985 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3986 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
3992 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3995 # Only use libltdl for non-newlib builds.
3996 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3997 case $enable_ltdl_convenience in
3998 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3999 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4000 { (exit 1); exit 1; }; } ;;
4001 "") enable_ltdl_convenience=yes
4002 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4004 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4005 INCLTDL='-I${top_srcdir}/''libltdl'
4010 cat >>confdefs.h <<\_ACEOF
4014 # Sigh. Libtool's macro doesn't do the right thing.
4015 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4016 # FIXME: this is a hack.
4017 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4018 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4023 # Check whether --enable-shared or --disable-shared was given.
4024 if test "${enable_shared+set}" = set; then
4025 enableval="$enable_shared"
4026 p=${PACKAGE-default}
4028 yes) enable_shared=yes ;;
4029 no) enable_shared=no ;;
4032 # Look at the argument we got. We use all the common list separators.
4033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4034 for pkg in $enableval; do
4035 if test "X$pkg" = "X$p"; then
4045 # Check whether --enable-static or --disable-static was given.
4046 if test "${enable_static+set}" = set; then
4047 enableval="$enable_static"
4048 p=${PACKAGE-default}
4050 yes) enable_static=yes ;;
4051 no) enable_static=no ;;
4054 # Look at the argument we got. We use all the common list separators.
4055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4056 for pkg in $enableval; do
4057 if test "X$pkg" = "X$p"; then
4067 # Check whether --enable-fast-install or --disable-fast-install was given.
4068 if test "${enable_fast_install+set}" = set; then
4069 enableval="$enable_fast_install"
4070 p=${PACKAGE-default}
4072 yes) enable_fast_install=yes ;;
4073 no) enable_fast_install=no ;;
4075 enable_fast_install=no
4076 # Look at the argument we got. We use all the common list separators.
4077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4078 for pkg in $enableval; do
4079 if test "X$pkg" = "X$p"; then
4080 enable_fast_install=yes
4087 enable_fast_install=yes
4090 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4091 if test "${with_gnu_ld+set}" = set; then
4092 withval="$with_gnu_ld"
4093 test "$withval" = no || with_gnu_ld=yes
4098 if test "$GCC" = yes; then
4099 # Check if gcc -print-prog-name=ld gives a path.
4100 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4101 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4104 # gcc leaves a trailing carriage return which upsets mingw
4105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4110 # Accept absolute paths.
4111 [\\/]* | [A-Za-z]:[\\/]*)
4112 re_direlt='/[^/][^/]*/\.\./'
4113 # Canonicalize the path of ld
4114 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4116 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4118 test -z "$LD" && LD="$ac_prog"
4121 # If it fails, then pretend we aren't using GCC.
4125 # If it is relative, then search for the first ld in PATH.
4129 elif test "$with_gnu_ld" = yes; then
4130 echo "$as_me:$LINENO: checking for GNU ld" >&5
4131 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4133 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4134 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4136 if test "${lt_cv_path_LD+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 if test -z "$LD"; then
4140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4141 for ac_dir in $PATH; do
4142 test -z "$ac_dir" && ac_dir=.
4143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4144 lt_cv_path_LD="$ac_dir/$ac_prog"
4145 # Check to see if the program is GNU ld. I'd rather use --version,
4146 # but apparently some GNU ld's only accept -v.
4147 # Break only if it was the GNU/non-GNU ld that we prefer.
4148 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4149 test "$with_gnu_ld" != no && break
4151 test "$with_gnu_ld" != yes && break
4157 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4162 if test -n "$LD"; then
4163 echo "$as_me:$LINENO: result: $LD" >&5
4164 echo "${ECHO_T}$LD" >&6
4166 echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6
4169 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4170 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4171 { (exit 1); exit 1; }; }
4172 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4173 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4174 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4178 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4179 lt_cv_prog_gnu_ld=yes
4181 lt_cv_prog_gnu_ld=no
4184 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4185 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4186 with_gnu_ld=$lt_cv_prog_gnu_ld
4189 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4190 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4191 if test "${lt_cv_ld_reload_flag+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4194 lt_cv_ld_reload_flag='-r'
4196 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4197 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4198 reload_flag=$lt_cv_ld_reload_flag
4199 test -n "$reload_flag" && reload_flag=" $reload_flag"
4201 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4202 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4203 if test "${lt_cv_path_NM+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 if test -n "$NM"; then
4207 # Let the user override the test.
4210 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4211 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4212 test -z "$ac_dir" && ac_dir=.
4213 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4214 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4215 # Check to see if the nm accepts a BSD-compat flag.
4216 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4217 # nm: unknown option "B" ignored
4218 # Tru64's nm complains that /dev/null is an invalid object file
4219 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4220 lt_cv_path_NM="$tmp_nm -B"
4222 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4223 lt_cv_path_NM="$tmp_nm -p"
4226 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4227 continue # so that we can try to find one that supports BSD flags
4232 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4237 echo "$as_me:$LINENO: result: $NM" >&5
4238 echo "${ECHO_T}$NM" >&6
4240 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4241 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4242 if test "${lt_cv_deplibs_check_method+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 lt_cv_file_magic_cmd='$MAGIC_CMD'
4246 lt_cv_file_magic_test_file=
4247 lt_cv_deplibs_check_method='unknown'
4248 # Need to set the preceding variable on all platforms that support
4249 # interlibrary dependencies.
4250 # 'none' -- dependencies not supported.
4251 # `unknown' -- same as none, but documents that we really don't know.
4252 # 'pass_all' -- all dependencies passed with no checks.
4253 # 'test_compile' -- check by making test program.
4254 # 'file_magic [regex]' -- check by looking for files in library path
4255 # which responds to the $file_magic_cmd with a given egrep regex.
4256 # If you have `file' or equivalent on your system and you're not sure
4257 # whether `pass_all' will *always* work, you probably want this one.
4261 lt_cv_deplibs_check_method=pass_all
4265 lt_cv_deplibs_check_method=pass_all
4269 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4270 lt_cv_file_magic_cmd='/usr/bin/file -L'
4271 lt_cv_file_magic_test_file=/shlib/libc.so
4274 cygwin* | mingw* |pw32*)
4275 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4276 lt_cv_file_magic_cmd='$OBJDUMP -f'
4279 darwin* | rhapsody*)
4280 # this will be overwritten by pass_all, but leave it in just in case
4281 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4282 lt_cv_file_magic_cmd='/usr/bin/file -L'
4284 rhapsody* | darwin1.012)
4285 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4288 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4291 lt_cv_deplibs_check_method=pass_all
4294 freebsd* | kfreebsd*-gnu)
4295 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4298 # Not sure whether the presence of OpenBSD here was a mistake.
4299 # Let's accept both of them until this is cleared up.
4300 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4301 lt_cv_file_magic_cmd=/usr/bin/file
4302 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4306 lt_cv_deplibs_check_method=pass_all
4311 lt_cv_deplibs_check_method=pass_all
4317 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4318 lt_cv_file_magic_cmd=/usr/bin/file
4319 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4323 lt_cv_file_magic_cmd=/usr/bin/file
4324 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4332 # this will be overridden with pass_all, but let us keep it just in case
4333 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4337 *-32|*"-32 ") libmagic=32-bit;;
4338 *-n32|*"-n32 ") libmagic=N32;;
4339 *-64|*"-64 ") libmagic=64-bit;;
4340 *) libmagic=never-match;;
4342 # this will be overridden with pass_all, but let us keep it just in case
4343 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4346 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4347 lt_cv_deplibs_check_method=pass_all
4350 # This must be Linux ELF.
4352 lt_cv_deplibs_check_method=pass_all
4355 netbsd* | knetbsd*-gnu)
4356 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4357 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4359 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4364 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4365 lt_cv_file_magic_cmd=/usr/bin/file
4366 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4369 osf3* | osf4* | osf5*)
4370 # this will be overridden with pass_all, but let us keep it just in case
4371 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4372 lt_cv_file_magic_test_file=/shlib/libc.so
4373 lt_cv_deplibs_check_method=pass_all
4377 lt_cv_deplibs_check_method=pass_all
4381 lt_cv_deplibs_check_method=pass_all
4382 lt_cv_file_magic_test_file=/lib/libc.so
4385 sysv5uw[78]* | sysv4*uw2*)
4386 lt_cv_deplibs_check_method=pass_all
4389 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4390 case $host_vendor in
4392 lt_cv_deplibs_check_method=pass_all
4395 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]'
4396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4403 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4404 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4405 file_magic_cmd=$lt_cv_file_magic_cmd
4406 deplibs_check_method=$lt_cv_deplibs_check_method
4411 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4413 # Only perform the check for file, if the check method requires it
4414 case $deplibs_check_method in
4416 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4417 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4418 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4419 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4427 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4430 ac_save_MAGIC_CMD="$MAGIC_CMD"
4431 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4432 ac_dummy="/usr/bin:$PATH"
4433 for ac_dir in $ac_dummy; do
4434 test -z "$ac_dir" && ac_dir=.
4435 if test -f $ac_dir/${ac_tool_prefix}file; then
4436 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4437 if test -n "$file_magic_test_file"; then
4438 case $deplibs_check_method in
4440 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4441 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4442 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4443 egrep "$file_magic_regex" > /dev/null; then
4448 *** Warning: the command libtool uses to detect shared libraries,
4449 *** $file_magic_cmd, produces output that libtool cannot recognize.
4450 *** The result is that libtool may fail to recognize shared libraries
4451 *** as such. This will affect the creation of libtool libraries that
4452 *** depend on shared libraries, but programs linked with such libtool
4453 *** libraries will work regardless of this problem. Nevertheless, you
4454 *** may want to report the problem to your system manager and/or to
4455 *** bug-libtool@gnu.org
4465 MAGIC_CMD="$ac_save_MAGIC_CMD"
4470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4471 if test -n "$MAGIC_CMD"; then
4472 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4473 echo "${ECHO_T}$MAGIC_CMD" >&6
4475 echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4479 if test -z "$lt_cv_path_MAGIC_CMD"; then
4480 if test -n "$ac_tool_prefix"; then
4481 echo "$as_me:$LINENO: checking for file" >&5
4482 echo $ECHO_N "checking for file... $ECHO_C" >&6
4483 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4491 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4494 ac_save_MAGIC_CMD="$MAGIC_CMD"
4495 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4496 ac_dummy="/usr/bin:$PATH"
4497 for ac_dir in $ac_dummy; do
4498 test -z "$ac_dir" && ac_dir=.
4499 if test -f $ac_dir/file; then
4500 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4501 if test -n "$file_magic_test_file"; then
4502 case $deplibs_check_method in
4504 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4505 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4506 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4507 egrep "$file_magic_regex" > /dev/null; then
4512 *** Warning: the command libtool uses to detect shared libraries,
4513 *** $file_magic_cmd, produces output that libtool cannot recognize.
4514 *** The result is that libtool may fail to recognize shared libraries
4515 *** as such. This will affect the creation of libtool libraries that
4516 *** depend on shared libraries, but programs linked with such libtool
4517 *** libraries will work regardless of this problem. Nevertheless, you
4518 *** may want to report the problem to your system manager and/or to
4519 *** bug-libtool@gnu.org
4529 MAGIC_CMD="$ac_save_MAGIC_CMD"
4534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4535 if test -n "$MAGIC_CMD"; then
4536 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4537 echo "${ECHO_T}$MAGIC_CMD" >&6
4539 echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4555 echo "$as_me:$LINENO: checking for $ac_word" >&5
4556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557 if test "${ac_cv_prog_RANLIB+set}" = set; then
4558 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 if test -n "$RANLIB"; then
4561 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 RANLIB=$ac_cv_prog_RANLIB
4580 if test -n "$RANLIB"; then
4581 echo "$as_me:$LINENO: result: $RANLIB" >&5
4582 echo "${ECHO_T}$RANLIB" >&6
4584 echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6
4589 if test -z "$ac_cv_prog_RANLIB"; then
4590 ac_ct_RANLIB=$RANLIB
4591 # Extract the first word of "ranlib", so it can be a program name with args.
4592 set dummy ranlib; ac_word=$2
4593 echo "$as_me:$LINENO: checking for $ac_word" >&5
4594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4595 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4596 echo $ECHO_N "(cached) $ECHO_C" >&6
4598 if test -n "$ac_ct_RANLIB"; then
4599 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 test -z "$as_dir" && as_dir=.
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4608 ac_cv_prog_ac_ct_RANLIB="ranlib"
4609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4618 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4619 if test -n "$ac_ct_RANLIB"; then
4620 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4621 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4623 echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4627 RANLIB=$ac_ct_RANLIB
4629 RANLIB="$ac_cv_prog_RANLIB"
4632 if test -n "$ac_tool_prefix"; then
4633 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4634 set dummy ${ac_tool_prefix}strip; ac_word=$2
4635 echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4637 if test "${ac_cv_prog_STRIP+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test -n "$STRIP"; then
4641 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4659 STRIP=$ac_cv_prog_STRIP
4660 if test -n "$STRIP"; then
4661 echo "$as_me:$LINENO: result: $STRIP" >&5
4662 echo "${ECHO_T}$STRIP" >&6
4664 echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6
4669 if test -z "$ac_cv_prog_STRIP"; then
4671 # Extract the first word of "strip", so it can be a program name with args.
4672 set dummy strip; ac_word=$2
4673 echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4675 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 if test -n "$ac_ct_STRIP"; then
4679 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_ac_ct_STRIP="strip"
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4698 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4699 if test -n "$ac_ct_STRIP"; then
4700 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4701 echo "${ECHO_T}$ac_ct_STRIP" >&6
4703 echo "$as_me:$LINENO: result: no" >&5
4704 echo "${ECHO_T}no" >&6
4709 STRIP="$ac_cv_prog_STRIP"
4713 # Check for any special flags to pass to ltconfig.
4714 libtool_flags="--cache-file=$cache_file"
4715 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4716 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4717 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4718 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4719 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4722 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4723 if test "${enable_libtool_lock+set}" = set; then
4724 enableval="$enable_libtool_lock"
4727 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4728 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4731 # Check whether --with-pic or --without-pic was given.
4732 if test "${with_pic+set}" = set; then
4738 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4739 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4741 # Some flags need to be propagated to the compiler or linker for good
4745 # Find out which ABI we are using.
4746 echo '#line 4746 "configure"' > conftest.$ac_ext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>&5
4750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751 (exit $ac_status); }; then
4752 if test "$lt_cv_prog_gnu_ld" = yes; then
4753 case `/usr/bin/file conftest.$ac_objext` in
4755 LD="${LD-ld} -melf32bsmip"
4758 LD="${LD-ld} -melf32bmipn32"
4761 LD="${LD-ld} -melf64bmip"
4765 case `/usr/bin/file conftest.$ac_objext` in
4782 # Find out which ABI we are using.
4783 echo 'int i;' > conftest.$ac_ext
4784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785 (eval $ac_compile) 2>&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; then
4789 case "`/usr/bin/file conftest.o`" in
4801 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4802 # Find out which ABI we are using.
4803 echo 'int i;' > conftest.$ac_ext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4805 (eval $ac_compile) 2>&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; then
4809 case "`/usr/bin/file conftest.o`" in
4813 LD="${LD-ld} -m elf_i386"
4815 ppc64-*linux*|powerpc64-*linux*)
4816 LD="${LD-ld} -m elf32ppclinux"
4819 LD="${LD-ld} -m elf_s390"
4822 LD="${LD-ld} -m elf32_sparc"
4829 LD="${LD-ld} -m elf_x86_64"
4831 ppc*-*linux*|powerpc*-*linux*)
4832 LD="${LD-ld} -m elf64ppc"
4835 LD="${LD-ld} -m elf64_s390"
4838 LD="${LD-ld} -m elf64_sparc"
4848 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4849 SAVE_CFLAGS="$CFLAGS"
4850 CFLAGS="$CFLAGS -belf"
4851 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4852 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4853 if test "${lt_cv_cc_needs_belf+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4859 ac_cpp='$CPP $CPPFLAGS'
4860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4864 if test x$gcc_no_link = xyes; then
4865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4867 { (exit 1); exit 1; }; }
4869 cat >conftest.$ac_ext <<_ACEOF
4872 cat confdefs.h >>conftest.$ac_ext
4873 cat >>conftest.$ac_ext <<_ACEOF
4874 /* end confdefs.h. */
4884 rm -f conftest.$ac_objext conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886 (eval $ac_link) 2>conftest.er1
4888 grep -v '^ *+' conftest.er1 >conftest.err
4890 cat conftest.err >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); } &&
4893 { ac_try='test -z "$ac_c_werror_flag"
4894 || test ! -s conftest.err'
4895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); }; } &&
4900 { ac_try='test -s conftest$ac_exeext'
4901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); }; }; then
4906 lt_cv_cc_needs_belf=yes
4908 echo "$as_me: failed program was:" >&5
4909 sed 's/^/| /' conftest.$ac_ext >&5
4911 lt_cv_cc_needs_belf=no
4913 rm -f conftest.err conftest.$ac_objext \
4914 conftest$ac_exeext conftest.$ac_ext
4916 ac_cpp='$CPP $CPPFLAGS'
4917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4923 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4924 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4926 CFLAGS="$SAVE_CFLAGS"
4934 # Save cache, so that ltconfig can load it
4935 cat >confcache <<\_ACEOF
4936 # This file is a shell script that caches the results of configure
4937 # tests run on this system so they can be shared between configure
4938 # scripts and configure runs, see configure's option --config-cache.
4939 # It is not useful on other systems. If it contains results you don't
4940 # want to keep, you may remove or edit it.
4942 # config.status only pays attention to the cache file if you give it
4943 # the --recheck option to rerun configure.
4945 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4946 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4951 # The following way of writing the cache mishandles newlines in values,
4952 # but we know of no workaround that is simple, portable, and efficient.
4953 # So, don't put newlines in cache variables' values.
4954 # Ultrix sh set writes to stderr and can't be redirected directly,
4955 # and sets the high bit in the cache file unless we assign to the vars.
4958 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4960 # `set' does not quote correctly, so add quotes (double-quote
4961 # substitution turns \\\\ into \\, and sed turns \\ into \).
4964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4967 # `set' quotes correctly as required by POSIX, so do not add quotes.
4969 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4976 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4978 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4980 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4981 if test -w $cache_file; then
4982 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4983 cat confcache >$cache_file
4985 echo "not updating unwritable cache $cache_file"
4990 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4991 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4992 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4993 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4994 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4995 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4996 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4997 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4998 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4999 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5000 echo "$as_me: error: libtool configure failed" >&2;}
5001 { (exit 1); exit 1; }; }
5003 # Reload cache, that may have been modified by ltconfig
5004 if test -r "$cache_file"; then
5005 # Some versions of bash will fail to source /dev/null (special
5006 # files actually), so we avoid doing that.
5007 if test -f "$cache_file"; then
5008 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5009 echo "$as_me: loading cache $cache_file" >&6;}
5011 [\\/]* | ?:[\\/]* ) . $cache_file;;
5012 *) . ./$cache_file;;
5016 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5017 echo "$as_me: creating cache $cache_file" >&6;}
5022 # This can be used to rebuild libtool when needed
5023 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5025 # Always use our own libtool.
5026 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5028 # Redirect the config.log output again, so that the ltconfig log is not
5029 # clobbered by the next message.
5030 exec 5>>./config.log
5033 ac_cpp='$CXXCPP $CPPFLAGS'
5034 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5037 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5038 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5039 if test -z "$CXXCPP"; then
5040 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5041 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 # Double quotes because CXXCPP needs to be expanded
5044 for CXXCPP in "$CXX -E" "/lib/cpp"
5047 for ac_cxx_preproc_warn_flag in '' yes
5049 # Use a header file that comes with gcc, so configuring glibc
5050 # with a fresh cross-compiler works.
5051 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5052 # <limits.h> exists even on freestanding compilers.
5053 # On the NeXT, cc -E runs the code through the compiler's parser,
5054 # not just through cpp. "Syntax error" is here to catch this case.
5055 cat >conftest.$ac_ext <<_ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h. */
5062 # include <limits.h>
5064 # include <assert.h>
5068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5071 grep -v '^ *+' conftest.er1 >conftest.err
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } >/dev/null; then
5076 if test -s conftest.err; then
5077 ac_cpp_err=$ac_cxx_preproc_warn_flag
5078 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5085 if test -z "$ac_cpp_err"; then
5088 echo "$as_me: failed program was:" >&5
5089 sed 's/^/| /' conftest.$ac_ext >&5
5091 # Broken: fails on valid input.
5094 rm -f conftest.err conftest.$ac_ext
5096 # OK, works on sane cases. Now check whether non-existent headers
5097 # can be detected and how.
5098 cat >conftest.$ac_ext <<_ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5104 #include <ac_nonexistent.h>
5106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109 grep -v '^ *+' conftest.er1 >conftest.err
5111 cat conftest.err >&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); } >/dev/null; then
5114 if test -s conftest.err; then
5115 ac_cpp_err=$ac_cxx_preproc_warn_flag
5116 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5123 if test -z "$ac_cpp_err"; then
5124 # Broken: success on invalid input.
5127 echo "$as_me: failed program was:" >&5
5128 sed 's/^/| /' conftest.$ac_ext >&5
5130 # Passes both tests.
5134 rm -f conftest.err conftest.$ac_ext
5137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5138 rm -f conftest.err conftest.$ac_ext
5139 if $ac_preproc_ok; then
5144 ac_cv_prog_CXXCPP=$CXXCPP
5147 CXXCPP=$ac_cv_prog_CXXCPP
5149 ac_cv_prog_CXXCPP=$CXXCPP
5151 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5152 echo "${ECHO_T}$CXXCPP" >&6
5154 for ac_cxx_preproc_warn_flag in '' yes
5156 # Use a header file that comes with gcc, so configuring glibc
5157 # with a fresh cross-compiler works.
5158 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5159 # <limits.h> exists even on freestanding compilers.
5160 # On the NeXT, cc -E runs the code through the compiler's parser,
5161 # not just through cpp. "Syntax error" is here to catch this case.
5162 cat >conftest.$ac_ext <<_ACEOF
5165 cat confdefs.h >>conftest.$ac_ext
5166 cat >>conftest.$ac_ext <<_ACEOF
5167 /* end confdefs.h. */
5169 # include <limits.h>
5171 # include <assert.h>
5175 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5178 grep -v '^ *+' conftest.er1 >conftest.err
5180 cat conftest.err >&5
5181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182 (exit $ac_status); } >/dev/null; then
5183 if test -s conftest.err; then
5184 ac_cpp_err=$ac_cxx_preproc_warn_flag
5185 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5192 if test -z "$ac_cpp_err"; then
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 # Broken: fails on valid input.
5201 rm -f conftest.err conftest.$ac_ext
5203 # OK, works on sane cases. Now check whether non-existent headers
5204 # can be detected and how.
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 #include <ac_nonexistent.h>
5213 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5216 grep -v '^ *+' conftest.er1 >conftest.err
5218 cat conftest.err >&5
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); } >/dev/null; then
5221 if test -s conftest.err; then
5222 ac_cpp_err=$ac_cxx_preproc_warn_flag
5223 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5230 if test -z "$ac_cpp_err"; then
5231 # Broken: success on invalid input.
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 # Passes both tests.
5241 rm -f conftest.err conftest.$ac_ext
5244 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5245 rm -f conftest.err conftest.$ac_ext
5246 if $ac_preproc_ok; then
5249 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5250 See \`config.log' for more details." >&5
5251 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5252 See \`config.log' for more details." >&2;}
5253 { (exit 1); exit 1; }; }
5257 ac_cpp='$CPP $CPPFLAGS'
5258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5264 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5266 lt_save_CFLAGS="$CFLAGS"
5267 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5268 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5269 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5270 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5271 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5272 deplibs_check_method="$deplibs_check_method" \
5273 file_magic_cmd="$file_magic_cmd" \
5274 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5275 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5276 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5277 echo "$as_me: error: libtool tag configuration failed" >&2;}
5278 { (exit 1); exit 1; }; }
5280 CFLAGS="$lt_save_CFLAGS"
5282 # Redirect the config.log output again, so that the ltconfig log is not
5283 # clobbered by the next message.
5284 exec 5>>./config.log
5294 # Extract the first word of "$ac_prog", so it can be a program name with args.
5295 set dummy $ac_prog; ac_word=$2
5296 echo "$as_me:$LINENO: checking for $ac_word" >&5
5297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5298 if test "${ac_cv_prog_GCJ+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5301 if test -n "$GCJ"; then
5302 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 test -z "$as_dir" && as_dir=.
5309 for ac_exec_ext in '' $ac_executable_extensions; do
5310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311 ac_cv_prog_GCJ="$ac_prog"
5312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5321 if test -n "$GCJ"; then
5322 echo "$as_me:$LINENO: result: $GCJ" >&5
5323 echo "${ECHO_T}$GCJ" >&6
5325 echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6
5329 test -n "$GCJ" && break
5331 test -n "$GCJ" || GCJ="gcj"
5333 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5334 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5335 { (exit 1); exit 1; }; }
5336 if test "x${GCJFLAGS-unset}" = xunset; then
5341 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5343 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5344 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5345 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5348 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5349 # We make a subdir and do the tests there. Otherwise we can end up
5350 # making bogus files that we don't know about and never remove. For
5351 # instance it was reported that on HP-UX the gcc test will end up
5352 # making a dummy file named `D' -- because `-MD' means `put the output
5355 # Copy depcomp to subdir because otherwise we won't find it if we're
5356 # using a relative directory.
5357 cp "$am_depcomp" conftest.dir
5359 # We will build objects and dependencies in a subdirectory because
5360 # it helps to detect inapplicable dependency modes. For instance
5361 # both Tru64's cc and ICC support -MD to output dependencies as a
5362 # side effect of compilation, but ICC will put the dependencies in
5363 # the current directory while Tru64 will put them in the object
5367 am_cv_GCJ_dependencies_compiler_type=none
5368 if test "$am_compiler_list" = ""; then
5369 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5371 for depmode in $am_compiler_list; do
5372 # Setup a source with many dependencies, because some compilers
5373 # like to wrap large dependency lists on column 80 (with \), and
5374 # we should not choose a depcomp mode which is confused by this.
5376 # We need to recreate these files for each test, as the compiler may
5377 # overwrite some of them when testing with obscure command lines.
5378 # This happens at least with the AIX C compiler.
5380 for i in 1 2 3 4 5 6; do
5381 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5382 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5383 # Solaris 8's {/usr,}/bin/sh.
5384 touch sub/conftst$i.h
5386 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5390 # after this tag, mechanisms are not by side-effect, so they'll
5391 # only be used when explicitly requested
5392 if test "x$enable_dependency_tracking" = xyes; then
5400 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5401 # mode. It turns out that the SunPro C++ compiler does not properly
5402 # handle `-M -o', and we need to detect this.
5403 if depmode=$depmode \
5404 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5405 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5406 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5407 >/dev/null 2>conftest.err &&
5408 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5409 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5410 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5411 # icc doesn't choke on unknown options, it will just issue warnings
5412 # or remarks (even with -Werror). So we grep stderr for any message
5413 # that says an option was ignored or not supported.
5414 # When given -MP, icc 7.0 and 7.1 complain thusly:
5415 # icc: Command line warning: ignoring option '-M'; no argument required
5416 # The diagnosis changed in icc 8.0:
5417 # icc: Command line remark: option '-MP' not supported
5418 if (grep 'ignoring option' conftest.err ||
5419 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5420 am_cv_GCJ_dependencies_compiler_type=$depmode
5429 am_cv_GCJ_dependencies_compiler_type=none
5433 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5434 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5435 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5440 test "x$enable_dependency_tracking" != xno \
5441 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5442 am__fastdepGCJ_TRUE=
5443 am__fastdepGCJ_FALSE='#'
5445 am__fastdepGCJ_TRUE='#'
5446 am__fastdepGCJ_FALSE=
5452 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5454 lt_save_CFLAGS="$CFLAGS"
5455 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5456 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5457 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5458 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5459 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5460 deplibs_check_method="$deplibs_check_method" \
5461 file_magic_cmd="$file_magic_cmd" \
5462 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5463 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5464 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5465 echo "$as_me: error: libtool tag configuration failed" >&2;}
5466 { (exit 1); exit 1; }; }
5468 CFLAGS="$lt_save_CFLAGS"
5470 # Redirect the config.log output again, so that the ltconfig log is not
5471 # clobbered by the next message.
5472 exec 5>>./config.log
5476 if test "x$CC" != xcc; then
5477 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5478 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5480 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5481 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5483 set dummy $CC; ac_cc=`echo $2 |
5484 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5485 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 cat >conftest.$ac_ext <<_ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5503 # Make sure it works both with $CC and with simple cc.
5504 # We do the test twice because some compilers refuse to overwrite an
5505 # existing .o file with -o, though they will create one.
5506 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5507 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } &&
5512 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); };
5518 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5519 if test "x$CC" != xcc; then
5520 # Test first that cc exists at all.
5521 if { ac_try='cc -c conftest.$ac_ext >&5'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5528 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); };
5542 # cc exists but doesn't like -o.
5543 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5548 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5553 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5554 echo "$as_me:$LINENO: result: yes" >&5
5555 echo "${ECHO_T}yes" >&6
5557 echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5560 cat >>confdefs.h <<\_ACEOF
5561 #define NO_MINUS_C_MINUS_O 1
5566 # FIXME: we rely on the cache variable name because
5567 # there is no other way.
5569 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5570 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5571 # Losing compiler, so override with the script.
5572 # FIXME: It is wrong to rewrite CC.
5573 # But if we don't then we get into trouble of one sort or another.
5574 # A longer-term fix would be to have automake use am__CC in this case,
5575 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5576 CC="$am_aux_dir/compile $CC"
5581 subdirs="$subdirs libltdl"
5584 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
5591 # The -no-testsuite modules omit the test subdir.
5594 if test -d $srcdir/testsuite; then
5596 TESTSUBDIR_FALSE='#'
5603 # Should the runtime set system properties by examining the
5604 # environment variable GCJ_PROPERTIES?
5605 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5606 if test "${enable_getenv_properties+set}" = set; then
5607 enableval="$enable_getenv_properties"
5611 # Whether GCJ_PROPERTIES is used depends on the target.
5612 if test -z "$enable_getenv_properties"; then
5613 enable_getenv_properties=${enable_getenv_properties_default-yes}
5615 if test "$enable_getenv_properties" = no; then
5617 cat >>confdefs.h <<\_ACEOF
5618 #define DISABLE_GETENV_PROPERTIES 1
5623 # Whether we should use arguments to main()
5624 if test -z "$enable_main_args"; then
5625 enable_main_args=${enable_main_args_default-yes}
5627 if test "$enable_main_args" = no; then
5629 cat >>confdefs.h <<\_ACEOF
5630 #define DISABLE_MAIN_ARGS 1
5636 # Should we use hashtable-based synchronization?
5637 # Currently works only for Linux X86/ia64
5638 # Typically faster and more space-efficient
5639 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5640 if test "${enable_hash_synchronization+set}" = set; then
5641 enableval="$enable_hash_synchronization"
5645 if test -z "$enable_hash_synchronization"; then
5646 enable_hash_synchronization=$enable_hash_synchronization_default
5649 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5650 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5651 if test "${enable_libgcj_multifile+set}" = set; then
5652 enableval="$enable_libgcj_multifile"
5653 case "${enableval}" in
5654 yes) enable_libgcj_multifile=yes ;;
5655 no) enable_libgcj_multifile=no ;;
5656 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5657 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5658 { (exit 1); exit 1; }; } ;;
5661 enable_libgcj_multifile=no
5665 if test "$enable_libgcj_multifile" = yes; then
5674 # What is the native OS API for MinGW?
5676 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5677 if test "${with_win32_nlsapi+set}" = set; then
5678 withval="$with_win32_nlsapi"
5679 case "${withval}" in
5680 ansi) with_win32_nlsapi=ansi ;;
5681 unicows) with_win32_nlsapi=unicows ;;
5682 unicode) with_win32_nlsapi=unicode ;;
5683 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5684 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5685 { (exit 1); exit 1; }; } ;;
5688 with_win32_nlsapi=ansi
5691 case "${with_win32_nlsapi}" in
5694 cat >>confdefs.h <<\_ACEOF
5695 #define MINGW_LIBGCJ_UNICODE 1
5701 # configure.host sets slow_pthread_self if the synchronization code should
5702 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5703 if test "${slow_pthread_self}" = "yes"; then
5705 cat >>confdefs.h <<\_ACEOF
5706 #define SLOW_PTHREAD_SELF 1
5712 # See if the user has requested runtime debugging.
5715 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5716 if test "${enable_libgcj_debug+set}" = set; then
5717 enableval="$enable_libgcj_debug"
5718 if test "$enable_libgcj_debug" = yes; then
5720 cat >>confdefs.h <<\_ACEOF
5728 # Check for gc debugging. This option is handled both here and in the GC.
5729 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5730 if test "${enable_gc_debug+set}" = set; then
5731 enableval="$enable_gc_debug"
5732 if test "$enable_gc_debug" = "yes"; then
5734 cat >>confdefs.h <<\_ACEOF
5735 #define LIBGCJ_GC_DEBUG 1
5741 # See if the user has the interpreter included.
5742 # Check whether --enable-interpreter or --disable-interpreter was given.
5743 if test "${enable_interpreter+set}" = set; then
5744 enableval="$enable_interpreter"
5745 if test "$enable_interpreter" = yes; then
5746 # This can also be set in configure.host.
5747 libgcj_interpreter=yes
5748 elif test "$enable_interpreter" = no; then
5749 libgcj_interpreter=no
5753 if test "$libgcj_interpreter" = yes; then
5755 cat >>confdefs.h <<\_ACEOF
5756 #define INTERPRETER 1
5760 INTERPRETER="$libgcj_interpreter"
5763 echo "$as_me:$LINENO: checking for exception model to use" >&5
5764 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5766 ac_cpp='$CXXCPP $CPPFLAGS'
5767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5771 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5772 if test "${enable_sjlj_exceptions+set}" = set; then
5773 enableval="$enable_sjlj_exceptions"
5776 cat > conftest.$ac_ext << EOF
5777 #line 5777 "configure"
5786 old_CXXFLAGS="$CXXFLAGS"
5788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5789 (eval $ac_compile) 2>&5
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); }; then
5793 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5794 enable_sjlj_exceptions=yes
5795 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5796 enable_sjlj_exceptions=no
5799 CXXFLAGS="$old_CXXFLAGS"
5802 if test x$enable_sjlj_exceptions = xyes; then
5804 cat >>confdefs.h <<\_ACEOF
5805 #define SJLJ_EXCEPTIONS 1
5808 ac_exception_model_name=sjlj
5809 elif test x$enable_sjlj_exceptions = xno; then
5810 ac_exception_model_name="call frame"
5812 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5813 echo "$as_me: error: unable to detect exception model" >&2;}
5814 { (exit 1); exit 1; }; }
5817 ac_cpp='$CPP $CPPFLAGS'
5818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5823 echo "${ECHO_T}$ac_exception_model_name" >&6
5825 # If we are non using SJLJ exceptions, and this host does not have support
5826 # for unwinding from a signal handler, enable checked dereferences and divides.
5827 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5828 CHECKREFSPEC=-fcheck-references
5829 DIVIDESPEC=-fuse-divide-subroutine
5833 # See if the user wants to disable java.net. This is the mildly
5834 # ugly way that we admit that target-side configuration sucks.
5835 # Check whether --enable-java-net or --disable-java-net was given.
5836 if test "${enable_java_net+set}" = set; then
5837 enableval="$enable_java_net"
5841 # Whether java.net is built by default can depend on the target.
5842 if test -z "$enable_java_net"; then
5843 enable_java_net=${enable_java_net_default-yes}
5845 if test "$enable_java_net" = no; then
5847 cat >>confdefs.h <<\_ACEOF
5848 #define DISABLE_JAVA_NET 1
5853 # See if the user wants to configure without libffi. Some
5854 # architectures don't support it, and default values are set in
5857 # Check whether --with-libffi or --without-libffi was given.
5858 if test "${with_libffi+set}" = set; then
5859 withval="$with_libffi"
5862 with_libffi=${with_libffi_default-yes}
5867 if test "$with_libffi" != no; then
5869 cat >>confdefs.h <<\_ACEOF
5870 #define USE_LIBFFI 1
5873 LIBFFI=../libffi/libffi_convenience.la
5874 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5879 # See if the user wants to disable JVMPI support.
5880 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5881 if test "${enable_jvmpi+set}" = set; then
5882 enableval="$enable_jvmpi"
5886 if test "$enable_jvmpi" != no; then
5888 cat >>confdefs.h <<\_ACEOF
5889 #define ENABLE_JVMPI 1
5894 # If the target is an eCos system, use the appropriate eCos
5896 # FIXME: this should not be a local option but a global target
5897 # system; at present there is no eCos target.
5898 TARGET_ECOS=${PROCESS-"no"}
5900 # Check whether --with-ecos or --without-ecos was given.
5901 if test "${with_ecos+set}" = set; then
5902 withval="$with_ecos"
5903 TARGET_ECOS="$with_ecos"
5909 PLATFORM_INNER_NAT_HDRS=
5910 case "$TARGET_ECOS" in
5917 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5918 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5919 LD_PROG=`$CC --print-prog-name=ld`
5920 LD_VERSION=`$LD_PROG --version`
5921 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5922 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5923 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5926 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5930 if test "x$LD_OK" != x; then
5931 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5932 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5934 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5935 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5936 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5937 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5939 cat >>confdefs.h <<\_ACEOF
5940 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5949 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5957 cat >>confdefs.h <<\_ACEOF
5965 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5969 ac_cpp='$CPP $CPPFLAGS'
5970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5973 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5974 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5975 # On Suns, sometimes $CPP names a directory.
5976 if test -n "$CPP" && test -d "$CPP"; then
5979 if test -z "$CPP"; then
5980 if test "${ac_cv_prog_CPP+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 # Double quotes because CPP needs to be expanded
5984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5987 for ac_c_preproc_warn_flag in '' yes
5989 # Use a header file that comes with gcc, so configuring glibc
5990 # with a fresh cross-compiler works.
5991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5992 # <limits.h> exists even on freestanding compilers.
5993 # On the NeXT, cc -E runs the code through the compiler's parser,
5994 # not just through cpp. "Syntax error" is here to catch this case.
5995 cat >conftest.$ac_ext <<_ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6002 # include <limits.h>
6004 # include <assert.h>
6008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } >/dev/null; then
6016 if test -s conftest.err; then
6017 ac_cpp_err=$ac_c_preproc_warn_flag
6018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6025 if test -z "$ac_cpp_err"; then
6028 echo "$as_me: failed program was:" >&5
6029 sed 's/^/| /' conftest.$ac_ext >&5
6031 # Broken: fails on valid input.
6034 rm -f conftest.err conftest.$ac_ext
6036 # OK, works on sane cases. Now check whether non-existent headers
6037 # can be detected and how.
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 #include <ac_nonexistent.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
6064 # Broken: success on invalid input.
6067 echo "$as_me: failed program was:" >&5
6068 sed 's/^/| /' conftest.$ac_ext >&5
6070 # Passes both tests.
6074 rm -f conftest.err conftest.$ac_ext
6077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6078 rm -f conftest.err conftest.$ac_ext
6079 if $ac_preproc_ok; then
6091 echo "$as_me:$LINENO: result: $CPP" >&5
6092 echo "${ECHO_T}$CPP" >&6
6094 for ac_c_preproc_warn_flag in '' yes
6096 # Use a header file that comes with gcc, so configuring glibc
6097 # with a fresh cross-compiler works.
6098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6099 # <limits.h> exists even on freestanding compilers.
6100 # On the NeXT, cc -E runs the code through the compiler's parser,
6101 # not just through cpp. "Syntax error" is here to catch this case.
6102 cat >conftest.$ac_ext <<_ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6109 # include <limits.h>
6111 # include <assert.h>
6115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6118 grep -v '^ *+' conftest.er1 >conftest.err
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } >/dev/null; then
6123 if test -s conftest.err; then
6124 ac_cpp_err=$ac_c_preproc_warn_flag
6125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6132 if test -z "$ac_cpp_err"; then
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 # Broken: fails on valid input.
6141 rm -f conftest.err conftest.$ac_ext
6143 # OK, works on sane cases. Now check whether non-existent headers
6144 # can be detected and how.
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <ac_nonexistent.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
6171 # Broken: success on invalid input.
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6177 # Passes both tests.
6181 rm -f conftest.err conftest.$ac_ext
6184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6185 rm -f conftest.err conftest.$ac_ext
6186 if $ac_preproc_ok; then
6189 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6190 See \`config.log' for more details." >&5
6191 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6192 See \`config.log' for more details." >&2;}
6193 { (exit 1); exit 1; }; }
6197 ac_cpp='$CPP $CPPFLAGS'
6198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6203 echo "$as_me:$LINENO: checking for egrep" >&5
6204 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6205 if test "${ac_cv_prog_egrep+set}" = set; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6209 then ac_cv_prog_egrep='grep -E'
6210 else ac_cv_prog_egrep='egrep'
6213 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6214 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6215 EGREP=$ac_cv_prog_egrep
6218 cat >conftest.$ac_ext <<_ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6228 $EGREP "uint32_t" >/dev/null 2>&1; then
6230 cat >>confdefs.h <<\_ACEOF
6231 #define HAVE_INT32_DEFINED 1
6237 cat >conftest.$ac_ext <<_ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6243 #include <inttypes.h>
6246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6247 $EGREP "uint32_t" >/dev/null 2>&1; then
6249 cat >>confdefs.h <<\_ACEOF
6250 #define HAVE_INT32_DEFINED 1
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <sys/types.h>
6265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 $EGREP "u_int32_t" >/dev/null 2>&1; then
6268 cat >>confdefs.h <<\_ACEOF
6269 #define HAVE_BSD_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 <sys/config.h>
6284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6285 $EGREP "u_int32_t" >/dev/null 2>&1; then
6287 cat >>confdefs.h <<\_ACEOF
6288 #define HAVE_BSD_INT32_DEFINED 1
6297 if test "$PLATFORM" = Win32; then
6298 USING_WIN32_PLATFORM_TRUE=
6299 USING_WIN32_PLATFORM_FALSE='#'
6301 USING_WIN32_PLATFORM_TRUE='#'
6302 USING_WIN32_PLATFORM_FALSE=
6307 if test "$PLATFORM" = Posix; then
6308 USING_POSIX_PLATFORM_TRUE=
6309 USING_POSIX_PLATFORM_FALSE='#'
6311 USING_POSIX_PLATFORM_TRUE='#'
6312 USING_POSIX_PLATFORM_FALSE=
6317 if test "$PLATFORM" = Ecos; then
6318 USING_ECOS_PLATFORM_TRUE=
6319 USING_ECOS_PLATFORM_FALSE='#'
6321 USING_ECOS_PLATFORM_TRUE='#'
6322 USING_ECOS_PLATFORM_FALSE=
6327 *-darwin*) DARWIN_CRT=true ;;
6328 *) DARWIN_CRT=false ;;
6332 if $DARWIN_CRT; then
6333 USING_DARWIN_CRT_TRUE=
6334 USING_DARWIN_CRT_FALSE='#'
6336 USING_DARWIN_CRT_TRUE='#'
6337 USING_DARWIN_CRT_FALSE=
6341 # These may not be defined in a non-ANS conformant embedded system.
6342 # FIXME: Should these case a runtime exception in that case?
6343 cat >conftest.$ac_ext <<_ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6353 $EGREP "mktime" >/dev/null 2>&1; then
6355 cat >>confdefs.h <<\_ACEOF
6356 #define HAVE_MKTIME 1
6362 cat >conftest.$ac_ext <<_ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6372 $EGREP "localtime" >/dev/null 2>&1; then
6374 cat >>confdefs.h <<\_ACEOF
6375 #define HAVE_LOCALTIME 1
6382 # Create the subdirectory for natFile.cc, or the attempt
6383 # to create the link will fail.
6384 test -d java || mkdir java
6385 test -d java/io || mkdir java/io
6386 test -d gnu || mkdir gnu
6387 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6390 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6391 test -d java/lang || mkdir java/lang
6392 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6394 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6397 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
6398 test -d java/net || mkdir java/net
6399 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6401 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
6404 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6405 test -d gnu/java || mkdir gnu/java
6406 test -d gnu/java/net || mkdir gnu/java/net
6407 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6409 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6412 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6413 test -d gnu/java/nio || mkdir gnu/java/nio
6414 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6416 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6418 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6419 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6424 SYSTEMSPEC="-lgdi32 -lws2_32"
6425 if test "${with_win32_nlsapi}" = "unicows"; then
6426 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6435 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6439 # Check whether --with-system-zlib or --without-system-zlib was given.
6440 if test "${with_system_zlib+set}" = set; then
6441 withval="$with_system_zlib"
6449 echo "$as_me:$LINENO: checking for X" >&5
6450 echo $ECHO_N "checking for X... $ECHO_C" >&6
6453 # Check whether --with-x or --without-x was given.
6454 if test "${with_x+set}" = set; then
6458 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6459 if test "x$with_x" = xno; then
6460 # The user explicitly disabled X.
6463 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6464 # Both variables are already set.
6467 if test "${ac_cv_have_x+set}" = set; then
6468 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 # One or both of the vars are not set, and there is no cached value.
6471 ac_x_includes=no ac_x_libraries=no
6473 if mkdir conftest.dir; then
6475 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6476 cat >Imakefile <<'_ACEOF'
6478 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6480 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6482 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6483 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6484 for ac_extension in a so sl; do
6485 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6486 test -f $ac_im_libdir/libX11.$ac_extension; then
6487 ac_im_usrlibdir=$ac_im_libdir; break
6490 # Screen out bogus values from the imake configuration. They are
6491 # bogus both because they are the default anyway, and because
6492 # using them would break gcc on systems where it needs fixed includes.
6493 case $ac_im_incroot in
6495 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6497 case $ac_im_usrlibdir in
6499 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6506 # Standard set of common directories for X headers.
6507 # Check X11 before X11Rn because it is often a symlink to the current release.
6519 /usr/local/X11/include
6520 /usr/local/X11R6/include
6521 /usr/local/X11R5/include
6522 /usr/local/X11R4/include
6524 /usr/local/include/X11
6525 /usr/local/include/X11R6
6526 /usr/local/include/X11R5
6527 /usr/local/include/X11R4
6531 /usr/XFree86/include/X11
6535 /usr/unsupported/include
6537 /usr/local/x11r5/include
6538 /usr/lpp/Xamples/include
6540 /usr/openwin/include
6541 /usr/openwin/share/include'
6543 if test "$ac_x_includes" = no; then
6544 # Guess where to find include files, by looking for Intrinsic.h.
6545 # First, try using that file with no special directory specified.
6546 cat >conftest.$ac_ext <<_ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 #include <X11/Intrinsic.h>
6554 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6557 grep -v '^ *+' conftest.er1 >conftest.err
6559 cat conftest.err >&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } >/dev/null; then
6562 if test -s conftest.err; then
6563 ac_cpp_err=$ac_c_preproc_warn_flag
6564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6571 if test -z "$ac_cpp_err"; then
6572 # We can compile using X headers with no special include directory.
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 for ac_dir in $ac_x_header_dirs; do
6579 if test -r "$ac_dir/X11/Intrinsic.h"; then
6580 ac_x_includes=$ac_dir
6585 rm -f conftest.err conftest.$ac_ext
6586 fi # $ac_x_includes = no
6588 if test "$ac_x_libraries" = no; then
6589 # Check for the libraries.
6590 # See if we find them without any special options.
6591 # Don't add to $LIBS permanently.
6594 if test x$gcc_no_link = xyes; then
6595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6597 { (exit 1); exit 1; }; }
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 #include <X11/Intrinsic.h>
6614 rm -f conftest.$ac_objext conftest$ac_exeext
6615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6616 (eval $ac_link) 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } &&
6623 { ac_try='test -z "$ac_c_werror_flag"
6624 || test ! -s conftest.err'
6625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); }; } &&
6630 { ac_try='test -s conftest$ac_exeext'
6631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6635 (exit $ac_status); }; }; then
6637 # We can link X programs with no special library path.
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6644 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6646 # Don't even attempt the hair of trying to link an X program!
6647 for ac_extension in a so sl; do
6648 if test -r $ac_dir/libXt.$ac_extension; then
6649 ac_x_libraries=$ac_dir
6655 rm -f conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657 fi # $ac_x_libraries = no
6659 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6660 # Didn't find X anywhere. Cache the known absence of X.
6661 ac_cv_have_x="have_x=no"
6663 # Record where we found X for the cache.
6664 ac_cv_have_x="have_x=yes \
6665 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6670 eval "$ac_cv_have_x"
6673 if test "$have_x" != yes; then
6674 echo "$as_me:$LINENO: result: $have_x" >&5
6675 echo "${ECHO_T}$have_x" >&6
6678 # If each of the values was on the command line, it overrides each guess.
6679 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6680 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6681 # Update the cache value to reflect the command line values.
6682 ac_cv_have_x="have_x=yes \
6683 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6684 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6685 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6688 if test "$no_x" = yes; then
6689 # Not all programs may use this symbol, but it does not hurt to define it.
6691 cat >>confdefs.h <<\_ACEOF
6692 #define X_DISPLAY_MISSING 1
6695 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6697 if test -n "$x_includes"; then
6698 X_CFLAGS="$X_CFLAGS -I$x_includes"
6701 # It would also be nice to do this for all -L options, not just this one.
6702 if test -n "$x_libraries"; then
6703 X_LIBS="$X_LIBS -L$x_libraries"
6704 # For Solaris; some versions of Sun CC require a space after -R and
6705 # others require no space. Words are not sufficient . . . .
6706 case `(uname -sr) 2>/dev/null` in
6708 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6709 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6710 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6711 if test x$gcc_no_link = xyes; then
6712 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6713 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6714 { (exit 1); exit 1; }; }
6716 cat >conftest.$ac_ext <<_ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6731 rm -f conftest.$ac_objext conftest$ac_exeext
6732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6733 (eval $ac_link) 2>conftest.er1
6735 grep -v '^ *+' conftest.er1 >conftest.err
6737 cat conftest.err >&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } &&
6740 { ac_try='test -z "$ac_c_werror_flag"
6741 || test ! -s conftest.err'
6742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); }; } &&
6747 { ac_try='test -s conftest$ac_exeext'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; }; then
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6760 rm -f conftest.err conftest.$ac_objext \
6761 conftest$ac_exeext conftest.$ac_ext
6762 if test $ac_R_nospace = yes; then
6763 echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6
6765 X_LIBS="$X_LIBS -R$x_libraries"
6767 LIBS="$ac_xsave_LIBS -R $x_libraries"
6768 if test x$gcc_no_link = xyes; then
6769 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6770 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6771 { (exit 1); exit 1; }; }
6773 cat >conftest.$ac_ext <<_ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6788 rm -f conftest.$ac_objext conftest$ac_exeext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6790 (eval $ac_link) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1 >conftest.err
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_c_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest$ac_exeext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6817 rm -f conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 if test $ac_R_space = yes; then
6820 echo "$as_me:$LINENO: result: yes" >&5
6821 echo "${ECHO_T}yes" >&6
6822 X_LIBS="$X_LIBS -R $x_libraries"
6824 echo "$as_me:$LINENO: result: neither works" >&5
6825 echo "${ECHO_T}neither works" >&6
6832 # Check for system-dependent libraries X programs must link with.
6833 # Do this before checking for the system-independent R6 libraries
6834 # (-lICE), since we may need -lsocket or whatever for X linking.
6836 if test "$ISC" = yes; then
6837 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6839 # Martyn Johnson says this is needed for Ultrix, if the X
6840 # libraries were built with DECnet support. And Karl Berry says
6841 # the Alpha needs dnet_stub (dnet does not exist).
6842 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6843 if test x$gcc_no_link = xyes; then
6844 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6845 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6846 { (exit 1); exit 1; }; }
6848 cat >conftest.$ac_ext <<_ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6855 /* Override any gcc2 internal prototype to avoid an error. */
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6861 char XOpenDisplay ();
6870 rm -f conftest.$ac_objext conftest$ac_exeext
6871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872 (eval $ac_link) 2>conftest.er1
6874 grep -v '^ *+' conftest.er1 >conftest.err
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } &&
6879 { ac_try='test -z "$ac_c_werror_flag"
6880 || test ! -s conftest.err'
6881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); }; } &&
6886 { ac_try='test -s conftest$ac_exeext'
6887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); }; }; then
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6897 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6898 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6899 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 ac_check_lib_save_LIBS=$LIBS
6904 if test x$gcc_no_link = xyes; then
6905 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6906 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6907 { (exit 1); exit 1; }; }
6909 cat >conftest.$ac_ext <<_ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6916 /* Override any gcc2 internal prototype to avoid an error. */
6920 /* We use char because int might match the return type of a gcc2
6921 builtin and then its argument prototype would still apply. */
6931 rm -f conftest.$ac_objext conftest$ac_exeext
6932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6933 (eval $ac_link) 2>conftest.er1
6935 grep -v '^ *+' conftest.er1 >conftest.err
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } &&
6940 { ac_try='test -z "$ac_c_werror_flag"
6941 || test ! -s conftest.err'
6942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946 (exit $ac_status); }; } &&
6947 { ac_try='test -s conftest$ac_exeext'
6948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); }; }; then
6953 ac_cv_lib_dnet_dnet_ntoa=yes
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_cv_lib_dnet_dnet_ntoa=no
6960 rm -f conftest.err conftest.$ac_objext \
6961 conftest$ac_exeext conftest.$ac_ext
6962 LIBS=$ac_check_lib_save_LIBS
6964 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6965 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6966 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6967 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6970 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6971 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6972 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6973 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 ac_check_lib_save_LIBS=$LIBS
6977 LIBS="-ldnet_stub $LIBS"
6978 if test x$gcc_no_link = xyes; then
6979 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6980 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6981 { (exit 1); exit 1; }; }
6983 cat >conftest.$ac_ext <<_ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6990 /* Override any gcc2 internal prototype to avoid an error. */
6994 /* We use char because int might match the return type of a gcc2
6995 builtin and then its argument prototype would still apply. */
7005 rm -f conftest.$ac_objext conftest$ac_exeext
7006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7007 (eval $ac_link) 2>conftest.er1
7009 grep -v '^ *+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } &&
7014 { ac_try='test -z "$ac_c_werror_flag"
7015 || test ! -s conftest.err'
7016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); }; } &&
7021 { ac_try='test -s conftest$ac_exeext'
7022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026 (exit $ac_status); }; }; then
7027 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_lib_dnet_stub_dnet_ntoa=no
7034 rm -f conftest.err conftest.$ac_objext \
7035 conftest$ac_exeext conftest.$ac_ext
7036 LIBS=$ac_check_lib_save_LIBS
7038 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7039 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7040 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7041 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7046 rm -f conftest.err conftest.$ac_objext \
7047 conftest$ac_exeext conftest.$ac_ext
7048 LIBS="$ac_xsave_LIBS"
7050 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7051 # to get the SysV transport functions.
7052 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7054 # The nsl library prevents programs from opening the X display
7055 # on Irix 5.2, according to T.E. Dickey.
7056 # The functions gethostbyname, getservbyname, and inet_addr are
7057 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7058 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7059 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7060 if test "${ac_cv_func_gethostbyname+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7063 if test x$gcc_no_link = xyes; then
7064 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7065 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7066 { (exit 1); exit 1; }; }
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7076 #define gethostbyname innocuous_gethostbyname
7078 /* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char gethostbyname (); below.
7080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 <limits.h> exists even on freestanding compilers. */
7084 # include <limits.h>
7086 # include <assert.h>
7089 #undef gethostbyname
7091 /* Override any gcc2 internal prototype to avoid an error. */
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7098 char gethostbyname ();
7099 /* The GNU C library defines this for functions which it implements
7100 to always fail with ENOSYS. Some functions are actually named
7101 something starting with __ and the normal name is an alias. */
7102 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7105 char (*f) () = gethostbyname;
7114 return f != gethostbyname;
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7121 (eval $ac_link) 2>conftest.er1
7123 grep -v '^ *+' conftest.er1 >conftest.err
7125 cat conftest.err >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } &&
7128 { ac_try='test -z "$ac_c_werror_flag"
7129 || test ! -s conftest.err'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; } &&
7135 { ac_try='test -s conftest$ac_exeext'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; }; then
7141 ac_cv_func_gethostbyname=yes
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7146 ac_cv_func_gethostbyname=no
7148 rm -f conftest.err conftest.$ac_objext \
7149 conftest$ac_exeext conftest.$ac_ext
7151 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7152 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7154 if test $ac_cv_func_gethostbyname = no; then
7155 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7156 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7157 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7158 echo $ECHO_N "(cached) $ECHO_C" >&6
7160 ac_check_lib_save_LIBS=$LIBS
7162 if test x$gcc_no_link = xyes; then
7163 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7164 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7165 { (exit 1); exit 1; }; }
7167 cat >conftest.$ac_ext <<_ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h. */
7174 /* Override any gcc2 internal prototype to avoid an error. */
7178 /* We use char because int might match the return type of a gcc2
7179 builtin and then its argument prototype would still apply. */
7180 char gethostbyname ();
7189 rm -f conftest.$ac_objext conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>conftest.er1
7193 grep -v '^ *+' conftest.er1 >conftest.err
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest$ac_exeext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7211 ac_cv_lib_nsl_gethostbyname=yes
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 ac_cv_lib_nsl_gethostbyname=no
7218 rm -f conftest.err conftest.$ac_objext \
7219 conftest$ac_exeext conftest.$ac_ext
7220 LIBS=$ac_check_lib_save_LIBS
7222 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7223 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7224 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7225 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7228 if test $ac_cv_lib_nsl_gethostbyname = no; then
7229 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7230 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7231 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 ac_check_lib_save_LIBS=$LIBS
7236 if test x$gcc_no_link = xyes; then
7237 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7238 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7239 { (exit 1); exit 1; }; }
7241 cat >conftest.$ac_ext <<_ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7248 /* Override any gcc2 internal prototype to avoid an error. */
7252 /* We use char because int might match the return type of a gcc2
7253 builtin and then its argument prototype would still apply. */
7254 char gethostbyname ();
7263 rm -f conftest.$ac_objext conftest$ac_exeext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7265 (eval $ac_link) 2>conftest.er1
7267 grep -v '^ *+' conftest.er1 >conftest.err
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
7272 { ac_try='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try='test -s conftest$ac_exeext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7285 ac_cv_lib_bsd_gethostbyname=yes
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 ac_cv_lib_bsd_gethostbyname=no
7292 rm -f conftest.err conftest.$ac_objext \
7293 conftest$ac_exeext conftest.$ac_ext
7294 LIBS=$ac_check_lib_save_LIBS
7296 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7297 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7298 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7305 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7306 # socket/setsockopt and other routines are undefined under SCO ODT
7307 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7308 # on later versions), says Simon Leinen: it contains gethostby*
7309 # variants that don't use the name server (or something). -lsocket
7310 # must be given before -lnsl if both are needed. We assume that
7311 # if connect needs -lnsl, so does gethostbyname.
7312 echo "$as_me:$LINENO: checking for connect" >&5
7313 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7314 if test "${ac_cv_func_connect+set}" = set; then
7315 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 if test x$gcc_no_link = xyes; then
7318 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7319 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7320 { (exit 1); exit 1; }; }
7322 cat >conftest.$ac_ext <<_ACEOF
7325 cat confdefs.h >>conftest.$ac_ext
7326 cat >>conftest.$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7330 #define connect innocuous_connect
7332 /* System header to define __stub macros and hopefully few prototypes,
7333 which can conflict with char connect (); below.
7334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7335 <limits.h> exists even on freestanding compilers. */
7338 # include <limits.h>
7340 # include <assert.h>
7345 /* Override any gcc2 internal prototype to avoid an error. */
7350 /* We use char because int might match the return type of a gcc2
7351 builtin and then its argument prototype would still apply. */
7353 /* The GNU C library defines this for functions which it implements
7354 to always fail with ENOSYS. Some functions are actually named
7355 something starting with __ and the normal name is an alias. */
7356 #if defined (__stub_connect) || defined (__stub___connect)
7359 char (*f) () = connect;
7368 return f != connect;
7373 rm -f conftest.$ac_objext conftest$ac_exeext
7374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7375 (eval $ac_link) 2>conftest.er1
7377 grep -v '^ *+' conftest.er1 >conftest.err
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } &&
7382 { ac_try='test -z "$ac_c_werror_flag"
7383 || test ! -s conftest.err'
7384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; } &&
7389 { ac_try='test -s conftest$ac_exeext'
7390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }; }; then
7395 ac_cv_func_connect=yes
7397 echo "$as_me: failed program was:" >&5
7398 sed 's/^/| /' conftest.$ac_ext >&5
7400 ac_cv_func_connect=no
7402 rm -f conftest.err conftest.$ac_objext \
7403 conftest$ac_exeext conftest.$ac_ext
7405 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7406 echo "${ECHO_T}$ac_cv_func_connect" >&6
7408 if test $ac_cv_func_connect = no; then
7409 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7410 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7411 if test "${ac_cv_lib_socket_connect+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 ac_check_lib_save_LIBS=$LIBS
7415 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7416 if test x$gcc_no_link = xyes; then
7417 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7418 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7419 { (exit 1); exit 1; }; }
7421 cat >conftest.$ac_ext <<_ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7428 /* Override any gcc2 internal prototype to avoid an error. */
7432 /* We use char because int might match the return type of a gcc2
7433 builtin and then its argument prototype would still apply. */
7443 rm -f conftest.$ac_objext conftest$ac_exeext
7444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7445 (eval $ac_link) 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } &&
7452 { ac_try='test -z "$ac_c_werror_flag"
7453 || test ! -s conftest.err'
7454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); }; } &&
7459 { ac_try='test -s conftest$ac_exeext'
7460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); }; }; then
7465 ac_cv_lib_socket_connect=yes
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 ac_cv_lib_socket_connect=no
7472 rm -f conftest.err conftest.$ac_objext \
7473 conftest$ac_exeext conftest.$ac_ext
7474 LIBS=$ac_check_lib_save_LIBS
7476 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7477 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7478 if test $ac_cv_lib_socket_connect = yes; then
7479 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7484 # Guillermo Gomez says -lposix is necessary on A/UX.
7485 echo "$as_me:$LINENO: checking for remove" >&5
7486 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7487 if test "${ac_cv_func_remove+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 if test x$gcc_no_link = xyes; then
7491 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7492 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7493 { (exit 1); exit 1; }; }
7495 cat >conftest.$ac_ext <<_ACEOF
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7503 #define remove innocuous_remove
7505 /* System header to define __stub macros and hopefully few prototypes,
7506 which can conflict with char remove (); below.
7507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7508 <limits.h> exists even on freestanding compilers. */
7511 # include <limits.h>
7513 # include <assert.h>
7518 /* Override any gcc2 internal prototype to avoid an error. */
7523 /* We use char because int might match the return type of a gcc2
7524 builtin and then its argument prototype would still apply. */
7526 /* The GNU C library defines this for functions which it implements
7527 to always fail with ENOSYS. Some functions are actually named
7528 something starting with __ and the normal name is an alias. */
7529 #if defined (__stub_remove) || defined (__stub___remove)
7532 char (*f) () = remove;
7546 rm -f conftest.$ac_objext conftest$ac_exeext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7548 (eval $ac_link) 2>conftest.er1
7550 grep -v '^ *+' conftest.er1 >conftest.err
7552 cat conftest.err >&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -z "$ac_c_werror_flag"
7556 || test ! -s conftest.err'
7557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); }; } &&
7562 { ac_try='test -s conftest$ac_exeext'
7563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); }; }; then
7568 ac_cv_func_remove=yes
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7573 ac_cv_func_remove=no
7575 rm -f conftest.err conftest.$ac_objext \
7576 conftest$ac_exeext conftest.$ac_ext
7578 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7579 echo "${ECHO_T}$ac_cv_func_remove" >&6
7581 if test $ac_cv_func_remove = no; then
7582 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7583 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7584 if test "${ac_cv_lib_posix_remove+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 ac_check_lib_save_LIBS=$LIBS
7588 LIBS="-lposix $LIBS"
7589 if test x$gcc_no_link = xyes; then
7590 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7591 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7592 { (exit 1); exit 1; }; }
7594 cat >conftest.$ac_ext <<_ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7601 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } &&
7625 { ac_try='test -z "$ac_c_werror_flag"
7626 || test ! -s conftest.err'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; } &&
7632 { ac_try='test -s conftest$ac_exeext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_cv_lib_posix_remove=yes
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_cv_lib_posix_remove=no
7645 rm -f conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 LIBS=$ac_check_lib_save_LIBS
7649 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7650 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7651 if test $ac_cv_lib_posix_remove = yes; then
7652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7657 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7658 echo "$as_me:$LINENO: checking for shmat" >&5
7659 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7660 if test "${ac_cv_func_shmat+set}" = set; then
7661 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 if test x$gcc_no_link = xyes; then
7664 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7665 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7666 { (exit 1); exit 1; }; }
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7676 #define shmat innocuous_shmat
7678 /* System header to define __stub macros and hopefully few prototypes,
7679 which can conflict with char shmat (); below.
7680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7681 <limits.h> exists even on freestanding compilers. */
7684 # include <limits.h>
7686 # include <assert.h>
7691 /* Override any gcc2 internal prototype to avoid an error. */
7696 /* We use char because int might match the return type of a gcc2
7697 builtin and then its argument prototype would still apply. */
7699 /* The GNU C library defines this for functions which it implements
7700 to always fail with ENOSYS. Some functions are actually named
7701 something starting with __ and the normal name is an alias. */
7702 #if defined (__stub_shmat) || defined (__stub___shmat)
7705 char (*f) () = shmat;
7719 rm -f conftest.$ac_objext conftest$ac_exeext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7721 (eval $ac_link) 2>conftest.er1
7723 grep -v '^ *+' conftest.er1 >conftest.err
7725 cat conftest.err >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -z "$ac_c_werror_flag"
7729 || test ! -s conftest.err'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest$ac_exeext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_cv_func_shmat=yes
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7748 rm -f conftest.err conftest.$ac_objext \
7749 conftest$ac_exeext conftest.$ac_ext
7751 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7752 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7754 if test $ac_cv_func_shmat = no; then
7755 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7756 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7757 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 ac_check_lib_save_LIBS=$LIBS
7762 if test x$gcc_no_link = xyes; then
7763 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7764 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7765 { (exit 1); exit 1; }; }
7767 cat >conftest.$ac_ext <<_ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h. */
7774 /* Override any gcc2 internal prototype to avoid an error. */
7778 /* We use char because int might match the return type of a gcc2
7779 builtin and then its argument prototype would still apply. */
7789 rm -f conftest.$ac_objext conftest$ac_exeext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7791 (eval $ac_link) 2>conftest.er1
7793 grep -v '^ *+' conftest.er1 >conftest.err
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } &&
7798 { ac_try='test -z "$ac_c_werror_flag"
7799 || test ! -s conftest.err'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); }; }; then
7811 ac_cv_lib_ipc_shmat=yes
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7816 ac_cv_lib_ipc_shmat=no
7818 rm -f conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7822 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7823 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7824 if test $ac_cv_lib_ipc_shmat = yes; then
7825 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7831 # Check for libraries that X11R6 Xt/Xaw programs need.
7832 ac_save_LDFLAGS=$LDFLAGS
7833 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7834 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7835 # check for ICE first), but we must link in the order -lSM -lICE or
7836 # we get undefined symbols. So assume we have SM if we have ICE.
7837 # These have to be linked with before -lX11, unlike the other
7838 # libraries we check for below, so use a different variable.
7839 # John Interrante, Karl Berry
7840 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7841 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7842 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 ac_check_lib_save_LIBS=$LIBS
7846 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7847 if test x$gcc_no_link = xyes; then
7848 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7849 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7850 { (exit 1); exit 1; }; }
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7859 /* Override any gcc2 internal prototype to avoid an error. */
7863 /* We use char because int might match the return type of a gcc2
7864 builtin and then its argument prototype would still apply. */
7865 char IceConnectionNumber ();
7869 IceConnectionNumber ();
7874 rm -f conftest.$ac_objext conftest$ac_exeext
7875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7876 (eval $ac_link) 2>conftest.er1
7878 grep -v '^ *+' conftest.er1 >conftest.err
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -z "$ac_c_werror_flag"
7884 || test ! -s conftest.err'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; } &&
7890 { ac_try='test -s conftest$ac_exeext'
7891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); }; }; then
7896 ac_cv_lib_ICE_IceConnectionNumber=yes
7898 echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.$ac_ext >&5
7901 ac_cv_lib_ICE_IceConnectionNumber=no
7903 rm -f conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 LIBS=$ac_check_lib_save_LIBS
7907 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7908 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7909 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7910 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7913 LDFLAGS=$ac_save_LDFLAGS
7918 # Determine which AWT peer libraries to build
7919 # Check whether --enable-java-awt or --disable-java-awt was given.
7920 if test "${enable_java_awt+set}" = set; then
7921 enableval="$enable_java_awt"
7925 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7928 # The default toolkit to use is the first one specified.
7932 for peer in $peerlibs ; do
7935 if test "$no_x" = yes; then
7936 echo "*** xlib peers requested but no X library available" 1>&2
7940 if test -z "$TOOLKIT"; then
7941 TOOLKIT=gnu.awt.xlib.XToolkit
7946 if test "$no_x" = yes; then
7947 echo "*** xlib peers requested but no X library available" 1>&2
7951 if test -z "$TOOLKIT"; then
7952 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7954 test -d jniinclude || mkdir jniinclude
7963 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7970 if test "$use_xlib_awt" = yes; then
7980 if test "$use_gtk_awt" = yes; then
7989 # determine whether to enable the cairo GTK Graphics2D backend
7990 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7991 if test "${enable_gtk_cairo+set}" = set; then
7992 enableval="$enable_gtk_cairo"
7997 if test "x${enable_gtk_cairo}" = xyes; then
8005 if test "x${enable_gtk_cairo}" = xyes
8010 if test -z "$PKG_CONFIG"; then
8011 # Extract the first word of "pkg-config", so it can be a program name with args.
8012 set dummy pkg-config; ac_word=$2
8013 echo "$as_me:$LINENO: checking for $ac_word" >&5
8014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8015 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8041 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8043 if test -n "$PKG_CONFIG"; then
8044 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8045 echo "${ECHO_T}$PKG_CONFIG" >&6
8047 echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6
8053 if test "$PKG_CONFIG" = "no" ; then
8054 echo "*** The pkg-config script could not be found. Make sure it is"
8055 echo "*** in your path, or set the PKG_CONFIG environment variable"
8056 echo "*** to the full path to pkg-config."
8057 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8059 PKG_CONFIG_MIN_VERSION=0.9.0
8060 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8061 echo "$as_me:$LINENO: checking for cairo" >&5
8062 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8064 if $PKG_CONFIG --exists "cairo" ; then
8065 echo "$as_me:$LINENO: result: yes" >&5
8066 echo "${ECHO_T}yes" >&6
8069 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8070 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8071 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8072 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8073 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8075 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8076 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8077 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8078 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8079 echo "${ECHO_T}$CAIRO_LIBS" >&6
8083 ## If we have a custom action on failure, don't print errors, but
8084 ## do set a variable so people can do so.
8085 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8086 echo $CAIRO_PKG_ERRORS
8092 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8093 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8097 if test $succeeded = yes; then
8100 { { 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
8101 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;}
8102 { (exit 1); exit 1; }; }
8108 if test -z "$PKG_CONFIG"; then
8109 # Extract the first word of "pkg-config", so it can be a program name with args.
8110 set dummy pkg-config; ac_word=$2
8111 echo "$as_me:$LINENO: checking for $ac_word" >&5
8112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8113 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8114 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8128 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8139 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8141 if test -n "$PKG_CONFIG"; then
8142 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8143 echo "${ECHO_T}$PKG_CONFIG" >&6
8145 echo "$as_me:$LINENO: result: no" >&5
8146 echo "${ECHO_T}no" >&6
8151 if test "$PKG_CONFIG" = "no" ; then
8152 echo "*** The pkg-config script could not be found. Make sure it is"
8153 echo "*** in your path, or set the PKG_CONFIG environment variable"
8154 echo "*** to the full path to pkg-config."
8155 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8157 PKG_CONFIG_MIN_VERSION=0.9.0
8158 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8159 echo "$as_me:$LINENO: checking for pangoft2" >&5
8160 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8162 if $PKG_CONFIG --exists "pangoft2" ; then
8163 echo "$as_me:$LINENO: result: yes" >&5
8164 echo "${ECHO_T}yes" >&6
8167 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8168 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8169 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8170 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8171 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8173 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8174 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8175 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8176 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8177 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8181 ## If we have a custom action on failure, don't print errors, but
8182 ## do set a variable so people can do so.
8183 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8184 echo $PANGOFT2_PKG_ERRORS
8190 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8191 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8195 if test $succeeded = yes; then
8198 { { 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
8199 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;}
8200 { (exit 1); exit 1; }; }
8209 # FIXME: this should be _libs on some hosts.
8212 # Allow the GC to be disabled. Can be useful when debugging.
8213 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8214 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8215 # Check whether --enable-java-gc or --disable-java-gc was given.
8216 if test "${enable_java_gc+set}" = set; then
8217 enableval="$enable_java_gc"
8230 echo "$as_me:$LINENO: result: boehm" >&5
8231 echo "${ECHO_T}boehm" >&6
8232 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8233 JC1GCSPEC='-fuse-boehm-gc'
8234 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8235 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8238 # The POSIX thread support needs to know this.
8240 cat >>confdefs.h <<\_ACEOF
8241 #define HAVE_BOEHM_GC 1
8246 echo "$as_me:$LINENO: result: none" >&5
8247 echo "${ECHO_T}none" >&6
8251 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8252 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8253 { (exit 1); exit 1; }; }
8262 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8266 if test "$GC" = boehm; then
8268 USING_BOEHMGC_FALSE='#'
8270 USING_BOEHMGC_TRUE='#'
8271 USING_BOEHMGC_FALSE=
8276 if test "$GC" = no; then
8278 USING_NOGC_FALSE='#'
8286 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8287 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8288 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8289 echo "$as_me:$LINENO: result: $THREADS" >&5
8290 echo "${ECHO_T}$THREADS" >&6
8296 posix | posix95 | pthreads)
8301 cat >>confdefs.h <<\_ACEOF
8302 #define LINUX_THREADS 1
8310 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8311 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8312 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8313 { (exit 1); exit 1; }; }
8316 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8317 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8318 { (exit 1); exit 1; }; }
8333 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8336 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8337 # merely adds pthread_* functions) but it does have a -pthread switch
8338 # which is required at link-time to select -lc_r *instead* of -lc.
8339 THREADLDFLAGS=-pthread
8340 # Don't set THREADSPEC here as might be expected since -pthread is
8341 # not processed when found within a spec file, it must come from
8342 # the command line. For now, the user must provide the -pthread
8343 # switch to link code compiled with gcj. In future, consider adding
8344 # support for weak references to pthread_* functions ala gthr.h API.
8345 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8348 # FreeBSD 5 implements a model much closer to other modern UNIX
8349 # which support threads. However, it still does not support
8351 THREADLDFLAGS=-pthread
8355 THREADCXXFLAGS=-pthread
8356 # boehm-gc needs some functions from librt, so link that too.
8357 THREADLIBS='-lpthread -lrt'
8358 THREADSPEC='-lpthread -lrt'
8361 THREADLIBS=-lpthread
8362 THREADSPEC=-lpthread
8365 THREADH=posix-threads.h
8366 # MIT pthreads doesn't seem to have the mutexattr functions.
8367 # But for now we don't check for it. We just assume you aren't
8368 # using MIT pthreads.
8370 cat >>confdefs.h <<\_ACEOF
8371 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8375 # If we're using the Boehm GC, then we happen to know that it
8376 # defines _REENTRANT, so we don't bother. Eww.
8377 if test "$GC" != boehm; then
8379 cat >>confdefs.h <<\_ACEOF
8380 #define _REENTRANT 1
8385 cat >>confdefs.h <<\_ACEOF
8386 #define _POSIX_PTHREAD_SEMANTICS 1
8392 THREADH=win32-threads.h
8396 THREADH=no-threads.h
8399 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8409 if test "$THREADS" = posix; then
8410 USING_POSIX_THREADS_TRUE=
8411 USING_POSIX_THREADS_FALSE='#'
8413 USING_POSIX_THREADS_TRUE='#'
8414 USING_POSIX_THREADS_FALSE=
8419 if test "$THREADS" = win32; then
8420 USING_WIN32_THREADS_TRUE=
8421 USING_WIN32_THREADS_FALSE='#'
8423 USING_WIN32_THREADS_TRUE='#'
8424 USING_WIN32_THREADS_FALSE=
8429 if test "$THREADS" = none; then
8430 USING_NO_THREADS_TRUE=
8431 USING_NO_THREADS_FALSE='#'
8433 USING_NO_THREADS_TRUE='#'
8434 USING_NO_THREADS_FALSE=
8438 if test -d sysdep; then true; else mkdir sysdep; fi
8439 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8443 # Hash synchronization is only useful with posix threads right now.
8444 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8445 HASH_SYNC_SPEC=-fhash-synchronization
8447 cat >>confdefs.h <<\_ACEOF
8448 #define JV_HASH_SYNCHRONIZATION 1
8457 if test "$GCC" = yes; then
8466 # We're in the tree with gcc, and need to include some of its headers.
8467 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8469 # Figure out where generated headers like libgcj-config.h get installed.
8470 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
8471 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
8472 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
8473 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
8477 if test "x${with_newlib}" = "xyes"; then
8478 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8479 # may not work correctly, because the compiler may not be able to
8482 # We assume newlib. This lets us hard-code the functions we know
8485 cat >>confdefs.h <<\_ACEOF
8486 #define HAVE_MEMMOVE 1
8490 cat >>confdefs.h <<\_ACEOF
8491 #define HAVE_MEMCPY 1
8495 cat >>confdefs.h <<\_ACEOF
8496 #define HAVE_STRERROR 1
8500 cat >>confdefs.h <<\_ACEOF
8505 cat >>confdefs.h <<\_ACEOF
8506 #define HAVE_GMTIME_R 1
8510 cat >>confdefs.h <<\_ACEOF
8511 #define HAVE_LOCALTIME_R 1
8515 cat >>confdefs.h <<\_ACEOF
8516 #define HAVE_USLEEP_DECL 1
8519 # This is only for POSIX threads.
8521 cat >>confdefs.h <<\_ACEOF
8522 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8525 # We also assume we are using gcc, which provides alloca.
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_ALLOCA 1
8531 # Assume we do not have getuid and friends.
8533 cat >>confdefs.h <<\_ACEOF
8547 for ac_func in strerror ioctl select fstat open fsync sleep opendir
8549 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8550 echo "$as_me:$LINENO: checking for $ac_func" >&5
8551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8552 if eval "test \"\${$as_ac_var+set}\" = set"; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 if test x$gcc_no_link = xyes; then
8556 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8557 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8558 { (exit 1); exit 1; }; }
8560 cat >conftest.$ac_ext <<_ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8568 #define $ac_func innocuous_$ac_func
8570 /* System header to define __stub macros and hopefully few prototypes,
8571 which can conflict with char $ac_func (); below.
8572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8573 <limits.h> exists even on freestanding compilers. */
8576 # include <limits.h>
8578 # include <assert.h>
8583 /* Override any gcc2 internal prototype to avoid an error. */
8588 /* We use char because int might match the return type of a gcc2
8589 builtin and then its argument prototype would still apply. */
8591 /* The GNU C library defines this for functions which it implements
8592 to always fail with ENOSYS. Some functions are actually named
8593 something starting with __ and the normal name is an alias. */
8594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8597 char (*f) () = $ac_func;
8606 return f != $ac_func;
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>conftest.er1
8615 grep -v '^ *+' conftest.er1 >conftest.err
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag"
8621 || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest$ac_exeext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8633 eval "$as_ac_var=yes"
8635 echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8638 eval "$as_ac_var=no"
8640 rm -f conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8645 if test `eval echo '${'$as_ac_var'}'` = yes; then
8646 cat >>confdefs.h <<_ACEOF
8647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8658 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
8660 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8661 echo "$as_me:$LINENO: checking for $ac_func" >&5
8662 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8663 if eval "test \"\${$as_ac_var+set}\" = set"; then
8664 echo $ECHO_N "(cached) $ECHO_C" >&6
8666 if test x$gcc_no_link = xyes; then
8667 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8668 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8669 { (exit 1); exit 1; }; }
8671 cat >conftest.$ac_ext <<_ACEOF
8674 cat confdefs.h >>conftest.$ac_ext
8675 cat >>conftest.$ac_ext <<_ACEOF
8676 /* end confdefs.h. */
8677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8679 #define $ac_func innocuous_$ac_func
8681 /* System header to define __stub macros and hopefully few prototypes,
8682 which can conflict with char $ac_func (); below.
8683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8684 <limits.h> exists even on freestanding compilers. */
8687 # include <limits.h>
8689 # include <assert.h>
8694 /* Override any gcc2 internal prototype to avoid an error. */
8699 /* We use char because int might match the return type of a gcc2
8700 builtin and then its argument prototype would still apply. */
8702 /* The GNU C library defines this for functions which it implements
8703 to always fail with ENOSYS. Some functions are actually named
8704 something starting with __ and the normal name is an alias. */
8705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8708 char (*f) () = $ac_func;
8717 return f != $ac_func;
8722 rm -f conftest.$ac_objext conftest$ac_exeext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8724 (eval $ac_link) 2>conftest.er1
8726 grep -v '^ *+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try='test -z "$ac_c_werror_flag"
8732 || test ! -s conftest.err'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; } &&
8738 { ac_try='test -s conftest$ac_exeext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 eval "$as_ac_var=yes"
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8749 eval "$as_ac_var=no"
8751 rm -f conftest.err conftest.$ac_objext \
8752 conftest$ac_exeext conftest.$ac_ext
8754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8755 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8756 if test `eval echo '${'$as_ac_var'}'` = yes; then
8757 cat >>confdefs.h <<_ACEOF
8758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8773 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
8775 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8776 echo "$as_me:$LINENO: checking for $ac_func" >&5
8777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8778 if eval "test \"\${$as_ac_var+set}\" = set"; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 if test x$gcc_no_link = xyes; then
8782 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8783 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8784 { (exit 1); exit 1; }; }
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8794 #define $ac_func innocuous_$ac_func
8796 /* System header to define __stub macros and hopefully few prototypes,
8797 which can conflict with char $ac_func (); below.
8798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8799 <limits.h> exists even on freestanding compilers. */
8802 # include <limits.h>
8804 # include <assert.h>
8809 /* Override any gcc2 internal prototype to avoid an error. */
8814 /* We use char because int might match the return type of a gcc2
8815 builtin and then its argument prototype would still apply. */
8817 /* The GNU C library defines this for functions which it implements
8818 to always fail with ENOSYS. Some functions are actually named
8819 something starting with __ and the normal name is an alias. */
8820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8823 char (*f) () = $ac_func;
8832 return f != $ac_func;
8837 rm -f conftest.$ac_objext conftest$ac_exeext
8838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8839 (eval $ac_link) 2>conftest.er1
8841 grep -v '^ *+' conftest.er1 >conftest.err
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -z "$ac_c_werror_flag"
8847 || test ! -s conftest.err'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; } &&
8853 { ac_try='test -s conftest$ac_exeext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 eval "$as_ac_var=yes"
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 eval "$as_ac_var=no"
8866 rm -f conftest.err conftest.$ac_objext \
8867 conftest$ac_exeext conftest.$ac_ext
8869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8871 if test `eval echo '${'$as_ac_var'}'` = yes; then
8872 cat >>confdefs.h <<_ACEOF
8873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8881 for ac_func in nl_langinfo setlocale
8883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8884 echo "$as_me:$LINENO: checking for $ac_func" >&5
8885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8886 if eval "test \"\${$as_ac_var+set}\" = set"; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 if test x$gcc_no_link = xyes; then
8890 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8892 { (exit 1); exit 1; }; }
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8902 #define $ac_func innocuous_$ac_func
8904 /* System header to define __stub macros and hopefully few prototypes,
8905 which can conflict with char $ac_func (); below.
8906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8907 <limits.h> exists even on freestanding compilers. */
8910 # include <limits.h>
8912 # include <assert.h>
8917 /* Override any gcc2 internal prototype to avoid an error. */
8922 /* We use char because int might match the return type of a gcc2
8923 builtin and then its argument prototype would still apply. */
8925 /* The GNU C library defines this for functions which it implements
8926 to always fail with ENOSYS. Some functions are actually named
8927 something starting with __ and the normal name is an alias. */
8928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8931 char (*f) () = $ac_func;
8940 return f != $ac_func;
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947 (eval $ac_link) 2>conftest.er1
8949 grep -v '^ *+' conftest.er1 >conftest.err
8951 cat conftest.err >&5
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); } &&
8954 { ac_try='test -z "$ac_c_werror_flag"
8955 || test ! -s conftest.err'
8956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); }; } &&
8961 { ac_try='test -s conftest$ac_exeext'
8962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); }; }; then
8967 eval "$as_ac_var=yes"
8969 echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8972 eval "$as_ac_var=no"
8974 rm -f conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8979 if test `eval echo '${'$as_ac_var'}'` = yes; then
8980 cat >>confdefs.h <<_ACEOF
8981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8989 for ac_func in inet_aton inet_addr
8991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8992 echo "$as_me:$LINENO: checking for $ac_func" >&5
8993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8994 if eval "test \"\${$as_ac_var+set}\" = set"; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8997 if test x$gcc_no_link = xyes; then
8998 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8999 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9000 { (exit 1); exit 1; }; }
9002 cat >conftest.$ac_ext <<_ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9010 #define $ac_func innocuous_$ac_func
9012 /* System header to define __stub macros and hopefully few prototypes,
9013 which can conflict with char $ac_func (); below.
9014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9015 <limits.h> exists even on freestanding compilers. */
9018 # include <limits.h>
9020 # include <assert.h>
9025 /* Override any gcc2 internal prototype to avoid an error. */
9030 /* We use char because int might match the return type of a gcc2
9031 builtin and then its argument prototype would still apply. */
9033 /* The GNU C library defines this for functions which it implements
9034 to always fail with ENOSYS. Some functions are actually named
9035 something starting with __ and the normal name is an alias. */
9036 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9039 char (*f) () = $ac_func;
9048 return f != $ac_func;
9053 rm -f conftest.$ac_objext conftest$ac_exeext
9054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
9057 grep -v '^ *+' conftest.er1 >conftest.err
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 eval "$as_ac_var=yes"
9077 echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9080 eval "$as_ac_var=no"
9082 rm -f conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9086 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9087 if test `eval echo '${'$as_ac_var'}'` = yes; then
9088 cat >>confdefs.h <<_ACEOF
9089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9098 for ac_func in inet_pton uname inet_ntoa
9100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9101 echo "$as_me:$LINENO: checking for $ac_func" >&5
9102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9103 if eval "test \"\${$as_ac_var+set}\" = set"; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 if test x$gcc_no_link = xyes; then
9107 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9108 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9109 { (exit 1); exit 1; }; }
9111 cat >conftest.$ac_ext <<_ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9119 #define $ac_func innocuous_$ac_func
9121 /* System header to define __stub macros and hopefully few prototypes,
9122 which can conflict with char $ac_func (); below.
9123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9124 <limits.h> exists even on freestanding compilers. */
9127 # include <limits.h>
9129 # include <assert.h>
9134 /* Override any gcc2 internal prototype to avoid an error. */
9139 /* We use char because int might match the return type of a gcc2
9140 builtin and then its argument prototype would still apply. */
9142 /* The GNU C library defines this for functions which it implements
9143 to always fail with ENOSYS. Some functions are actually named
9144 something starting with __ and the normal name is an alias. */
9145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9148 char (*f) () = $ac_func;
9157 return f != $ac_func;
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9164 (eval $ac_link) 2>conftest.er1
9166 grep -v '^ *+' conftest.er1 >conftest.err
9168 cat conftest.err >&5
9169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170 (exit $ac_status); } &&
9171 { ac_try='test -z "$ac_c_werror_flag"
9172 || test ! -s conftest.err'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; } &&
9178 { ac_try='test -s conftest$ac_exeext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9184 eval "$as_ac_var=yes"
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 eval "$as_ac_var=no"
9191 rm -f conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9196 if test `eval echo '${'$as_ac_var'}'` = yes; then
9197 cat >>confdefs.h <<_ACEOF
9198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9209 for ac_func in fork execvp pipe sigaction ftruncate
9211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9212 echo "$as_me:$LINENO: checking for $ac_func" >&5
9213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9214 if eval "test \"\${$as_ac_var+set}\" = set"; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 if test x$gcc_no_link = xyes; then
9218 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9219 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9220 { (exit 1); exit 1; }; }
9222 cat >conftest.$ac_ext <<_ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h. */
9228 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9230 #define $ac_func innocuous_$ac_func
9232 /* System header to define __stub macros and hopefully few prototypes,
9233 which can conflict with char $ac_func (); below.
9234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235 <limits.h> exists even on freestanding compilers. */
9238 # include <limits.h>
9240 # include <assert.h>
9245 /* Override any gcc2 internal prototype to avoid an error. */
9250 /* We use char because int might match the return type of a gcc2
9251 builtin and then its argument prototype would still apply. */
9253 /* The GNU C library defines this for functions which it implements
9254 to always fail with ENOSYS. Some functions are actually named
9255 something starting with __ and the normal name is an alias. */
9256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9259 char (*f) () = $ac_func;
9268 return f != $ac_func;
9273 rm -f conftest.$ac_objext conftest$ac_exeext
9274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9275 (eval $ac_link) 2>conftest.er1
9277 grep -v '^ *+' conftest.er1 >conftest.err
9279 cat conftest.err >&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try='test -z "$ac_c_werror_flag"
9283 || test ! -s conftest.err'
9284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288 (exit $ac_status); }; } &&
9289 { ac_try='test -s conftest$ac_exeext'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 eval "$as_ac_var=yes"
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 eval "$as_ac_var=no"
9302 rm -f conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9306 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9307 if test `eval echo '${'$as_ac_var'}'` = yes; then
9308 cat >>confdefs.h <<_ACEOF
9309 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9315 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9317 if test "${ac_cv_header_stdc+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 cat >conftest.$ac_ext <<_ACEOF
9323 cat confdefs.h >>conftest.$ac_ext
9324 cat >>conftest.$ac_ext <<_ACEOF
9325 /* end confdefs.h. */
9339 rm -f conftest.$ac_objext
9340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9341 (eval $ac_compile) 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } &&
9348 { ac_try='test -z "$ac_c_werror_flag"
9349 || test ! -s conftest.err'
9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); }; } &&
9355 { ac_try='test -s conftest.$ac_objext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 ac_cv_header_stdc=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_cv_header_stdc=no
9368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9370 if test $ac_cv_header_stdc = yes; then
9371 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9372 cat >conftest.$ac_ext <<_ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9382 $EGREP "memchr" >/dev/null 2>&1; then
9385 ac_cv_header_stdc=no
9391 if test $ac_cv_header_stdc = yes; then
9392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9403 $EGREP "free" >/dev/null 2>&1; then
9406 ac_cv_header_stdc=no
9412 if test $ac_cv_header_stdc = yes; then
9413 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9414 if test "$cross_compiling" = yes; then
9417 cat >conftest.$ac_ext <<_ACEOF
9420 cat confdefs.h >>conftest.$ac_ext
9421 cat >>conftest.$ac_ext <<_ACEOF
9422 /* end confdefs.h. */
9424 #if ((' ' & 0x0FF) == 0x020)
9425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9428 # define ISLOWER(c) \
9429 (('a' <= (c) && (c) <= 'i') \
9430 || ('j' <= (c) && (c) <= 'r') \
9431 || ('s' <= (c) && (c) <= 'z'))
9432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9440 for (i = 0; i < 256; i++)
9441 if (XOR (islower (i), ISLOWER (i))
9442 || toupper (i) != TOUPPER (i))
9447 rm -f conftest$ac_exeext
9448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9449 (eval $ac_link) 2>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; }; then
9460 echo "$as_me: program exited with status $ac_status" >&5
9461 echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9465 ac_cv_header_stdc=no
9467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9471 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9472 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9473 if test $ac_cv_header_stdc = yes; then
9475 cat >>confdefs.h <<\_ACEOF
9476 #define STDC_HEADERS 1
9481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9492 inttypes.h stdint.h unistd.h
9494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9495 echo "$as_me:$LINENO: checking for $ac_header" >&5
9496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 $ac_includes_default
9508 #include <$ac_header>
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512 (eval $ac_compile) 2>conftest.er1
9514 grep -v '^ *+' conftest.er1 >conftest.err
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try='test -z "$ac_c_werror_flag"
9520 || test ! -s conftest.err'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest.$ac_objext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 eval "$as_ac_Header=yes"
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 eval "$as_ac_Header=no"
9539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9544 cat >>confdefs.h <<_ACEOF
9545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9556 for ac_header in execinfo.h unistd.h dlfcn.h
9558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9560 echo "$as_me:$LINENO: checking for $ac_header" >&5
9561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9563 echo $ECHO_N "(cached) $ECHO_C" >&6
9565 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9566 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9568 # Is the header compilable?
9569 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9571 cat >conftest.$ac_ext <<_ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 $ac_includes_default
9578 #include <$ac_header>
9580 rm -f conftest.$ac_objext
9581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9582 (eval $ac_compile) 2>conftest.er1
9584 grep -v '^ *+' conftest.er1 >conftest.err
9586 cat conftest.err >&5
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); } &&
9589 { ac_try='test -z "$ac_c_werror_flag"
9590 || test ! -s conftest.err'
9591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); }; } &&
9596 { ac_try='test -s conftest.$ac_objext'
9597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); }; }; then
9602 ac_header_compiler=yes
9604 echo "$as_me: failed program was:" >&5
9605 sed 's/^/| /' conftest.$ac_ext >&5
9607 ac_header_compiler=no
9609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9611 echo "${ECHO_T}$ac_header_compiler" >&6
9613 # Is the header present?
9614 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9616 cat >conftest.$ac_ext <<_ACEOF
9619 cat confdefs.h >>conftest.$ac_ext
9620 cat >>conftest.$ac_ext <<_ACEOF
9621 /* end confdefs.h. */
9622 #include <$ac_header>
9624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } >/dev/null; then
9632 if test -s conftest.err; then
9633 ac_cpp_err=$ac_c_preproc_warn_flag
9634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9641 if test -z "$ac_cpp_err"; then
9642 ac_header_preproc=yes
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9647 ac_header_preproc=no
9649 rm -f conftest.err conftest.$ac_ext
9650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9651 echo "${ECHO_T}$ac_header_preproc" >&6
9653 # So? What about this header?
9654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9660 ac_header_preproc=yes
9663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9677 ## ---------------------------------- ##
9678 ## Report this to the libjava lists. ##
9679 ## ---------------------------------- ##
9682 sed "s/^/$as_me: WARNING: /" >&2
9685 echo "$as_me:$LINENO: checking for $ac_header" >&5
9686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 eval "$as_ac_Header=\$ac_header_preproc"
9692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9693 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9696 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9697 cat >>confdefs.h <<_ACEOF
9698 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9705 echo "$as_me:$LINENO: checking for backtrace" >&5
9706 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9707 if test "${ac_cv_func_backtrace+set}" = set; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 if test x$gcc_no_link = xyes; then
9711 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9712 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9713 { (exit 1); exit 1; }; }
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define backtrace innocuous_backtrace
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char backtrace (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9731 # include <limits.h>
9733 # include <assert.h>
9738 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9746 /* The GNU C library defines this for functions which it implements
9747 to always fail with ENOSYS. Some functions are actually named
9748 something starting with __ and the normal name is an alias. */
9749 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9752 char (*f) () = backtrace;
9761 return f != backtrace;
9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 (eval $ac_link) 2>conftest.er1
9770 grep -v '^ *+' conftest.er1 >conftest.err
9772 cat conftest.err >&5
9773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 (exit $ac_status); } &&
9775 { ac_try='test -z "$ac_c_werror_flag"
9776 || test ! -s conftest.err'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; } &&
9782 { ac_try='test -s conftest$ac_exeext'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; }; then
9788 ac_cv_func_backtrace=yes
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.$ac_ext >&5
9793 ac_cv_func_backtrace=no
9795 rm -f conftest.err conftest.$ac_objext \
9796 conftest$ac_exeext conftest.$ac_ext
9798 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9799 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9800 if test $ac_cv_func_backtrace = yes; then
9804 # Has broken backtrace()
9807 # Has broken backtrace(), but we supply our own.
9808 if test -d sysdep; then true; else mkdir -p sysdep; fi
9809 supply_backtrace=yes
9811 cat >>confdefs.h <<\_ACEOF
9812 #define HAVE_BACKTRACE 1
9818 cat >>confdefs.h <<\_ACEOF
9819 #define HAVE_BACKTRACE 1
9829 # Has backtrace() defined in libgcj itself
9831 cat >>confdefs.h <<\_ACEOF
9832 #define HAVE_BACKTRACE 1
9841 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9842 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9843 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9846 ac_check_lib_save_LIBS=$LIBS
9848 if test x$gcc_no_link = xyes; then
9849 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9850 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9851 { (exit 1); exit 1; }; }
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9860 /* Override any gcc2 internal prototype to avoid an error. */
9864 /* We use char because int might match the return type of a gcc2
9865 builtin and then its argument prototype would still apply. */
9875 rm -f conftest.$ac_objext conftest$ac_exeext
9876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9877 (eval $ac_link) 2>conftest.er1
9879 grep -v '^ *+' conftest.er1 >conftest.err
9881 cat conftest.err >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); } &&
9884 { ac_try='test -z "$ac_c_werror_flag"
9885 || test ! -s conftest.err'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; } &&
9891 { ac_try='test -s conftest$ac_exeext'
9892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; }; then
9897 ac_cv_lib_dl_dladdr=yes
9899 echo "$as_me: failed program was:" >&5
9900 sed 's/^/| /' conftest.$ac_ext >&5
9902 ac_cv_lib_dl_dladdr=no
9904 rm -f conftest.err conftest.$ac_objext \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9908 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9909 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9910 if test $ac_cv_lib_dl_dladdr = yes; then
9912 if test "x${disable_dladdr}" = "xyes"; then
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_DLADDR 1
9925 if test x"$build" = x"$host"; then
9926 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9927 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9928 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9929 echo $ECHO_N "(cached) $ECHO_C" >&6
9931 test "$cross_compiling" = yes &&
9932 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9933 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9934 { (exit 1); exit 1; }; }
9935 if test -r "/proc/self/exe"; then
9936 ac_cv_file__proc_self_exe=yes
9938 ac_cv_file__proc_self_exe=no
9941 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9942 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9943 if test $ac_cv_file__proc_self_exe = yes; then
9945 cat >>confdefs.h <<_ACEOF
9946 #define HAVE__PROC_SELF_EXE 1
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_PROC_SELF_EXE 1
9961 cat >>confdefs.h <<\_ACEOF
9962 #define HAVE_PROC_SELF_EXE 1
9970 if test "X$prefix" = "XNONE"; then
9971 acl_final_prefix="$ac_default_prefix"
9973 acl_final_prefix="$prefix"
9975 if test "X$exec_prefix" = "XNONE"; then
9976 acl_final_exec_prefix='${prefix}'
9978 acl_final_exec_prefix="$exec_prefix"
9980 acl_save_prefix="$prefix"
9981 prefix="$acl_final_prefix"
9982 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9983 prefix="$acl_save_prefix"
9986 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9987 if test "${with_gnu_ld+set}" = set; then
9988 withval="$with_gnu_ld"
9989 test "$withval" = no || with_gnu_ld=yes
9993 # Prepare PATH_SEPARATOR.
9994 # The user is always right.
9995 if test "${PATH_SEPARATOR+set}" != set; then
9996 echo "#! /bin/sh" >conf$$.sh
9997 echo "exit 0" >>conf$$.sh
9999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10007 if test "$GCC" = yes; then
10008 # Check if gcc -print-prog-name=ld gives a path.
10009 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10010 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10013 # gcc leaves a trailing carriage return which upsets mingw
10014 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10016 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10019 # Accept absolute paths.
10020 [\\/]* | [A-Za-z]:[\\/]*)
10021 re_direlt='/[^/][^/]*/\.\./'
10022 # Canonicalize the path of ld
10023 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10024 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10025 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10027 test -z "$LD" && LD="$ac_prog"
10030 # If it fails, then pretend we aren't using GCC.
10034 # If it is relative, then search for the first ld in PATH.
10035 with_gnu_ld=unknown
10038 elif test "$with_gnu_ld" = yes; then
10039 echo "$as_me:$LINENO: checking for GNU ld" >&5
10040 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10042 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10043 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10045 if test "${acl_cv_path_LD+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 if test -z "$LD"; then
10049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10050 for ac_dir in $PATH; do
10051 test -z "$ac_dir" && ac_dir=.
10052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10053 acl_cv_path_LD="$ac_dir/$ac_prog"
10054 # Check to see if the program is GNU ld. I'd rather use --version,
10055 # but apparently some GNU ld's only accept -v.
10056 # Break only if it was the GNU/non-GNU ld that we prefer.
10057 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10058 test "$with_gnu_ld" != no && break
10060 test "$with_gnu_ld" != yes && break
10066 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10070 LD="$acl_cv_path_LD"
10071 if test -n "$LD"; then
10072 echo "$as_me:$LINENO: result: $LD" >&5
10073 echo "${ECHO_T}$LD" >&6
10075 echo "$as_me:$LINENO: result: no" >&5
10076 echo "${ECHO_T}no" >&6
10078 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10079 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10080 { (exit 1); exit 1; }; }
10081 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10082 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10083 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10087 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10088 acl_cv_prog_gnu_ld=yes
10090 acl_cv_prog_gnu_ld=no
10093 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10094 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10095 with_gnu_ld=$acl_cv_prog_gnu_ld
10099 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10100 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10101 if test "${acl_cv_rpath+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10105 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10106 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10108 rm -f ./conftest.sh
10112 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10113 echo "${ECHO_T}$acl_cv_rpath" >&6
10115 libext="$acl_cv_libext"
10116 shlibext="$acl_cv_shlibext"
10117 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10118 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10119 hardcode_direct="$acl_cv_hardcode_direct"
10120 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10121 # Check whether --enable-rpath or --disable-rpath was given.
10122 if test "${enable_rpath+set}" = set; then
10123 enableval="$enable_rpath"
10137 acl_save_prefix="$prefix"
10138 prefix="$acl_final_prefix"
10139 acl_save_exec_prefix="$exec_prefix"
10140 exec_prefix="$acl_final_exec_prefix"
10142 eval additional_includedir=\"$includedir\"
10143 eval additional_libdir=\"$libdir\"
10145 exec_prefix="$acl_save_exec_prefix"
10146 prefix="$acl_save_prefix"
10149 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10150 if test "${with_libiconv_prefix+set}" = set; then
10151 withval="$with_libiconv_prefix"
10153 if test "X$withval" = "Xno"; then
10156 if test "X$withval" = "X"; then
10158 acl_save_prefix="$prefix"
10159 prefix="$acl_final_prefix"
10160 acl_save_exec_prefix="$exec_prefix"
10161 exec_prefix="$acl_final_exec_prefix"
10163 eval additional_includedir=\"$includedir\"
10164 eval additional_libdir=\"$libdir\"
10166 exec_prefix="$acl_save_exec_prefix"
10167 prefix="$acl_save_prefix"
10170 additional_includedir="$withval/include"
10171 additional_libdir="$withval/lib"
10181 names_already_handled=
10182 names_next_round='iconv '
10183 while test -n "$names_next_round"; do
10184 names_this_round="$names_next_round"
10186 for name in $names_this_round; do
10188 for n in $names_already_handled; do
10189 if test "$n" = "$name"; then
10190 already_handled=yes
10194 if test -z "$already_handled"; then
10195 names_already_handled="$names_already_handled $name"
10196 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10197 eval value=\"\$HAVE_LIB$uppername\"
10198 if test -n "$value"; then
10199 if test "$value" = yes; then
10200 eval value=\"\$LIB$uppername\"
10201 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
10202 eval value=\"\$LTLIB$uppername\"
10203 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
10212 if test $use_additional = yes; then
10213 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10214 found_dir="$additional_libdir"
10215 found_so="$additional_libdir/lib$name.$shlibext"
10216 if test -f "$additional_libdir/lib$name.la"; then
10217 found_la="$additional_libdir/lib$name.la"
10220 if test -f "$additional_libdir/lib$name.$libext"; then
10221 found_dir="$additional_libdir"
10222 found_a="$additional_libdir/lib$name.$libext"
10223 if test -f "$additional_libdir/lib$name.la"; then
10224 found_la="$additional_libdir/lib$name.la"
10229 if test "X$found_dir" = "X"; then
10230 for x in $LDFLAGS $LTLIBICONV; do
10232 acl_save_prefix="$prefix"
10233 prefix="$acl_final_prefix"
10234 acl_save_exec_prefix="$exec_prefix"
10235 exec_prefix="$acl_final_exec_prefix"
10237 exec_prefix="$acl_save_exec_prefix"
10238 prefix="$acl_save_prefix"
10242 dir=`echo "X$x" | sed -e 's/^X-L//'`
10243 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10245 found_so="$dir/lib$name.$shlibext"
10246 if test -f "$dir/lib$name.la"; then
10247 found_la="$dir/lib$name.la"
10250 if test -f "$dir/lib$name.$libext"; then
10252 found_a="$dir/lib$name.$libext"
10253 if test -f "$dir/lib$name.la"; then
10254 found_la="$dir/lib$name.la"
10260 if test "X$found_dir" != "X"; then
10265 if test "X$found_dir" != "X"; then
10266 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
10267 if test "X$found_so" != "X"; then
10268 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10269 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10272 for x in $ltrpathdirs; do
10273 if test "X$x" = "X$found_dir"; then
10278 if test -z "$haveit"; then
10279 ltrpathdirs="$ltrpathdirs $found_dir"
10281 if test "$hardcode_direct" = yes; then
10282 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10284 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10285 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10287 for x in $rpathdirs; do
10288 if test "X$x" = "X$found_dir"; then
10293 if test -z "$haveit"; then
10294 rpathdirs="$rpathdirs $found_dir"
10298 for x in $LDFLAGS $LIBICONV; do
10300 acl_save_prefix="$prefix"
10301 prefix="$acl_final_prefix"
10302 acl_save_exec_prefix="$exec_prefix"
10303 exec_prefix="$acl_final_exec_prefix"
10305 exec_prefix="$acl_save_exec_prefix"
10306 prefix="$acl_save_prefix"
10308 if test "X$x" = "X-L$found_dir"; then
10313 if test -z "$haveit"; then
10314 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
10316 if test "$hardcode_minus_L" != no; then
10317 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
10319 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10325 if test "X$found_a" != "X"; then
10326 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
10328 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
10331 additional_includedir=
10332 case "$found_dir" in
10334 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10335 additional_includedir="$basedir/include"
10338 if test "X$additional_includedir" != "X"; then
10339 if test "X$additional_includedir" != "X/usr/include"; then
10341 if test "X$additional_includedir" = "X/usr/local/include"; then
10342 if test -n "$GCC"; then
10344 linux*) haveit=yes;;
10348 if test -z "$haveit"; then
10349 for x in $CPPFLAGS $INCICONV; do
10351 acl_save_prefix="$prefix"
10352 prefix="$acl_final_prefix"
10353 acl_save_exec_prefix="$exec_prefix"
10354 exec_prefix="$acl_final_exec_prefix"
10356 exec_prefix="$acl_save_exec_prefix"
10357 prefix="$acl_save_prefix"
10359 if test "X$x" = "X-I$additional_includedir"; then
10364 if test -z "$haveit"; then
10365 if test -d "$additional_includedir"; then
10366 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10372 if test -n "$found_la"; then
10373 save_libdir="$libdir"
10374 case "$found_la" in
10375 */* | *\\*) . "$found_la" ;;
10376 *) . "./$found_la" ;;
10378 libdir="$save_libdir"
10379 for dep in $dependency_libs; do
10382 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10383 if test "X$additional_libdir" != "X/usr/lib"; then
10385 if test "X$additional_libdir" = "X/usr/local/lib"; then
10386 if test -n "$GCC"; then
10388 linux*) haveit=yes;;
10392 if test -z "$haveit"; then
10394 for x in $LDFLAGS $LIBICONV; do
10396 acl_save_prefix="$prefix"
10397 prefix="$acl_final_prefix"
10398 acl_save_exec_prefix="$exec_prefix"
10399 exec_prefix="$acl_final_exec_prefix"
10401 exec_prefix="$acl_save_exec_prefix"
10402 prefix="$acl_save_prefix"
10404 if test "X$x" = "X-L$additional_libdir"; then
10409 if test -z "$haveit"; then
10410 if test -d "$additional_libdir"; then
10411 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10415 for x in $LDFLAGS $LTLIBICONV; do
10417 acl_save_prefix="$prefix"
10418 prefix="$acl_final_prefix"
10419 acl_save_exec_prefix="$exec_prefix"
10420 exec_prefix="$acl_final_exec_prefix"
10422 exec_prefix="$acl_save_exec_prefix"
10423 prefix="$acl_save_prefix"
10425 if test "X$x" = "X-L$additional_libdir"; then
10430 if test -z "$haveit"; then
10431 if test -d "$additional_libdir"; then
10432 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10439 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10440 if test "$enable_rpath" != no; then
10442 for x in $rpathdirs; do
10443 if test "X$x" = "X$dir"; then
10448 if test -z "$haveit"; then
10449 rpathdirs="$rpathdirs $dir"
10452 for x in $ltrpathdirs; do
10453 if test "X$x" = "X$dir"; then
10458 if test -z "$haveit"; then
10459 ltrpathdirs="$ltrpathdirs $dir"
10464 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10467 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10470 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10471 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10477 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10478 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10484 if test "X$rpathdirs" != "X"; then
10485 if test -n "$hardcode_libdir_separator"; then
10487 for found_dir in $rpathdirs; do
10488 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10490 acl_save_libdir="$libdir"
10492 eval flag=\"$hardcode_libdir_flag_spec\"
10493 libdir="$acl_save_libdir"
10494 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10496 for found_dir in $rpathdirs; do
10497 acl_save_libdir="$libdir"
10498 libdir="$found_dir"
10499 eval flag=\"$hardcode_libdir_flag_spec\"
10500 libdir="$acl_save_libdir"
10501 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10505 if test "X$ltrpathdirs" != "X"; then
10506 for found_dir in $ltrpathdirs; do
10507 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10517 am_save_CPPFLAGS="$CPPFLAGS"
10519 for element in $INCICONV; do
10521 for x in $CPPFLAGS; do
10523 acl_save_prefix="$prefix"
10524 prefix="$acl_final_prefix"
10525 acl_save_exec_prefix="$exec_prefix"
10526 exec_prefix="$acl_final_exec_prefix"
10528 exec_prefix="$acl_save_exec_prefix"
10529 prefix="$acl_save_prefix"
10531 if test "X$x" = "X$element"; then
10536 if test -z "$haveit"; then
10537 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10542 echo "$as_me:$LINENO: checking for iconv" >&5
10543 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10544 if test "${am_cv_func_iconv+set}" = set; then
10545 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 am_cv_func_iconv="no, consider installing GNU libiconv"
10550 if test x$gcc_no_link = xyes; then
10551 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10552 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10553 { (exit 1); exit 1; }; }
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 #include <stdlib.h>
10566 iconv_t cd = iconv_open("","");
10567 iconv(cd,NULL,NULL,NULL,NULL);
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575 (eval $ac_link) 2>conftest.er1
10577 grep -v '^ *+' conftest.er1 >conftest.err
10579 cat conftest.err >&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); } &&
10582 { ac_try='test -z "$ac_c_werror_flag"
10583 || test ! -s conftest.err'
10584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585 (eval $ac_try) 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); }; } &&
10589 { ac_try='test -s conftest$ac_exeext'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 am_cv_func_iconv=yes
10597 echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10601 rm -f conftest.err conftest.$ac_objext \
10602 conftest$ac_exeext conftest.$ac_ext
10603 if test "$am_cv_func_iconv" != yes; then
10604 am_save_LIBS="$LIBS"
10605 LIBS="$LIBS $LIBICONV"
10606 if test x$gcc_no_link = xyes; then
10607 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10608 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10609 { (exit 1); exit 1; }; }
10611 cat >conftest.$ac_ext <<_ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h. */
10617 #include <stdlib.h>
10622 iconv_t cd = iconv_open("","");
10623 iconv(cd,NULL,NULL,NULL,NULL);
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10631 (eval $ac_link) 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag"
10639 || test ! -s conftest.err'
10640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10641 (eval $ac_try) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest$ac_exeext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 am_cv_lib_iconv=yes
10652 am_cv_func_iconv=yes
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10658 rm -f conftest.err conftest.$ac_objext \
10659 conftest$ac_exeext conftest.$ac_ext
10660 LIBS="$am_save_LIBS"
10664 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10665 echo "${ECHO_T}$am_cv_func_iconv" >&6
10666 if test "$am_cv_func_iconv" = yes; then
10668 cat >>confdefs.h <<\_ACEOF
10669 #define HAVE_ICONV 1
10673 if test "$am_cv_lib_iconv" = yes; then
10674 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10675 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10676 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10677 echo "${ECHO_T}$LIBICONV" >&6
10679 CPPFLAGS="$am_save_CPPFLAGS"
10686 if test "$am_cv_func_iconv" = yes; then
10687 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10688 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10689 if test "${am_cv_proto_iconv+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 cat >conftest.$ac_ext <<_ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h. */
10700 #include <stdlib.h>
10706 #if defined(__STDC__) || defined(__cplusplus)
10707 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10720 rm -f conftest.$ac_objext
10721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10722 (eval $ac_compile) 2>conftest.er1
10724 grep -v '^ *+' conftest.er1 >conftest.err
10726 cat conftest.err >&5
10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10728 (exit $ac_status); } &&
10729 { ac_try='test -z "$ac_c_werror_flag"
10730 || test ! -s conftest.err'
10731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732 (eval $ac_try) 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest.$ac_objext'
10737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738 (eval $ac_try) 2>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); }; }; then
10742 am_cv_proto_iconv_arg1=""
10744 echo "$as_me: failed program was:" >&5
10745 sed 's/^/| /' conftest.$ac_ext >&5
10747 am_cv_proto_iconv_arg1="const"
10749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10750 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);"
10753 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10754 echo "$as_me:$LINENO: result: ${ac_t:-
10755 }$am_cv_proto_iconv" >&5
10756 echo "${ECHO_T}${ac_t:-
10757 }$am_cv_proto_iconv" >&6
10759 cat >>confdefs.h <<_ACEOF
10760 #define ICONV_CONST $am_cv_proto_iconv_arg1
10766 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10767 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10768 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 if test x$gcc_no_link = xyes; then
10772 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10773 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10774 { (exit 1); exit 1; }; }
10776 cat >conftest.$ac_ext <<_ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 #include <locale.h>
10791 rm -f conftest.$ac_objext conftest$ac_exeext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793 (eval $ac_link) 2>conftest.er1
10795 grep -v '^ *+' conftest.er1 >conftest.err
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } &&
10800 { ac_try='test -z "$ac_c_werror_flag"
10801 || test ! -s conftest.err'
10802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10803 (eval $ac_try) 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); }; } &&
10807 { ac_try='test -s conftest$ac_exeext'
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 am_cv_val_LC_MESSAGES=yes
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 am_cv_val_LC_MESSAGES=no
10820 rm -f conftest.err conftest.$ac_objext \
10821 conftest$ac_exeext conftest.$ac_ext
10823 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10824 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10825 if test $am_cv_val_LC_MESSAGES = yes; then
10827 cat >>confdefs.h <<\_ACEOF
10828 #define HAVE_LC_MESSAGES 1
10833 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10834 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10835 if test "${ac_cv_struct_tm+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 cat >conftest.$ac_ext <<_ACEOF
10841 cat confdefs.h >>conftest.$ac_ext
10842 cat >>conftest.$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 #include <sys/types.h>
10850 struct tm *tp; tp->tm_sec;
10855 rm -f conftest.$ac_objext
10856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10857 (eval $ac_compile) 2>conftest.er1
10859 grep -v '^ *+' conftest.er1 >conftest.err
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } &&
10864 { ac_try='test -z "$ac_c_werror_flag"
10865 || test ! -s conftest.err'
10866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10867 (eval $ac_try) 2>&5
10869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10870 (exit $ac_status); }; } &&
10871 { ac_try='test -s conftest.$ac_objext'
10872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10873 (eval $ac_try) 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; }; then
10877 ac_cv_struct_tm=time.h
10879 echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10882 ac_cv_struct_tm=sys/time.h
10884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10886 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10887 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10888 if test $ac_cv_struct_tm = sys/time.h; then
10890 cat >>confdefs.h <<\_ACEOF
10891 #define TM_IN_SYS_TIME 1
10896 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10897 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10898 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 cat >conftest.$ac_ext <<_ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h. */
10907 #include <sys/types.h>
10908 #include <$ac_cv_struct_tm>
10914 static struct tm ac_aggr;
10915 if (ac_aggr.tm_zone)
10921 rm -f conftest.$ac_objext
10922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10923 (eval $ac_compile) 2>conftest.er1
10925 grep -v '^ *+' conftest.er1 >conftest.err
10927 cat conftest.err >&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); } &&
10930 { ac_try='test -z "$ac_c_werror_flag"
10931 || test ! -s conftest.err'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; } &&
10937 { ac_try='test -s conftest.$ac_objext'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; }; then
10943 ac_cv_member_struct_tm_tm_zone=yes
10945 echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10948 cat >conftest.$ac_ext <<_ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 #include <sys/types.h>
10955 #include <$ac_cv_struct_tm>
10961 static struct tm ac_aggr;
10962 if (sizeof ac_aggr.tm_zone)
10968 rm -f conftest.$ac_objext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10970 (eval $ac_compile) 2>conftest.er1
10972 grep -v '^ *+' conftest.er1 >conftest.err
10974 cat conftest.err >&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -z "$ac_c_werror_flag"
10978 || test ! -s conftest.err'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try='test -s conftest.$ac_objext'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 ac_cv_member_struct_tm_tm_zone=yes
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.$ac_ext >&5
10995 ac_cv_member_struct_tm_tm_zone=no
10997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11001 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11002 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11003 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006 #define HAVE_STRUCT_TM_TM_ZONE 1
11012 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11014 cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_TM_ZONE 1
11019 echo "$as_me:$LINENO: checking for tzname" >&5
11020 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11021 if test "${ac_cv_var_tzname+set}" = set; then
11022 echo $ECHO_N "(cached) $ECHO_C" >&6
11024 if test x$gcc_no_link = xyes; then
11025 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11026 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11027 { (exit 1); exit 1; }; }
11029 cat >conftest.$ac_ext <<_ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11036 #ifndef tzname /* For SGI. */
11037 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050 (eval $ac_link) 2>conftest.er1
11052 grep -v '^ *+' conftest.er1 >conftest.err
11054 cat conftest.err >&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try='test -z "$ac_c_werror_flag"
11058 || test ! -s conftest.err'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; } &&
11064 { ac_try='test -s conftest$ac_exeext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11070 ac_cv_var_tzname=yes
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 ac_cv_var_tzname=no
11077 rm -f conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
11080 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11081 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11082 if test $ac_cv_var_tzname = yes; then
11084 cat >>confdefs.h <<\_ACEOF
11085 #define HAVE_TZNAME 1
11094 for ac_func in gethostbyname_r
11096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11097 echo "$as_me:$LINENO: checking for $ac_func" >&5
11098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11099 if eval "test \"\${$as_ac_var+set}\" = set"; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 if test x$gcc_no_link = xyes; then
11103 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11104 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11105 { (exit 1); exit 1; }; }
11107 cat >conftest.$ac_ext <<_ACEOF
11110 cat confdefs.h >>conftest.$ac_ext
11111 cat >>conftest.$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11115 #define $ac_func innocuous_$ac_func
11117 /* System header to define __stub macros and hopefully few prototypes,
11118 which can conflict with char $ac_func (); below.
11119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11120 <limits.h> exists even on freestanding compilers. */
11123 # include <limits.h>
11125 # include <assert.h>
11130 /* Override any gcc2 internal prototype to avoid an error. */
11135 /* We use char because int might match the return type of a gcc2
11136 builtin and then its argument prototype would still apply. */
11138 /* The GNU C library defines this for functions which it implements
11139 to always fail with ENOSYS. Some functions are actually named
11140 something starting with __ and the normal name is an alias. */
11141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11144 char (*f) () = $ac_func;
11153 return f != $ac_func;
11158 rm -f conftest.$ac_objext conftest$ac_exeext
11159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11160 (eval $ac_link) 2>conftest.er1
11162 grep -v '^ *+' conftest.er1 >conftest.err
11164 cat conftest.err >&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); } &&
11167 { ac_try='test -z "$ac_c_werror_flag"
11168 || test ! -s conftest.err'
11169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11170 (eval $ac_try) 2>&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); }; } &&
11174 { ac_try='test -s conftest$ac_exeext'
11175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11176 (eval $ac_try) 2>&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); }; }; then
11180 eval "$as_ac_var=yes"
11182 echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11185 eval "$as_ac_var=no"
11187 rm -f conftest.err conftest.$ac_objext \
11188 conftest$ac_exeext conftest.$ac_ext
11190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11192 if test `eval echo '${'$as_ac_var'}'` = yes; then
11193 cat >>confdefs.h <<_ACEOF
11194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11198 cat >>confdefs.h <<\_ACEOF
11199 #define HAVE_GETHOSTBYNAME_R 1
11202 # There are two different kinds of gethostbyname_r.
11203 # We look for the one that returns `int'.
11204 # Hopefully this check is robust enough.
11205 cat >conftest.$ac_ext <<_ACEOF
11208 cat confdefs.h >>conftest.$ac_ext
11209 cat >>conftest.$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11215 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
11218 cat >>confdefs.h <<\_ACEOF
11219 #define GETHOSTBYNAME_R_RETURNS_INT 1
11226 case " $GCINCS " in
11227 *" -D_REENTRANT "*) ;;
11229 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
11230 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
11231 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11235 ac_cpp='$CXXCPP $CPPFLAGS'
11236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11240 cat >conftest.$ac_ext <<_ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11250 gethostbyname_r("", 0, 0);
11255 rm -f conftest.$ac_objext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11257 (eval $ac_compile) 2>conftest.er1
11259 grep -v '^ *+' conftest.er1 >conftest.err
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_cxx_werror_flag"
11265 || test ! -s conftest.err'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; } &&
11271 { ac_try='test -s conftest.$ac_objext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 libjava_cv_gethostbyname_r_needs_reentrant=no
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11282 CPPFLAGS_SAVE="$CPPFLAGS"
11283 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
11284 cat >conftest.$ac_ext <<_ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11294 gethostbyname_r("", 0, 0);
11299 rm -f conftest.$ac_objext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11301 (eval $ac_compile) 2>conftest.er1
11303 grep -v '^ *+' conftest.er1 >conftest.err
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -z "$ac_cxx_werror_flag"
11309 || test ! -s conftest.err'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; } &&
11315 { ac_try='test -s conftest.$ac_objext'
11316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317 (eval $ac_try) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; }; then
11321 libjava_cv_gethostbyname_r_needs_reentrant=yes
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 libjava_cv_gethostbyname_r_needs_reentrant=fail
11328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11329 CPPFLAGS="$CPPFLAGS_SAVE"
11332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11334 ac_cpp='$CPP $CPPFLAGS'
11335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11341 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
11342 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
11343 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
11345 cat >>confdefs.h <<\_ACEOF
11346 #define _REENTRANT 1
11353 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11354 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11355 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 cat >conftest.$ac_ext <<_ACEOF
11361 cat confdefs.h >>conftest.$ac_ext
11362 cat >>conftest.$ac_ext <<_ACEOF
11363 /* end confdefs.h. */
11365 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11366 # define _REENTRANT 1
11372 struct hostent_data data;
11377 rm -f conftest.$ac_objext
11378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11379 (eval $ac_compile) 2>conftest.er1
11381 grep -v '^ *+' conftest.er1 >conftest.err
11383 cat conftest.err >&5
11384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385 (exit $ac_status); } &&
11386 { ac_try='test -z "$ac_c_werror_flag"
11387 || test ! -s conftest.err'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; } &&
11393 { ac_try='test -s conftest.$ac_objext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 libjava_cv_struct_hostent_data=yes
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 libjava_cv_struct_hostent_data=no
11406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11408 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11409 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11410 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11412 cat >>confdefs.h <<\_ACEOF
11413 #define HAVE_STRUCT_HOSTENT_DATA 1
11422 # FIXME: libjava source code expects to find a prototype for
11423 # gethostbyaddr_r in netdb.h. The outer check ensures that
11424 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11425 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11426 # linkage check is enough, yet C++ code requires proper prototypes.)
11427 cat >conftest.$ac_ext <<_ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11437 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11440 for ac_func in gethostbyaddr_r
11442 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11443 echo "$as_me:$LINENO: checking for $ac_func" >&5
11444 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11445 if eval "test \"\${$as_ac_var+set}\" = set"; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 if test x$gcc_no_link = xyes; then
11449 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11450 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11451 { (exit 1); exit 1; }; }
11453 cat >conftest.$ac_ext <<_ACEOF
11456 cat confdefs.h >>conftest.$ac_ext
11457 cat >>conftest.$ac_ext <<_ACEOF
11458 /* end confdefs.h. */
11459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11461 #define $ac_func innocuous_$ac_func
11463 /* System header to define __stub macros and hopefully few prototypes,
11464 which can conflict with char $ac_func (); below.
11465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11466 <limits.h> exists even on freestanding compilers. */
11469 # include <limits.h>
11471 # include <assert.h>
11476 /* Override any gcc2 internal prototype to avoid an error. */
11481 /* We use char because int might match the return type of a gcc2
11482 builtin and then its argument prototype would still apply. */
11484 /* The GNU C library defines this for functions which it implements
11485 to always fail with ENOSYS. Some functions are actually named
11486 something starting with __ and the normal name is an alias. */
11487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11490 char (*f) () = $ac_func;
11499 return f != $ac_func;
11504 rm -f conftest.$ac_objext conftest$ac_exeext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11506 (eval $ac_link) 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try='test -s conftest$ac_exeext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 eval "$as_ac_var=yes"
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 eval "$as_ac_var=no"
11533 rm -f conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
11536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11537 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11538 if test `eval echo '${'$as_ac_var'}'` = yes; then
11539 cat >>confdefs.h <<_ACEOF
11540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11544 cat >>confdefs.h <<\_ACEOF
11545 #define HAVE_GETHOSTBYADDR_R 1
11548 # There are two different kinds of gethostbyaddr_r.
11549 # We look for the one that returns `int'.
11550 # Hopefully this check is robust enough.
11551 cat >conftest.$ac_ext <<_ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11561 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11564 cat >>confdefs.h <<\_ACEOF
11565 #define GETHOSTBYADDR_R_RETURNS_INT 1
11579 for ac_func in gethostname
11581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11582 echo "$as_me:$LINENO: checking for $ac_func" >&5
11583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11584 if eval "test \"\${$as_ac_var+set}\" = set"; then
11585 echo $ECHO_N "(cached) $ECHO_C" >&6
11587 if test x$gcc_no_link = xyes; then
11588 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11589 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11590 { (exit 1); exit 1; }; }
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600 #define $ac_func innocuous_$ac_func
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11608 # include <limits.h>
11610 # include <assert.h>
11615 /* Override any gcc2 internal prototype to avoid an error. */
11620 /* We use char because int might match the return type of a gcc2
11621 builtin and then its argument prototype would still apply. */
11623 /* The GNU C library defines this for functions which it implements
11624 to always fail with ENOSYS. Some functions are actually named
11625 something starting with __ and the normal name is an alias. */
11626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11629 char (*f) () = $ac_func;
11638 return f != $ac_func;
11643 rm -f conftest.$ac_objext conftest$ac_exeext
11644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11645 (eval $ac_link) 2>conftest.er1
11647 grep -v '^ *+' conftest.er1 >conftest.err
11649 cat conftest.err >&5
11650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11651 (exit $ac_status); } &&
11652 { ac_try='test -z "$ac_c_werror_flag"
11653 || test ! -s conftest.err'
11654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11655 (eval $ac_try) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); }; } &&
11659 { ac_try='test -s conftest$ac_exeext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 eval "$as_ac_var=yes"
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 eval "$as_ac_var=no"
11672 rm -f conftest.err conftest.$ac_objext \
11673 conftest$ac_exeext conftest.$ac_ext
11675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11676 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11677 if test `eval echo '${'$as_ac_var'}'` = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11683 cat >>confdefs.h <<\_ACEOF
11684 #define HAVE_GETHOSTNAME 1
11687 cat >conftest.$ac_ext <<_ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 #include <unistd.h>
11696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11697 $EGREP "gethostname" >/dev/null 2>&1; then
11700 cat >>confdefs.h <<\_ACEOF
11701 #define HAVE_GETHOSTNAME_DECL 1
11712 for ac_func in usleep
11714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11715 echo "$as_me:$LINENO: checking for $ac_func" >&5
11716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11717 if eval "test \"\${$as_ac_var+set}\" = set"; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11720 if test x$gcc_no_link = xyes; then
11721 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11722 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11723 { (exit 1); exit 1; }; }
11725 cat >conftest.$ac_ext <<_ACEOF
11728 cat confdefs.h >>conftest.$ac_ext
11729 cat >>conftest.$ac_ext <<_ACEOF
11730 /* end confdefs.h. */
11731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11733 #define $ac_func innocuous_$ac_func
11735 /* System header to define __stub macros and hopefully few prototypes,
11736 which can conflict with char $ac_func (); below.
11737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11738 <limits.h> exists even on freestanding compilers. */
11741 # include <limits.h>
11743 # include <assert.h>
11748 /* Override any gcc2 internal prototype to avoid an error. */
11753 /* We use char because int might match the return type of a gcc2
11754 builtin and then its argument prototype would still apply. */
11756 /* The GNU C library defines this for functions which it implements
11757 to always fail with ENOSYS. Some functions are actually named
11758 something starting with __ and the normal name is an alias. */
11759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11762 char (*f) () = $ac_func;
11771 return f != $ac_func;
11776 rm -f conftest.$ac_objext conftest$ac_exeext
11777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11778 (eval $ac_link) 2>conftest.er1
11780 grep -v '^ *+' conftest.er1 >conftest.err
11782 cat conftest.err >&5
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); } &&
11785 { ac_try='test -z "$ac_c_werror_flag"
11786 || test ! -s conftest.err'
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest$ac_exeext'
11793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11794 (eval $ac_try) 2>&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); }; }; then
11798 eval "$as_ac_var=yes"
11800 echo "$as_me: failed program was:" >&5
11801 sed 's/^/| /' conftest.$ac_ext >&5
11803 eval "$as_ac_var=no"
11805 rm -f conftest.err conftest.$ac_objext \
11806 conftest$ac_exeext conftest.$ac_ext
11808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11810 if test `eval echo '${'$as_ac_var'}'` = yes; then
11811 cat >>confdefs.h <<_ACEOF
11812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 #include <unistd.h>
11824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11825 $EGREP "usleep" >/dev/null 2>&1; then
11828 cat >>confdefs.h <<\_ACEOF
11829 #define HAVE_USLEEP_DECL 1
11839 # Look for these functions in the thread library, but only bother
11840 # if using POSIX threads.
11841 if test "$THREADS" = posix; then
11843 LIBS="$LIBS $THREADLIBS"
11844 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11848 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11851 echo "$as_me:$LINENO: checking for $ac_func" >&5
11852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11853 if eval "test \"\${$as_ac_var+set}\" = set"; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 if test x$gcc_no_link = xyes; then
11857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11859 { (exit 1); exit 1; }; }
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11869 #define $ac_func innocuous_$ac_func
11871 /* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char $ac_func (); below.
11873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11874 <limits.h> exists even on freestanding compilers. */
11877 # include <limits.h>
11879 # include <assert.h>
11884 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11892 /* The GNU C library defines this for functions which it implements
11893 to always fail with ENOSYS. Some functions are actually named
11894 something starting with __ and the normal name is an alias. */
11895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11898 char (*f) () = $ac_func;
11907 return f != $ac_func;
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914 (eval $ac_link) 2>conftest.er1
11916 grep -v '^ *+' conftest.er1 >conftest.err
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_c_werror_flag"
11922 || test ! -s conftest.err'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 eval "$as_ac_var=yes"
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 eval "$as_ac_var=no"
11941 rm -f conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11946 if test `eval echo '${'$as_ac_var'}'` = yes; then
11947 cat >>confdefs.h <<_ACEOF
11948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11955 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11956 # Solaris 7 the name librt is preferred.
11958 for ac_func in sched_yield
11960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11961 echo "$as_me:$LINENO: checking for $ac_func" >&5
11962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11963 if eval "test \"\${$as_ac_var+set}\" = set"; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11966 if test x$gcc_no_link = xyes; then
11967 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11968 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11969 { (exit 1); exit 1; }; }
11971 cat >conftest.$ac_ext <<_ACEOF
11974 cat confdefs.h >>conftest.$ac_ext
11975 cat >>conftest.$ac_ext <<_ACEOF
11976 /* end confdefs.h. */
11977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11979 #define $ac_func innocuous_$ac_func
11981 /* System header to define __stub macros and hopefully few prototypes,
11982 which can conflict with char $ac_func (); below.
11983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11984 <limits.h> exists even on freestanding compilers. */
11987 # include <limits.h>
11989 # include <assert.h>
11994 /* Override any gcc2 internal prototype to avoid an error. */
11999 /* We use char because int might match the return type of a gcc2
12000 builtin and then its argument prototype would still apply. */
12002 /* The GNU C library defines this for functions which it implements
12003 to always fail with ENOSYS. Some functions are actually named
12004 something starting with __ and the normal name is an alias. */
12005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12008 char (*f) () = $ac_func;
12017 return f != $ac_func;
12022 rm -f conftest.$ac_objext conftest$ac_exeext
12023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12024 (eval $ac_link) 2>conftest.er1
12026 grep -v '^ *+' conftest.er1 >conftest.err
12028 cat conftest.err >&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); } &&
12031 { ac_try='test -z "$ac_c_werror_flag"
12032 || test ! -s conftest.err'
12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12034 (eval $ac_try) 2>&5
12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12037 (exit $ac_status); }; } &&
12038 { ac_try='test -s conftest$ac_exeext'
12039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12040 (eval $ac_try) 2>&5
12042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12043 (exit $ac_status); }; }; then
12044 eval "$as_ac_var=yes"
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12049 eval "$as_ac_var=no"
12051 rm -f conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12055 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12056 if test `eval echo '${'$as_ac_var'}'` = yes; then
12057 cat >>confdefs.h <<_ACEOF
12058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12063 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
12064 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
12065 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12068 ac_check_lib_save_LIBS=$LIBS
12070 if test x$gcc_no_link = xyes; then
12071 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12072 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12073 { (exit 1); exit 1; }; }
12075 cat >conftest.$ac_ext <<_ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h. */
12082 /* Override any gcc2 internal prototype to avoid an error. */
12086 /* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */
12088 char sched_yield ();
12097 rm -f conftest.$ac_objext conftest$ac_exeext
12098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12099 (eval $ac_link) 2>conftest.er1
12101 grep -v '^ *+' conftest.er1 >conftest.err
12103 cat conftest.err >&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -z "$ac_c_werror_flag"
12107 || test ! -s conftest.err'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; } &&
12113 { ac_try='test -s conftest$ac_exeext'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 ac_cv_lib_rt_sched_yield=yes
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ac_cv_lib_rt_sched_yield=no
12126 rm -f conftest.err conftest.$ac_objext \
12127 conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12130 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
12131 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
12132 if test $ac_cv_lib_rt_sched_yield = yes; then
12134 cat >>confdefs.h <<\_ACEOF
12135 #define HAVE_SCHED_YIELD 1
12138 THREADLIBS="$THREADLIBS -lrt"
12139 THREADSPEC="$THREADSPEC -lrt"
12142 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
12143 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
12144 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 ac_check_lib_save_LIBS=$LIBS
12148 LIBS="-lposix4 $LIBS"
12149 if test x$gcc_no_link = xyes; then
12150 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12151 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12152 { (exit 1); exit 1; }; }
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12161 /* Override any gcc2 internal prototype to avoid an error. */
12165 /* We use char because int might match the return type of a gcc2
12166 builtin and then its argument prototype would still apply. */
12167 char sched_yield ();
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>conftest.er1
12180 grep -v '^ *+' conftest.er1 >conftest.err
12182 cat conftest.err >&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } &&
12185 { ac_try='test -z "$ac_c_werror_flag"
12186 || test ! -s conftest.err'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; } &&
12192 { ac_try='test -s conftest$ac_exeext'
12193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12194 (eval $ac_try) 2>&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); }; }; then
12198 ac_cv_lib_posix4_sched_yield=yes
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12203 ac_cv_lib_posix4_sched_yield=no
12205 rm -f conftest.err conftest.$ac_objext \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
12210 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
12211 if test $ac_cv_lib_posix4_sched_yield = yes; then
12213 cat >>confdefs.h <<\_ACEOF
12214 #define HAVE_SCHED_YIELD 1
12217 THREADLIBS="$THREADLIBS -lposix4"
12218 THREADSPEC="$THREADSPEC -lposix4"
12228 # We can save a little space at runtime if the mutex has m_count
12229 # or __m_count. This is a nice hack for Linux.
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <pthread.h>
12241 extern pthread_mutex_t *mutex; int q = mutex->m_count;
12247 rm -f conftest.$ac_objext
12248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249 (eval $ac_compile) 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag"
12257 || test ! -s conftest.err'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest.$ac_objext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12270 cat >>confdefs.h <<\_ACEOF
12271 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12279 cat >conftest.$ac_ext <<_ACEOF
12282 cat confdefs.h >>conftest.$ac_ext
12283 cat >>conftest.$ac_ext <<_ACEOF
12284 /* end confdefs.h. */
12285 #include <pthread.h>
12290 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
12296 rm -f conftest.$ac_objext
12297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12298 (eval $ac_compile) 2>conftest.er1
12300 grep -v '^ *+' conftest.er1 >conftest.err
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
12305 { ac_try='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest.$ac_objext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12319 cat >>confdefs.h <<\_ACEOF
12320 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12333 # We require a way to get the time.
12338 for ac_func in gettimeofday time ftime
12340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12341 echo "$as_me:$LINENO: checking for $ac_func" >&5
12342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12343 if eval "test \"\${$as_ac_var+set}\" = set"; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 if test x$gcc_no_link = xyes; then
12347 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12348 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12349 { (exit 1); exit 1; }; }
12351 cat >conftest.$ac_ext <<_ACEOF
12354 cat confdefs.h >>conftest.$ac_ext
12355 cat >>conftest.$ac_ext <<_ACEOF
12356 /* end confdefs.h. */
12357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12359 #define $ac_func innocuous_$ac_func
12361 /* System header to define __stub macros and hopefully few prototypes,
12362 which can conflict with char $ac_func (); below.
12363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12364 <limits.h> exists even on freestanding compilers. */
12367 # include <limits.h>
12369 # include <assert.h>
12374 /* Override any gcc2 internal prototype to avoid an error. */
12379 /* We use char because int might match the return type of a gcc2
12380 builtin and then its argument prototype would still apply. */
12382 /* The GNU C library defines this for functions which it implements
12383 to always fail with ENOSYS. Some functions are actually named
12384 something starting with __ and the normal name is an alias. */
12385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12388 char (*f) () = $ac_func;
12397 return f != $ac_func;
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_c_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12424 eval "$as_ac_var=yes"
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12429 eval "$as_ac_var=no"
12431 rm -f conftest.err conftest.$ac_objext \
12432 conftest$ac_exeext conftest.$ac_ext
12434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12436 if test `eval echo '${'$as_ac_var'}'` = yes; then
12437 cat >>confdefs.h <<_ACEOF
12438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12444 if test "$time_found" = no; then
12445 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12446 echo "$as_me: error: no function found to get the time" >&2;}
12447 { (exit 1); exit 1; }; }
12451 for ac_func in memmove
12453 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12454 echo "$as_me:$LINENO: checking for $ac_func" >&5
12455 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12456 if eval "test \"\${$as_ac_var+set}\" = set"; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 if test x$gcc_no_link = xyes; then
12460 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12461 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12462 { (exit 1); exit 1; }; }
12464 cat >conftest.$ac_ext <<_ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12472 #define $ac_func innocuous_$ac_func
12474 /* System header to define __stub macros and hopefully few prototypes,
12475 which can conflict with char $ac_func (); below.
12476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12477 <limits.h> exists even on freestanding compilers. */
12480 # include <limits.h>
12482 # include <assert.h>
12487 /* Override any gcc2 internal prototype to avoid an error. */
12492 /* We use char because int might match the return type of a gcc2
12493 builtin and then its argument prototype would still apply. */
12495 /* The GNU C library defines this for functions which it implements
12496 to always fail with ENOSYS. Some functions are actually named
12497 something starting with __ and the normal name is an alias. */
12498 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12501 char (*f) () = $ac_func;
12510 return f != $ac_func;
12515 rm -f conftest.$ac_objext conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517 (eval $ac_link) 2>conftest.er1
12519 grep -v '^ *+' conftest.er1 >conftest.err
12521 cat conftest.err >&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } &&
12524 { ac_try='test -z "$ac_c_werror_flag"
12525 || test ! -s conftest.err'
12526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12527 (eval $ac_try) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); }; } &&
12531 { ac_try='test -s conftest$ac_exeext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 eval "$as_ac_var=yes"
12539 echo "$as_me: failed program was:" >&5
12540 sed 's/^/| /' conftest.$ac_ext >&5
12542 eval "$as_ac_var=no"
12544 rm -f conftest.err conftest.$ac_objext \
12545 conftest$ac_exeext conftest.$ac_ext
12547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12548 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12549 if test `eval echo '${'$as_ac_var'}'` = yes; then
12550 cat >>confdefs.h <<_ACEOF
12551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12558 # We require memcpy.
12561 for ac_func in memcpy
12563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12564 echo "$as_me:$LINENO: checking for $ac_func" >&5
12565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12566 if eval "test \"\${$as_ac_var+set}\" = set"; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 if test x$gcc_no_link = xyes; then
12570 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12571 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12572 { (exit 1); exit 1; }; }
12574 cat >conftest.$ac_ext <<_ACEOF
12577 cat confdefs.h >>conftest.$ac_ext
12578 cat >>conftest.$ac_ext <<_ACEOF
12579 /* end confdefs.h. */
12580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12582 #define $ac_func innocuous_$ac_func
12584 /* System header to define __stub macros and hopefully few prototypes,
12585 which can conflict with char $ac_func (); below.
12586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12587 <limits.h> exists even on freestanding compilers. */
12590 # include <limits.h>
12592 # include <assert.h>
12597 /* Override any gcc2 internal prototype to avoid an error. */
12602 /* We use char because int might match the return type of a gcc2
12603 builtin and then its argument prototype would still apply. */
12605 /* The GNU C library defines this for functions which it implements
12606 to always fail with ENOSYS. Some functions are actually named
12607 something starting with __ and the normal name is an alias. */
12608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12611 char (*f) () = $ac_func;
12620 return f != $ac_func;
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12627 (eval $ac_link) 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag"
12635 || test ! -s conftest.err'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest$ac_exeext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 eval "$as_ac_var=yes"
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 eval "$as_ac_var=no"
12654 rm -f conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12658 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12659 if test `eval echo '${'$as_ac_var'}'` = yes; then
12660 cat >>confdefs.h <<_ACEOF
12661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12667 if test "$memcpy_found" = no; then
12668 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12669 echo "$as_me: error: memcpy is required" >&2;}
12670 { (exit 1); exit 1; }; }
12673 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12674 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12675 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12676 echo $ECHO_N "(cached) $ECHO_C" >&6
12678 ac_check_lib_save_LIBS=$LIBS
12680 if test x$gcc_no_link = xyes; then
12681 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12682 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12683 { (exit 1); exit 1; }; }
12685 cat >conftest.$ac_ext <<_ACEOF
12688 cat confdefs.h >>conftest.$ac_ext
12689 cat >>conftest.$ac_ext <<_ACEOF
12690 /* end confdefs.h. */
12692 /* Override any gcc2 internal prototype to avoid an error. */
12696 /* We use char because int might match the return type of a gcc2
12697 builtin and then its argument prototype would still apply. */
12707 rm -f conftest.$ac_objext conftest$ac_exeext
12708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12709 (eval $ac_link) 2>conftest.er1
12711 grep -v '^ *+' conftest.er1 >conftest.err
12713 cat conftest.err >&5
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
12716 { ac_try='test -z "$ac_c_werror_flag"
12717 || test ! -s conftest.err'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest$ac_exeext'
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_cv_lib_dl_dlopen=yes
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.$ac_ext >&5
12734 ac_cv_lib_dl_dlopen=no
12736 rm -f conftest.err conftest.$ac_objext \
12737 conftest$ac_exeext conftest.$ac_ext
12738 LIBS=$ac_check_lib_save_LIBS
12740 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12742 if test $ac_cv_lib_dl_dlopen = yes; then
12745 cat >>confdefs.h <<\_ACEOF
12746 #define HAVE_DLOPEN 1
12752 # Some library-finding code we stole from Tcl.
12753 #--------------------------------------------------------------------
12754 # Check for the existence of the -lsocket and -lnsl libraries.
12755 # The order here is important, so that they end up in the right
12756 # order in the command line generated by make. Here are some
12757 # special considerations:
12758 # 1. Use "connect" and "accept" to check for -lsocket, and
12759 # "gethostbyname" to check for -lnsl.
12760 # 2. Use each function name only once: can't redo a check because
12761 # autoconf caches the results of the last check and won't redo it.
12762 # 3. Use -lnsl and -lsocket only if they supply procedures that
12763 # aren't already present in the normal libraries. This is because
12764 # IRIX 5.2 has libraries, but they aren't needed and they're
12765 # bogus: they goof up name resolution if used.
12766 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12767 # To get around this problem, check for both libraries together
12768 # if -lsocket doesn't work by itself.
12769 #--------------------------------------------------------------------
12771 echo "$as_me:$LINENO: checking for socket libraries" >&5
12772 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12773 if test "${gcj_cv_lib_sockets+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 gcj_cv_lib_sockets=
12778 unset ac_cv_func_connect
12779 echo "$as_me:$LINENO: checking for connect" >&5
12780 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12781 if test "${ac_cv_func_connect+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 if test x$gcc_no_link = xyes; then
12785 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12786 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12787 { (exit 1); exit 1; }; }
12789 cat >conftest.$ac_ext <<_ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12797 #define connect innocuous_connect
12799 /* System header to define __stub macros and hopefully few prototypes,
12800 which can conflict with char connect (); below.
12801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12802 <limits.h> exists even on freestanding compilers. */
12805 # include <limits.h>
12807 # include <assert.h>
12812 /* Override any gcc2 internal prototype to avoid an error. */
12817 /* We use char because int might match the return type of a gcc2
12818 builtin and then its argument prototype would still apply. */
12820 /* The GNU C library defines this for functions which it implements
12821 to always fail with ENOSYS. Some functions are actually named
12822 something starting with __ and the normal name is an alias. */
12823 #if defined (__stub_connect) || defined (__stub___connect)
12826 char (*f) () = connect;
12835 return f != connect;
12840 rm -f conftest.$ac_objext conftest$ac_exeext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842 (eval $ac_link) 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -z "$ac_c_werror_flag"
12850 || test ! -s conftest.err'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_cv_func_connect=yes
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 ac_cv_func_connect=no
12869 rm -f conftest.err conftest.$ac_objext \
12870 conftest$ac_exeext conftest.$ac_ext
12872 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12873 echo "${ECHO_T}$ac_cv_func_connect" >&6
12874 if test $ac_cv_func_connect = yes; then
12880 if test "$gcj_checkSocket" = 1; then
12881 unset ac_cv_func_connect
12882 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12883 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12884 if test "${ac_cv_lib_socket_main+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 ac_check_lib_save_LIBS=$LIBS
12888 LIBS="-lsocket $LIBS"
12889 if test x$gcc_no_link = xyes; then
12890 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12892 { (exit 1); exit 1; }; }
12894 cat >conftest.$ac_ext <<_ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12910 rm -f conftest.$ac_objext conftest$ac_exeext
12911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12912 (eval $ac_link) 2>conftest.er1
12914 grep -v '^ *+' conftest.er1 >conftest.err
12916 cat conftest.err >&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); } &&
12919 { ac_try='test -z "$ac_c_werror_flag"
12920 || test ! -s conftest.err'
12921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12922 (eval $ac_try) 2>&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); }; } &&
12926 { ac_try='test -s conftest$ac_exeext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_lib_socket_main=yes
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12937 ac_cv_lib_socket_main=no
12939 rm -f conftest.err conftest.$ac_objext \
12940 conftest$ac_exeext conftest.$ac_ext
12941 LIBS=$ac_check_lib_save_LIBS
12943 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12944 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12945 if test $ac_cv_lib_socket_main = yes; then
12946 gcj_cv_lib_sockets="-lsocket"
12952 if test "$gcj_checkBoth" = 1; then
12954 LIBS="$LIBS -lsocket -lnsl"
12955 unset ac_cv_func_accept
12956 echo "$as_me:$LINENO: checking for accept" >&5
12957 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12958 if test "${ac_cv_func_accept+set}" = set; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12961 if test x$gcc_no_link = xyes; then
12962 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12963 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12964 { (exit 1); exit 1; }; }
12966 cat >conftest.$ac_ext <<_ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12972 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12974 #define accept innocuous_accept
12976 /* System header to define __stub macros and hopefully few prototypes,
12977 which can conflict with char accept (); below.
12978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12979 <limits.h> exists even on freestanding compilers. */
12982 # include <limits.h>
12984 # include <assert.h>
12989 /* Override any gcc2 internal prototype to avoid an error. */
12994 /* We use char because int might match the return type of a gcc2
12995 builtin and then its argument prototype would still apply. */
12997 /* The GNU C library defines this for functions which it implements
12998 to always fail with ENOSYS. Some functions are actually named
12999 something starting with __ and the normal name is an alias. */
13000 #if defined (__stub_accept) || defined (__stub___accept)
13003 char (*f) () = accept;
13012 return f != accept;
13017 rm -f conftest.$ac_objext conftest$ac_exeext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>conftest.er1
13021 grep -v '^ *+' conftest.er1 >conftest.err
13023 cat conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); } &&
13026 { ac_try='test -z "$ac_c_werror_flag"
13027 || test ! -s conftest.err'
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; } &&
13033 { ac_try='test -s conftest$ac_exeext'
13034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13035 (eval $ac_try) 2>&5
13037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13038 (exit $ac_status); }; }; then
13039 ac_cv_func_accept=yes
13041 echo "$as_me: failed program was:" >&5
13042 sed 's/^/| /' conftest.$ac_ext >&5
13044 ac_cv_func_accept=no
13046 rm -f conftest.err conftest.$ac_objext \
13047 conftest$ac_exeext conftest.$ac_ext
13049 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
13050 echo "${ECHO_T}$ac_cv_func_accept" >&6
13051 if test $ac_cv_func_accept = yes; then
13053 gcj_cv_lib_sockets="-lsocket -lnsl"
13056 unset ac_cv_func_accept
13059 unset ac_cv_func_gethostbyname
13061 LIBS="$LIBS $gcj_cv_lib_sockets"
13062 echo "$as_me:$LINENO: checking for gethostbyname" >&5
13063 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
13064 if test "${ac_cv_func_gethostbyname+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 if test x$gcc_no_link = xyes; then
13068 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13069 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13070 { (exit 1); exit 1; }; }
13072 cat >conftest.$ac_ext <<_ACEOF
13075 cat confdefs.h >>conftest.$ac_ext
13076 cat >>conftest.$ac_ext <<_ACEOF
13077 /* end confdefs.h. */
13078 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
13079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13080 #define gethostbyname innocuous_gethostbyname
13082 /* System header to define __stub macros and hopefully few prototypes,
13083 which can conflict with char gethostbyname (); below.
13084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13085 <limits.h> exists even on freestanding compilers. */
13088 # include <limits.h>
13090 # include <assert.h>
13093 #undef gethostbyname
13095 /* Override any gcc2 internal prototype to avoid an error. */
13100 /* We use char because int might match the return type of a gcc2
13101 builtin and then its argument prototype would still apply. */
13102 char gethostbyname ();
13103 /* The GNU C library defines this for functions which it implements
13104 to always fail with ENOSYS. Some functions are actually named
13105 something starting with __ and the normal name is an alias. */
13106 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13109 char (*f) () = gethostbyname;
13118 return f != gethostbyname;
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13125 (eval $ac_link) 2>conftest.er1
13127 grep -v '^ *+' conftest.er1 >conftest.err
13129 cat conftest.err >&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); } &&
13132 { ac_try='test -z "$ac_c_werror_flag"
13133 || test ! -s conftest.err'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; } &&
13139 { ac_try='test -s conftest$ac_exeext'
13140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141 (eval $ac_try) 2>&5
13143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144 (exit $ac_status); }; }; then
13145 ac_cv_func_gethostbyname=yes
13147 echo "$as_me: failed program was:" >&5
13148 sed 's/^/| /' conftest.$ac_ext >&5
13150 ac_cv_func_gethostbyname=no
13152 rm -f conftest.err conftest.$ac_objext \
13153 conftest$ac_exeext conftest.$ac_ext
13155 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
13156 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
13157 if test $ac_cv_func_gethostbyname = yes; then
13160 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
13161 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
13162 if test "${ac_cv_lib_nsl_main+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 ac_check_lib_save_LIBS=$LIBS
13167 if test x$gcc_no_link = xyes; then
13168 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13169 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13170 { (exit 1); exit 1; }; }
13172 cat >conftest.$ac_ext <<_ACEOF
13175 cat confdefs.h >>conftest.$ac_ext
13176 cat >>conftest.$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13190 (eval $ac_link) 2>conftest.er1
13192 grep -v '^ *+' conftest.er1 >conftest.err
13194 cat conftest.err >&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); } &&
13197 { ac_try='test -z "$ac_c_werror_flag"
13198 || test ! -s conftest.err'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; } &&
13204 { ac_try='test -s conftest$ac_exeext'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; }; then
13210 ac_cv_lib_nsl_main=yes
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 ac_cv_lib_nsl_main=no
13217 rm -f conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13219 LIBS=$ac_check_lib_save_LIBS
13221 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
13222 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
13223 if test $ac_cv_lib_nsl_main = yes; then
13224 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
13229 unset ac_cv_func_gethostbyname
13233 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
13234 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
13235 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
13237 if test "$with_system_zlib" = yes; then
13238 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13239 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13240 if test "${ac_cv_lib_z_deflate+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 ac_check_lib_save_LIBS=$LIBS
13245 if test x$gcc_no_link = xyes; then
13246 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13247 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13248 { (exit 1); exit 1; }; }
13250 cat >conftest.$ac_ext <<_ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13257 /* Override any gcc2 internal prototype to avoid an error. */
13261 /* We use char because int might match the return type of a gcc2
13262 builtin and then its argument prototype would still apply. */
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13274 (eval $ac_link) 2>conftest.er1
13276 grep -v '^ *+' conftest.er1 >conftest.err
13278 cat conftest.err >&5
13279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } &&
13281 { ac_try='test -z "$ac_c_werror_flag"
13282 || test ! -s conftest.err'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; } &&
13288 { ac_try='test -s conftest$ac_exeext'
13289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13290 (eval $ac_try) 2>&5
13292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13293 (exit $ac_status); }; }; then
13294 ac_cv_lib_z_deflate=yes
13296 echo "$as_me: failed program was:" >&5
13297 sed 's/^/| /' conftest.$ac_ext >&5
13299 ac_cv_lib_z_deflate=no
13301 rm -f conftest.err conftest.$ac_objext \
13302 conftest$ac_exeext conftest.$ac_ext
13303 LIBS=$ac_check_lib_save_LIBS
13305 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13306 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13307 if test $ac_cv_lib_z_deflate = yes; then
13315 # Test for Gtk stuff, if asked for.
13316 if test "$use_gtk_awt" = yes; then
13320 if test -z "$PKG_CONFIG"; then
13321 # Extract the first word of "pkg-config", so it can be a program name with args.
13322 set dummy pkg-config; ac_word=$2
13323 echo "$as_me:$LINENO: checking for $ac_word" >&5
13324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13325 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13328 case $PKG_CONFIG in
13330 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13337 test -z "$as_dir" && as_dir=.
13338 for ac_exec_ext in '' $ac_executable_extensions; do
13339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13340 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13347 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13351 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13353 if test -n "$PKG_CONFIG"; then
13354 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13355 echo "${ECHO_T}$PKG_CONFIG" >&6
13357 echo "$as_me:$LINENO: result: no" >&5
13358 echo "${ECHO_T}no" >&6
13363 if test "$PKG_CONFIG" = "no" ; then
13364 echo "*** The pkg-config script could not be found. Make sure it is"
13365 echo "*** in your path, or set the PKG_CONFIG environment variable"
13366 echo "*** to the full path to pkg-config."
13367 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13369 PKG_CONFIG_MIN_VERSION=0.9.0
13370 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13371 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13372 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13374 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13375 echo "$as_me:$LINENO: result: yes" >&5
13376 echo "${ECHO_T}yes" >&6
13379 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13380 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13381 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13382 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13383 echo "${ECHO_T}$GTK_CFLAGS" >&6
13385 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13386 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13387 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13388 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13389 echo "${ECHO_T}$GTK_LIBS" >&6
13393 ## If we have a custom action on failure, don't print errors, but
13394 ## do set a variable so people can do so.
13395 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13396 echo $GTK_PKG_ERRORS
13402 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13403 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13407 if test $succeeded = yes; then
13410 { { 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
13411 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;}
13412 { (exit 1); exit 1; }; }
13421 if test -z "$PKG_CONFIG"; then
13422 # Extract the first word of "pkg-config", so it can be a program name with args.
13423 set dummy pkg-config; ac_word=$2
13424 echo "$as_me:$LINENO: checking for $ac_word" >&5
13425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 case $PKG_CONFIG in
13431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13448 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13452 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13454 if test -n "$PKG_CONFIG"; then
13455 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13456 echo "${ECHO_T}$PKG_CONFIG" >&6
13458 echo "$as_me:$LINENO: result: no" >&5
13459 echo "${ECHO_T}no" >&6
13464 if test "$PKG_CONFIG" = "no" ; then
13465 echo "*** The pkg-config script could not be found. Make sure it is"
13466 echo "*** in your path, or set the PKG_CONFIG environment variable"
13467 echo "*** to the full path to pkg-config."
13468 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13470 PKG_CONFIG_MIN_VERSION=0.9.0
13471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13472 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13473 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13475 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13476 echo "$as_me:$LINENO: result: yes" >&5
13477 echo "${ECHO_T}yes" >&6
13480 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13481 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13482 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13483 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13484 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13486 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13487 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13488 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13489 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13490 echo "${ECHO_T}$GLIB_LIBS" >&6
13494 ## If we have a custom action on failure, don't print errors, but
13495 ## do set a variable so people can do so.
13496 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13497 echo $GLIB_PKG_ERRORS
13503 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13504 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13508 if test $succeeded = yes; then
13511 { { 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
13512 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;}
13513 { (exit 1); exit 1; }; }
13522 if test -z "$PKG_CONFIG"; then
13523 # Extract the first word of "pkg-config", so it can be a program name with args.
13524 set dummy pkg-config; ac_word=$2
13525 echo "$as_me:$LINENO: checking for $ac_word" >&5
13526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13527 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 case $PKG_CONFIG in
13532 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13536 for as_dir in $PATH
13539 test -z "$as_dir" && as_dir=.
13540 for ac_exec_ext in '' $ac_executable_extensions; do
13541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13542 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13549 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13553 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13555 if test -n "$PKG_CONFIG"; then
13556 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13557 echo "${ECHO_T}$PKG_CONFIG" >&6
13559 echo "$as_me:$LINENO: result: no" >&5
13560 echo "${ECHO_T}no" >&6
13565 if test "$PKG_CONFIG" = "no" ; then
13566 echo "*** The pkg-config script could not be found. Make sure it is"
13567 echo "*** in your path, or set the PKG_CONFIG environment variable"
13568 echo "*** to the full path to pkg-config."
13569 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13571 PKG_CONFIG_MIN_VERSION=0.9.0
13572 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13573 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13574 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13576 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13577 echo "$as_me:$LINENO: result: yes" >&5
13578 echo "${ECHO_T}yes" >&6
13581 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13582 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13583 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13584 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13585 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13587 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13588 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13589 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13590 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13591 echo "${ECHO_T}$LIBART_LIBS" >&6
13595 ## If we have a custom action on failure, don't print errors, but
13596 ## do set a variable so people can do so.
13597 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13598 echo $LIBART_PKG_ERRORS
13604 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13605 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13609 if test $succeeded = yes; then
13612 { { 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
13613 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;}
13614 { (exit 1); exit 1; }; }
13621 # On Solaris, and maybe other architectures, the Boehm collector
13623 if test "$GC" = boehm; then
13624 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13625 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13626 if test "${ac_cv_lib_dl_main+set}" = set; then
13627 echo $ECHO_N "(cached) $ECHO_C" >&6
13629 ac_check_lib_save_LIBS=$LIBS
13631 if test x$gcc_no_link = xyes; then
13632 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13633 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13634 { (exit 1); exit 1; }; }
13636 cat >conftest.$ac_ext <<_ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13652 rm -f conftest.$ac_objext conftest$ac_exeext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13654 (eval $ac_link) 2>conftest.er1
13656 grep -v '^ *+' conftest.er1 >conftest.err
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } &&
13661 { ac_try='test -z "$ac_c_werror_flag"
13662 || test ! -s conftest.err'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest$ac_exeext'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 ac_cv_lib_dl_main=yes
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 ac_cv_lib_dl_main=no
13681 rm -f conftest.err conftest.$ac_objext \
13682 conftest$ac_exeext conftest.$ac_ext
13683 LIBS=$ac_check_lib_save_LIBS
13685 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13686 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13687 if test $ac_cv_lib_dl_main = yes; then
13688 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13695 if test "$supply_backtrace" = yes; then
13696 SUPPLY_BACKTRACE_TRUE=
13697 SUPPLY_BACKTRACE_FALSE='#'
13699 SUPPLY_BACKTRACE_TRUE='#'
13700 SUPPLY_BACKTRACE_FALSE=
13704 if test -z "${with_multisubdir}"; then
13707 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13712 # Which gcj do we use?
13714 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
13715 if test -n "${with_cross_host}"; then
13716 # We are being configured with a cross compiler. We can't
13717 # use ac_exeext, because that is for the target platform.
13720 case "${with_cross_host}" in
13721 *mingw* | *cygwin*)
13722 cross_host_exeext=.exe
13725 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13726 if test x"$build_noncanonical" = x"$with_cross_host"; then
13727 # Ordinary cross (host!=target and host=build)
13730 # Canadian cross (host!=target and host!=build)
13737 # We are being configured with a native or crossed-native compiler
13738 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13739 if test x"$build" = x"$host"; then
13740 # True native build (host=target and host=build)
13743 # Crossed-native build (host=target and host!=build)
13750 case "${which_gcj}" in
13752 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13753 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
13754 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13757 if test "x${with_newlib}" = "xyes"; then
13758 # FIXME (comment): Why is this needed?
13759 GCC_UNWIND_INCLUDE=
13760 GCJ="${target_noncanonical}-gcj"
13762 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13765 GCJH='$(target_noncanonical)-gcjh'
13768 GCJ="gcj -B`${PWDCMD-pwd}`/"
13769 ## In this case, gcj is found outside the build tree. However, zip is
13770 ## found in the build tree.
13771 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13779 # Create it, so that compile/link tests don't fail
13780 test -f libgcj.spec || touch libgcj.spec
13782 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13784 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13785 *) CLASSPATH_SEPARATOR=':' ;;
13789 # We must search the source tree for java.lang, since we still don't
13790 # have libgcj.jar nor java/lang/*.class
13791 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13792 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13794 # Since some classes depend on this one, we need its source available
13795 # before we can do any GCJ compilation test :-(
13796 if test ! -f gnu/classpath/Configuration.java; then
13797 test -d gnu || mkdir gnu
13798 test -d gnu/classpath || mkdir gnu/classpath
13799 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13800 -e 's,@TOOLKIT@,$TOOLKIT,' \
13801 < $srcdir/gnu/classpath/Configuration.java.in \
13802 > gnu/classpath/Configuration.java
13803 # We do not want to redirect the output of the grep below to /dev/null,
13804 # but we add /dev/null to the input list so that grep will print the
13805 # filename of Configuration.java in case it finds any matches.
13806 if grep @ gnu/classpath/Configuration.java /dev/null; then
13807 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13808 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13809 { (exit 1); exit 1; }; }
13813 if test -n "$ac_tool_prefix"; then
13814 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13815 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13816 echo "$as_me:$LINENO: checking for $ac_word" >&5
13817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13818 if test "${ac_cv_prog_GCJ+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 if test -n "$GCJ"; then
13822 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13831 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 GCJ=$ac_cv_prog_GCJ
13841 if test -n "$GCJ"; then
13842 echo "$as_me:$LINENO: result: $GCJ" >&5
13843 echo "${ECHO_T}$GCJ" >&6
13845 echo "$as_me:$LINENO: result: no" >&5
13846 echo "${ECHO_T}no" >&6
13850 if test -z "$ac_cv_prog_GCJ"; then
13852 # Extract the first word of "gcj", so it can be a program name with args.
13853 set dummy gcj; ac_word=$2
13854 echo "$as_me:$LINENO: checking for $ac_word" >&5
13855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13856 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 if test -n "$ac_ct_GCJ"; then
13860 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13863 for as_dir in $PATH
13866 test -z "$as_dir" && as_dir=.
13867 for ac_exec_ext in '' $ac_executable_extensions; do
13868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13869 ac_cv_prog_ac_ct_GCJ="gcj"
13870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13876 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13879 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13880 if test -n "$ac_ct_GCJ"; then
13881 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13882 echo "${ECHO_T}$ac_ct_GCJ" >&6
13884 echo "$as_me:$LINENO: result: no" >&5
13885 echo "${ECHO_T}no" >&6
13890 GCJ="$ac_cv_prog_GCJ"
13893 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13898 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13900 echo "$as_me:$LINENO: checking size of void *" >&5
13901 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13902 if test "${ac_cv_sizeof_void_p+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13905 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13906 cat >conftest.$ac_ext <<_ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13912 #include "confdefs.h"
13913 #include <sys/types.h>
13919 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13924 rm -f conftest.$ac_objext
13925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13926 (eval $ac_compile) 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } &&
13933 { ac_try='test -z "$ac_c_werror_flag"
13934 || test ! -s conftest.err'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; } &&
13940 { ac_try='test -s conftest.$ac_objext'
13941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13942 (eval $ac_try) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); }; }; then
13946 ac_cv_sizeof_void_p=$ac_size
13948 echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13953 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13958 if test x$ac_cv_sizeof_void_p = x ; then
13959 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13960 echo "$as_me: error: cannot determine a size for void *" >&2;}
13961 { (exit 1); exit 1; }; }
13963 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13964 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13966 cat >>confdefs.h <<_ACEOF
13967 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13972 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13973 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13974 if test "${ac_cv_c_bigendian+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 ac_cv_c_bigendian=unknown
13978 # See if sys/param.h defines the BYTE_ORDER macro.
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <sys/types.h>
13986 #include <sys/param.h>
13991 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13992 bogus endian macros
13998 rm -f conftest.$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>conftest.er1
14002 grep -v '^ *+' conftest.er1 >conftest.err
14004 cat conftest.err >&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
14007 { ac_try='test -z "$ac_c_werror_flag"
14008 || test ! -s conftest.err'
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; } &&
14014 { ac_try='test -s conftest.$ac_objext'
14015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14016 (eval $ac_try) 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 # It does; now see whether it defined to BIG_ENDIAN or not.
14021 cat >conftest.$ac_ext <<_ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14027 #include <sys/types.h>
14028 #include <sys/param.h>
14033 #if BYTE_ORDER != BIG_ENDIAN
14040 rm -f conftest.$ac_objext
14041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14042 (eval $ac_compile) 2>conftest.er1
14044 grep -v '^ *+' conftest.er1 >conftest.err
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } &&
14049 { ac_try='test -z "$ac_c_werror_flag"
14050 || test ! -s conftest.err'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; } &&
14056 { ac_try='test -s conftest.$ac_objext'
14057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058 (eval $ac_try) 2>&5
14060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061 (exit $ac_status); }; }; then
14062 ac_cv_c_bigendian=yes
14064 echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14067 ac_cv_c_bigendian=no
14069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14076 if test $ac_cv_c_bigendian = unknown; then
14077 if test "$cross_compiling" = yes; then
14078 echo $ac_n "cross-compiling... " 2>&6
14080 cat >conftest.$ac_ext <<_ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14087 /* Are we little or big endian? From Harbison&Steele. */
14091 char c[sizeof (long)];
14094 exit (u.c[sizeof (long) - 1] == 1);
14097 rm -f conftest$ac_exeext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14099 (eval $ac_link) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; }; then
14108 ac_cv_c_bigendian=no
14110 echo "$as_me: program exited with status $ac_status" >&5
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ( exit $ac_status )
14115 ac_cv_c_bigendian=yes
14117 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14121 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14122 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14123 if test $ac_cv_c_bigendian = unknown; then
14124 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
14125 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
14127 cat >conftest.c <<EOF
14128 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14129 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14130 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
14131 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14132 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14133 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
14134 int main() { _ascii (); _ebcdic (); return 0; }
14136 if test -f conftest.c ; then
14137 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
14138 if test `grep -l BIGenDianSyS conftest.o` ; then
14139 echo $ac_n ' big endian probe OK, ' 1>&6
14140 ac_cv_c_bigendian=yes
14142 if test `grep -l LiTTleEnDian conftest.o` ; then
14143 echo $ac_n ' little endian probe OK, ' 1>&6
14144 if test $ac_cv_c_bigendian = yes ; then
14145 ac_cv_c_bigendian=unknown;
14147 ac_cv_c_bigendian=no
14150 echo $ac_n 'guessing bigendian ... ' >&6
14153 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14154 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14156 if test $ac_cv_c_bigendian = yes; then
14158 cat >>confdefs.h <<\_ACEOF
14159 #define WORDS_BIGENDIAN 1
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HOST_WORDS_BIG_ENDIAN 1
14172 cat >>confdefs.h <<_ACEOF
14173 #define BYTEORDER $BYTEORDER
14176 if test $ac_cv_c_bigendian = unknown; then
14177 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
14178 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
14179 { (exit 1); exit 1; }; }
14187 if test -z "$ZLIBSPEC"; then
14188 # Use zlib from the GCC tree.
14189 ZINCS='-I$(top_srcdir)/../zlib'
14190 ZLIBS=../zlib/libzgcj_convenience.la
14193 SYS_ZLIBS="$ZLIBSPEC"
14205 if test "$NATIVE" = yes; then
14215 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14216 NEEDS_DATA_START_TRUE=
14217 NEEDS_DATA_START_FALSE='#'
14219 NEEDS_DATA_START_TRUE='#'
14220 NEEDS_DATA_START_FALSE=
14225 # Process the option "--enable-version-specific-runtime-libs"
14226 # Calculate toolexeclibdir
14227 case ${version_specific_libs} in
14229 # Need the gcc compiler version to know where to install libraries
14230 # and header files if --enable-version-specific-runtime-libs option
14232 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
14233 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14234 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
14235 toolexeclibdir=$toolexecmainlibdir
14238 if test -n "$with_cross_host" &&
14239 test x"$with_cross_host" != x"no"; then
14240 # Install a library built with a cross compiler in tooldir, not libdir.
14241 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14242 toolexecmainlibdir='$(toolexecdir)/lib'
14244 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14245 toolexecmainlibdir='$(libdir)'
14247 multi_os_directory=`$CC -print-multi-os-directory`
14248 case $multi_os_directory in
14249 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14250 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14258 # Determine gcj version number.
14259 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14260 GCJVERSION=$gcjversion
14263 cat >>confdefs.h <<_ACEOF
14264 #define GCJVERSION "$GCJVERSION"
14268 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14269 # On that system, sys/ioctl.h will not include sys/filio.h unless
14270 # BSD_COMP is defined; just including sys/filio.h is simpler.
14290 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
14292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14294 echo "$as_me:$LINENO: checking for $ac_header" >&5
14295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14302 # Is the header compilable?
14303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14305 cat >conftest.$ac_ext <<_ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 $ac_includes_default
14312 #include <$ac_header>
14314 rm -f conftest.$ac_objext
14315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14316 (eval $ac_compile) 2>conftest.er1
14318 grep -v '^ *+' conftest.er1 >conftest.err
14320 cat conftest.err >&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); } &&
14323 { ac_try='test -z "$ac_c_werror_flag"
14324 || test ! -s conftest.err'
14325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14326 (eval $ac_try) 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; } &&
14330 { ac_try='test -s conftest.$ac_objext'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; }; then
14336 ac_header_compiler=yes
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_header_compiler=no
14343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14345 echo "${ECHO_T}$ac_header_compiler" >&6
14347 # Is the header present?
14348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14350 cat >conftest.$ac_ext <<_ACEOF
14353 cat confdefs.h >>conftest.$ac_ext
14354 cat >>conftest.$ac_ext <<_ACEOF
14355 /* end confdefs.h. */
14356 #include <$ac_header>
14358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14361 grep -v '^ *+' conftest.er1 >conftest.err
14363 cat conftest.err >&5
14364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14365 (exit $ac_status); } >/dev/null; then
14366 if test -s conftest.err; then
14367 ac_cpp_err=$ac_c_preproc_warn_flag
14368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14375 if test -z "$ac_cpp_err"; then
14376 ac_header_preproc=yes
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 ac_header_preproc=no
14383 rm -f conftest.err conftest.$ac_ext
14384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14385 echo "${ECHO_T}$ac_header_preproc" >&6
14387 # So? What about this header?
14388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14394 ac_header_preproc=yes
14397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14411 ## ---------------------------------- ##
14412 ## Report this to the libjava lists. ##
14413 ## ---------------------------------- ##
14416 sed "s/^/$as_me: WARNING: /" >&2
14419 echo "$as_me:$LINENO: checking for $ac_header" >&5
14420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 eval "$as_ac_Header=\$ac_header_preproc"
14426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14431 cat >>confdefs.h <<_ACEOF
14432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14439 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14440 # for now. If you change this, you also must update natFile.cc.
14442 for ac_header in dirent.h
14444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14446 echo "$as_me:$LINENO: checking for $ac_header" >&5
14447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14448 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14449 echo $ECHO_N "(cached) $ECHO_C" >&6
14451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14454 # Is the header compilable?
14455 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 $ac_includes_default
14464 #include <$ac_header>
14466 rm -f conftest.$ac_objext
14467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468 (eval $ac_compile) 2>conftest.er1
14470 grep -v '^ *+' conftest.er1 >conftest.err
14472 cat conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } &&
14475 { ac_try='test -z "$ac_c_werror_flag"
14476 || test ! -s conftest.err'
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; } &&
14482 { ac_try='test -s conftest.$ac_objext'
14483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14484 (eval $ac_try) 2>&5
14486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487 (exit $ac_status); }; }; then
14488 ac_header_compiler=yes
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_header_compiler=no
14495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14497 echo "${ECHO_T}$ac_header_compiler" >&6
14499 # Is the header present?
14500 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14502 cat >conftest.$ac_ext <<_ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 #include <$ac_header>
14510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14513 grep -v '^ *+' conftest.er1 >conftest.err
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } >/dev/null; then
14518 if test -s conftest.err; then
14519 ac_cpp_err=$ac_c_preproc_warn_flag
14520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14527 if test -z "$ac_cpp_err"; then
14528 ac_header_preproc=yes
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14533 ac_header_preproc=no
14535 rm -f conftest.err conftest.$ac_ext
14536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14537 echo "${ECHO_T}$ac_header_preproc" >&6
14539 # So? What about this header?
14540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14543 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14546 ac_header_preproc=yes
14549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14550 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14552 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14554 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14556 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14560 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14563 ## ---------------------------------- ##
14564 ## Report this to the libjava lists. ##
14565 ## ---------------------------------- ##
14568 sed "s/^/$as_me: WARNING: /" >&2
14571 echo "$as_me:$LINENO: checking for $ac_header" >&5
14572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14574 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 eval "$as_ac_Header=\$ac_header_preproc"
14578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14583 cat >>confdefs.h <<_ACEOF
14584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14592 for ac_header in inttypes.h
14594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14596 echo "$as_me:$LINENO: checking for $ac_header" >&5
14597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14604 # Is the header compilable?
14605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14607 cat >conftest.$ac_ext <<_ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 $ac_includes_default
14614 #include <$ac_header>
14616 rm -f conftest.$ac_objext
14617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14618 (eval $ac_compile) 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } &&
14625 { ac_try='test -z "$ac_c_werror_flag"
14626 || test ! -s conftest.err'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_header_compiler=yes
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_header_compiler=no
14645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14647 echo "${ECHO_T}$ac_header_compiler" >&6
14649 # Is the header present?
14650 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14651 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14652 cat >conftest.$ac_ext <<_ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14658 #include <$ac_header>
14660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14663 grep -v '^ *+' conftest.er1 >conftest.err
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } >/dev/null; then
14668 if test -s conftest.err; then
14669 ac_cpp_err=$ac_c_preproc_warn_flag
14670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14677 if test -z "$ac_cpp_err"; then
14678 ac_header_preproc=yes
14680 echo "$as_me: failed program was:" >&5
14681 sed 's/^/| /' conftest.$ac_ext >&5
14683 ac_header_preproc=no
14685 rm -f conftest.err conftest.$ac_ext
14686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14687 echo "${ECHO_T}$ac_header_preproc" >&6
14689 # So? What about this header?
14690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14696 ac_header_preproc=yes
14699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14713 ## ---------------------------------- ##
14714 ## Report this to the libjava lists. ##
14715 ## ---------------------------------- ##
14718 sed "s/^/$as_me: WARNING: /" >&2
14721 echo "$as_me:$LINENO: checking for $ac_header" >&5
14722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14724 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 eval "$as_ac_Header=\$ac_header_preproc"
14728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14733 cat >>confdefs.h <<_ACEOF
14734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14738 cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_INTTYPES_H 1
14743 cat >>confdefs.h <<\_ACEOF
14744 #define JV_HAVE_INTTYPES_H 1
14752 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14753 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14754 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <sys/types.h>
14764 #include <sys/wait.h>
14765 #ifndef WEXITSTATUS
14766 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14769 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14777 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14782 rm -f conftest.$ac_objext
14783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14784 (eval $ac_compile) 2>conftest.er1
14786 grep -v '^ *+' conftest.er1 >conftest.err
14788 cat conftest.err >&5
14789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790 (exit $ac_status); } &&
14791 { ac_try='test -z "$ac_c_werror_flag"
14792 || test ! -s conftest.err'
14793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14794 (eval $ac_try) 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); }; } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_cv_header_sys_wait_h=yes
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_cv_header_sys_wait_h=no
14811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14813 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14814 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14815 if test $ac_cv_header_sys_wait_h = yes; then
14817 cat >>confdefs.h <<\_ACEOF
14818 #define HAVE_SYS_WAIT_H 1
14824 echo "$as_me:$LINENO: checking for ssize_t" >&5
14825 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14826 if test "${ac_cv_type_ssize_t+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 $ac_includes_default
14841 if (sizeof (ssize_t))
14847 rm -f conftest.$ac_objext
14848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14849 (eval $ac_compile) 2>conftest.er1
14851 grep -v '^ *+' conftest.er1 >conftest.err
14853 cat conftest.err >&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } &&
14856 { ac_try='test -z "$ac_c_werror_flag"
14857 || test ! -s conftest.err'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; } &&
14863 { ac_try='test -s conftest.$ac_objext'
14864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 (eval $ac_try) 2>&5
14867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 (exit $ac_status); }; }; then
14869 ac_cv_type_ssize_t=yes
14871 echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14874 ac_cv_type_ssize_t=no
14876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14878 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14879 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14880 if test $ac_cv_type_ssize_t = yes; then
14884 cat >>confdefs.h <<_ACEOF
14885 #define ssize_t int
14891 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14892 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14893 cat >conftest.$ac_ext <<_ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 #include <sys/types.h>
14901 #include <stdlib.h>
14902 #include <stddef.h>
14904 #if HAVE_NETINET_IN_H
14905 #include <netinet/in.h>
14915 rm -f conftest.$ac_objext
14916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14917 (eval $ac_compile) 2>conftest.er1
14919 grep -v '^ *+' conftest.er1 >conftest.err
14921 cat conftest.err >&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); } &&
14924 { ac_try='test -z "$ac_c_werror_flag"
14925 || test ! -s conftest.err'
14926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14927 (eval $ac_try) 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); }; } &&
14931 { ac_try='test -s conftest.$ac_objext'
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14938 cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_IN_ADDR_T 1
14942 echo "$as_me:$LINENO: result: yes" >&5
14943 echo "${ECHO_T}yes" >&6
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 echo "$as_me:$LINENO: result: no" >&5
14949 echo "${ECHO_T}no" >&6
14951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14953 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14954 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <netinet/in.h>
14965 struct ip_mreq mreq;
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972 (eval $ac_compile) 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -z "$ac_c_werror_flag"
14980 || test ! -s conftest.err'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest.$ac_objext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14993 cat >>confdefs.h <<\_ACEOF
14994 #define HAVE_STRUCT_IP_MREQ 1
14997 echo "$as_me:$LINENO: result: yes" >&5
14998 echo "${ECHO_T}yes" >&6
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15003 echo "$as_me:$LINENO: result: no" >&5
15004 echo "${ECHO_T}no" >&6
15006 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15008 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
15009 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
15010 cat >conftest.$ac_ext <<_ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 #include <netinet/in.h>
15020 struct ipv6_mreq mreq6;
15025 rm -f conftest.$ac_objext
15026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15027 (eval $ac_compile) 2>conftest.er1
15029 grep -v '^ *+' conftest.er1 >conftest.err
15031 cat conftest.err >&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } &&
15034 { ac_try='test -z "$ac_c_werror_flag"
15035 || test ! -s conftest.err'
15036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15037 (eval $ac_try) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); }; } &&
15041 { ac_try='test -s conftest.$ac_objext'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15048 cat >>confdefs.h <<\_ACEOF
15049 #define HAVE_STRUCT_IPV6_MREQ 1
15052 echo "$as_me:$LINENO: result: yes" >&5
15053 echo "${ECHO_T}yes" >&6
15055 echo "$as_me: failed program was:" >&5
15056 sed 's/^/| /' conftest.$ac_ext >&5
15058 echo "$as_me:$LINENO: result: no" >&5
15059 echo "${ECHO_T}no" >&6
15061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15063 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
15064 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
15065 cat >conftest.$ac_ext <<_ACEOF
15068 cat confdefs.h >>conftest.$ac_ext
15069 cat >>conftest.$ac_ext <<_ACEOF
15070 /* end confdefs.h. */
15071 #include <netinet/in.h>
15075 struct sockaddr_in6 addr6;
15080 rm -f conftest.$ac_objext
15081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15082 (eval $ac_compile) 2>conftest.er1
15084 grep -v '^ *+' conftest.er1 >conftest.err
15086 cat conftest.err >&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -z "$ac_c_werror_flag"
15090 || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest.$ac_objext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_INET6 1
15107 echo "$as_me:$LINENO: result: yes" >&5
15108 echo "${ECHO_T}yes" >&6
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 echo "$as_me:$LINENO: result: no" >&5
15114 echo "${ECHO_T}no" >&6
15116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15118 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15119 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15120 cat >conftest.$ac_ext <<_ACEOF
15123 cat confdefs.h >>conftest.$ac_ext
15124 cat >>conftest.$ac_ext <<_ACEOF
15125 /* end confdefs.h. */
15126 #define _POSIX_PII_SOCKET
15127 #include <sys/types.h>
15128 #include <sys/socket.h>
15137 rm -f conftest.$ac_objext
15138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15139 (eval $ac_compile) 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } &&
15146 { ac_try='test -z "$ac_c_werror_flag"
15147 || test ! -s conftest.err'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; } &&
15153 { ac_try='test -s conftest.$ac_objext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15160 cat >>confdefs.h <<\_ACEOF
15161 #define HAVE_SOCKLEN_T 1
15164 echo "$as_me:$LINENO: result: yes" >&5
15165 echo "${ECHO_T}yes" >&6
15167 echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 echo "$as_me:$LINENO: result: no" >&5
15171 echo "${ECHO_T}no" >&6
15173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15175 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15176 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15177 cat >conftest.$ac_ext <<_ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h. */
15187 struct tm tim; tim.tm_gmtoff = 0;
15192 rm -f conftest.$ac_objext
15193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15194 (eval $ac_compile) 2>conftest.er1
15196 grep -v '^ *+' conftest.er1 >conftest.err
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
15201 { ac_try='test -z "$ac_c_werror_flag"
15202 || test ! -s conftest.err'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; } &&
15208 { ac_try='test -s conftest.$ac_objext'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15215 cat >>confdefs.h <<\_ACEOF
15216 #define STRUCT_TM_HAS_GMTOFF 1
15219 echo "$as_me:$LINENO: result: yes" >&5
15220 echo "${ECHO_T}yes" >&6
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 echo "$as_me:$LINENO: result: no" >&5
15226 echo "${ECHO_T}no" >&6
15227 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15228 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15229 cat >conftest.$ac_ext <<_ACEOF
15232 cat confdefs.h >>conftest.$ac_ext
15233 cat >>conftest.$ac_ext <<_ACEOF
15234 /* end confdefs.h. */
15239 void i(){long z2 = 2*timezone;}
15244 rm -f conftest.$ac_objext
15245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15246 (eval $ac_compile) 2>conftest.er1
15248 grep -v '^ *+' conftest.er1 >conftest.err
15250 cat conftest.err >&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } &&
15253 { ac_try='test -z "$ac_c_werror_flag"
15254 || test ! -s conftest.err'
15255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256 (eval $ac_try) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); }; } &&
15260 { ac_try='test -s conftest.$ac_objext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15267 cat >>confdefs.h <<\_ACEOF
15268 #define HAVE_TIMEZONE 1
15271 echo "$as_me:$LINENO: result: yes" >&5
15272 echo "${ECHO_T}yes" >&6
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 echo "$as_me:$LINENO: result: no" >&5
15278 echo "${ECHO_T}no" >&6
15279 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15280 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15281 cat >conftest.$ac_ext <<_ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h. */
15291 long z2 = _timezone;
15296 rm -f conftest.$ac_objext
15297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15298 (eval $ac_compile) 2>conftest.er1
15300 grep -v '^ *+' conftest.er1 >conftest.err
15302 cat conftest.err >&5
15303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15304 (exit $ac_status); } &&
15305 { ac_try='test -z "$ac_c_werror_flag"
15306 || test ! -s conftest.err'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; } &&
15312 { ac_try='test -s conftest.$ac_objext'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; }; then
15319 cat >>confdefs.h <<\_ACEOF
15320 #define HAVE_UNDERSCORE_TIMEZONE 1
15323 echo "$as_me:$LINENO: result: yes" >&5
15324 echo "${ECHO_T}yes" >&6
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 echo "$as_me:$LINENO: result: no" >&5
15330 echo "${ECHO_T}no" >&6
15332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15338 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15339 # for constant arguments. Useless!
15340 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15341 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15342 if test "${ac_cv_working_alloca_h+set}" = set; then
15343 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 if test x$gcc_no_link = xyes; then
15346 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15347 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15348 { (exit 1); exit 1; }; }
15350 cat >conftest.$ac_ext <<_ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15356 #include <alloca.h>
15360 char *p = (char *) alloca (2 * sizeof (int));
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15367 (eval $ac_link) 2>conftest.er1
15369 grep -v '^ *+' conftest.er1 >conftest.err
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -z "$ac_c_werror_flag"
15375 || test ! -s conftest.err'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest$ac_exeext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_working_alloca_h=yes
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_cv_working_alloca_h=no
15394 rm -f conftest.err conftest.$ac_objext \
15395 conftest$ac_exeext conftest.$ac_ext
15397 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15398 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15399 if test $ac_cv_working_alloca_h = yes; then
15401 cat >>confdefs.h <<\_ACEOF
15402 #define HAVE_ALLOCA_H 1
15407 echo "$as_me:$LINENO: checking for alloca" >&5
15408 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15409 if test "${ac_cv_func_alloca_works+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15412 if test x$gcc_no_link = xyes; then
15413 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15414 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15415 { (exit 1); exit 1; }; }
15417 cat >conftest.$ac_ext <<_ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15424 # define alloca __builtin_alloca
15427 # include <malloc.h>
15428 # define alloca _alloca
15431 # include <alloca.h>
15436 # ifndef alloca /* predefined by HP cc +Olibcalls */
15447 char *p = (char *) alloca (1);
15452 rm -f conftest.$ac_objext conftest$ac_exeext
15453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15454 (eval $ac_link) 2>conftest.er1
15456 grep -v '^ *+' conftest.er1 >conftest.err
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } &&
15461 { ac_try='test -z "$ac_c_werror_flag"
15462 || test ! -s conftest.err'
15463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15464 (eval $ac_try) 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest$ac_exeext'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 ac_cv_func_alloca_works=yes
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 ac_cv_func_alloca_works=no
15481 rm -f conftest.err conftest.$ac_objext \
15482 conftest$ac_exeext conftest.$ac_ext
15484 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15485 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15487 if test $ac_cv_func_alloca_works = yes; then
15489 cat >>confdefs.h <<\_ACEOF
15490 #define HAVE_ALLOCA 1
15494 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15495 # that cause trouble. Some versions do not even contain alloca or
15496 # contain a buggy version. If you still want to use their alloca,
15497 # use ar to extract alloca.o from them instead of compiling alloca.c.
15499 ALLOCA=alloca.$ac_objext
15501 cat >>confdefs.h <<\_ACEOF
15506 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15507 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15508 if test "${ac_cv_os_cray+set}" = set; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 cat >conftest.$ac_ext <<_ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 #if defined(CRAY) && ! defined(CRAY2)
15524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15525 $EGREP "webecray" >/dev/null 2>&1; then
15533 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15534 echo "${ECHO_T}$ac_cv_os_cray" >&6
15535 if test $ac_cv_os_cray = yes; then
15536 for ac_func in _getb67 GETB67 getb67; do
15537 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15538 echo "$as_me:$LINENO: checking for $ac_func" >&5
15539 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15540 if eval "test \"\${$as_ac_var+set}\" = set"; then
15541 echo $ECHO_N "(cached) $ECHO_C" >&6
15543 if test x$gcc_no_link = xyes; then
15544 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15545 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15546 { (exit 1); exit 1; }; }
15548 cat >conftest.$ac_ext <<_ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15554 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15556 #define $ac_func innocuous_$ac_func
15558 /* System header to define __stub macros and hopefully few prototypes,
15559 which can conflict with char $ac_func (); below.
15560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15561 <limits.h> exists even on freestanding compilers. */
15564 # include <limits.h>
15566 # include <assert.h>
15571 /* Override any gcc2 internal prototype to avoid an error. */
15576 /* We use char because int might match the return type of a gcc2
15577 builtin and then its argument prototype would still apply. */
15579 /* The GNU C library defines this for functions which it implements
15580 to always fail with ENOSYS. Some functions are actually named
15581 something starting with __ and the normal name is an alias. */
15582 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15585 char (*f) () = $ac_func;
15594 return f != $ac_func;
15599 rm -f conftest.$ac_objext conftest$ac_exeext
15600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15601 (eval $ac_link) 2>conftest.er1
15603 grep -v '^ *+' conftest.er1 >conftest.err
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -z "$ac_c_werror_flag"
15609 || test ! -s conftest.err'
15610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15611 (eval $ac_try) 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; } &&
15615 { ac_try='test -s conftest$ac_exeext'
15616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15617 (eval $ac_try) 2>&5
15619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); }; }; then
15621 eval "$as_ac_var=yes"
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15626 eval "$as_ac_var=no"
15628 rm -f conftest.err conftest.$ac_objext \
15629 conftest$ac_exeext conftest.$ac_ext
15631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15633 if test `eval echo '${'$as_ac_var'}'` = yes; then
15635 cat >>confdefs.h <<_ACEOF
15636 #define CRAY_STACKSEG_END $ac_func
15645 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15646 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15647 if test "${ac_cv_c_stack_direction+set}" = set; then
15648 echo $ECHO_N "(cached) $ECHO_C" >&6
15650 if test "$cross_compiling" = yes; then
15651 ac_cv_c_stack_direction=0
15653 cat >conftest.$ac_ext <<_ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15660 find_stack_direction ()
15662 static char *addr = 0;
15667 return find_stack_direction ();
15670 return (&dummy > addr) ? 1 : -1;
15676 exit (find_stack_direction () < 0);
15679 rm -f conftest$ac_exeext
15680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15681 (eval $ac_link) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 ac_cv_c_stack_direction=1
15692 echo "$as_me: program exited with status $ac_status" >&5
15693 echo "$as_me: failed program was:" >&5
15694 sed 's/^/| /' conftest.$ac_ext >&5
15696 ( exit $ac_status )
15697 ac_cv_c_stack_direction=-1
15699 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15702 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15703 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15705 cat >>confdefs.h <<_ACEOF
15706 #define STACK_DIRECTION $ac_cv_c_stack_direction
15712 if test x$gcc_no_link = xyes; then
15713 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15714 ac_cv_func_mmap_fixed_mapped=no
15717 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15720 for ac_header in stdlib.h unistd.h
15722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15724 echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15732 # Is the header compilable?
15733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15742 #include <$ac_header>
15744 rm -f conftest.$ac_objext
15745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15746 (eval $ac_compile) 2>conftest.er1
15748 grep -v '^ *+' conftest.er1 >conftest.err
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752 (exit $ac_status); } &&
15753 { ac_try='test -z "$ac_c_werror_flag"
15754 || test ! -s conftest.err'
15755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15756 (eval $ac_try) 2>&5
15758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }; } &&
15760 { ac_try='test -s conftest.$ac_objext'
15761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15762 (eval $ac_try) 2>&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); }; }; then
15766 ac_header_compiler=yes
15768 echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 ac_header_compiler=no
15773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775 echo "${ECHO_T}$ac_header_compiler" >&6
15777 # Is the header present?
15778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #include <$ac_header>
15788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15791 grep -v '^ *+' conftest.er1 >conftest.err
15793 cat conftest.err >&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } >/dev/null; then
15796 if test -s conftest.err; then
15797 ac_cpp_err=$ac_c_preproc_warn_flag
15798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15805 if test -z "$ac_cpp_err"; then
15806 ac_header_preproc=yes
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 ac_header_preproc=no
15813 rm -f conftest.err conftest.$ac_ext
15814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15815 echo "${ECHO_T}$ac_header_preproc" >&6
15817 # So? What about this header?
15818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15824 ac_header_preproc=yes
15827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15841 ## ---------------------------------- ##
15842 ## Report this to the libjava lists. ##
15843 ## ---------------------------------- ##
15846 sed "s/^/$as_me: WARNING: /" >&2
15849 echo "$as_me:$LINENO: checking for $ac_header" >&5
15850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15854 eval "$as_ac_Header=\$ac_header_preproc"
15856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15861 cat >>confdefs.h <<_ACEOF
15862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15870 for ac_func in getpagesize
15872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15873 echo "$as_me:$LINENO: checking for $ac_func" >&5
15874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15875 if eval "test \"\${$as_ac_var+set}\" = set"; then
15876 echo $ECHO_N "(cached) $ECHO_C" >&6
15878 if test x$gcc_no_link = xyes; then
15879 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15880 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15881 { (exit 1); exit 1; }; }
15883 cat >conftest.$ac_ext <<_ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15891 #define $ac_func innocuous_$ac_func
15893 /* System header to define __stub macros and hopefully few prototypes,
15894 which can conflict with char $ac_func (); below.
15895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15896 <limits.h> exists even on freestanding compilers. */
15899 # include <limits.h>
15901 # include <assert.h>
15906 /* Override any gcc2 internal prototype to avoid an error. */
15911 /* We use char because int might match the return type of a gcc2
15912 builtin and then its argument prototype would still apply. */
15914 /* The GNU C library defines this for functions which it implements
15915 to always fail with ENOSYS. Some functions are actually named
15916 something starting with __ and the normal name is an alias. */
15917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15920 char (*f) () = $ac_func;
15929 return f != $ac_func;
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15936 (eval $ac_link) 2>conftest.er1
15938 grep -v '^ *+' conftest.er1 >conftest.err
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } &&
15943 { ac_try='test -z "$ac_c_werror_flag"
15944 || test ! -s conftest.err'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; } &&
15950 { ac_try='test -s conftest$ac_exeext'
15951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15952 (eval $ac_try) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); }; }; then
15956 eval "$as_ac_var=yes"
15958 echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 eval "$as_ac_var=no"
15963 rm -f conftest.err conftest.$ac_objext \
15964 conftest$ac_exeext conftest.$ac_ext
15966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15968 if test `eval echo '${'$as_ac_var'}'` = yes; then
15969 cat >>confdefs.h <<_ACEOF
15970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15976 echo "$as_me:$LINENO: checking for working mmap" >&5
15977 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15978 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 if test "$cross_compiling" = yes; then
15982 ac_cv_func_mmap_fixed_mapped=no
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 /* malloc might have been renamed as rpl_malloc. */
15994 /* Thanks to Mike Haertel and Jim Avera for this test.
15995 Here is a matrix of mmap possibilities:
15996 mmap private not fixed
15997 mmap private fixed at somewhere currently unmapped
15998 mmap private fixed at somewhere already mapped
15999 mmap shared not fixed
16000 mmap shared fixed at somewhere currently unmapped
16001 mmap shared fixed at somewhere already mapped
16002 For private mappings, we should verify that changes cannot be read()
16003 back from the file, nor mmap's back from the file at a different
16004 address. (There have been systems where private was not correctly
16005 implemented like the infamous i386 svr4.0, and systems where the
16006 VM page cache was not coherent with the file system buffer cache
16007 like early versions of FreeBSD and possibly contemporary NetBSD.)
16008 For shared mappings, we should conversely verify that changes get
16009 propagated back to all the places they're supposed to be.
16011 Grep wants private fixed already mapped.
16012 The main things grep needs to know about mmap are:
16013 * does it exist and is it safe to write into the mmap'd area
16014 * how to use it (BSD variants) */
16017 #include <sys/mman.h>
16019 #if !STDC_HEADERS && !HAVE_STDLIB_H
16023 /* This mess was copied from the GNU getpagesize.h. */
16024 #if !HAVE_GETPAGESIZE
16025 /* Assume that all systems that can run configure have sys/param.h. */
16026 # if !HAVE_SYS_PARAM_H
16027 # define HAVE_SYS_PARAM_H 1
16030 # ifdef _SC_PAGESIZE
16031 # define getpagesize() sysconf(_SC_PAGESIZE)
16032 # else /* no _SC_PAGESIZE */
16033 # if HAVE_SYS_PARAM_H
16034 # include <sys/param.h>
16035 # ifdef EXEC_PAGESIZE
16036 # define getpagesize() EXEC_PAGESIZE
16037 # else /* no EXEC_PAGESIZE */
16039 # define getpagesize() NBPG * CLSIZE
16042 # endif /* no CLSIZE */
16043 # else /* no NBPG */
16045 # define getpagesize() NBPC
16046 # else /* no NBPC */
16048 # define getpagesize() PAGESIZE
16049 # endif /* PAGESIZE */
16050 # endif /* no NBPC */
16051 # endif /* no NBPG */
16052 # endif /* no EXEC_PAGESIZE */
16053 # else /* no HAVE_SYS_PARAM_H */
16054 # define getpagesize() 8192 /* punt totally */
16055 # endif /* no HAVE_SYS_PARAM_H */
16056 # endif /* no _SC_PAGESIZE */
16058 #endif /* no HAVE_GETPAGESIZE */
16063 char *data, *data2, *data3;
16067 pagesize = getpagesize ();
16069 /* First, make a file with some known garbage in it. */
16070 data = (char *) malloc (pagesize);
16073 for (i = 0; i < pagesize; ++i)
16074 *(data + i) = rand ();
16076 fd = creat ("conftest.mmap", 0600);
16079 if (write (fd, data, pagesize) != pagesize)
16083 /* Next, try to mmap the file at a fixed address which already has
16084 something else allocated at it. If we can, also make sure that
16085 we see the same garbage. */
16086 fd = open ("conftest.mmap", O_RDWR);
16089 data2 = (char *) malloc (2 * pagesize);
16092 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16093 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16094 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16096 for (i = 0; i < pagesize; ++i)
16097 if (*(data + i) != *(data2 + i))
16100 /* Finally, make sure that changes to the mapped area do not
16101 percolate back to the file as seen by read(). (This is a bug on
16102 some variants of i386 svr4.0.) */
16103 for (i = 0; i < pagesize; ++i)
16104 *(data2 + i) = *(data2 + i) + 1;
16105 data3 = (char *) malloc (pagesize);
16108 if (read (fd, data3, pagesize) != pagesize)
16110 for (i = 0; i < pagesize; ++i)
16111 if (*(data + i) != *(data3 + i))
16117 rm -f conftest$ac_exeext
16118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16119 (eval $ac_link) 2>&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; }; then
16128 ac_cv_func_mmap_fixed_mapped=yes
16130 echo "$as_me: program exited with status $ac_status" >&5
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16134 ( exit $ac_status )
16135 ac_cv_func_mmap_fixed_mapped=no
16137 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16140 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16141 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16142 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16144 cat >>confdefs.h <<\_ACEOF
16145 #define HAVE_MMAP 1
16149 rm -f conftest.mmap
16153 for ac_prog in perl
16155 # Extract the first word of "$ac_prog", so it can be a program name with args.
16156 set dummy $ac_prog; ac_word=$2
16157 echo "$as_me:$LINENO: checking for $ac_word" >&5
16158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16159 if test "${ac_cv_prog_PERL+set}" = set; then
16160 echo $ECHO_N "(cached) $ECHO_C" >&6
16162 if test -n "$PERL"; then
16163 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16169 test -z "$as_dir" && as_dir=.
16170 for ac_exec_ext in '' $ac_executable_extensions; do
16171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16172 ac_cv_prog_PERL="$ac_prog"
16173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16181 PERL=$ac_cv_prog_PERL
16182 if test -n "$PERL"; then
16183 echo "$as_me:$LINENO: result: $PERL" >&5
16184 echo "${ECHO_T}$PERL" >&6
16186 echo "$as_me:$LINENO: result: no" >&5
16187 echo "${ECHO_T}no" >&6
16190 test -n "$PERL" && break
16192 test -n "$PERL" || PERL="false"
16196 SIGNAL_HANDLER_AUX=
16200 SIGNAL_HANDLER=include/i386-signal.h
16202 sparc*-sun-solaris*)
16203 SIGNAL_HANDLER=include/sparc-signal.h
16206 # SYSDEP_SOURCES=sysdep/ia64.c
16207 # test -d sysdep || mkdir sysdep
16210 SIGNAL_HANDLER=include/pa-signal.h
16213 SIGNAL_HANDLER=include/dwarf2-signal.h
16216 SIGNAL_HANDLER=include/powerpc-signal.h
16219 SIGNAL_HANDLER=include/dwarf2-signal.h
16222 SIGNAL_HANDLER=include/s390-signal.h
16225 SIGNAL_HANDLER=include/x86_64-signal.h
16226 SIGNAL_HANDLER_AUX=include/i386-signal.h
16229 SIGNAL_HANDLER=include/dwarf2-signal.h
16232 SIGNAL_HANDLER=include/sh-signal.h
16235 SIGNAL_HANDLER=include/win32-signal.h
16238 SIGNAL_HANDLER=include/mips-signal.h
16241 SIGNAL_HANDLER=include/darwin-signal.h
16244 SIGNAL_HANDLER=include/default-signal.h
16248 # If we're using sjlj exceptions, forget what we just learned.
16249 if test "$enable_sjlj_exceptions" = yes; then
16250 SIGNAL_HANDLER=include/default-signal.h
16251 SIGNAL_HANDLER_AUX=
16254 # Define here any compiler flags that you need in order to make backtrace() work.
16257 x86_64*-*-linux*|i?86-*)
16258 BACKTRACESPEC=-fno-omit-frame-pointer
16265 if test -z "$SIGNAL_HANDLER_AUX"; then
16266 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16269 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16272 if test "${multilib}" = "yes"; then
16273 multilib_arg="--enable-multilib"
16280 here=`${PWDCMD-pwd}`
16283 # We get this from the environment.
16286 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
16289 ac_config_commands="$ac_config_commands default"
16292 cat >confcache <<\_ACEOF
16293 # This file is a shell script that caches the results of configure
16294 # tests run on this system so they can be shared between configure
16295 # scripts and configure runs, see configure's option --config-cache.
16296 # It is not useful on other systems. If it contains results you don't
16297 # want to keep, you may remove or edit it.
16299 # config.status only pays attention to the cache file if you give it
16300 # the --recheck option to rerun configure.
16302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16304 # following values.
16308 # The following way of writing the cache mishandles newlines in values,
16309 # but we know of no workaround that is simple, portable, and efficient.
16310 # So, don't put newlines in cache variables' values.
16311 # Ultrix sh set writes to stderr and can't be redirected directly,
16312 # and sets the high bit in the cache file unless we assign to the vars.
16315 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16317 # `set' does not quote correctly, so add quotes (double-quote
16318 # substitution turns \\\\ into \\, and sed turns \\ into \).
16321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16324 # `set' quotes correctly as required by POSIX, so do not add quotes.
16326 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16333 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16335 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16337 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16338 if test -w $cache_file; then
16339 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16340 cat confcache >$cache_file
16342 echo "not updating unwritable cache $cache_file"
16347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16348 # Let make expand exec_prefix.
16349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16351 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16352 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16353 # trailing colons and then remove the whole line if VPATH becomes empty
16354 # (actually we leave an empty line to preserve line numbers).
16355 if test "x$srcdir" = x.; then
16356 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16357 s/:*\$(srcdir):*/:/;
16358 s/:*\${srcdir}:*/:/;
16360 s/^\([^=]*=[ ]*\):*/\1/;
16366 DEFS=-DHAVE_CONFIG_H
16370 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16371 # 1. Remove the extension, and $U if already installed.
16372 ac_i=`echo "$ac_i" |
16373 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16375 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16376 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16378 LIBOBJS=$ac_libobjs
16380 LTLIBOBJS=$ac_ltlibobjs
16383 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16384 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16385 Usually this means the macro was only invoked conditionally." >&5
16386 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16387 Usually this means the macro was only invoked conditionally." >&2;}
16388 { (exit 1); exit 1; }; }
16390 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16391 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16392 Usually this means the macro was only invoked conditionally." >&5
16393 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16394 Usually this means the macro was only invoked conditionally." >&2;}
16395 { (exit 1); exit 1; }; }
16397 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16398 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16399 Usually this means the macro was only invoked conditionally." >&5
16400 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16401 Usually this means the macro was only invoked conditionally." >&2;}
16402 { (exit 1); exit 1; }; }
16404 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16405 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16406 Usually this means the macro was only invoked conditionally." >&5
16407 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16408 Usually this means the macro was only invoked conditionally." >&2;}
16409 { (exit 1); exit 1; }; }
16411 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16412 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16413 Usually this means the macro was only invoked conditionally." >&5
16414 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16415 Usually this means the macro was only invoked conditionally." >&2;}
16416 { (exit 1); exit 1; }; }
16418 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16419 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16420 Usually this means the macro was only invoked conditionally." >&5
16421 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16422 Usually this means the macro was only invoked conditionally." >&2;}
16423 { (exit 1); exit 1; }; }
16425 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
16426 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
16427 Usually this means the macro was only invoked conditionally." >&5
16428 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
16429 Usually this means the macro was only invoked conditionally." >&2;}
16430 { (exit 1); exit 1; }; }
16432 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16433 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16434 Usually this means the macro was only invoked conditionally." >&5
16435 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16436 Usually this means the macro was only invoked conditionally." >&2;}
16437 { (exit 1); exit 1; }; }
16439 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16440 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16441 Usually this means the macro was only invoked conditionally." >&5
16442 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16443 Usually this means the macro was only invoked conditionally." >&2;}
16444 { (exit 1); exit 1; }; }
16446 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
16447 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16448 Usually this means the macro was only invoked conditionally." >&5
16449 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
16450 Usually this means the macro was only invoked conditionally." >&2;}
16451 { (exit 1); exit 1; }; }
16453 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16454 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16455 Usually this means the macro was only invoked conditionally." >&5
16456 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16457 Usually this means the macro was only invoked conditionally." >&2;}
16458 { (exit 1); exit 1; }; }
16460 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16461 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16462 Usually this means the macro was only invoked conditionally." >&5
16463 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16464 Usually this means the macro was only invoked conditionally." >&2;}
16465 { (exit 1); exit 1; }; }
16467 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16468 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16469 Usually this means the macro was only invoked conditionally." >&5
16470 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16471 Usually this means the macro was only invoked conditionally." >&2;}
16472 { (exit 1); exit 1; }; }
16474 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16475 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16476 Usually this means the macro was only invoked conditionally." >&5
16477 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16478 Usually this means the macro was only invoked conditionally." >&2;}
16479 { (exit 1); exit 1; }; }
16481 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16482 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16483 Usually this means the macro was only invoked conditionally." >&5
16484 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16485 Usually this means the macro was only invoked conditionally." >&2;}
16486 { (exit 1); exit 1; }; }
16488 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16489 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16490 Usually this means the macro was only invoked conditionally." >&5
16491 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16492 Usually this means the macro was only invoked conditionally." >&2;}
16493 { (exit 1); exit 1; }; }
16495 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16496 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16497 Usually this means the macro was only invoked conditionally." >&5
16498 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16499 Usually this means the macro was only invoked conditionally." >&2;}
16500 { (exit 1); exit 1; }; }
16502 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16503 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16504 Usually this means the macro was only invoked conditionally." >&5
16505 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16506 Usually this means the macro was only invoked conditionally." >&2;}
16507 { (exit 1); exit 1; }; }
16509 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16510 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16511 Usually this means the macro was only invoked conditionally." >&5
16512 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16513 Usually this means the macro was only invoked conditionally." >&2;}
16514 { (exit 1); exit 1; }; }
16516 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16517 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16518 Usually this means the macro was only invoked conditionally." >&5
16519 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16520 Usually this means the macro was only invoked conditionally." >&2;}
16521 { (exit 1); exit 1; }; }
16523 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16524 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16525 Usually this means the macro was only invoked conditionally." >&5
16526 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16527 Usually this means the macro was only invoked conditionally." >&2;}
16528 { (exit 1); exit 1; }; }
16530 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16531 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16532 Usually this means the macro was only invoked conditionally." >&5
16533 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16534 Usually this means the macro was only invoked conditionally." >&2;}
16535 { (exit 1); exit 1; }; }
16537 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16538 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16539 Usually this means the macro was only invoked conditionally." >&5
16540 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16541 Usually this means the macro was only invoked conditionally." >&2;}
16542 { (exit 1); exit 1; }; }
16545 : ${CONFIG_STATUS=./config.status}
16546 ac_clean_files_save=$ac_clean_files
16547 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16548 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16549 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16550 cat >$CONFIG_STATUS <<_ACEOF
16552 # Generated by $as_me.
16553 # Run this file to recreate the current configuration.
16554 # Compiler output produced by configure, useful for debugging
16555 # configure, is in config.log if it exists.
16558 ac_cs_recheck=false
16560 SHELL=\${CONFIG_SHELL-$SHELL}
16563 cat >>$CONFIG_STATUS <<\_ACEOF
16564 ## --------------------- ##
16565 ## M4sh Initialization. ##
16566 ## --------------------- ##
16568 # Be Bourne compatible
16569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16572 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16573 # is contrary to our usage. Disable this feature.
16574 alias -g '${1+"$@"}'='"$@"'
16575 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16578 DUALCASE=1; export DUALCASE # for MKS sh
16580 # Support unset when possible.
16581 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16588 # Work around bugs in pre-3.0 UWIN ksh.
16589 $as_unset ENV MAIL MAILPATH
16596 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16597 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16598 LC_TELEPHONE LC_TIME
16600 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16601 eval $as_var=C; export $as_var
16607 # Required to use basename.
16608 if expr a : '\(a\)' >/dev/null 2>&1; then
16614 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16615 as_basename=basename
16621 # Name of the executable.
16622 as_me=`$as_basename "$0" ||
16623 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16624 X"$0" : 'X\(//\)$' \| \
16625 X"$0" : 'X\(/\)$' \| \
16626 . : '\(.\)' 2>/dev/null ||
16628 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16629 /^X\/\(\/\/\)$/{ s//\1/; q; }
16630 /^X\/\(\/\).*/{ s//\1/; q; }
16634 # PATH needs CR, and LINENO needs CR and PATH.
16635 # Avoid depending upon Character Ranges.
16636 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16637 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16638 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16639 as_cr_digits='0123456789'
16640 as_cr_alnum=$as_cr_Letters$as_cr_digits
16642 # The user is always right.
16643 if test "${PATH_SEPARATOR+set}" != set; then
16644 echo "#! /bin/sh" >conf$$.sh
16645 echo "exit 0" >>conf$$.sh
16647 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16656 as_lineno_1=$LINENO
16657 as_lineno_2=$LINENO
16658 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16659 test "x$as_lineno_1" != "x$as_lineno_2" &&
16660 test "x$as_lineno_3" = "x$as_lineno_2" || {
16661 # Find who we are. Look in the path if we contain no path at all
16664 *[\\/]* ) as_myself=$0 ;;
16665 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16666 for as_dir in $PATH
16669 test -z "$as_dir" && as_dir=.
16670 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16675 # We did not find ourselves, most probably we were run as `sh COMMAND'
16676 # in which case we are not to be found in the path.
16677 if test "x$as_myself" = x; then
16680 if test ! -f "$as_myself"; then
16681 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16682 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16683 { (exit 1); exit 1; }; }
16685 case $CONFIG_SHELL in
16687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16688 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16691 test -z "$as_dir" && as_dir=.
16692 for as_base in sh bash ksh sh5; do
16695 if ("$as_dir/$as_base" -c '
16696 as_lineno_1=$LINENO
16697 as_lineno_2=$LINENO
16698 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16699 test "x$as_lineno_1" != "x$as_lineno_2" &&
16700 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16701 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16702 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16703 CONFIG_SHELL=$as_dir/$as_base
16704 export CONFIG_SHELL
16705 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16713 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16714 # uniformly replaced by the line number. The first 'sed' inserts a
16715 # line-number line before each line; the second 'sed' does the real
16716 # work. The second script uses 'N' to pair each line-number line
16717 # with the numbered line, and appends trailing '-' during
16718 # substitution so that $LINENO is not a special case at line end.
16719 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16720 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16721 sed '=' <$as_myself |
16726 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16729 s,^['$as_cr_digits']*\n,,
16730 ' >$as_me.lineno &&
16731 chmod +x $as_me.lineno ||
16732 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16733 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16734 { (exit 1); exit 1; }; }
16736 # Don't try to exec as it changes $[0], causing all sort of problems
16737 # (the dirname of $[0] is not the place where we might find the
16738 # original and so on. Autoconf is especially sensible to this).
16740 # Exit status is that of the last command.
16745 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16746 *c*,-n*) ECHO_N= ECHO_C='
16748 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16749 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16752 if expr a : '\(a\)' >/dev/null 2>&1; then
16758 rm -f conf$$ conf$$.exe conf$$.file
16760 if ln -s conf$$.file conf$$ 2>/dev/null; then
16761 # We could just check for DJGPP; but this test a) works b) is more generic
16762 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16763 if test -f conf$$.exe; then
16764 # Don't use ln at all; we don't have any links
16769 elif ln conf$$.file conf$$ 2>/dev/null; then
16774 rm -f conf$$ conf$$.exe conf$$.file
16776 if mkdir -p . 2>/dev/null; then
16779 test -d ./-p && rmdir ./-p
16783 as_executable_p="test -f"
16785 # Sed expression to map a string onto a valid CPP name.
16786 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16788 # Sed expression to map a string onto a valid variable name.
16789 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16793 # We need space, tab and new line, in precisely that order.
16803 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16804 # report actual input values of CONFIG_FILES etc. instead of their
16805 # values after options handling. Logging --version etc. is OK.
16809 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16810 ## Running $as_me. ##
16815 This file was extended by libjava $as_me version-unused, which was
16816 generated by GNU Autoconf 2.59. Invocation command line was
16818 CONFIG_FILES = $CONFIG_FILES
16819 CONFIG_HEADERS = $CONFIG_HEADERS
16820 CONFIG_LINKS = $CONFIG_LINKS
16821 CONFIG_COMMANDS = $CONFIG_COMMANDS
16825 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16829 # Files that config.status was made for.
16830 if test -n "$ac_config_files"; then
16831 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16834 if test -n "$ac_config_headers"; then
16835 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16838 if test -n "$ac_config_links"; then
16839 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16842 if test -n "$ac_config_commands"; then
16843 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16846 cat >>$CONFIG_STATUS <<\_ACEOF
16849 \`$as_me' instantiates files from templates according to the
16850 current configuration.
16852 Usage: $0 [OPTIONS] [FILE]...
16854 -h, --help print this help, then exit
16855 -V, --version print version number, then exit
16856 -q, --quiet do not print progress messages
16857 -d, --debug don't remove temporary files
16858 --recheck update $as_me by reconfiguring in the same conditions
16859 --file=FILE[:TEMPLATE]
16860 instantiate the configuration file FILE
16861 --header=FILE[:TEMPLATE]
16862 instantiate the configuration header FILE
16864 Configuration files:
16867 Configuration headers:
16870 Configuration links:
16873 Configuration commands:
16876 Report bugs to <bug-autoconf@gnu.org>."
16879 cat >>$CONFIG_STATUS <<_ACEOF
16881 libjava config.status version-unused
16882 configured by $0, generated by GNU Autoconf 2.59,
16883 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16885 Copyright (C) 2003 Free Software Foundation, Inc.
16886 This config.status script is free software; the Free Software Foundation
16887 gives unlimited permission to copy, distribute and modify it."
16892 cat >>$CONFIG_STATUS <<\_ACEOF
16893 # If no file are specified by the user, then we need to provide default
16894 # value. By we need to know if files were specified by the user.
16900 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16901 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16909 *) # This is not an option, so the user has probably given explicit
16912 ac_need_defaults=false;;
16916 # Handling of the options.
16918 cat >>$CONFIG_STATUS <<\_ACEOF
16919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16921 --version | --vers* | -V )
16922 echo "$ac_cs_version"; exit 0 ;;
16924 # Conflict between --help and --header
16925 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16926 Try \`$0 --help' for more information." >&5
16927 echo "$as_me: error: ambiguous option: $1
16928 Try \`$0 --help' for more information." >&2;}
16929 { (exit 1); exit 1; }; };;
16930 --help | --hel | -h )
16931 echo "$ac_cs_usage"; exit 0 ;;
16932 --debug | --d* | -d )
16934 --file | --fil | --fi | --f )
16936 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16937 ac_need_defaults=false;;
16938 --header | --heade | --head | --hea )
16940 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16941 ac_need_defaults=false;;
16942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16943 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16946 # This is an error.
16947 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16948 Try \`$0 --help' for more information." >&5
16949 echo "$as_me: error: unrecognized option: $1
16950 Try \`$0 --help' for more information." >&2;}
16951 { (exit 1); exit 1; }; } ;;
16953 *) ac_config_targets="$ac_config_targets $1" ;;
16959 ac_configure_extra_args=
16961 if $ac_cs_silent; then
16963 ac_configure_extra_args="$ac_configure_extra_args --silent"
16967 cat >>$CONFIG_STATUS <<_ACEOF
16968 if \$ac_cs_recheck; then
16969 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16970 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16975 cat >>$CONFIG_STATUS <<_ACEOF
16977 # INIT-COMMANDS section.
16980 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16984 with_multisubdir=${with_multisubdir}
16985 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16986 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16987 libgcj_basedir=${libgcj_basedir}
16990 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16997 cat >>$CONFIG_STATUS <<\_ACEOF
16998 for ac_config_target in $ac_config_targets
17000 case "$ac_config_target" in
17001 # Handling of arguments.
17002 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17003 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
17004 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
17005 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
17006 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
17007 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
17008 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17009 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17010 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
17011 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
17012 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
17013 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
17014 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
17015 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
17016 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
17017 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
17018 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
17019 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
17020 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
17021 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
17022 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
17023 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
17024 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
17025 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
17026 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17027 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17028 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
17029 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
17030 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17031 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17032 { (exit 1); exit 1; }; };;
17036 # If the user did not use the arguments to specify the items to instantiate,
17037 # then the envvar interface is used. Set only those that are not.
17038 # We use the long form for the default assignment because of an extremely
17039 # bizarre bug on SunOS 4.1.3.
17040 if $ac_need_defaults; then
17041 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17042 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17043 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17044 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17047 # Have a temporary directory for convenience. Make it in the build tree
17048 # simply because there is no reason to put it here, and in addition,
17049 # creating and moving files from /tmp can sometimes cause problems.
17050 # Create a temporary directory, and hook for its removal unless debugging.
17053 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17054 trap '{ (exit 1); exit 1; }' 1 2 13 15
17057 # Create a (secure) tmp directory for tmp files.
17060 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17061 test -n "$tmp" && test -d "$tmp"
17064 tmp=./confstat$$-$RANDOM
17065 (umask 077 && mkdir $tmp)
17068 echo "$me: cannot create a temporary directory in ." >&2
17069 { (exit 1); exit 1; }
17074 cat >>$CONFIG_STATUS <<_ACEOF
17077 # CONFIG_FILES section.
17080 # No need to generate the scripts if there are no CONFIG_FILES.
17081 # This happens for instance when ./config.status config.h
17082 if test -n "\$CONFIG_FILES"; then
17083 # Protect against being on the right side of a sed subst in config.status.
17084 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17085 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17086 s,@SHELL@,$SHELL,;t t
17087 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17088 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17089 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17090 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17091 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17092 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17093 s,@exec_prefix@,$exec_prefix,;t t
17094 s,@prefix@,$prefix,;t t
17095 s,@program_transform_name@,$program_transform_name,;t t
17096 s,@bindir@,$bindir,;t t
17097 s,@sbindir@,$sbindir,;t t
17098 s,@libexecdir@,$libexecdir,;t t
17099 s,@datadir@,$datadir,;t t
17100 s,@sysconfdir@,$sysconfdir,;t t
17101 s,@sharedstatedir@,$sharedstatedir,;t t
17102 s,@localstatedir@,$localstatedir,;t t
17103 s,@libdir@,$libdir,;t t
17104 s,@includedir@,$includedir,;t t
17105 s,@oldincludedir@,$oldincludedir,;t t
17106 s,@infodir@,$infodir,;t t
17107 s,@mandir@,$mandir,;t t
17108 s,@build_alias@,$build_alias,;t t
17109 s,@host_alias@,$host_alias,;t t
17110 s,@target_alias@,$target_alias,;t t
17111 s,@DEFS@,$DEFS,;t t
17112 s,@ECHO_C@,$ECHO_C,;t t
17113 s,@ECHO_N@,$ECHO_N,;t t
17114 s,@ECHO_T@,$ECHO_T,;t t
17115 s,@LIBS@,$LIBS,;t t
17116 s,@libgcj_basedir@,$libgcj_basedir,;t t
17117 s,@build@,$build,;t t
17118 s,@build_cpu@,$build_cpu,;t t
17119 s,@build_vendor@,$build_vendor,;t t
17120 s,@build_os@,$build_os,;t t
17121 s,@host@,$host,;t t
17122 s,@host_cpu@,$host_cpu,;t t
17123 s,@host_vendor@,$host_vendor,;t t
17124 s,@host_os@,$host_os,;t t
17125 s,@target@,$target,;t t
17126 s,@target_cpu@,$target_cpu,;t t
17127 s,@target_vendor@,$target_vendor,;t t
17128 s,@target_os@,$target_os,;t t
17129 s,@target_noncanonical@,$target_noncanonical,;t t
17130 s,@LN_S@,$LN_S,;t t
17131 s,@mkinstalldirs@,$mkinstalldirs,;t t
17133 s,@ac_ct_CC@,$ac_ct_CC,;t t
17134 s,@EXEEXT@,$EXEEXT,;t t
17135 s,@OBJEXT@,$OBJEXT,;t t
17137 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17138 s,@CFLAGS@,$CFLAGS,;t t
17139 s,@CXXFLAGS@,$CXXFLAGS,;t t
17140 s,@LDFLAGS@,$LDFLAGS,;t t
17141 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17142 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17143 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17144 s,@CYGPATH_W@,$CYGPATH_W,;t t
17145 s,@PACKAGE@,$PACKAGE,;t t
17146 s,@VERSION@,$VERSION,;t t
17147 s,@ACLOCAL@,$ACLOCAL,;t t
17148 s,@AUTOCONF@,$AUTOCONF,;t t
17149 s,@AUTOMAKE@,$AUTOMAKE,;t t
17150 s,@AUTOHEADER@,$AUTOHEADER,;t t
17151 s,@MAKEINFO@,$MAKEINFO,;t t
17152 s,@install_sh@,$install_sh,;t t
17153 s,@STRIP@,$STRIP,;t t
17154 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17155 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17156 s,@mkdir_p@,$mkdir_p,;t t
17158 s,@SET_MAKE@,$SET_MAKE,;t t
17159 s,@am__leading_dot@,$am__leading_dot,;t t
17160 s,@AMTAR@,$AMTAR,;t t
17161 s,@am__tar@,$am__tar,;t t
17162 s,@am__untar@,$am__untar,;t t
17163 s,@DEPDIR@,$DEPDIR,;t t
17164 s,@am__include@,$am__include,;t t
17165 s,@am__quote@,$am__quote,;t t
17166 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17167 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17168 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17169 s,@CCDEPMODE@,$CCDEPMODE,;t t
17170 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17171 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17172 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17173 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17174 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17176 s,@ac_ct_AS@,$ac_ct_AS,;t t
17178 s,@ac_ct_AR@,$ac_ct_AR,;t t
17179 s,@RANLIB@,$RANLIB,;t t
17180 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17181 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17182 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17183 s,@MAINT@,$MAINT,;t t
17184 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17185 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17186 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17187 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17188 s,@INCLTDL@,$INCLTDL,;t t
17189 s,@LIBLTDL@,$LIBLTDL,;t t
17190 s,@DIRLTDL@,$DIRLTDL,;t t
17191 s,@LIBTOOL@,$LIBTOOL,;t t
17192 s,@CXXCPP@,$CXXCPP,;t t
17193 s,@CPPFLAGS@,$CPPFLAGS,;t t
17195 s,@GCJFLAGS@,$GCJFLAGS,;t t
17196 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17197 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17198 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17199 s,@subdirs@,$subdirs,;t t
17200 s,@COMPPATH@,$COMPPATH,;t t
17201 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17202 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17203 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
17204 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
17205 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17206 s,@INTERPRETER@,$INTERPRETER,;t t
17207 s,@LIBFFI@,$LIBFFI,;t t
17208 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17209 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17211 s,@EGREP@,$EGREP,;t t
17212 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17213 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17214 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17215 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17216 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
17217 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
17218 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17219 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17220 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17221 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17222 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17223 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17224 s,@X_CFLAGS@,$X_CFLAGS,;t t
17225 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17226 s,@X_LIBS@,$X_LIBS,;t t
17227 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17228 s,@TOOLKIT@,$TOOLKIT,;t t
17229 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17230 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17231 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17232 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17233 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17234 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17235 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17236 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17237 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17238 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17239 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17240 s,@GCLIBS@,$GCLIBS,;t t
17241 s,@GCINCS@,$GCINCS,;t t
17242 s,@GCDEPS@,$GCDEPS,;t t
17243 s,@GCSPEC@,$GCSPEC,;t t
17244 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17245 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17246 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17247 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17248 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17249 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17250 s,@THREADLIBS@,$THREADLIBS,;t t
17251 s,@THREADINCS@,$THREADINCS,;t t
17252 s,@THREADDEPS@,$THREADDEPS,;t t
17253 s,@THREADSPEC@,$THREADSPEC,;t t
17254 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17255 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17256 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17257 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17258 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17259 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17260 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17261 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17262 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17263 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17264 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17265 s,@tool_include_dir@,$tool_include_dir,;t t
17266 s,@gcc_version@,$gcc_version,;t t
17267 s,@LIBICONV@,$LIBICONV,;t t
17268 s,@LTLIBICONV@,$LTLIBICONV,;t t
17269 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17270 s,@GTK_LIBS@,$GTK_LIBS,;t t
17271 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17272 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17273 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17274 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17275 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17276 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17277 s,@GCJH@,$GCJH,;t t
17279 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17280 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17281 s,@ZLIBS@,$ZLIBS,;t t
17282 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17283 s,@ZINCS@,$ZINCS,;t t
17284 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17285 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17286 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17287 s,@IEEESPEC@,$IEEESPEC,;t t
17288 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17289 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17290 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17291 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17292 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17293 s,@toolexecdir@,$toolexecdir,;t t
17294 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17295 s,@toolexeclibdir@,$toolexeclibdir,;t t
17296 s,@GCJVERSION@,$GCJVERSION,;t t
17297 s,@ALLOCA@,$ALLOCA,;t t
17298 s,@PERL@,$PERL,;t t
17299 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17300 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17301 s,@here@,$here,;t t
17302 s,@LIBOBJS@,$LIBOBJS,;t t
17303 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17308 cat >>$CONFIG_STATUS <<\_ACEOF
17309 # Split the substitutions into bite-sized pieces for seds with
17310 # small command number limits, like on Digital OSF/1 and HP-UX.
17311 ac_max_sed_lines=48
17312 ac_sed_frag=1 # Number of current file.
17313 ac_beg=1 # First line for current file.
17314 ac_end=$ac_max_sed_lines # Line after last line for current file.
17317 while $ac_more_lines; do
17318 if test $ac_beg -gt 1; then
17319 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17321 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17323 if test ! -s $tmp/subs.frag; then
17324 ac_more_lines=false
17326 # The purpose of the label and of the branching condition is to
17327 # speed up the sed processing (if there are no `@' at all, there
17328 # is no need to browse any of the substitutions).
17329 # These are the two extra sed commands mentioned above.
17331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17332 if test -z "$ac_sed_cmds"; then
17333 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17335 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17337 ac_sed_frag=`expr $ac_sed_frag + 1`
17339 ac_end=`expr $ac_end + $ac_max_sed_lines`
17342 if test -z "$ac_sed_cmds"; then
17345 fi # test -n "$CONFIG_FILES"
17348 cat >>$CONFIG_STATUS <<\_ACEOF
17349 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17350 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17352 - | *:- | *:-:* ) # input from stdin
17354 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17356 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17357 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17358 * ) ac_file_in=$ac_file.in ;;
17361 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17362 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17364 X"$ac_file" : 'X\(//\)[^/]' \| \
17365 X"$ac_file" : 'X\(//\)$' \| \
17366 X"$ac_file" : 'X\(/\)' \| \
17367 . : '\(.\)' 2>/dev/null ||
17369 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17370 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17371 /^X\(\/\/\)$/{ s//\1/; q; }
17372 /^X\(\/\).*/{ s//\1/; q; }
17374 { if $as_mkdir_p; then
17379 while test ! -d "$as_dir"; do
17380 as_dirs="$as_dir $as_dirs"
17381 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17382 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17383 X"$as_dir" : 'X\(//\)[^/]' \| \
17384 X"$as_dir" : 'X\(//\)$' \| \
17385 X"$as_dir" : 'X\(/\)' \| \
17386 . : '\(.\)' 2>/dev/null ||
17388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17389 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17390 /^X\(\/\/\)$/{ s//\1/; q; }
17391 /^X\(\/\).*/{ s//\1/; q; }
17394 test ! -n "$as_dirs" || mkdir $as_dirs
17395 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17396 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17397 { (exit 1); exit 1; }; }; }
17401 if test "$ac_dir" != .; then
17402 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17403 # A "../" for each directory in $ac_dir_suffix.
17404 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17406 ac_dir_suffix= ac_top_builddir=
17410 .) # No --srcdir option. We are building in place.
17412 if test -z "$ac_top_builddir"; then
17415 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17417 [\\/]* | ?:[\\/]* ) # Absolute path.
17418 ac_srcdir=$srcdir$ac_dir_suffix;
17419 ac_top_srcdir=$srcdir ;;
17420 *) # Relative path.
17421 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17422 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17425 # Do not use `cd foo && pwd` to compute absolute paths, because
17426 # the directories may not exist.
17428 .) ac_abs_builddir="$ac_dir";;
17431 .) ac_abs_builddir=`pwd`;;
17432 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17433 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17436 case $ac_abs_builddir in
17437 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17439 case ${ac_top_builddir}. in
17440 .) ac_abs_top_builddir=$ac_abs_builddir;;
17441 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17442 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17445 case $ac_abs_builddir in
17446 .) ac_abs_srcdir=$ac_srcdir;;
17449 .) ac_abs_srcdir=$ac_abs_builddir;;
17450 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17451 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17454 case $ac_abs_builddir in
17455 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17457 case $ac_top_srcdir in
17458 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17459 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17460 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17466 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17467 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17470 if test x"$ac_file" != x-; then
17471 { echo "$as_me:$LINENO: creating $ac_file" >&5
17472 echo "$as_me: creating $ac_file" >&6;}
17475 # Let's still pretend it is `configure' which instantiates (i.e., don't
17476 # use $as_me), people would be surprised to read:
17477 # /* config.h. Generated by config.status. */
17478 if test x"$ac_file" = x-; then
17481 configure_input="$ac_file. "
17483 configure_input=$configure_input"Generated from `echo $ac_file_in |
17484 sed 's,.*/,,'` by configure."
17486 # First look for the input files in the build tree, otherwise in the
17488 ac_file_inputs=`IFS=:
17489 for f in $ac_file_in; do
17491 -) echo $tmp/stdin ;;
17493 # Absolute (can't be DOS-style, as IFS=:)
17494 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17495 echo "$as_me: error: cannot find input file: $f" >&2;}
17496 { (exit 1); exit 1; }; }
17499 if test -f "$f"; then
17502 elif test -f "$srcdir/$f"; then
17507 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17508 echo "$as_me: error: cannot find input file: $f" >&2;}
17509 { (exit 1); exit 1; }; }
17512 done` || { (exit 1); exit 1; }
17514 cat >>$CONFIG_STATUS <<_ACEOF
17518 cat >>$CONFIG_STATUS <<\_ACEOF
17520 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17521 s,@configure_input@,$configure_input,;t t
17522 s,@srcdir@,$ac_srcdir,;t t
17523 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17524 s,@top_srcdir@,$ac_top_srcdir,;t t
17525 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17526 s,@builddir@,$ac_builddir,;t t
17527 s,@abs_builddir@,$ac_abs_builddir,;t t
17528 s,@top_builddir@,$ac_top_builddir,;t t
17529 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17530 s,@INSTALL@,$ac_INSTALL,;t t
17531 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17533 if test x"$ac_file" != x-; then
17534 mv $tmp/out $ac_file
17542 cat >>$CONFIG_STATUS <<\_ACEOF
17545 # CONFIG_HEADER section.
17548 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17549 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17551 # ac_d sets the value in "#define NAME VALUE" lines.
17552 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17553 ac_dB='[ ].*$,\1#\2'
17556 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17557 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17558 ac_uB='$,\1#\2define\3'
17562 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17565 - | *:- | *:-:* ) # input from stdin
17567 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17569 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17571 * ) ac_file_in=$ac_file.in ;;
17574 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17575 echo "$as_me: creating $ac_file" >&6;}
17577 # First look for the input files in the build tree, otherwise in the
17579 ac_file_inputs=`IFS=:
17580 for f in $ac_file_in; do
17582 -) echo $tmp/stdin ;;
17584 # Absolute (can't be DOS-style, as IFS=:)
17585 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17586 echo "$as_me: error: cannot find input file: $f" >&2;}
17587 { (exit 1); exit 1; }; }
17588 # Do quote $f, to prevent DOS paths from being IFS'd.
17591 if test -f "$f"; then
17594 elif test -f "$srcdir/$f"; then
17599 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17600 echo "$as_me: error: cannot find input file: $f" >&2;}
17601 { (exit 1); exit 1; }; }
17604 done` || { (exit 1); exit 1; }
17605 # Remove the trailing spaces.
17606 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17610 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17611 # `conftest.undefs', that substitutes the proper values into
17612 # config.h.in to produce config.h. The first handles `#define'
17613 # templates, and the second `#undef' templates.
17614 # And first: Protect against being on the right side of a sed subst in
17615 # config.status. Protect against being in an unquoted here document
17616 # in config.status.
17617 rm -f conftest.defines conftest.undefs
17618 # Using a here document instead of a string reduces the quoting nightmare.
17619 # Putting comments in sed scripts is not portable.
17621 # `end' is used to avoid that the second main sed command (meant for
17622 # 0-ary CPP macros) applies to n-ary macro definitions.
17623 # See the Autoconf documentation for `clear'.
17624 cat >confdef2sed.sed <<\_ACEOF
17629 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17631 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17634 # If some macros were called several times there might be several times
17635 # the same #defines, which is useless. Nevertheless, we may not want to
17636 # sort them, since we want the *last* AC-DEFINE to be honored.
17637 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17638 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17639 rm -f confdef2sed.sed
17641 # This sed command replaces #undef with comments. This is necessary, for
17642 # example, in the case of _POSIX_SOURCE, which is predefined and required
17643 # on some systems where configure will not decide to define it.
17644 cat >>conftest.undefs <<\_ACEOF
17645 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17648 # Break up conftest.defines because some shells have a limit on the size
17649 # of here documents, and old seds have small limits too (100 cmds).
17650 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17651 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17652 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17653 echo ' :' >>$CONFIG_STATUS
17654 rm -f conftest.tail
17655 while grep . conftest.defines >/dev/null
17657 # Write a limited-size here document to $tmp/defines.sed.
17658 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17659 # Speed up: don't consider the non `#define' lines.
17660 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17661 # Work around the forget-to-reset-the-flag bug.
17662 echo 't clr' >>$CONFIG_STATUS
17663 echo ': clr' >>$CONFIG_STATUS
17664 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17666 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17668 mv $tmp/out $tmp/in
17670 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17671 rm -f conftest.defines
17672 mv conftest.tail conftest.defines
17674 rm -f conftest.defines
17675 echo ' fi # grep' >>$CONFIG_STATUS
17676 echo >>$CONFIG_STATUS
17678 # Break up conftest.undefs because some shells have a limit on the size
17679 # of here documents, and old seds have small limits too (100 cmds).
17680 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17681 rm -f conftest.tail
17682 while grep . conftest.undefs >/dev/null
17684 # Write a limited-size here document to $tmp/undefs.sed.
17685 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17686 # Speed up: don't consider the non `#undef'
17687 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17688 # Work around the forget-to-reset-the-flag bug.
17689 echo 't clr' >>$CONFIG_STATUS
17690 echo ': clr' >>$CONFIG_STATUS
17691 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17693 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17695 mv $tmp/out $tmp/in
17697 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17698 rm -f conftest.undefs
17699 mv conftest.tail conftest.undefs
17701 rm -f conftest.undefs
17703 cat >>$CONFIG_STATUS <<\_ACEOF
17704 # Let's still pretend it is `configure' which instantiates (i.e., don't
17705 # use $as_me), people would be surprised to read:
17706 # /* config.h. Generated by config.status. */
17707 if test x"$ac_file" = x-; then
17708 echo "/* Generated by configure. */" >$tmp/config.h
17710 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17712 cat $tmp/in >>$tmp/config.h
17714 if test x"$ac_file" != x-; then
17715 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17716 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17717 echo "$as_me: $ac_file is unchanged" >&6;}
17719 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17720 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17721 X"$ac_file" : 'X\(//\)[^/]' \| \
17722 X"$ac_file" : 'X\(//\)$' \| \
17723 X"$ac_file" : 'X\(/\)' \| \
17724 . : '\(.\)' 2>/dev/null ||
17726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17728 /^X\(\/\/\)$/{ s//\1/; q; }
17729 /^X\(\/\).*/{ s//\1/; q; }
17731 { if $as_mkdir_p; then
17736 while test ! -d "$as_dir"; do
17737 as_dirs="$as_dir $as_dirs"
17738 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17739 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17740 X"$as_dir" : 'X\(//\)[^/]' \| \
17741 X"$as_dir" : 'X\(//\)$' \| \
17742 X"$as_dir" : 'X\(/\)' \| \
17743 . : '\(.\)' 2>/dev/null ||
17745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17747 /^X\(\/\/\)$/{ s//\1/; q; }
17748 /^X\(\/\).*/{ s//\1/; q; }
17751 test ! -n "$as_dirs" || mkdir $as_dirs
17752 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17753 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17754 { (exit 1); exit 1; }; }; }
17757 mv $tmp/config.h $ac_file
17761 rm -f $tmp/config.h
17763 # Compute $ac_file's index in $config_headers.
17765 for _am_header in $config_headers :; do
17766 case $_am_header in
17767 $ac_file | $ac_file:* )
17770 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17773 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17774 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17775 X$ac_file : 'X\(//\)[^/]' \| \
17776 X$ac_file : 'X\(//\)$' \| \
17777 X$ac_file : 'X\(/\)' \| \
17778 . : '\(.\)' 2>/dev/null ||
17780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17782 /^X\(\/\/\)$/{ s//\1/; q; }
17783 /^X\(\/\).*/{ s//\1/; q; }
17784 s/.*/./; q'`/stamp-h$_am_stamp_count
17787 cat >>$CONFIG_STATUS <<\_ACEOF
17790 # CONFIG_LINKS section.
17793 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17794 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17795 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17797 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17798 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17800 if test ! -r $srcdir/$ac_source; then
17801 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17802 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17803 { (exit 1); exit 1; }; }
17807 # Make relative symlinks.
17808 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17809 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17810 X"$ac_dest" : 'X\(//\)[^/]' \| \
17811 X"$ac_dest" : 'X\(//\)$' \| \
17812 X"$ac_dest" : 'X\(/\)' \| \
17813 . : '\(.\)' 2>/dev/null ||
17815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17817 /^X\(\/\/\)$/{ s//\1/; q; }
17818 /^X\(\/\).*/{ s//\1/; q; }
17820 { if $as_mkdir_p; then
17821 mkdir -p "$ac_dest_dir"
17823 as_dir="$ac_dest_dir"
17825 while test ! -d "$as_dir"; do
17826 as_dirs="$as_dir $as_dirs"
17827 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17829 X"$as_dir" : 'X\(//\)[^/]' \| \
17830 X"$as_dir" : 'X\(//\)$' \| \
17831 X"$as_dir" : 'X\(/\)' \| \
17832 . : '\(.\)' 2>/dev/null ||
17834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17836 /^X\(\/\/\)$/{ s//\1/; q; }
17837 /^X\(\/\).*/{ s//\1/; q; }
17840 test ! -n "$as_dirs" || mkdir $as_dirs
17841 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17842 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17843 { (exit 1); exit 1; }; }; }
17847 if test "$ac_dest_dir" != .; then
17848 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17849 # A "../" for each directory in $ac_dir_suffix.
17850 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17852 ac_dir_suffix= ac_top_builddir=
17856 .) # No --srcdir option. We are building in place.
17858 if test -z "$ac_top_builddir"; then
17861 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17863 [\\/]* | ?:[\\/]* ) # Absolute path.
17864 ac_srcdir=$srcdir$ac_dir_suffix;
17865 ac_top_srcdir=$srcdir ;;
17866 *) # Relative path.
17867 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17868 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17871 # Do not use `cd foo && pwd` to compute absolute paths, because
17872 # the directories may not exist.
17874 .) ac_abs_builddir="$ac_dest_dir";;
17876 case "$ac_dest_dir" in
17877 .) ac_abs_builddir=`pwd`;;
17878 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17879 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17882 case $ac_abs_builddir in
17883 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17885 case ${ac_top_builddir}. in
17886 .) ac_abs_top_builddir=$ac_abs_builddir;;
17887 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17888 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17891 case $ac_abs_builddir in
17892 .) ac_abs_srcdir=$ac_srcdir;;
17895 .) ac_abs_srcdir=$ac_abs_builddir;;
17896 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17897 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17900 case $ac_abs_builddir in
17901 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17903 case $ac_top_srcdir in
17904 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17905 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17906 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17912 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17913 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17916 # Try a symlink, then a hard link, then a copy.
17917 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17918 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17919 cp -p $srcdir/$ac_source $ac_dest ||
17920 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17921 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17922 { (exit 1); exit 1; }; }
17925 cat >>$CONFIG_STATUS <<\_ACEOF
17928 # CONFIG_COMMANDS section.
17930 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17931 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17932 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17933 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17934 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17935 X"$ac_dest" : 'X\(//\)[^/]' \| \
17936 X"$ac_dest" : 'X\(//\)$' \| \
17937 X"$ac_dest" : 'X\(/\)' \| \
17938 . : '\(.\)' 2>/dev/null ||
17940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17942 /^X\(\/\/\)$/{ s//\1/; q; }
17943 /^X\(\/\).*/{ s//\1/; q; }
17945 { if $as_mkdir_p; then
17950 while test ! -d "$as_dir"; do
17951 as_dirs="$as_dir $as_dirs"
17952 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17953 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17954 X"$as_dir" : 'X\(//\)[^/]' \| \
17955 X"$as_dir" : 'X\(//\)$' \| \
17956 X"$as_dir" : 'X\(/\)' \| \
17957 . : '\(.\)' 2>/dev/null ||
17959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17961 /^X\(\/\/\)$/{ s//\1/; q; }
17962 /^X\(\/\).*/{ s//\1/; q; }
17965 test ! -n "$as_dirs" || mkdir $as_dirs
17966 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17967 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17968 { (exit 1); exit 1; }; }; }
17972 if test "$ac_dir" != .; then
17973 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17974 # A "../" for each directory in $ac_dir_suffix.
17975 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17977 ac_dir_suffix= ac_top_builddir=
17981 .) # No --srcdir option. We are building in place.
17983 if test -z "$ac_top_builddir"; then
17986 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17988 [\\/]* | ?:[\\/]* ) # Absolute path.
17989 ac_srcdir=$srcdir$ac_dir_suffix;
17990 ac_top_srcdir=$srcdir ;;
17991 *) # Relative path.
17992 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17993 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17996 # Do not use `cd foo && pwd` to compute absolute paths, because
17997 # the directories may not exist.
17999 .) ac_abs_builddir="$ac_dir";;
18002 .) ac_abs_builddir=`pwd`;;
18003 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18004 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18007 case $ac_abs_builddir in
18008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18010 case ${ac_top_builddir}. in
18011 .) ac_abs_top_builddir=$ac_abs_builddir;;
18012 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18013 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18016 case $ac_abs_builddir in
18017 .) ac_abs_srcdir=$ac_srcdir;;
18020 .) ac_abs_srcdir=$ac_abs_builddir;;
18021 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18022 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18025 case $ac_abs_builddir in
18026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18028 case $ac_top_srcdir in
18029 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18030 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18031 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18036 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18037 echo "$as_me: executing $ac_dest commands" >&6;}
18039 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18040 # Strip MF so we end up with the name of the file.
18041 mf=`echo "$mf" | sed -e 's/:.*$//'`
18042 # Check whether this is an Automake generated Makefile or not.
18043 # We used to match only the files named `Makefile.in', but
18044 # some people rename them; so instead we look at the file content.
18045 # Grep'ing the first line is not enough: some people post-process
18046 # each Makefile.in and add a new line on top of each file to say so.
18047 # So let's grep whole file.
18048 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18049 dirpart=`(dirname "$mf") 2>/dev/null ||
18050 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18051 X"$mf" : 'X\(//\)[^/]' \| \
18052 X"$mf" : 'X\(//\)$' \| \
18053 X"$mf" : 'X\(/\)' \| \
18054 . : '\(.\)' 2>/dev/null ||
18056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18058 /^X\(\/\/\)$/{ s//\1/; q; }
18059 /^X\(\/\).*/{ s//\1/; q; }
18064 # Extract the definition of DEPDIR, am__include, and am__quote
18065 # from the Makefile without running `make'.
18066 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18067 test -z "$DEPDIR" && continue
18068 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18069 test -z "am__include" && continue
18070 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18071 # When using ansi2knr, U may be empty or an underscore; expand it
18072 U=`sed -n 's/^U = //p' < "$mf"`
18073 # Find all dependency output files, they are included files with
18074 # $(DEPDIR) in their names. We invoke sed twice because it is the
18075 # simplest approach to changing $(DEPDIR) to its actual value in the
18077 for file in `sed -n "
18078 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18079 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18080 # Make sure the directory exists.
18081 test -f "$dirpart/$file" && continue
18082 fdir=`(dirname "$file") 2>/dev/null ||
18083 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18084 X"$file" : 'X\(//\)[^/]' \| \
18085 X"$file" : 'X\(//\)$' \| \
18086 X"$file" : 'X\(/\)' \| \
18087 . : '\(.\)' 2>/dev/null ||
18089 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18090 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18091 /^X\(\/\/\)$/{ s//\1/; q; }
18092 /^X\(\/\).*/{ s//\1/; q; }
18094 { if $as_mkdir_p; then
18095 mkdir -p $dirpart/$fdir
18097 as_dir=$dirpart/$fdir
18099 while test ! -d "$as_dir"; do
18100 as_dirs="$as_dir $as_dirs"
18101 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18102 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18103 X"$as_dir" : 'X\(//\)[^/]' \| \
18104 X"$as_dir" : 'X\(//\)$' \| \
18105 X"$as_dir" : 'X\(/\)' \| \
18106 . : '\(.\)' 2>/dev/null ||
18108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18109 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18110 /^X\(\/\/\)$/{ s//\1/; q; }
18111 /^X\(\/\).*/{ s//\1/; q; }
18114 test ! -n "$as_dirs" || mkdir $as_dirs
18115 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18116 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18117 { (exit 1); exit 1; }; }; }
18119 # echo "creating $dirpart/$file"
18120 echo '# dummy' > "$dirpart/$file"
18124 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18125 case " $CONFIG_FILES " in
18127 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18128 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18136 cat >>$CONFIG_STATUS <<\_ACEOF
18138 { (exit 0); exit 0; }
18140 chmod +x $CONFIG_STATUS
18141 ac_clean_files=$ac_clean_files_save
18144 # configure is writing to config.log, and then calls config.status.
18145 # config.status does its own redirection, appending to config.log.
18146 # Unfortunately, on DOS this fails, as config.log is still kept open
18147 # by configure, so config.status won't be able to write to it; its
18148 # output is simply discarded. So we exec the FD to /dev/null,
18149 # effectively closing config.log, so it can be properly (re)opened and
18150 # appended to by config.status. When coming back to configure, we
18151 # need to make the FD available again.
18152 if test "$no_create" != yes; then
18154 ac_config_status_args=
18155 test "$silent" = yes &&
18156 ac_config_status_args="$ac_config_status_args --quiet"
18158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18161 # would make configure fail if this is the last instruction.
18162 $ac_cs_success || { (exit 1); exit 1; }
18166 # CONFIG_SUBDIRS section.
18168 if test "$no_recursion" != yes; then
18170 # Remove --cache-file and --srcdir arguments so they do not pile up.
18171 ac_sub_configure_args=
18173 for ac_arg in $ac_configure_args; do
18174 if test -n "$ac_prev"; then
18179 -cache-file | --cache-file | --cache-fil | --cache-fi \
18180 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18181 ac_prev=cache_file ;;
18182 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18183 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18186 --config-cache | -C)
18188 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18190 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18196 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18200 # Always prepend --prefix to ensure using the same prefix
18201 # in subdir configurations.
18202 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18205 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18207 # Do not complain, so a configure script can configure whichever
18208 # parts of a large source tree are present.
18209 test -d $srcdir/$ac_dir || continue
18211 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18212 echo "$as_me: configuring in $ac_dir" >&6;}
18213 { if $as_mkdir_p; then
18218 while test ! -d "$as_dir"; do
18219 as_dirs="$as_dir $as_dirs"
18220 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18222 X"$as_dir" : 'X\(//\)[^/]' \| \
18223 X"$as_dir" : 'X\(//\)$' \| \
18224 X"$as_dir" : 'X\(/\)' \| \
18225 . : '\(.\)' 2>/dev/null ||
18227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18229 /^X\(\/\/\)$/{ s//\1/; q; }
18230 /^X\(\/\).*/{ s//\1/; q; }
18233 test ! -n "$as_dirs" || mkdir $as_dirs
18234 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18235 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18236 { (exit 1); exit 1; }; }; }
18240 if test "$ac_dir" != .; then
18241 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18242 # A "../" for each directory in $ac_dir_suffix.
18243 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18245 ac_dir_suffix= ac_top_builddir=
18249 .) # No --srcdir option. We are building in place.
18251 if test -z "$ac_top_builddir"; then
18254 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18256 [\\/]* | ?:[\\/]* ) # Absolute path.
18257 ac_srcdir=$srcdir$ac_dir_suffix;
18258 ac_top_srcdir=$srcdir ;;
18259 *) # Relative path.
18260 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18261 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18264 # Do not use `cd foo && pwd` to compute absolute paths, because
18265 # the directories may not exist.
18267 .) ac_abs_builddir="$ac_dir";;
18270 .) ac_abs_builddir=`pwd`;;
18271 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18272 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18275 case $ac_abs_builddir in
18276 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18278 case ${ac_top_builddir}. in
18279 .) ac_abs_top_builddir=$ac_abs_builddir;;
18280 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18281 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18284 case $ac_abs_builddir in
18285 .) ac_abs_srcdir=$ac_srcdir;;
18288 .) ac_abs_srcdir=$ac_abs_builddir;;
18289 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18290 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18293 case $ac_abs_builddir in
18294 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18296 case $ac_top_srcdir in
18297 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18298 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18299 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18306 # Check for guested configure; otherwise get Cygnus style configure.
18307 if test -f $ac_srcdir/configure.gnu; then
18308 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18309 elif test -f $ac_srcdir/configure; then
18310 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18311 elif test -f $ac_srcdir/configure.in; then
18312 ac_sub_configure=$ac_configure
18314 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18315 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18319 # The recursion is here.
18320 if test -n "$ac_sub_configure"; then
18321 # Make the cache file name correct relative to the subdirectory.
18322 case $cache_file in
18323 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18324 *) # Relative path.
18325 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18328 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18329 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18330 # The eval makes quoting arguments work.
18331 eval $ac_sub_configure $ac_sub_configure_args \
18332 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18333 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18334 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18335 { (exit 1); exit 1; }; }