2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libjava version-unused.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
268 PACKAGE_NAME='libjava'
269 PACKAGE_TARNAME='libjava'
270 PACKAGE_VERSION='version-unused'
271 PACKAGE_STRING='libjava version-unused'
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all libltdl"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os build_subdir host_subdir target_subdir libgcj_basedir host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE AS ac_ct_AS AR ac_ct_AR RANLIB ac_ct_RANLIB MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBGCJ_CFLAGS LIBGCJ_CXXFLAGS LIBGCJ_JAVAFLAGS LIBGCJ_LD_SYMBOLIC INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS PLATFORM_INNER_NAT_HDRS CPP EGREP USING_WIN32_PLATFORM_TRUE USING_WIN32_PLATFORM_FALSE USING_POSIX_PLATFORM_TRUE USING_POSIX_PLATFORM_FALSE USING_ECOS_PLATFORM_TRUE USING_ECOS_PLATFORM_FALSE USING_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCSPEC JC1GCSPEC GCTESTSPEC USING_BOEHMGC_TRUE USING_BOEHMGC_FALSE USING_NOGC_TRUE USING_NOGC_FALSE THREADLIBS THREADINCS THREADDEPS THREADSPEC THREADLDFLAGS THREADCXXFLAGS USING_POSIX_THREADS_TRUE USING_POSIX_THREADS_FALSE USING_WIN32_THREADS_TRUE USING_WIN32_THREADS_FALSE USING_NO_THREADS_TRUE USING_NO_THREADS_FALSE HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE LIBICONV LTLIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS SUPPLY_BACKTRACE_TRUE SUPPLY_BACKTRACE_FALSE GCJH ZIP CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION gxx_include_dir libstdcxx_incdir ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures libjava version-unused to adapt to many kinds of systems.
776 Usage: $0 [OPTION]... [VAR=VALUE]...
778 To assign environment variables (e.g., CC, CFLAGS...), specify them as
779 VAR=VALUE. See below for descriptions of some of the useful variables.
781 Defaults for the options are specified in brackets.
784 -h, --help display this help and exit
785 --help=short display options specific to this package
786 --help=recursive display the short help of all the included packages
787 -V, --version display version information and exit
788 -q, --quiet, --silent do not print \`checking...' messages
789 --cache-file=FILE cache test results in FILE [disabled]
790 -C, --config-cache alias for \`--cache-file=config.cache'
791 -n, --no-create do not create output files
792 --srcdir=DIR find the sources in DIR [configure dir or \`..']
797 Installation directories:
798 --prefix=PREFIX install architecture-independent files in PREFIX
800 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
803 By default, \`make install' will install all the files in
804 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
805 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
806 for instance \`--prefix=\$HOME'.
808 For better control, use the options below.
810 Fine tuning of the installation directories:
811 --bindir=DIR user executables [EPREFIX/bin]
812 --sbindir=DIR system admin executables [EPREFIX/sbin]
813 --libexecdir=DIR program executables [EPREFIX/libexec]
814 --datadir=DIR read-only architecture-independent data [PREFIX/share]
815 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
816 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
817 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
818 --libdir=DIR object code libraries [EPREFIX/lib]
819 --includedir=DIR C header files [PREFIX/include]
820 --oldincludedir=DIR C header files for non-gcc [/usr/include]
821 --infodir=DIR info documentation [PREFIX/info]
822 --mandir=DIR man documentation [PREFIX/man]
828 --program-prefix=PREFIX prepend PREFIX to installed program names
829 --program-suffix=SUFFIX append SUFFIX to installed program names
830 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
833 --x-includes=DIR X include files are in DIR
834 --x-libraries=DIR X library files are in DIR
837 --build=BUILD configure for building on BUILD [guessed]
838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
839 --target=TARGET configure for building compilers for TARGET [HOST]
843 if test -n "$ac_init_help"; then
844 case $ac_init_help in
845 short | recursive ) echo "Configuration of libjava version-unused:";;
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --enable-version-specific-runtime-libs
853 specify that runtime libraries should be installed
854 in a compiler-specific directory
855 --enable-multilib build many library versions (default)
856 --disable-dependency-tracking speeds up one-time build
857 --enable-dependency-tracking do not reject slow dependency extractors
858 --enable-maintainer-mode enable make rules and dependencies not useful
859 (and sometimes confusing) to the casual installer
860 --enable-shared=PKGS build shared libraries default=yes
861 --enable-static=PKGS build static libraries default=yes
862 --enable-fast-install=PKGS optimize for fast installation default=yes
863 --disable-libtool-lock avoid locking (might break parallel builds)
864 --disable-getenv-properties
865 don't set system properties from GCJ_PROPERTIES
866 --enable-hash-synchronization
867 use global hash table for monitor locks
868 --enable-libgcj-multifile
869 allow compilation of several files at once
871 --enable-libgcj-debug enable runtime debugging code
872 --enable-gc-debug include full support for pointer backtracing etc.
873 --enable-interpreter enable interpreter
874 --enable-sjlj-exceptions
875 force use of builtin_setjmp for exceptions
876 --disable-java-net disable java.net
877 --disable-jvmpi disable JVMPI support
878 --enable-java-awt list of AWT peer implementations to be built
879 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
880 --enable-java-gc=TYPE choose garbage collector (default is boehm)
881 --disable-rpath do not hardcode runtime library paths
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-target-subdir=SUBDIR
887 configure in a subdirectory
888 --with-cross-host=HOST configure with a cross compiler from HOST
889 --with-newlib configure with newlib
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-pic try to use only PIC/non-PIC objects default=use both
892 --with-java-home=DIRECTORY
893 value of java.home system property
894 --with-win32-nlsapi=ansi or unicows or unicode
895 native MinGW libgcj Win32 OS API (default is ansi)
896 --without-libffi don't use libffi
897 --with-ecos enable runtime eCos target support
898 --with-system-zlib use installed libz
899 --with-x use the X Window System
900 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
901 --without-libiconv-prefix don't search for libiconv in includedir and libdir
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CXX C++ compiler command
911 CXXFLAGS C++ compiler flags
912 CXXCPP C++ preprocessor
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 ac_dir_suffix= ac_top_builddir=
937 .) # No --srcdir option. We are building in place.
939 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
955 .) ac_abs_builddir="$ac_dir";;
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1002 $ac_configure --help
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1013 libjava configure version-unused
1014 generated by GNU Autoconf 2.59
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by libjava $as_me version-unused, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_must_keep_next=false
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 -* ) ac_must_keep_next=true ;;
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135 # Save into config.log some information that might help in debugging.
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1145 # The following way of writing the cache mishandles newlines in values,
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1168 for ac_var in $ac_subst_vars
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -n "$ac_subst_files"; then
1182 for ac_var in $ac_subst_files
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1190 if test -s confdefs.h; then
1197 sed "/^$/d" confdefs.h | sort
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1204 rm -f core *.core &&
1205 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's/^/| /' "$ac_site_file" >&5
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1280 # Check that the precious variables saved in the cache have kept the same
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted=:
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg=$ac_var=$ac_new_val ;;
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1367 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh; then
1374 ac_install_sh="$ac_aux_dir/install.sh -c"
1376 elif test -f $ac_dir/shtool; then
1378 ac_install_sh="$ac_aux_dir/shtool install -c"
1382 if test -z "$ac_aux_dir"; then
1383 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1384 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1385 { (exit 1); exit 1; }; }
1387 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1388 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1389 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1391 # Make sure we can run config.sub.
1392 $ac_config_sub sun4 >/dev/null 2>&1 ||
1393 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1394 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1395 { (exit 1); exit 1; }; }
1397 echo "$as_me:$LINENO: checking build system type" >&5
1398 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1399 if test "${ac_cv_build+set}" = set; then
1400 echo $ECHO_N "(cached) $ECHO_C" >&6
1402 ac_cv_build_alias=$build_alias
1403 test -z "$ac_cv_build_alias" &&
1404 ac_cv_build_alias=`$ac_config_guess`
1405 test -z "$ac_cv_build_alias" &&
1406 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1407 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1408 { (exit 1); exit 1; }; }
1409 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1410 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1411 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1412 { (exit 1); exit 1; }; }
1415 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1416 echo "${ECHO_T}$ac_cv_build" >&6
1418 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1419 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1420 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1423 case ${build_alias} in
1424 "") build_noncanonical=${build} ;;
1425 *) build_noncanonical=${build_alias} ;;
1428 case ${host_alias} in
1429 "") host_noncanonical=${build_noncanonical} ;;
1430 *) host_noncanonical=${host_alias} ;;
1433 case ${target_alias} in
1434 "") target_noncanonical=${host_noncanonical} ;;
1435 *) target_noncanonical=${target_alias} ;;
1438 # Prefix 'build-' so this never conflicts with target_subdir.
1439 build_subdir="build-${build_noncanonical}"
1440 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1441 if ( test $srcdir = . && test -d gcc ) \
1442 || test -d $srcdir/../host-${host_noncanonical}; then
1443 host_subdir="host-${host_noncanonical}"
1448 target_subdir=${target_noncanonical}
1451 # We use these options to decide which functions to include.
1453 # Check whether --with-target-subdir or --without-target-subdir was given.
1454 if test "${with_target_subdir+set}" = set; then
1455 withval="$with_target_subdir"
1459 # We may get other options which we don't document:
1460 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1462 # When building with srcdir == objdir, links to the source files will
1463 # be created in directories within the target_subdir. We have to
1464 # adjust toplevel_srcdir accordingly, so that configure finds
1465 # install-sh and other auxiliary files that live in the top-level
1467 if test "${srcdir}" = "."; then
1468 if test -z "${with_target_subdir}"; then
1471 if test "${with_target_subdir}" != "."; then
1472 toprel="${with_multisrctop}../.."
1474 toprel="${with_multisrctop}.."
1481 libgcj_basedir=$srcdir/$toprel/./libjava
1484 echo "$as_me:$LINENO: checking host system type" >&5
1485 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1486 if test "${ac_cv_host+set}" = set; then
1487 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 ac_cv_host_alias=$host_alias
1490 test -z "$ac_cv_host_alias" &&
1491 ac_cv_host_alias=$ac_cv_build_alias
1492 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1493 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1494 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1495 { (exit 1); exit 1; }; }
1498 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1499 echo "${ECHO_T}$ac_cv_host" >&6
1501 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1502 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1503 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1506 echo "$as_me:$LINENO: checking target system type" >&5
1507 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1508 if test "${ac_cv_target+set}" = set; then
1509 echo $ECHO_N "(cached) $ECHO_C" >&6
1511 ac_cv_target_alias=$target_alias
1512 test "x$ac_cv_target_alias" = "x" &&
1513 ac_cv_target_alias=$ac_cv_host_alias
1514 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1515 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1516 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1517 { (exit 1); exit 1; }; }
1520 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1521 echo "${ECHO_T}$ac_cv_target" >&6
1522 target=$ac_cv_target
1523 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1524 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1525 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1528 # The aliases save the names the user supplied, while $host etc.
1529 # will get canonicalized.
1530 test -n "$target_alias" &&
1531 test "$program_prefix$program_suffix$program_transform_name" = \
1533 program_prefix=${target_alias}-
1534 case ${build_alias} in
1535 "") build_noncanonical=${build} ;;
1536 *) build_noncanonical=${build_alias} ;;
1539 case ${target_alias} in
1540 "") target_noncanonical=${host_noncanonical} ;;
1541 *) target_noncanonical=${target_alias} ;;
1547 # This works around the fact that libtool configuration may change LD
1548 # for this particular configuration, but some shells, instead of
1549 # keeping the changes in LD private, export them just because LD is
1551 ORIGINAL_LD_FOR_MULTILIBS=$LD
1553 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1554 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1556 if test "$LN_S" = "ln -s"; then
1557 echo "$as_me:$LINENO: result: yes" >&5
1558 echo "${ECHO_T}yes" >&6
1560 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1561 echo "${ECHO_T}no, using $LN_S" >&6
1565 # This works around an automake problem.
1566 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1570 # Check whether --with-cross-host or --without-cross-host was given.
1571 if test "${with_cross_host+set}" = set; then
1572 withval="$with_cross_host"
1577 # Check whether --with-newlib or --without-newlib was given.
1578 if test "${with_newlib+set}" = set; then
1579 withval="$with_newlib"
1583 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1584 if test "${enable_version_specific_runtime_libs+set}" = set; then
1585 enableval="$enable_version_specific_runtime_libs"
1586 case "$enableval" in
1587 yes) version_specific_libs=yes ;;
1588 no) version_specific_libs=no ;;
1589 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1590 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1591 { (exit 1); exit 1; }; };;
1594 version_specific_libs=no
1598 # Default to --enable-multilib
1599 # Check whether --enable-multilib or --disable-multilib was given.
1600 if test "${enable_multilib+set}" = set; then
1601 enableval="$enable_multilib"
1602 case "${enableval}" in
1603 yes) multilib=yes ;;
1605 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1606 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1607 { (exit 1); exit 1; }; } ;;
1612 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1615 # (1) We use an abnormal CXX (without library references), so we
1616 # must cache it under a different name.
1617 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1618 # the non-multilib-adjusted value will be used in multilibs.
1619 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1620 # (4) As another side effect, automake doesn't automatically include them
1622 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1623 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1624 # used in later tests. This may not be necessary in libjava; I don't know.
1628 save_CXXFLAGS="$CXXFLAGS"
1629 CXXFLAGS="$CXXFLAGS -fno-builtin"
1631 ac_cpp='$CPP $CPPFLAGS'
1632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1635 if test -n "$ac_tool_prefix"; then
1636 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1637 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$CC"; then
1644 ac_cv_prog_CC="$CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1663 if test -n "$CC"; then
1664 echo "$as_me:$LINENO: result: $CC" >&5
1665 echo "${ECHO_T}$CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1672 if test -z "$ac_cv_prog_CC"; then
1674 # Extract the first word of "gcc", so it can be a program name with args.
1675 set dummy gcc; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 if test -n "$ac_ct_CC"; then
1682 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_ac_ct_CC="gcc"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1701 if test -n "$ac_ct_CC"; then
1702 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1703 echo "${ECHO_T}$ac_ct_CC" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1714 if test -z "$CC"; then
1715 if test -n "$ac_tool_prefix"; then
1716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1717 set dummy ${ac_tool_prefix}cc; ac_word=$2
1718 echo "$as_me:$LINENO: checking for $ac_word" >&5
1719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1720 if test "${ac_cv_prog_CC+set}" = set; then
1721 echo $ECHO_N "(cached) $ECHO_C" >&6
1723 if test -n "$CC"; then
1724 ac_cv_prog_CC="$CC" # Let the user override the test.
1726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1730 test -z "$as_dir" && as_dir=.
1731 for ac_exec_ext in '' $ac_executable_extensions; do
1732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1733 ac_cv_prog_CC="${ac_tool_prefix}cc"
1734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1743 if test -n "$CC"; then
1744 echo "$as_me:$LINENO: result: $CC" >&5
1745 echo "${ECHO_T}$CC" >&6
1747 echo "$as_me:$LINENO: result: no" >&5
1748 echo "${ECHO_T}no" >&6
1752 if test -z "$ac_cv_prog_CC"; then
1754 # Extract the first word of "cc", so it can be a program name with args.
1755 set dummy cc; ac_word=$2
1756 echo "$as_me:$LINENO: checking for $ac_word" >&5
1757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1758 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 if test -n "$ac_ct_CC"; then
1762 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 test -z "$as_dir" && as_dir=.
1769 for ac_exec_ext in '' $ac_executable_extensions; do
1770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1771 ac_cv_prog_ac_ct_CC="cc"
1772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1781 if test -n "$ac_ct_CC"; then
1782 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1783 echo "${ECHO_T}$ac_ct_CC" >&6
1785 echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6
1795 if test -z "$CC"; then
1796 # Extract the first word of "cc", so it can be a program name with args.
1797 set dummy cc; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_CC+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 if test -n "$CC"; then
1804 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811 test -z "$as_dir" && as_dir=.
1812 for ac_exec_ext in '' $ac_executable_extensions; do
1813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1815 ac_prog_rejected=yes
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 if test $ac_prog_rejected = yes; then
1826 # We found a bogon in the path, so make sure we never use it.
1827 set dummy $ac_cv_prog_CC
1829 if test $# != 0; then
1830 # We chose a different compiler from the bogus one.
1831 # However, it has the same basename, so the bogon will be chosen
1832 # first if we set CC to just the basename; use the full file name.
1834 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1840 if test -n "$CC"; then
1841 echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1849 if test -z "$CC"; then
1850 if test -n "$ac_tool_prefix"; then
1853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1855 echo "$as_me:$LINENO: checking for $ac_word" >&5
1856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1857 if test "${ac_cv_prog_CC+set}" = set; then
1858 echo $ECHO_N "(cached) $ECHO_C" >&6
1860 if test -n "$CC"; then
1861 ac_cv_prog_CC="$CC" # Let the user override the test.
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1867 test -z "$as_dir" && as_dir=.
1868 for ac_exec_ext in '' $ac_executable_extensions; do
1869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1870 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1880 if test -n "$CC"; then
1881 echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1888 test -n "$CC" && break
1891 if test -z "$CC"; then
1895 # Extract the first word of "$ac_prog", so it can be a program name with args.
1896 set dummy $ac_prog; ac_word=$2
1897 echo "$as_me:$LINENO: checking for $ac_word" >&5
1898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1900 echo $ECHO_N "(cached) $ECHO_C" >&6
1902 if test -n "$ac_ct_CC"; then
1903 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 test -z "$as_dir" && as_dir=.
1910 for ac_exec_ext in '' $ac_executable_extensions; do
1911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1912 ac_cv_prog_ac_ct_CC="$ac_prog"
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1921 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1922 if test -n "$ac_ct_CC"; then
1923 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1924 echo "${ECHO_T}$ac_ct_CC" >&6
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1930 test -n "$ac_ct_CC" && break
1939 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: no acceptable C compiler found in \$PATH
1942 See \`config.log' for more details." >&2;}
1943 { (exit 1); exit 1; }; }
1945 # Provide some information about the compiler.
1946 echo "$as_me:$LINENO:" \
1947 "checking for C compiler version" >&5
1948 ac_compiler=`set X $ac_compile; echo $2`
1949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1950 (eval $ac_compiler --version </dev/null >&5) 2>&5
1952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1953 (exit $ac_status); }
1954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1955 (eval $ac_compiler -v </dev/null >&5) 2>&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); }
1959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1960 (eval $ac_compiler -V </dev/null >&5) 2>&5
1962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963 (exit $ac_status); }
1965 cat >conftest.$ac_ext <<_ACEOF
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1982 (eval $ac_link) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1991 if test x$gcc_no_link = xyes; then
1992 # Setting cross_compile will disable run tests; it will
1993 # also disable AC_CHECK_FILE but that's generally
1994 # correct if we can't link.
1998 cat >conftest.$ac_ext <<_ACEOF
2001 cat confdefs.h >>conftest.$ac_ext
2002 cat >>conftest.$ac_ext <<_ACEOF
2003 /* end confdefs.h. */
2013 ac_clean_files_save=$ac_clean_files
2014 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2015 # Try to create an executable without -o first, disregard a.out.
2016 # It will help us diagnose broken compilers, and finding out an intuition
2018 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2019 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2020 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2021 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2022 (eval $ac_link_default) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; then
2026 # Find the output, starting from the most likely. This scheme is
2027 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2030 # Be careful to initialize this variable, since it used to be cached.
2031 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2033 # b.out is created by i960 compilers.
2034 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2036 test -f "$ac_file" || continue
2038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2041 # This is the source file.
2044 # We found the default executable, but exeext='' is most
2048 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2049 # FIXME: I believe we export ac_cv_exeext for Libtool,
2050 # but it would be cool to find out if it's true. Does anybody
2051 # maintain Libtool? --akim.
2059 echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2062 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: C compiler cannot create executables
2065 See \`config.log' for more details." >&2;}
2066 { (exit 77); exit 77; }; }
2069 ac_exeext=$ac_cv_exeext
2070 echo "$as_me:$LINENO: result: $ac_file" >&5
2071 echo "${ECHO_T}$ac_file" >&6
2073 # Check the compiler produces executables we can run. If not, either
2074 # the compiler is broken, or we cross compile.
2075 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2076 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2077 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2078 # If not cross compiling, check that we can run a simple program.
2079 if test "$cross_compiling" != yes; then
2080 if { ac_try='./$ac_file'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; }; then
2088 if test "$cross_compiling" = maybe; then
2091 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&5
2094 echo "$as_me: error: cannot run C compiled programs.
2095 If you meant to cross compile, use \`--host'.
2096 See \`config.log' for more details." >&2;}
2097 { (exit 1); exit 1; }; }
2101 echo "$as_me:$LINENO: result: yes" >&5
2102 echo "${ECHO_T}yes" >&6
2104 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2105 ac_clean_files=$ac_clean_files_save
2106 # Check the compiler produces executables we can run. If not, either
2107 # the compiler is broken, or we cross compile.
2108 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2109 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2110 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2111 echo "${ECHO_T}$cross_compiling" >&6
2113 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2114 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2116 (eval $ac_link) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; then
2120 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2121 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2122 # work properly (i.e., refer to `conftest.exe'), while it won't with
2124 for ac_file in conftest.exe conftest conftest.*; do
2125 test -f "$ac_file" || continue
2127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2128 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2135 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2136 See \`config.log' for more details." >&5
2137 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2138 See \`config.log' for more details." >&2;}
2139 { (exit 1); exit 1; }; }
2142 rm -f conftest$ac_cv_exeext
2143 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2144 echo "${ECHO_T}$ac_cv_exeext" >&6
2146 rm -f conftest.$ac_ext
2147 EXEEXT=$ac_cv_exeext
2150 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2151 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2152 if test "${ac_cv_objext+set}" = set; then
2153 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 cat >conftest.$ac_ext <<_ACEOF
2158 cat confdefs.h >>conftest.$ac_ext
2159 cat >>conftest.$ac_ext <<_ACEOF
2160 /* end confdefs.h. */
2170 rm -f conftest.o conftest.obj
2171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2172 (eval $ac_compile) 2>&5
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; then
2176 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2179 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2187 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2188 See \`config.log' for more details." >&5
2189 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2190 See \`config.log' for more details." >&2;}
2191 { (exit 1); exit 1; }; }
2194 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2196 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2197 echo "${ECHO_T}$ac_cv_objext" >&6
2198 OBJEXT=$ac_cv_objext
2200 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2201 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2202 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2205 cat >conftest.$ac_ext <<_ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2223 rm -f conftest.$ac_objext
2224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2225 (eval $ac_compile) 2>conftest.er1
2227 grep -v '^ *+' conftest.er1 >conftest.err
2229 cat conftest.err >&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); } &&
2232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); }; } &&
2238 { ac_try='test -s conftest.$ac_objext'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; }; then
2246 echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2255 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2256 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2257 GCC=`test $ac_compiler_gnu = yes && echo yes`
2258 ac_test_CFLAGS=${CFLAGS+set}
2259 ac_save_CFLAGS=$CFLAGS
2261 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2263 if test "${ac_cv_prog_cc_g+set}" = set; then
2264 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 cat >conftest.$ac_ext <<_ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2281 rm -f conftest.$ac_objext
2282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2283 (eval $ac_compile) 2>conftest.er1
2285 grep -v '^ *+' conftest.er1 >conftest.err
2287 cat conftest.err >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); } &&
2290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; } &&
2296 { ac_try='test -s conftest.$ac_objext'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; }; then
2304 echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2311 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2312 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2313 if test "$ac_test_CFLAGS" = set; then
2314 CFLAGS=$ac_save_CFLAGS
2315 elif test $ac_cv_prog_cc_g = yes; then
2316 if test "$GCC" = yes; then
2322 if test "$GCC" = yes; then
2328 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2329 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2330 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 ac_cv_prog_cc_stdc=no
2335 cat >conftest.$ac_ext <<_ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2343 #include <sys/types.h>
2344 #include <sys/stat.h>
2345 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2346 struct buf { int x; };
2347 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2348 static char *e (p, i)
2354 static char *f (char * (*g) (char **, int), char **p, ...)
2359 s = g (p, va_arg (v,int));
2364 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2365 function prototypes and stuff, but not '\xHH' hex character constants.
2366 These don't provoke an error unfortunately, instead are silently treated
2367 as 'x'. The following induces an error, until -std1 is added to get
2368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2369 array size at least. It's necessary to write '\x00'==0 to get something
2370 that's true only with -std1. */
2371 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2373 int test (int i, double x);
2374 struct s1 {int (*f) (int a);};
2375 struct s2 {int (*f) (double a);};
2376 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2382 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2387 # Don't try gcc -ansi; that turns off useful extensions and
2388 # breaks some systems' header files.
2389 # AIX -qlanglvl=ansi
2390 # Ultrix and OSF/1 -std1
2391 # HP-UX 10.20 and later -Ae
2392 # HP-UX older versions -Aa -D_HPUX_SOURCE
2393 # SVR4 -Xc -D__EXTENSIONS__
2394 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2396 CC="$ac_save_CC $ac_arg"
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2401 grep -v '^ *+' conftest.er1 >conftest.err
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2418 ac_cv_prog_cc_stdc=$ac_arg
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2425 rm -f conftest.err conftest.$ac_objext
2427 rm -f conftest.$ac_ext conftest.$ac_objext
2432 case "x$ac_cv_prog_cc_stdc" in
2434 echo "$as_me:$LINENO: result: none needed" >&5
2435 echo "${ECHO_T}none needed" >&6 ;;
2437 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2438 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2439 CC="$CC $ac_cv_prog_cc_stdc" ;;
2442 # Some people use a C++ compiler to compile C. Since we use `exit',
2443 # in C++ we need to declare it. In case someone uses the same compiler
2444 # for both compiling C and C++ we need to have the C++ compiler decide
2445 # the declaration of exit, since it's the most demanding environment.
2446 cat >conftest.$ac_ext <<_ACEOF
2451 rm -f conftest.$ac_objext
2452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2453 (eval $ac_compile) 2>conftest.er1
2455 grep -v '^ *+' conftest.er1 >conftest.err
2457 cat conftest.err >&5
2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2459 (exit $ac_status); } &&
2460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); }; } &&
2466 { ac_try='test -s conftest.$ac_objext'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; }; then
2472 for ac_declaration in \
2474 'extern "C" void std::exit (int) throw (); using std::exit;' \
2475 'extern "C" void std::exit (int); using std::exit;' \
2476 'extern "C" void exit (int) throw ();' \
2477 'extern "C" void exit (int);' \
2480 cat >conftest.$ac_ext <<_ACEOF
2483 cat confdefs.h >>conftest.$ac_ext
2484 cat >>conftest.$ac_ext <<_ACEOF
2485 /* end confdefs.h. */
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>conftest.er1
2500 grep -v '^ *+' conftest.er1 >conftest.err
2502 cat conftest.err >&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525 cat >conftest.$ac_ext <<_ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h. */
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } &&
2549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; } &&
2555 { ac_try='test -s conftest.$ac_objext'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; }; then
2563 echo "$as_me: failed program was:" >&5
2564 sed 's/^/| /' conftest.$ac_ext >&5
2567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2570 if test -n "$ac_declaration"; then
2571 echo '#ifdef __cplusplus' >>confdefs.h
2572 echo $ac_declaration >>confdefs.h
2573 echo '#endif' >>confdefs.h
2577 echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589 ac_cpp='$CXXCPP $CPPFLAGS'
2590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2593 if test -n "$ac_tool_prefix"; then
2594 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2598 echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2600 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$CXX"; then
2604 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2613 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622 CXX=$glibcxx_cv_prog_CXX
2623 if test -n "$CXX"; then
2624 echo "$as_me:$LINENO: result: $CXX" >&5
2625 echo "${ECHO_T}$CXX" >&6
2627 echo "$as_me:$LINENO: result: no" >&5
2628 echo "${ECHO_T}no" >&6
2631 test -n "$CXX" && break
2634 if test -z "$CXX"; then
2636 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 echo "$as_me:$LINENO: checking for $ac_word" >&5
2641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2642 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2643 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 if test -n "$ac_ct_CXX"; then
2646 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2655 ac_cv_prog_ac_ct_CXX="$ac_prog"
2656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2665 if test -n "$ac_ct_CXX"; then
2666 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2667 echo "${ECHO_T}$ac_ct_CXX" >&6
2669 echo "$as_me:$LINENO: result: no" >&5
2670 echo "${ECHO_T}no" >&6
2673 test -n "$ac_ct_CXX" && break
2675 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2681 # Provide some information about the compiler.
2682 echo "$as_me:$LINENO:" \
2683 "checking for C++ compiler version" >&5
2684 ac_compiler=`set X $ac_compile; echo $2`
2685 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2686 (eval $ac_compiler --version </dev/null >&5) 2>&5
2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689 (exit $ac_status); }
2690 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2691 (eval $ac_compiler -v </dev/null >&5) 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2696 (eval $ac_compiler -V </dev/null >&5) 2>&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }
2701 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2702 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2703 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 cat >conftest.$ac_ext <<_ACEOF
2709 cat confdefs.h >>conftest.$ac_ext
2710 cat >>conftest.$ac_ext <<_ACEOF
2711 /* end confdefs.h. */
2724 rm -f conftest.$ac_objext
2725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2726 (eval $ac_compile) 2>conftest.er1
2728 grep -v '^ *+' conftest.er1 >conftest.err
2730 cat conftest.err >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); } &&
2733 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); }; } &&
2739 { ac_try='test -s conftest.$ac_objext'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; }; then
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2753 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2756 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2757 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2758 GXX=`test $ac_compiler_gnu = yes && echo yes`
2759 ac_test_CXXFLAGS=${CXXFLAGS+set}
2760 ac_save_CXXFLAGS=$CXXFLAGS
2762 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2763 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2764 if test "${ac_cv_prog_cxx_g+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 cat >conftest.$ac_ext <<_ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784 (eval $ac_compile) 2>conftest.er1
2786 grep -v '^ *+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } &&
2791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } &&
2797 { ac_try='test -s conftest.$ac_objext'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; }; then
2803 ac_cv_prog_cxx_g=yes
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2813 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2814 if test "$ac_test_CXXFLAGS" = set; then
2815 CXXFLAGS=$ac_save_CXXFLAGS
2816 elif test $ac_cv_prog_cxx_g = yes; then
2817 if test "$GXX" = yes; then
2823 if test "$GXX" = yes; then
2829 for ac_declaration in \
2831 'extern "C" void std::exit (int) throw (); using std::exit;' \
2832 'extern "C" void std::exit (int); using std::exit;' \
2833 'extern "C" void exit (int) throw ();' \
2834 'extern "C" void exit (int);' \
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>conftest.er1
2857 grep -v '^ *+' conftest.er1 >conftest.err
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882 cat >conftest.$ac_ext <<_ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2897 rm -f conftest.$ac_objext
2898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2899 (eval $ac_compile) 2>conftest.er1
2901 grep -v '^ *+' conftest.er1 >conftest.err
2903 cat conftest.err >&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); } &&
2906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; } &&
2912 { ac_try='test -s conftest.$ac_objext'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; }; then
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2927 if test -n "$ac_declaration"; then
2928 echo '#ifdef __cplusplus' >>confdefs.h
2929 echo $ac_declaration >>confdefs.h
2930 echo '#endif' >>confdefs.h
2934 ac_cpp='$CPP $CPPFLAGS'
2935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 CXXFLAGS="$save_CXXFLAGS"
2945 am__api_version="1.9"
2946 # Find a good install program. We prefer a C program (faster),
2947 # so one script is as good as another. But avoid the broken or
2948 # incompatible versions:
2949 # SysV /etc/install, /usr/sbin/install
2950 # SunOS /usr/etc/install
2951 # IRIX /sbin/install
2953 # AmigaOS /C/install, which installs bootblocks on floppy discs
2954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2957 # OS/2's system install, which has a completely different semantic
2958 # ./install, which can be erroneously created by make from ./install.sh.
2959 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2960 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2961 if test -z "$INSTALL"; then
2962 if test "${ac_cv_path_install+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 test -z "$as_dir" && as_dir=.
2970 # Account for people who put trailing slashes in PATH elements.
2972 ./ | .// | /cC/* | \
2973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2974 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2977 # OSF1 and SCO ODT 3.0 have their own names for install.
2978 # Don't use installbsd from OSF since it installs stuff as root
2980 for ac_prog in ginstall scoinst install; do
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2983 if test $ac_prog = install &&
2984 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2985 # AIX install. It has an incompatible calling convention.
2987 elif test $ac_prog = install &&
2988 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2989 # program-specific install script used by HP pwplus--don't use.
2992 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3004 if test "${ac_cv_path_install+set}" = set; then
3005 INSTALL=$ac_cv_path_install
3007 # As a last resort, use the slow shell script. We don't cache a
3008 # path for INSTALL within a source directory, because that will
3009 # break other packages using the cache if that directory is
3010 # removed, or if the path is relative.
3011 INSTALL=$ac_install_sh
3014 echo "$as_me:$LINENO: result: $INSTALL" >&5
3015 echo "${ECHO_T}$INSTALL" >&6
3017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3018 # It thinks the first close brace ends the variable substitution.
3019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3025 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3026 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3029 echo timestamp > conftest.file
3030 # Do `set' in a subshell so we don't clobber the current shell's
3031 # arguments. Must try -L first in case configure is actually a
3032 # symlink; some systems play weird games with the mod time of symlinks
3033 # (eg FreeBSD returns the mod time of the symlink's containing
3036 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3037 if test "$*" = "X"; then
3039 set X `ls -t $srcdir/configure conftest.file`
3042 if test "$*" != "X $srcdir/configure conftest.file" \
3043 && test "$*" != "X conftest.file $srcdir/configure"; then
3045 # If neither matched, then we have a broken ls. This can happen
3046 # if, for instance, CONFIG_SHELL is bash and it inherits a
3047 # broken ls alias from the environment. This has actually
3048 # happened. Such a system could not be considered "sane".
3049 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3050 alias in your environment" >&5
3051 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3052 alias in your environment" >&2;}
3053 { (exit 1); exit 1; }; }
3056 test "$2" = conftest.file
3062 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3063 Check your system clock" >&5
3064 echo "$as_me: error: newly created file is older than distributed files!
3065 Check your system clock" >&2;}
3066 { (exit 1); exit 1; }; }
3068 echo "$as_me:$LINENO: result: yes" >&5
3069 echo "${ECHO_T}yes" >&6
3070 test "$program_prefix" != NONE &&
3071 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3072 # Use a double $ so make ignores it.
3073 test "$program_suffix" != NONE &&
3074 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3075 # Double any \ or $. echo might interpret backslashes.
3076 # By default was `s,x,x', remove it if useless.
3077 cat <<\_ACEOF >conftest.sed
3078 s/[\\$]/&&/g;s/;s,x,x,$//
3080 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3083 # expand $ac_aux_dir to an absolute path
3084 am_aux_dir=`cd $ac_aux_dir && pwd`
3086 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3087 # Use eval to expand $SHELL
3088 if eval "$MISSING --run true"; then
3089 am_missing_run="$MISSING --run "
3092 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3093 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3096 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3097 # We used to keeping the `.' as first argument, in order to
3098 # allow $(mkdir_p) to be used without argument. As in
3099 # $(mkdir_p) $(somedir)
3100 # where $(somedir) is conditionally defined. However this is wrong
3102 # 1. if the package is installed by a user who cannot write `.'
3103 # make install will fail,
3104 # 2. the above comment should most certainly read
3105 # $(mkdir_p) $(DESTDIR)$(somedir)
3106 # so it does not work when $(somedir) is undefined and
3107 # $(DESTDIR) is not.
3108 # To support the latter case, we have to write
3109 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3110 # so the `.' trick is pointless.
3111 mkdir_p='mkdir -p --'
3113 # On NextStep and OpenStep, the `mkdir' command does not
3114 # recognize any option. It will interpret all options as
3115 # directories to create, and then abort because `.' already
3117 for d in ./-p ./--version;
3119 test -d $d && rmdir $d
3121 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3122 if test -f "$ac_aux_dir/mkinstalldirs"; then
3123 mkdir_p='$(mkinstalldirs)'
3125 mkdir_p='$(install_sh) -d'
3129 for ac_prog in gawk mawk nawk awk
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 echo "$as_me:$LINENO: checking for $ac_word" >&5
3134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3135 if test "${ac_cv_prog_AWK+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if test -n "$AWK"; then
3139 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_AWK="$ac_prog"
3149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 if test -n "$AWK"; then
3159 echo "$as_me:$LINENO: result: $AWK" >&5
3160 echo "${ECHO_T}$AWK" >&6
3162 echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6
3166 test -n "$AWK" && break
3169 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3170 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3171 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3172 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 cat >conftest.make <<\_ACEOF
3177 @echo 'ac_maketemp="$(MAKE)"'
3179 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3180 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3181 if test -n "$ac_maketemp"; then
3182 eval ac_cv_prog_make_${ac_make}_set=yes
3184 eval ac_cv_prog_make_${ac_make}_set=no
3188 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3189 echo "$as_me:$LINENO: result: yes" >&5
3190 echo "${ECHO_T}yes" >&6
3193 echo "$as_me:$LINENO: result: no" >&5
3194 echo "${ECHO_T}no" >&6
3195 SET_MAKE="MAKE=${MAKE-make}"
3198 rm -rf .tst 2>/dev/null
3199 mkdir .tst 2>/dev/null
3200 if test -d .tst; then
3205 rmdir .tst 2>/dev/null
3207 DEPDIR="${am__leading_dot}deps"
3209 ac_config_commands="$ac_config_commands depfiles"
3212 am_make=${MAKE-make}
3213 cat > confinc << 'END'
3218 # If we don't find an include directive, just comment out the code.
3219 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3220 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3224 # First try GNU make style include.
3225 echo "include confinc" > confmf
3226 # We grep out `Entering directory' and `Leaving directory'
3227 # messages which can occur if `w' ends up in MAKEFLAGS.
3228 # In particular we don't look at `^make:' because GNU make might
3229 # be invoked under some other name (usually "gmake"), in which
3230 # case it prints its new name instead of `make'.
3231 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3236 # Now try BSD make style include.
3237 if test "$am__include" = "#"; then
3238 echo '.include "confinc"' > confmf
3239 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3240 am__include=.include
3247 echo "$as_me:$LINENO: result: $_am_result" >&5
3248 echo "${ECHO_T}$_am_result" >&6
3249 rm -f confinc confmf
3251 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3252 if test "${enable_dependency_tracking+set}" = set; then
3253 enableval="$enable_dependency_tracking"
3256 if test "x$enable_dependency_tracking" != xno; then
3257 am_depcomp="$ac_aux_dir/depcomp"
3262 if test "x$enable_dependency_tracking" != xno; then
3272 # test to see if srcdir already configured
3273 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3274 test -f $srcdir/config.status; then
3275 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3276 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3277 { (exit 1); exit 1; }; }
3280 # test whether we have cygpath
3281 if test -z "$CYGPATH_W"; then
3282 if (cygpath --version) >/dev/null 2>/dev/null; then
3283 CYGPATH_W='cygpath -w'
3290 # Define the identity of the package.
3292 VERSION='version-unused'
3295 cat >>confdefs.h <<_ACEOF
3296 #define PACKAGE "$PACKAGE"
3300 cat >>confdefs.h <<_ACEOF
3301 #define VERSION "$VERSION"
3304 # Some tools Automake needs.
3306 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3309 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3312 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3315 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3318 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3320 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3322 # Installed binaries are usually stripped using `strip' when the user
3323 # run `make install-strip'. However `strip' might not be the right
3324 # tool to use in cross-compilation environments, therefore Automake
3325 # will honor the `STRIP' environment variable to overrule this program.
3326 if test "$cross_compiling" != no; then
3327 if test -n "$ac_tool_prefix"; then
3328 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3329 set dummy ${ac_tool_prefix}strip; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_STRIP+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 if test -n "$STRIP"; then
3336 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 STRIP=$ac_cv_prog_STRIP
3355 if test -n "$STRIP"; then
3356 echo "$as_me:$LINENO: result: $STRIP" >&5
3357 echo "${ECHO_T}$STRIP" >&6
3359 echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3364 if test -z "$ac_cv_prog_STRIP"; then
3366 # Extract the first word of "strip", so it can be a program name with args.
3367 set dummy strip; ac_word=$2
3368 echo "$as_me:$LINENO: checking for $ac_word" >&5
3369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3370 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3371 echo $ECHO_N "(cached) $ECHO_C" >&6
3373 if test -n "$ac_ct_STRIP"; then
3374 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3380 test -z "$as_dir" && as_dir=.
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_ac_ct_STRIP="strip"
3384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3393 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3394 if test -n "$ac_ct_STRIP"; then
3395 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3396 echo "${ECHO_T}$ac_ct_STRIP" >&6
3398 echo "$as_me:$LINENO: result: no" >&5
3399 echo "${ECHO_T}no" >&6
3404 STRIP="$ac_cv_prog_STRIP"
3408 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3410 # We need awk for the "check" target. The system "awk" is bad on
3412 # Always define AMTAR for backward compatibility.
3414 AMTAR=${AMTAR-"${am_missing_run}tar"}
3416 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3421 depcc="$CC" am_compiler_list=
3423 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3424 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3425 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3429 # We make a subdir and do the tests there. Otherwise we can end up
3430 # making bogus files that we don't know about and never remove. For
3431 # instance it was reported that on HP-UX the gcc test will end up
3432 # making a dummy file named `D' -- because `-MD' means `put the output
3435 # Copy depcomp to subdir because otherwise we won't find it if we're
3436 # using a relative directory.
3437 cp "$am_depcomp" conftest.dir
3439 # We will build objects and dependencies in a subdirectory because
3440 # it helps to detect inapplicable dependency modes. For instance
3441 # both Tru64's cc and ICC support -MD to output dependencies as a
3442 # side effect of compilation, but ICC will put the dependencies in
3443 # the current directory while Tru64 will put them in the object
3447 am_cv_CC_dependencies_compiler_type=none
3448 if test "$am_compiler_list" = ""; then
3449 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3451 for depmode in $am_compiler_list; do
3452 # Setup a source with many dependencies, because some compilers
3453 # like to wrap large dependency lists on column 80 (with \), and
3454 # we should not choose a depcomp mode which is confused by this.
3456 # We need to recreate these files for each test, as the compiler may
3457 # overwrite some of them when testing with obscure command lines.
3458 # This happens at least with the AIX C compiler.
3460 for i in 1 2 3 4 5 6; do
3461 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3462 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3463 # Solaris 8's {/usr,}/bin/sh.
3464 touch sub/conftst$i.h
3466 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3470 # after this tag, mechanisms are not by side-effect, so they'll
3471 # only be used when explicitly requested
3472 if test "x$enable_dependency_tracking" = xyes; then
3480 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3481 # mode. It turns out that the SunPro C++ compiler does not properly
3482 # handle `-M -o', and we need to detect this.
3483 if depmode=$depmode \
3484 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3485 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3486 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3487 >/dev/null 2>conftest.err &&
3488 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3489 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3490 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3491 # icc doesn't choke on unknown options, it will just issue warnings
3492 # or remarks (even with -Werror). So we grep stderr for any message
3493 # that says an option was ignored or not supported.
3494 # When given -MP, icc 7.0 and 7.1 complain thusly:
3495 # icc: Command line warning: ignoring option '-M'; no argument required
3496 # The diagnosis changed in icc 8.0:
3497 # icc: Command line remark: option '-MP' not supported
3498 if (grep 'ignoring option' conftest.err ||
3499 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3500 am_cv_CC_dependencies_compiler_type=$depmode
3509 am_cv_CC_dependencies_compiler_type=none
3513 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3514 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3515 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3520 test "x$enable_dependency_tracking" != xno \
3521 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3523 am__fastdepCC_FALSE='#'
3525 am__fastdepCC_TRUE='#'
3526 am__fastdepCC_FALSE=
3530 depcc="$CXX" am_compiler_list=
3532 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3533 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3534 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3538 # We make a subdir and do the tests there. Otherwise we can end up
3539 # making bogus files that we don't know about and never remove. For
3540 # instance it was reported that on HP-UX the gcc test will end up
3541 # making a dummy file named `D' -- because `-MD' means `put the output
3544 # Copy depcomp to subdir because otherwise we won't find it if we're
3545 # using a relative directory.
3546 cp "$am_depcomp" conftest.dir
3548 # We will build objects and dependencies in a subdirectory because
3549 # it helps to detect inapplicable dependency modes. For instance
3550 # both Tru64's cc and ICC support -MD to output dependencies as a
3551 # side effect of compilation, but ICC will put the dependencies in
3552 # the current directory while Tru64 will put them in the object
3556 am_cv_CXX_dependencies_compiler_type=none
3557 if test "$am_compiler_list" = ""; then
3558 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3560 for depmode in $am_compiler_list; do
3561 # Setup a source with many dependencies, because some compilers
3562 # like to wrap large dependency lists on column 80 (with \), and
3563 # we should not choose a depcomp mode which is confused by this.
3565 # We need to recreate these files for each test, as the compiler may
3566 # overwrite some of them when testing with obscure command lines.
3567 # This happens at least with the AIX C compiler.
3569 for i in 1 2 3 4 5 6; do
3570 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3571 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3572 # Solaris 8's {/usr,}/bin/sh.
3573 touch sub/conftst$i.h
3575 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3579 # after this tag, mechanisms are not by side-effect, so they'll
3580 # only be used when explicitly requested
3581 if test "x$enable_dependency_tracking" = xyes; then
3589 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3590 # mode. It turns out that the SunPro C++ compiler does not properly
3591 # handle `-M -o', and we need to detect this.
3592 if depmode=$depmode \
3593 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3594 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3595 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3596 >/dev/null 2>conftest.err &&
3597 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3598 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3599 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3600 # icc doesn't choke on unknown options, it will just issue warnings
3601 # or remarks (even with -Werror). So we grep stderr for any message
3602 # that says an option was ignored or not supported.
3603 # When given -MP, icc 7.0 and 7.1 complain thusly:
3604 # icc: Command line warning: ignoring option '-M'; no argument required
3605 # The diagnosis changed in icc 8.0:
3606 # icc: Command line remark: option '-MP' not supported
3607 if (grep 'ignoring option' conftest.err ||
3608 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3609 am_cv_CXX_dependencies_compiler_type=$depmode
3618 am_cv_CXX_dependencies_compiler_type=none
3622 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3623 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3624 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3629 test "x$enable_dependency_tracking" != xno \
3630 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3631 am__fastdepCXX_TRUE=
3632 am__fastdepCXX_FALSE='#'
3634 am__fastdepCXX_TRUE='#'
3635 am__fastdepCXX_FALSE=
3641 if test -n "$ac_tool_prefix"; then
3642 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3643 set dummy ${ac_tool_prefix}as; ac_word=$2
3644 echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646 if test "${ac_cv_prog_AS+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 if test -n "$AS"; then
3650 ac_cv_prog_AS="$AS" # Let the user override the test.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659 ac_cv_prog_AS="${ac_tool_prefix}as"
3660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 if test -n "$AS"; then
3670 echo "$as_me:$LINENO: result: $AS" >&5
3671 echo "${ECHO_T}$AS" >&6
3673 echo "$as_me:$LINENO: result: no" >&5
3674 echo "${ECHO_T}no" >&6
3678 if test -z "$ac_cv_prog_AS"; then
3680 # Extract the first word of "as", so it can be a program name with args.
3681 set dummy as; ac_word=$2
3682 echo "$as_me:$LINENO: checking for $ac_word" >&5
3683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3684 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3685 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 if test -n "$ac_ct_AS"; then
3688 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 test -z "$as_dir" && as_dir=.
3695 for ac_exec_ext in '' $ac_executable_extensions; do
3696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3697 ac_cv_prog_ac_ct_AS="as"
3698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3707 if test -n "$ac_ct_AS"; then
3708 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3709 echo "${ECHO_T}$ac_ct_AS" >&6
3711 echo "$as_me:$LINENO: result: no" >&5
3712 echo "${ECHO_T}no" >&6
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}ar; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_prog_AR+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3728 if test -n "$AR"; then
3729 ac_cv_prog_AR="$AR" # Let the user override the test.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_AR="${ac_tool_prefix}ar"
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 if test -n "$AR"; then
3749 echo "$as_me:$LINENO: result: $AR" >&5
3750 echo "${ECHO_T}$AR" >&6
3752 echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6
3757 if test -z "$ac_cv_prog_AR"; then
3759 # Extract the first word of "ar", so it can be a program name with args.
3760 set dummy ar; ac_word=$2
3761 echo "$as_me:$LINENO: checking for $ac_word" >&5
3762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3763 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3766 if test -n "$ac_ct_AR"; then
3767 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3776 ac_cv_prog_ac_ct_AR="ar"
3777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3786 if test -n "$ac_ct_AR"; then
3787 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3788 echo "${ECHO_T}$ac_ct_AR" >&6
3790 echo "$as_me:$LINENO: result: no" >&5
3791 echo "${ECHO_T}no" >&6
3799 if test -n "$ac_tool_prefix"; then
3800 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3801 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3802 echo "$as_me:$LINENO: checking for $ac_word" >&5
3803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3804 if test "${ac_cv_prog_RANLIB+set}" = set; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 if test -n "$RANLIB"; then
3808 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3817 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826 RANLIB=$ac_cv_prog_RANLIB
3827 if test -n "$RANLIB"; then
3828 echo "$as_me:$LINENO: result: $RANLIB" >&5
3829 echo "${ECHO_T}$RANLIB" >&6
3831 echo "$as_me:$LINENO: result: no" >&5
3832 echo "${ECHO_T}no" >&6
3836 if test -z "$ac_cv_prog_RANLIB"; then
3837 ac_ct_RANLIB=$RANLIB
3838 # Extract the first word of "ranlib", so it can be a program name with args.
3839 set dummy ranlib; ac_word=$2
3840 echo "$as_me:$LINENO: checking for $ac_word" >&5
3841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3842 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 if test -n "$ac_ct_RANLIB"; then
3846 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 test -z "$as_dir" && as_dir=.
3853 for ac_exec_ext in '' $ac_executable_extensions; do
3854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3855 ac_cv_prog_ac_ct_RANLIB="ranlib"
3856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3865 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3866 if test -n "$ac_ct_RANLIB"; then
3867 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3868 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3870 echo "$as_me:$LINENO: result: no" >&5
3871 echo "${ECHO_T}no" >&6
3874 RANLIB=$ac_ct_RANLIB
3876 RANLIB="$ac_cv_prog_RANLIB"
3880 # Find a good install program. We prefer a C program (faster),
3881 # so one script is as good as another. But avoid the broken or
3882 # incompatible versions:
3883 # SysV /etc/install, /usr/sbin/install
3884 # SunOS /usr/etc/install
3885 # IRIX /sbin/install
3887 # AmigaOS /C/install, which installs bootblocks on floppy discs
3888 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3889 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3890 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3891 # OS/2's system install, which has a completely different semantic
3892 # ./install, which can be erroneously created by make from ./install.sh.
3893 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3894 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3895 if test -z "$INSTALL"; then
3896 if test "${ac_cv_path_install+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 test -z "$as_dir" && as_dir=.
3904 # Account for people who put trailing slashes in PATH elements.
3906 ./ | .// | /cC/* | \
3907 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3908 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3911 # OSF1 and SCO ODT 3.0 have their own names for install.
3912 # Don't use installbsd from OSF since it installs stuff as root
3914 for ac_prog in ginstall scoinst install; do
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3917 if test $ac_prog = install &&
3918 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3919 # AIX install. It has an incompatible calling convention.
3921 elif test $ac_prog = install &&
3922 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3923 # program-specific install script used by HP pwplus--don't use.
3926 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3938 if test "${ac_cv_path_install+set}" = set; then
3939 INSTALL=$ac_cv_path_install
3941 # As a last resort, use the slow shell script. We don't cache a
3942 # path for INSTALL within a source directory, because that will
3943 # break other packages using the cache if that directory is
3944 # removed, or if the path is relative.
3945 INSTALL=$ac_install_sh
3948 echo "$as_me:$LINENO: result: $INSTALL" >&5
3949 echo "${ECHO_T}$INSTALL" >&6
3951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3952 # It thinks the first close brace ends the variable substitution.
3953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3957 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3960 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3961 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3962 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3963 if test "${enable_maintainer_mode+set}" = set; then
3964 enableval="$enable_maintainer_mode"
3965 USE_MAINTAINER_MODE=$enableval
3967 USE_MAINTAINER_MODE=no
3969 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3970 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3973 if test $USE_MAINTAINER_MODE = yes; then
3974 MAINTAINER_MODE_TRUE=
3975 MAINTAINER_MODE_FALSE='#'
3977 MAINTAINER_MODE_TRUE='#'
3978 MAINTAINER_MODE_FALSE=
3981 MAINT=$MAINTAINER_MODE_TRUE
3987 # configure.host sets the following important variables
3988 # libgcj_cflags - host specific C compiler flags
3989 # libgcj_cxxflags - host specific C++ compiler flags
3990 # libgcj_javaflags - host specific Java compiler flags
3996 . ${srcdir}/configure.host
3998 LIBGCJ_CFLAGS="${libgcj_cflags}"
3999 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4000 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4001 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4007 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4010 # Only use libltdl for non-newlib builds.
4011 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4012 case $enable_ltdl_convenience in
4013 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4014 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4015 { (exit 1); exit 1; }; } ;;
4016 "") enable_ltdl_convenience=yes
4017 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4019 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4020 INCLTDL='-I${top_srcdir}/''libltdl'
4025 cat >>confdefs.h <<\_ACEOF
4029 # Sigh. Libtool's macro doesn't do the right thing.
4030 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4031 # FIXME: this is a hack.
4032 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4033 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4038 # Check whether --enable-shared or --disable-shared was given.
4039 if test "${enable_shared+set}" = set; then
4040 enableval="$enable_shared"
4041 p=${PACKAGE-default}
4043 yes) enable_shared=yes ;;
4044 no) enable_shared=no ;;
4047 # Look at the argument we got. We use all the common list separators.
4048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4049 for pkg in $enableval; do
4050 if test "X$pkg" = "X$p"; then
4060 # Check whether --enable-static or --disable-static was given.
4061 if test "${enable_static+set}" = set; then
4062 enableval="$enable_static"
4063 p=${PACKAGE-default}
4065 yes) enable_static=yes ;;
4066 no) enable_static=no ;;
4069 # Look at the argument we got. We use all the common list separators.
4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4071 for pkg in $enableval; do
4072 if test "X$pkg" = "X$p"; then
4082 # Check whether --enable-fast-install or --disable-fast-install was given.
4083 if test "${enable_fast_install+set}" = set; then
4084 enableval="$enable_fast_install"
4085 p=${PACKAGE-default}
4087 yes) enable_fast_install=yes ;;
4088 no) enable_fast_install=no ;;
4090 enable_fast_install=no
4091 # Look at the argument we got. We use all the common list separators.
4092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4093 for pkg in $enableval; do
4094 if test "X$pkg" = "X$p"; then
4095 enable_fast_install=yes
4102 enable_fast_install=yes
4105 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4106 if test "${with_gnu_ld+set}" = set; then
4107 withval="$with_gnu_ld"
4108 test "$withval" = no || with_gnu_ld=yes
4113 if test "$GCC" = yes; then
4114 # Check if gcc -print-prog-name=ld gives a path.
4115 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4116 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4119 # gcc leaves a trailing carriage return which upsets mingw
4120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4125 # Accept absolute paths.
4126 [\\/]* | [A-Za-z]:[\\/]*)
4127 re_direlt='/[^/][^/]*/\.\./'
4128 # Canonicalize the path of ld
4129 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4131 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4133 test -z "$LD" && LD="$ac_prog"
4136 # If it fails, then pretend we aren't using GCC.
4140 # If it is relative, then search for the first ld in PATH.
4144 elif test "$with_gnu_ld" = yes; then
4145 echo "$as_me:$LINENO: checking for GNU ld" >&5
4146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4148 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4151 if test "${lt_cv_path_LD+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 if test -z "$LD"; then
4155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4156 for ac_dir in $PATH; do
4157 test -z "$ac_dir" && ac_dir=.
4158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4159 lt_cv_path_LD="$ac_dir/$ac_prog"
4160 # Check to see if the program is GNU ld. I'd rather use --version,
4161 # but apparently some GNU ld's only accept -v.
4162 # Break only if it was the GNU/non-GNU ld that we prefer.
4163 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4164 test "$with_gnu_ld" != no && break
4166 test "$with_gnu_ld" != yes && break
4172 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4177 if test -n "$LD"; then
4178 echo "$as_me:$LINENO: result: $LD" >&5
4179 echo "${ECHO_T}$LD" >&6
4181 echo "$as_me:$LINENO: result: no" >&5
4182 echo "${ECHO_T}no" >&6
4184 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4185 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4186 { (exit 1); exit 1; }; }
4187 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4188 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4189 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4193 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4194 lt_cv_prog_gnu_ld=yes
4196 lt_cv_prog_gnu_ld=no
4199 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4200 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4201 with_gnu_ld=$lt_cv_prog_gnu_ld
4204 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4205 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4206 if test "${lt_cv_ld_reload_flag+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 lt_cv_ld_reload_flag='-r'
4211 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4212 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4213 reload_flag=$lt_cv_ld_reload_flag
4214 test -n "$reload_flag" && reload_flag=" $reload_flag"
4216 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4217 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4218 if test "${lt_cv_path_NM+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 if test -n "$NM"; then
4222 # Let the user override the test.
4225 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4226 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4227 test -z "$ac_dir" && ac_dir=.
4228 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4229 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4230 # Check to see if the nm accepts a BSD-compat flag.
4231 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4232 # nm: unknown option "B" ignored
4233 # Tru64's nm complains that /dev/null is an invalid object file
4234 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4235 lt_cv_path_NM="$tmp_nm -B"
4237 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4238 lt_cv_path_NM="$tmp_nm -p"
4241 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4242 continue # so that we can try to find one that supports BSD flags
4247 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4252 echo "$as_me:$LINENO: result: $NM" >&5
4253 echo "${ECHO_T}$NM" >&6
4255 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4256 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4257 if test "${lt_cv_deplibs_check_method+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 lt_cv_file_magic_cmd='$MAGIC_CMD'
4261 lt_cv_file_magic_test_file=
4262 lt_cv_deplibs_check_method='unknown'
4263 # Need to set the preceding variable on all platforms that support
4264 # interlibrary dependencies.
4265 # 'none' -- dependencies not supported.
4266 # `unknown' -- same as none, but documents that we really don't know.
4267 # 'pass_all' -- all dependencies passed with no checks.
4268 # 'test_compile' -- check by making test program.
4269 # 'file_magic [regex]' -- check by looking for files in library path
4270 # which responds to the $file_magic_cmd with a given egrep regex.
4271 # If you have `file' or equivalent on your system and you're not sure
4272 # whether `pass_all' will *always* work, you probably want this one.
4276 lt_cv_deplibs_check_method=pass_all
4280 lt_cv_deplibs_check_method=pass_all
4284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4285 lt_cv_file_magic_cmd='/usr/bin/file -L'
4286 lt_cv_file_magic_test_file=/shlib/libc.so
4289 cygwin* | mingw* |pw32*)
4290 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4291 lt_cv_file_magic_cmd='$OBJDUMP -f'
4294 darwin* | rhapsody*)
4295 # this will be overwritten by pass_all, but leave it in just in case
4296 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4297 lt_cv_file_magic_cmd='/usr/bin/file -L'
4299 rhapsody* | darwin1.012)
4300 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4303 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4306 lt_cv_deplibs_check_method=pass_all
4309 freebsd* | kfreebsd*-gnu)
4310 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4313 # Not sure whether the presence of OpenBSD here was a mistake.
4314 # Let's accept both of them until this is cleared up.
4315 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4316 lt_cv_file_magic_cmd=/usr/bin/file
4317 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4321 lt_cv_deplibs_check_method=pass_all
4326 lt_cv_deplibs_check_method=pass_all
4332 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4333 lt_cv_file_magic_cmd=/usr/bin/file
4334 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4337 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4338 lt_cv_file_magic_cmd=/usr/bin/file
4339 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4347 # this will be overridden with pass_all, but let us keep it just in case
4348 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4352 *-32|*"-32 ") libmagic=32-bit;;
4353 *-n32|*"-n32 ") libmagic=N32;;
4354 *-64|*"-64 ") libmagic=64-bit;;
4355 *) libmagic=never-match;;
4357 # this will be overridden with pass_all, but let us keep it just in case
4358 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4361 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4362 lt_cv_deplibs_check_method=pass_all
4365 # This must be Linux ELF.
4367 lt_cv_deplibs_check_method=pass_all
4370 netbsd* | knetbsd*-gnu)
4371 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4372 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4374 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4379 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4380 lt_cv_file_magic_cmd=/usr/bin/file
4381 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4384 osf3* | osf4* | osf5*)
4385 # this will be overridden with pass_all, but let us keep it just in case
4386 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4387 lt_cv_file_magic_test_file=/shlib/libc.so
4388 lt_cv_deplibs_check_method=pass_all
4392 lt_cv_deplibs_check_method=pass_all
4396 lt_cv_deplibs_check_method=pass_all
4397 lt_cv_file_magic_test_file=/lib/libc.so
4400 sysv5uw[78]* | sysv4*uw2*)
4401 lt_cv_deplibs_check_method=pass_all
4404 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4405 case $host_vendor in
4407 lt_cv_deplibs_check_method=pass_all
4410 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]'
4411 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4418 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4419 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4420 file_magic_cmd=$lt_cv_file_magic_cmd
4421 deplibs_check_method=$lt_cv_deplibs_check_method
4426 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4428 # find the maximum length of command line arguments
4429 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4430 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4431 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4432 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 # On DJGPP, this test can blow up pretty badly due to problems in libc
4440 # (any single argument exceeding 2000 bytes causes a buffer overrun
4441 # during glob expansion). Even if it were fixed, the result of this
4442 # check would be larger than it should be.
4443 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4447 # On Win9x/ME, this test blows up -- it succeeds, but takes
4448 # about 5 minutes as the teststring grows exponentially.
4449 # Worse, since 9x/ME are not pre-emptively multitasking,
4450 # you end up with a "frozen" computer, even though with patience
4451 # the test eventually succeeds (with a max line length of 256k).
4452 # Instead, let's just punt: use the minimum linelength reported by
4453 # all of the supported platforms: 8192 (on NT/2K/XP).
4454 lt_cv_sys_max_cmd_len=8192;
4458 # On AmigaOS with pdksh, this test takes hours, literally.
4459 # So we just punt and use a minimum line length of 8192.
4460 lt_cv_sys_max_cmd_len=8192;
4463 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4464 # This has been around since 386BSD, at least. Likely further.
4465 if test -x /sbin/sysctl; then
4466 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4467 elif test -x /usr/sbin/sysctl; then
4468 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4470 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4472 # And add a safety zone
4473 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4474 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4480 if test -n $lt_cv_sys_max_cmd_len ; then
4481 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4482 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4484 echo "$as_me:$LINENO: result: none" >&5
4485 echo "${ECHO_T}none" >&6
4489 # Only perform the check for file, if the check method requires it
4490 case $deplibs_check_method in
4492 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4493 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4494 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4495 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4496 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4503 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4506 ac_save_MAGIC_CMD="$MAGIC_CMD"
4507 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4508 ac_dummy="/usr/bin:$PATH"
4509 for ac_dir in $ac_dummy; do
4510 test -z "$ac_dir" && ac_dir=.
4511 if test -f $ac_dir/${ac_tool_prefix}file; then
4512 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4513 if test -n "$file_magic_test_file"; then
4514 case $deplibs_check_method in
4516 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4517 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4518 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4519 egrep "$file_magic_regex" > /dev/null; then
4524 *** Warning: the command libtool uses to detect shared libraries,
4525 *** $file_magic_cmd, produces output that libtool cannot recognize.
4526 *** The result is that libtool may fail to recognize shared libraries
4527 *** as such. This will affect the creation of libtool libraries that
4528 *** depend on shared libraries, but programs linked with such libtool
4529 *** libraries will work regardless of this problem. Nevertheless, you
4530 *** may want to report the problem to your system manager and/or to
4531 *** bug-libtool@gnu.org
4541 MAGIC_CMD="$ac_save_MAGIC_CMD"
4546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4547 if test -n "$MAGIC_CMD"; then
4548 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4549 echo "${ECHO_T}$MAGIC_CMD" >&6
4551 echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6
4555 if test -z "$lt_cv_path_MAGIC_CMD"; then
4556 if test -n "$ac_tool_prefix"; then
4557 echo "$as_me:$LINENO: checking for file" >&5
4558 echo $ECHO_N "checking for file... $ECHO_C" >&6
4559 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4567 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4570 ac_save_MAGIC_CMD="$MAGIC_CMD"
4571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4572 ac_dummy="/usr/bin:$PATH"
4573 for ac_dir in $ac_dummy; do
4574 test -z "$ac_dir" && ac_dir=.
4575 if test -f $ac_dir/file; then
4576 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4577 if test -n "$file_magic_test_file"; then
4578 case $deplibs_check_method in
4580 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4581 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4582 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4583 egrep "$file_magic_regex" > /dev/null; then
4588 *** Warning: the command libtool uses to detect shared libraries,
4589 *** $file_magic_cmd, produces output that libtool cannot recognize.
4590 *** The result is that libtool may fail to recognize shared libraries
4591 *** as such. This will affect the creation of libtool libraries that
4592 *** depend on shared libraries, but programs linked with such libtool
4593 *** libraries will work regardless of this problem. Nevertheless, you
4594 *** may want to report the problem to your system manager and/or to
4595 *** bug-libtool@gnu.org
4605 MAGIC_CMD="$ac_save_MAGIC_CMD"
4610 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4611 if test -n "$MAGIC_CMD"; then
4612 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4613 echo "${ECHO_T}$MAGIC_CMD" >&6
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4628 if test -n "$ac_tool_prefix"; then
4629 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4630 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4631 echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4633 if test "${ac_cv_prog_RANLIB+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 if test -n "$RANLIB"; then
4637 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 RANLIB=$ac_cv_prog_RANLIB
4656 if test -n "$RANLIB"; then
4657 echo "$as_me:$LINENO: result: $RANLIB" >&5
4658 echo "${ECHO_T}$RANLIB" >&6
4660 echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6
4665 if test -z "$ac_cv_prog_RANLIB"; then
4666 ac_ct_RANLIB=$RANLIB
4667 # Extract the first word of "ranlib", so it can be a program name with args.
4668 set dummy ranlib; ac_word=$2
4669 echo "$as_me:$LINENO: checking for $ac_word" >&5
4670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4671 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 if test -n "$ac_ct_RANLIB"; then
4675 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684 ac_cv_prog_ac_ct_RANLIB="ranlib"
4685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4694 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4695 if test -n "$ac_ct_RANLIB"; then
4696 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4697 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4699 echo "$as_me:$LINENO: result: no" >&5
4700 echo "${ECHO_T}no" >&6
4703 RANLIB=$ac_ct_RANLIB
4705 RANLIB="$ac_cv_prog_RANLIB"
4708 if test -n "$ac_tool_prefix"; then
4709 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4710 set dummy ${ac_tool_prefix}strip; ac_word=$2
4711 echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4713 if test "${ac_cv_prog_STRIP+set}" = set; then
4714 echo $ECHO_N "(cached) $ECHO_C" >&6
4716 if test -n "$STRIP"; then
4717 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723 test -z "$as_dir" && as_dir=.
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4726 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 STRIP=$ac_cv_prog_STRIP
4736 if test -n "$STRIP"; then
4737 echo "$as_me:$LINENO: result: $STRIP" >&5
4738 echo "${ECHO_T}$STRIP" >&6
4740 echo "$as_me:$LINENO: result: no" >&5
4741 echo "${ECHO_T}no" >&6
4745 if test -z "$ac_cv_prog_STRIP"; then
4747 # Extract the first word of "strip", so it can be a program name with args.
4748 set dummy strip; ac_word=$2
4749 echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4751 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4754 if test -n "$ac_ct_STRIP"; then
4755 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764 ac_cv_prog_ac_ct_STRIP="strip"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4774 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4775 if test -n "$ac_ct_STRIP"; then
4776 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4777 echo "${ECHO_T}$ac_ct_STRIP" >&6
4779 echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6
4785 STRIP="$ac_cv_prog_STRIP"
4789 # Check for any special flags to pass to ltconfig.
4790 libtool_flags="--cache-file=$cache_file"
4791 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4792 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4793 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4794 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4795 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4798 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4799 if test "${enable_libtool_lock+set}" = set; then
4800 enableval="$enable_libtool_lock"
4803 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4804 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4807 # Check whether --with-pic or --without-pic was given.
4808 if test "${with_pic+set}" = set; then
4814 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4815 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4817 # Some flags need to be propagated to the compiler or linker for good
4821 # Find out which ABI we are using.
4822 echo '#line 4822 "configure"' > conftest.$ac_ext
4823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4824 (eval $ac_compile) 2>&5
4826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827 (exit $ac_status); }; then
4828 if test "$lt_cv_prog_gnu_ld" = yes; then
4829 case `/usr/bin/file conftest.$ac_objext` in
4831 LD="${LD-ld} -melf32bsmip"
4834 LD="${LD-ld} -melf32bmipn32"
4837 LD="${LD-ld} -melf64bmip"
4841 case `/usr/bin/file conftest.$ac_objext` in
4858 # Find out which ABI we are using.
4859 echo 'int i;' > conftest.$ac_ext
4860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4861 (eval $ac_compile) 2>&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); }; then
4865 case "`/usr/bin/file conftest.o`" in
4877 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4878 # Find out which ABI we are using.
4879 echo 'int i;' > conftest.$ac_ext
4880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4881 (eval $ac_compile) 2>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; then
4885 case "`/usr/bin/file conftest.o`" in
4889 LD="${LD-ld} -m elf_i386"
4891 ppc64-*linux*|powerpc64-*linux*)
4892 LD="${LD-ld} -m elf32ppclinux"
4895 LD="${LD-ld} -m elf_s390"
4898 LD="${LD-ld} -m elf32_sparc"
4905 LD="${LD-ld} -m elf_x86_64"
4907 ppc*-*linux*|powerpc*-*linux*)
4908 LD="${LD-ld} -m elf64ppc"
4911 LD="${LD-ld} -m elf64_s390"
4914 LD="${LD-ld} -m elf64_sparc"
4924 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4925 SAVE_CFLAGS="$CFLAGS"
4926 CFLAGS="$CFLAGS -belf"
4927 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4928 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4929 if test "${lt_cv_cc_needs_belf+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4940 if test x$gcc_no_link = xyes; then
4941 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4942 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4943 { (exit 1); exit 1; }; }
4945 cat >conftest.$ac_ext <<_ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4960 rm -f conftest.$ac_objext conftest$ac_exeext
4961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4962 (eval $ac_link) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } &&
4969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; } &&
4975 { ac_try='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 lt_cv_cc_needs_belf=yes
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 lt_cv_cc_needs_belf=no
4988 rm -f conftest.err conftest.$ac_objext \
4989 conftest$ac_exeext conftest.$ac_ext
4991 ac_cpp='$CPP $CPPFLAGS'
4992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4997 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4998 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4999 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5000 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5001 CFLAGS="$SAVE_CFLAGS"
5009 # Save cache, so that ltconfig can load it
5010 cat >confcache <<\_ACEOF
5011 # This file is a shell script that caches the results of configure
5012 # tests run on this system so they can be shared between configure
5013 # scripts and configure runs, see configure's option --config-cache.
5014 # It is not useful on other systems. If it contains results you don't
5015 # want to keep, you may remove or edit it.
5017 # config.status only pays attention to the cache file if you give it
5018 # the --recheck option to rerun configure.
5020 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5021 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5026 # The following way of writing the cache mishandles newlines in values,
5027 # but we know of no workaround that is simple, portable, and efficient.
5028 # So, don't put newlines in cache variables' values.
5029 # Ultrix sh set writes to stderr and can't be redirected directly,
5030 # and sets the high bit in the cache file unless we assign to the vars.
5033 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5035 # `set' does not quote correctly, so add quotes (double-quote
5036 # substitution turns \\\\ into \\, and sed turns \\ into \).
5039 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5042 # `set' quotes correctly as required by POSIX, so do not add quotes.
5044 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5051 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5053 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5055 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5056 if test -w $cache_file; then
5057 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5058 cat confcache >$cache_file
5060 echo "not updating unwritable cache $cache_file"
5065 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5066 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5067 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5068 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5069 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5070 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5071 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5072 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5073 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5074 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5075 echo "$as_me: error: libtool configure failed" >&2;}
5076 { (exit 1); exit 1; }; }
5078 # Reload cache, that may have been modified by ltconfig
5079 if test -r "$cache_file"; then
5080 # Some versions of bash will fail to source /dev/null (special
5081 # files actually), so we avoid doing that.
5082 if test -f "$cache_file"; then
5083 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5084 echo "$as_me: loading cache $cache_file" >&6;}
5086 [\\/]* | ?:[\\/]* ) . $cache_file;;
5087 *) . ./$cache_file;;
5091 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5092 echo "$as_me: creating cache $cache_file" >&6;}
5097 # This can be used to rebuild libtool when needed
5098 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5100 # Always use our own libtool.
5101 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5103 # Redirect the config.log output again, so that the ltconfig log is not
5104 # clobbered by the next message.
5105 exec 5>>./config.log
5108 ac_cpp='$CXXCPP $CPPFLAGS'
5109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5112 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5113 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5114 if test -z "$CXXCPP"; then
5115 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5116 echo $ECHO_N "(cached) $ECHO_C" >&6
5118 # Double quotes because CXXCPP needs to be expanded
5119 for CXXCPP in "$CXX -E" "/lib/cpp"
5122 for ac_cxx_preproc_warn_flag in '' yes
5124 # Use a header file that comes with gcc, so configuring glibc
5125 # with a fresh cross-compiler works.
5126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5127 # <limits.h> exists even on freestanding compilers.
5128 # On the NeXT, cc -E runs the code through the compiler's parser,
5129 # not just through cpp. "Syntax error" is here to catch this case.
5130 cat >conftest.$ac_ext <<_ACEOF
5133 cat confdefs.h >>conftest.$ac_ext
5134 cat >>conftest.$ac_ext <<_ACEOF
5135 /* end confdefs.h. */
5137 # include <limits.h>
5139 # include <assert.h>
5143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5146 grep -v '^ *+' conftest.er1 >conftest.err
5148 cat conftest.err >&5
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } >/dev/null; then
5151 if test -s conftest.err; then
5152 ac_cpp_err=$ac_cxx_preproc_warn_flag
5153 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5160 if test -z "$ac_cpp_err"; then
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 # Broken: fails on valid input.
5169 rm -f conftest.err conftest.$ac_ext
5171 # OK, works on sane cases. Now check whether non-existent headers
5172 # can be detected and how.
5173 cat >conftest.$ac_ext <<_ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179 #include <ac_nonexistent.h>
5181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5184 grep -v '^ *+' conftest.er1 >conftest.err
5186 cat conftest.err >&5
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev/null; then
5189 if test -s conftest.err; then
5190 ac_cpp_err=$ac_cxx_preproc_warn_flag
5191 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5198 if test -z "$ac_cpp_err"; then
5199 # Broken: success on invalid input.
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 # Passes both tests.
5209 rm -f conftest.err conftest.$ac_ext
5212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5213 rm -f conftest.err conftest.$ac_ext
5214 if $ac_preproc_ok; then
5219 ac_cv_prog_CXXCPP=$CXXCPP
5222 CXXCPP=$ac_cv_prog_CXXCPP
5224 ac_cv_prog_CXXCPP=$CXXCPP
5226 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5227 echo "${ECHO_T}$CXXCPP" >&6
5229 for ac_cxx_preproc_warn_flag in '' yes
5231 # Use a header file that comes with gcc, so configuring glibc
5232 # with a fresh cross-compiler works.
5233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234 # <limits.h> exists even on freestanding compilers.
5235 # On the NeXT, cc -E runs the code through the compiler's parser,
5236 # not just through cpp. "Syntax error" is here to catch this case.
5237 cat >conftest.$ac_ext <<_ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5244 # include <limits.h>
5246 # include <assert.h>
5250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } >/dev/null; then
5258 if test -s conftest.err; then
5259 ac_cpp_err=$ac_cxx_preproc_warn_flag
5260 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5267 if test -z "$ac_cpp_err"; then
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 # Broken: fails on valid input.
5276 rm -f conftest.err conftest.$ac_ext
5278 # OK, works on sane cases. Now check whether non-existent headers
5279 # can be detected and how.
5280 cat >conftest.$ac_ext <<_ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286 #include <ac_nonexistent.h>
5288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5291 grep -v '^ *+' conftest.er1 >conftest.err
5293 cat conftest.err >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } >/dev/null; then
5296 if test -s conftest.err; then
5297 ac_cpp_err=$ac_cxx_preproc_warn_flag
5298 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5305 if test -z "$ac_cpp_err"; then
5306 # Broken: success on invalid input.
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 # Passes both tests.
5316 rm -f conftest.err conftest.$ac_ext
5319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5320 rm -f conftest.err conftest.$ac_ext
5321 if $ac_preproc_ok; then
5324 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5325 See \`config.log' for more details." >&5
5326 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5327 See \`config.log' for more details." >&2;}
5328 { (exit 1); exit 1; }; }
5332 ac_cpp='$CPP $CPPFLAGS'
5333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5339 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5341 lt_save_CFLAGS="$CFLAGS"
5342 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5343 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5344 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5345 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5346 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5347 deplibs_check_method="$deplibs_check_method" \
5348 file_magic_cmd="$file_magic_cmd" \
5349 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5350 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5351 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5352 echo "$as_me: error: libtool tag configuration failed" >&2;}
5353 { (exit 1); exit 1; }; }
5355 CFLAGS="$lt_save_CFLAGS"
5357 # Redirect the config.log output again, so that the ltconfig log is not
5358 # clobbered by the next message.
5359 exec 5>>./config.log
5369 # Extract the first word of "$ac_prog", so it can be a program name with args.
5370 set dummy $ac_prog; ac_word=$2
5371 echo "$as_me:$LINENO: checking for $ac_word" >&5
5372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5373 if test "${ac_cv_prog_GCJ+set}" = set; then
5374 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 if test -n "$GCJ"; then
5377 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_prog_GCJ="$ac_prog"
5387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396 if test -n "$GCJ"; then
5397 echo "$as_me:$LINENO: result: $GCJ" >&5
5398 echo "${ECHO_T}$GCJ" >&6
5400 echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6
5404 test -n "$GCJ" && break
5406 test -n "$GCJ" || GCJ="gcj"
5408 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5409 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5410 { (exit 1); exit 1; }; }
5411 if test "x${GCJFLAGS-unset}" = xunset; then
5416 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5418 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5419 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5420 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5424 # We make a subdir and do the tests there. Otherwise we can end up
5425 # making bogus files that we don't know about and never remove. For
5426 # instance it was reported that on HP-UX the gcc test will end up
5427 # making a dummy file named `D' -- because `-MD' means `put the output
5430 # Copy depcomp to subdir because otherwise we won't find it if we're
5431 # using a relative directory.
5432 cp "$am_depcomp" conftest.dir
5434 # We will build objects and dependencies in a subdirectory because
5435 # it helps to detect inapplicable dependency modes. For instance
5436 # both Tru64's cc and ICC support -MD to output dependencies as a
5437 # side effect of compilation, but ICC will put the dependencies in
5438 # the current directory while Tru64 will put them in the object
5442 am_cv_GCJ_dependencies_compiler_type=none
5443 if test "$am_compiler_list" = ""; then
5444 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5446 for depmode in $am_compiler_list; do
5447 # Setup a source with many dependencies, because some compilers
5448 # like to wrap large dependency lists on column 80 (with \), and
5449 # we should not choose a depcomp mode which is confused by this.
5451 # We need to recreate these files for each test, as the compiler may
5452 # overwrite some of them when testing with obscure command lines.
5453 # This happens at least with the AIX C compiler.
5455 for i in 1 2 3 4 5 6; do
5456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5457 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5458 # Solaris 8's {/usr,}/bin/sh.
5459 touch sub/conftst$i.h
5461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5465 # after this tag, mechanisms are not by side-effect, so they'll
5466 # only be used when explicitly requested
5467 if test "x$enable_dependency_tracking" = xyes; then
5475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5476 # mode. It turns out that the SunPro C++ compiler does not properly
5477 # handle `-M -o', and we need to detect this.
5478 if depmode=$depmode \
5479 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5480 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5481 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5482 >/dev/null 2>conftest.err &&
5483 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5484 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5485 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5486 # icc doesn't choke on unknown options, it will just issue warnings
5487 # or remarks (even with -Werror). So we grep stderr for any message
5488 # that says an option was ignored or not supported.
5489 # When given -MP, icc 7.0 and 7.1 complain thusly:
5490 # icc: Command line warning: ignoring option '-M'; no argument required
5491 # The diagnosis changed in icc 8.0:
5492 # icc: Command line remark: option '-MP' not supported
5493 if (grep 'ignoring option' conftest.err ||
5494 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5495 am_cv_GCJ_dependencies_compiler_type=$depmode
5504 am_cv_GCJ_dependencies_compiler_type=none
5508 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5509 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5510 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5515 test "x$enable_dependency_tracking" != xno \
5516 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5517 am__fastdepGCJ_TRUE=
5518 am__fastdepGCJ_FALSE='#'
5520 am__fastdepGCJ_TRUE='#'
5521 am__fastdepGCJ_FALSE=
5527 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5529 lt_save_CFLAGS="$CFLAGS"
5530 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5531 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5532 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5533 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5534 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5535 deplibs_check_method="$deplibs_check_method" \
5536 file_magic_cmd="$file_magic_cmd" \
5537 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5538 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5539 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5540 echo "$as_me: error: libtool tag configuration failed" >&2;}
5541 { (exit 1); exit 1; }; }
5543 CFLAGS="$lt_save_CFLAGS"
5545 # Redirect the config.log output again, so that the ltconfig log is not
5546 # clobbered by the next message.
5547 exec 5>>./config.log
5551 if test "x$CC" != xcc; then
5552 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5553 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5555 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5556 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5558 set dummy $CC; ac_cc=`echo $2 |
5559 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5560 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5561 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 cat >conftest.$ac_ext <<_ACEOF
5566 cat confdefs.h >>conftest.$ac_ext
5567 cat >>conftest.$ac_ext <<_ACEOF
5568 /* end confdefs.h. */
5578 # Make sure it works both with $CC and with simple cc.
5579 # We do the test twice because some compilers refuse to overwrite an
5580 # existing .o file with -o, though they will create one.
5581 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5582 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); };
5593 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5594 if test "x$CC" != xcc; then
5595 # Test first that cc exists at all.
5596 if { ac_try='cc -c conftest.$ac_ext >&5'
5597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); }; }; then
5602 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5603 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); } &&
5608 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); };
5617 # cc exists but doesn't like -o.
5618 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5623 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5628 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5629 echo "$as_me:$LINENO: result: yes" >&5
5630 echo "${ECHO_T}yes" >&6
5632 echo "$as_me:$LINENO: result: no" >&5
5633 echo "${ECHO_T}no" >&6
5635 cat >>confdefs.h <<\_ACEOF
5636 #define NO_MINUS_C_MINUS_O 1
5641 # FIXME: we rely on the cache variable name because
5642 # there is no other way.
5644 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5645 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5646 # Losing compiler, so override with the script.
5647 # FIXME: It is wrong to rewrite CC.
5648 # But if we don't then we get into trouble of one sort or another.
5649 # A longer-term fix would be to have automake use am__CC in this case,
5650 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5651 CC="$am_aux_dir/compile $CC"
5656 subdirs="$subdirs libltdl"
5659 # The -no-testsuite modules omit the test subdir.
5662 if test -d $srcdir/testsuite; then
5664 TESTSUBDIR_FALSE='#'
5671 # Should the runtime set system properties by examining the
5672 # environment variable GCJ_PROPERTIES?
5673 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5674 if test "${enable_getenv_properties+set}" = set; then
5675 enableval="$enable_getenv_properties"
5679 # Whether GCJ_PROPERTIES is used depends on the target.
5680 if test -z "$enable_getenv_properties"; then
5681 enable_getenv_properties=${enable_getenv_properties_default-yes}
5683 if test "$enable_getenv_properties" = no; then
5685 cat >>confdefs.h <<\_ACEOF
5686 #define DISABLE_GETENV_PROPERTIES 1
5691 # Whether we should use arguments to main()
5692 if test -z "$enable_main_args"; then
5693 enable_main_args=${enable_main_args_default-yes}
5695 if test "$enable_main_args" = no; then
5697 cat >>confdefs.h <<\_ACEOF
5698 #define DISABLE_MAIN_ARGS 1
5704 # Should we use hashtable-based synchronization?
5705 # Currently works only for Linux X86/ia64
5706 # Typically faster and more space-efficient
5707 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5708 if test "${enable_hash_synchronization+set}" = set; then
5709 enableval="$enable_hash_synchronization"
5713 if test -z "$enable_hash_synchronization"; then
5714 enable_hash_synchronization=$enable_hash_synchronization_default
5717 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
5718 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
5719 if test "${enable_libgcj_multifile+set}" = set; then
5720 enableval="$enable_libgcj_multifile"
5721 case "${enableval}" in
5722 yes) enable_libgcj_multifile=yes ;;
5723 no) enable_libgcj_multifile=no ;;
5724 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
5725 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
5726 { (exit 1); exit 1; }; } ;;
5729 enable_libgcj_multifile=no
5733 if test "$enable_libgcj_multifile" = yes; then
5743 # Check whether --with-java-home or --without-java-home was given.
5744 if test "${with_java_home+set}" = set; then
5745 withval="$with_java_home"
5746 JAVA_HOME="${withval}"
5752 if test ! -z "$JAVA_HOME"; then
5754 JAVA_HOME_SET_FALSE='#'
5756 JAVA_HOME_SET_TRUE='#'
5757 JAVA_HOME_SET_FALSE=
5762 # What is the native OS API for MinGW?
5764 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5765 if test "${with_win32_nlsapi+set}" = set; then
5766 withval="$with_win32_nlsapi"
5767 case "${withval}" in
5768 ansi) with_win32_nlsapi=ansi ;;
5769 unicows) with_win32_nlsapi=unicows ;;
5770 unicode) with_win32_nlsapi=unicode ;;
5771 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5772 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5773 { (exit 1); exit 1; }; } ;;
5776 with_win32_nlsapi=ansi
5779 case "${with_win32_nlsapi}" in
5782 cat >>confdefs.h <<\_ACEOF
5783 #define MINGW_LIBGCJ_UNICODE 1
5789 # configure.host sets slow_pthread_self if the synchronization code should
5790 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5791 if test "${slow_pthread_self}" = "yes"; then
5793 cat >>confdefs.h <<\_ACEOF
5794 #define SLOW_PTHREAD_SELF 1
5800 # See if the user has requested runtime debugging.
5803 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5804 if test "${enable_libgcj_debug+set}" = set; then
5805 enableval="$enable_libgcj_debug"
5806 if test "$enable_libgcj_debug" = yes; then
5808 cat >>confdefs.h <<\_ACEOF
5816 # Check for gc debugging. This option is handled both here and in the GC.
5817 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5818 if test "${enable_gc_debug+set}" = set; then
5819 enableval="$enable_gc_debug"
5820 if test "$enable_gc_debug" = "yes"; then
5822 cat >>confdefs.h <<\_ACEOF
5823 #define LIBGCJ_GC_DEBUG 1
5829 # See if the user has the interpreter included.
5830 # Check whether --enable-interpreter or --disable-interpreter was given.
5831 if test "${enable_interpreter+set}" = set; then
5832 enableval="$enable_interpreter"
5833 if test "$enable_interpreter" = yes; then
5834 # This can also be set in configure.host.
5835 libgcj_interpreter=yes
5836 elif test "$enable_interpreter" = no; then
5837 libgcj_interpreter=no
5841 if test "$libgcj_interpreter" = yes; then
5843 cat >>confdefs.h <<\_ACEOF
5844 #define INTERPRETER 1
5848 INTERPRETER="$libgcj_interpreter"
5851 echo "$as_me:$LINENO: checking for exception model to use" >&5
5852 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5854 ac_cpp='$CXXCPP $CPPFLAGS'
5855 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5859 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5860 if test "${enable_sjlj_exceptions+set}" = set; then
5861 enableval="$enable_sjlj_exceptions"
5864 cat > conftest.$ac_ext << EOF
5865 #line 5865 "configure"
5874 old_CXXFLAGS="$CXXFLAGS"
5876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5877 (eval $ac_compile) 2>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; then
5881 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5882 enable_sjlj_exceptions=yes
5883 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5884 enable_sjlj_exceptions=no
5887 CXXFLAGS="$old_CXXFLAGS"
5890 if test x$enable_sjlj_exceptions = xyes; then
5892 cat >>confdefs.h <<\_ACEOF
5893 #define SJLJ_EXCEPTIONS 1
5896 ac_exception_model_name=sjlj
5897 elif test x$enable_sjlj_exceptions = xno; then
5898 ac_exception_model_name="call frame"
5900 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5901 echo "$as_me: error: unable to detect exception model" >&2;}
5902 { (exit 1); exit 1; }; }
5905 ac_cpp='$CPP $CPPFLAGS'
5906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5910 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5911 echo "${ECHO_T}$ac_exception_model_name" >&6
5913 # If we are non using SJLJ exceptions, and this host does not have support
5914 # for unwinding from a signal handler, enable checked dereferences and divides.
5915 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5916 CHECKREFSPEC=-fcheck-references
5917 DIVIDESPEC=-fuse-divide-subroutine
5921 # See if the user wants to disable java.net. This is the mildly
5922 # ugly way that we admit that target-side configuration sucks.
5923 # Check whether --enable-java-net or --disable-java-net was given.
5924 if test "${enable_java_net+set}" = set; then
5925 enableval="$enable_java_net"
5929 # Whether java.net is built by default can depend on the target.
5930 if test -z "$enable_java_net"; then
5931 enable_java_net=${enable_java_net_default-yes}
5933 if test "$enable_java_net" = no; then
5935 cat >>confdefs.h <<\_ACEOF
5936 #define DISABLE_JAVA_NET 1
5941 # See if the user wants to configure without libffi. Some
5942 # architectures don't support it, and default values are set in
5945 # Check whether --with-libffi or --without-libffi was given.
5946 if test "${with_libffi+set}" = set; then
5947 withval="$with_libffi"
5950 with_libffi=${with_libffi_default-yes}
5955 if test "$with_libffi" != no; then
5957 cat >>confdefs.h <<\_ACEOF
5958 #define USE_LIBFFI 1
5961 LIBFFI=../libffi/libffi_convenience.la
5962 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5967 # See if the user wants to disable JVMPI support.
5968 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5969 if test "${enable_jvmpi+set}" = set; then
5970 enableval="$enable_jvmpi"
5974 if test "$enable_jvmpi" != no; then
5976 cat >>confdefs.h <<\_ACEOF
5977 #define ENABLE_JVMPI 1
5982 # If the target is an eCos system, use the appropriate eCos
5984 # FIXME: this should not be a local option but a global target
5985 # system; at present there is no eCos target.
5986 TARGET_ECOS=${PROCESS-"no"}
5988 # Check whether --with-ecos or --without-ecos was given.
5989 if test "${with_ecos+set}" = set; then
5990 withval="$with_ecos"
5991 TARGET_ECOS="$with_ecos"
5997 PLATFORM_INNER_NAT_HDRS=
5998 case "$TARGET_ECOS" in
6005 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6006 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6007 LD_PROG=`$CC --print-prog-name=ld`
6008 LD_VERSION=`$LD_PROG --version`
6009 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6010 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6011 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6014 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6018 if test "x$LD_OK" != x; then
6019 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6020 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6022 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6023 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6024 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6025 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6027 cat >>confdefs.h <<\_ACEOF
6028 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6037 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6045 cat >>confdefs.h <<\_ACEOF
6053 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6057 ac_cpp='$CPP $CPPFLAGS'
6058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6061 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6062 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6063 # On Suns, sometimes $CPP names a directory.
6064 if test -n "$CPP" && test -d "$CPP"; then
6067 if test -z "$CPP"; then
6068 if test "${ac_cv_prog_CPP+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6071 # Double quotes because CPP needs to be expanded
6072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6075 for ac_c_preproc_warn_flag in '' yes
6077 # Use a header file that comes with gcc, so configuring glibc
6078 # with a fresh cross-compiler works.
6079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6080 # <limits.h> exists even on freestanding compilers.
6081 # On the NeXT, cc -E runs the code through the compiler's parser,
6082 # not just through cpp. "Syntax error" is here to catch this case.
6083 cat >conftest.$ac_ext <<_ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6090 # include <limits.h>
6092 # include <assert.h>
6096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6099 grep -v '^ *+' conftest.er1 >conftest.err
6101 cat conftest.err >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } >/dev/null; then
6104 if test -s conftest.err; then
6105 ac_cpp_err=$ac_c_preproc_warn_flag
6106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6113 if test -z "$ac_cpp_err"; then
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 # Broken: fails on valid input.
6122 rm -f conftest.err conftest.$ac_ext
6124 # OK, works on sane cases. Now check whether non-existent headers
6125 # can be detected and how.
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 #include <ac_nonexistent.h>
6134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6137 grep -v '^ *+' conftest.er1 >conftest.err
6139 cat conftest.err >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } >/dev/null; then
6142 if test -s conftest.err; then
6143 ac_cpp_err=$ac_c_preproc_warn_flag
6144 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6151 if test -z "$ac_cpp_err"; then
6152 # Broken: success on invalid input.
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6158 # Passes both tests.
6162 rm -f conftest.err conftest.$ac_ext
6165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6166 rm -f conftest.err conftest.$ac_ext
6167 if $ac_preproc_ok; then
6179 echo "$as_me:$LINENO: result: $CPP" >&5
6180 echo "${ECHO_T}$CPP" >&6
6182 for ac_c_preproc_warn_flag in '' yes
6184 # Use a header file that comes with gcc, so configuring glibc
6185 # with a fresh cross-compiler works.
6186 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6187 # <limits.h> exists even on freestanding compilers.
6188 # On the NeXT, cc -E runs the code through the compiler's parser,
6189 # not just through cpp. "Syntax error" is here to catch this case.
6190 cat >conftest.$ac_ext <<_ACEOF
6193 cat confdefs.h >>conftest.$ac_ext
6194 cat >>conftest.$ac_ext <<_ACEOF
6195 /* end confdefs.h. */
6197 # include <limits.h>
6199 # include <assert.h>
6203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6204 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6206 grep -v '^ *+' conftest.er1 >conftest.err
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } >/dev/null; then
6211 if test -s conftest.err; then
6212 ac_cpp_err=$ac_c_preproc_warn_flag
6213 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6220 if test -z "$ac_cpp_err"; then
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 # Broken: fails on valid input.
6229 rm -f conftest.err conftest.$ac_ext
6231 # OK, works on sane cases. Now check whether non-existent headers
6232 # can be detected and how.
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #include <ac_nonexistent.h>
6241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6244 grep -v '^ *+' conftest.er1 >conftest.err
6246 cat conftest.err >&5
6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248 (exit $ac_status); } >/dev/null; then
6249 if test -s conftest.err; then
6250 ac_cpp_err=$ac_c_preproc_warn_flag
6251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6258 if test -z "$ac_cpp_err"; then
6259 # Broken: success on invalid input.
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.$ac_ext >&5
6265 # Passes both tests.
6269 rm -f conftest.err conftest.$ac_ext
6272 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6273 rm -f conftest.err conftest.$ac_ext
6274 if $ac_preproc_ok; then
6277 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6278 See \`config.log' for more details." >&5
6279 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6280 See \`config.log' for more details." >&2;}
6281 { (exit 1); exit 1; }; }
6285 ac_cpp='$CPP $CPPFLAGS'
6286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291 echo "$as_me:$LINENO: checking for egrep" >&5
6292 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6293 if test "${ac_cv_prog_egrep+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6297 then ac_cv_prog_egrep='grep -E'
6298 else ac_cv_prog_egrep='egrep'
6301 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6302 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6303 EGREP=$ac_cv_prog_egrep
6306 cat >conftest.$ac_ext <<_ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6316 $EGREP "uint32_t" >/dev/null 2>&1; then
6318 cat >>confdefs.h <<\_ACEOF
6319 #define HAVE_INT32_DEFINED 1
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 #include <inttypes.h>
6334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6335 $EGREP "uint32_t" >/dev/null 2>&1; then
6337 cat >>confdefs.h <<\_ACEOF
6338 #define HAVE_INT32_DEFINED 1
6344 cat >conftest.$ac_ext <<_ACEOF
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6350 #include <sys/types.h>
6353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6354 $EGREP "u_int32_t" >/dev/null 2>&1; then
6356 cat >>confdefs.h <<\_ACEOF
6357 #define HAVE_BSD_INT32_DEFINED 1
6363 cat >conftest.$ac_ext <<_ACEOF
6366 cat confdefs.h >>conftest.$ac_ext
6367 cat >>conftest.$ac_ext <<_ACEOF
6368 /* end confdefs.h. */
6369 #include <sys/config.h>
6372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6373 $EGREP "u_int32_t" >/dev/null 2>&1; then
6375 cat >>confdefs.h <<\_ACEOF
6376 #define HAVE_BSD_INT32_DEFINED 1
6385 if test "$PLATFORM" = Win32; then
6386 USING_WIN32_PLATFORM_TRUE=
6387 USING_WIN32_PLATFORM_FALSE='#'
6389 USING_WIN32_PLATFORM_TRUE='#'
6390 USING_WIN32_PLATFORM_FALSE=
6395 if test "$PLATFORM" = Posix; then
6396 USING_POSIX_PLATFORM_TRUE=
6397 USING_POSIX_PLATFORM_FALSE='#'
6399 USING_POSIX_PLATFORM_TRUE='#'
6400 USING_POSIX_PLATFORM_FALSE=
6405 if test "$PLATFORM" = Ecos; then
6406 USING_ECOS_PLATFORM_TRUE=
6407 USING_ECOS_PLATFORM_FALSE='#'
6409 USING_ECOS_PLATFORM_TRUE='#'
6410 USING_ECOS_PLATFORM_FALSE=
6415 *-darwin*) DARWIN_CRT=true ;;
6416 *) DARWIN_CRT=false ;;
6420 if $DARWIN_CRT; then
6421 USING_DARWIN_CRT_TRUE=
6422 USING_DARWIN_CRT_FALSE='#'
6424 USING_DARWIN_CRT_TRUE='#'
6425 USING_DARWIN_CRT_FALSE=
6429 # These may not be defined in a non-ANS conformant embedded system.
6430 # FIXME: Should these case a runtime exception in that case?
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6441 $EGREP "mktime" >/dev/null 2>&1; then
6443 cat >>confdefs.h <<\_ACEOF
6444 #define HAVE_MKTIME 1
6450 cat >conftest.$ac_ext <<_ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6460 $EGREP "localtime" >/dev/null 2>&1; then
6462 cat >>confdefs.h <<\_ACEOF
6463 #define HAVE_LOCALTIME 1
6470 # Create the subdirectory for natFile.cc, or the attempt
6471 # to create the link will fail.
6472 test -d java || mkdir java
6473 test -d java/io || mkdir java/io
6474 test -d gnu || mkdir gnu
6475 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6478 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6479 test -d java/lang || mkdir java/lang
6480 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6482 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6485 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
6486 test -d java/net || mkdir java/net
6487 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6489 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
6492 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6493 test -d gnu/java || mkdir gnu/java
6494 test -d gnu/java/net || mkdir gnu/java/net
6495 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6497 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6500 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6501 test -d gnu/java/nio || mkdir gnu/java/nio
6502 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6504 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6506 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6507 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6512 SYSTEMSPEC="-lgdi32 -lws2_32"
6513 if test "${with_win32_nlsapi}" = "unicows"; then
6514 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6523 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6527 # Check whether --with-system-zlib or --without-system-zlib was given.
6528 if test "${with_system_zlib+set}" = set; then
6529 withval="$with_system_zlib"
6538 if test "x$ac_path_x_has_been_run" != xyes; then
6539 echo "$as_me:$LINENO: checking for X" >&5
6540 echo $ECHO_N "checking for X... $ECHO_C" >&6
6542 ac_path_x_has_been_run=yes
6544 # Check whether --with-x or --without-x was given.
6545 if test "${with_x+set}" = set; then
6549 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6550 if test "x$with_x" = xno; then
6551 # The user explicitly disabled X.
6554 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6555 # Both variables are already set.
6558 if test "${ac_cv_have_x+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 # One or both of the vars are not set, and there is no cached value.
6562 ac_x_includes=no ac_x_libraries=no
6564 if mkdir conftest.dir; then
6566 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6567 cat >Imakefile <<'_ACEOF'
6569 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6571 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6572 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6573 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6574 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6575 for ac_extension in a so sl; do
6576 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6577 test -f $ac_im_libdir/libX11.$ac_extension; then
6578 ac_im_usrlibdir=$ac_im_libdir; break
6581 # Screen out bogus values from the imake configuration. They are
6582 # bogus both because they are the default anyway, and because
6583 # using them would break gcc on systems where it needs fixed includes.
6584 case $ac_im_incroot in
6586 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6588 case $ac_im_usrlibdir in
6590 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6597 # Standard set of common directories for X headers.
6598 # Check X11 before X11Rn because it is often a symlink to the current release.
6610 /usr/local/X11/include
6611 /usr/local/X11R6/include
6612 /usr/local/X11R5/include
6613 /usr/local/X11R4/include
6615 /usr/local/include/X11
6616 /usr/local/include/X11R6
6617 /usr/local/include/X11R5
6618 /usr/local/include/X11R4
6622 /usr/XFree86/include/X11
6626 /usr/unsupported/include
6628 /usr/local/x11r5/include
6629 /usr/lpp/Xamples/include
6631 /usr/openwin/include
6632 /usr/openwin/share/include'
6634 if test "$ac_x_includes" = no; then
6635 # Guess where to find include files, by looking for a specified header file.
6636 # First, try using that file with no special directory specified.
6637 cat >conftest.$ac_ext <<_ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643 #include <X11/Intrinsic.h>
6645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6648 grep -v '^ *+' conftest.er1 >conftest.err
6650 cat conftest.err >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } >/dev/null; then
6653 if test -s conftest.err; then
6654 ac_cpp_err=$ac_c_preproc_warn_flag
6655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6662 if test -z "$ac_cpp_err"; then
6663 # We can compile using X headers with no special include directory.
6666 echo "$as_me: failed program was:" >&5
6667 sed 's/^/| /' conftest.$ac_ext >&5
6669 for ac_dir in $ac_x_header_dirs; do
6670 if test -r "$ac_dir/X11/Intrinsic.h"; then
6671 ac_x_includes=$ac_dir
6676 rm -f conftest.err conftest.$ac_ext
6677 fi # $ac_x_includes = no
6679 if test "$ac_x_libraries" = no; then
6680 # Check for the libraries.
6681 # See if we find them without any special options.
6682 # Don't add to $LIBS permanently.
6685 if test x$gcc_no_link = xyes; then
6686 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6687 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6688 { (exit 1); exit 1; }; }
6690 cat >conftest.$ac_ext <<_ACEOF
6693 cat confdefs.h >>conftest.$ac_ext
6694 cat >>conftest.$ac_ext <<_ACEOF
6695 /* end confdefs.h. */
6696 #include <X11/Intrinsic.h>
6705 rm -f conftest.$ac_objext conftest$ac_exeext
6706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6707 (eval $ac_link) 2>conftest.er1
6709 grep -v '^ *+' conftest.er1 >conftest.err
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } &&
6714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6719 (exit $ac_status); }; } &&
6720 { ac_try='test -s conftest$ac_exeext'
6721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); }; }; then
6727 # We can link X programs with no special library path.
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6734 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6736 # Don't even attempt the hair of trying to link an X program!
6737 for ac_extension in a so sl; do
6738 if test -r $ac_dir/libXt.$ac_extension; then
6739 ac_x_libraries=$ac_dir
6745 rm -f conftest.err conftest.$ac_objext \
6746 conftest$ac_exeext conftest.$ac_ext
6747 fi # $ac_x_libraries = no
6749 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6750 # Didn't find X anywhere. Cache the known absence of X.
6751 ac_cv_have_x="have_x=no"
6753 # Record where we found X for the cache.
6754 ac_cv_have_x="have_x=yes \
6755 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6760 eval "$ac_cv_have_x"
6763 if test "$have_x" != yes; then
6764 echo "$as_me:$LINENO: result: $have_x" >&5
6765 echo "${ECHO_T}$have_x" >&6
6768 # If each of the values was on the command line, it overrides each guess.
6769 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6770 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6771 # Update the cache value to reflect the command line values.
6772 ac_cv_have_x="have_x=yes \
6773 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6774 # It might be that x_includes is empty (headers are found in the
6775 # standard search path. Then output the corresponding message
6776 ac_out_x_includes=$x_includes
6777 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
6778 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
6779 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
6783 if test "$no_x" = yes; then
6784 # Not all programs may use this symbol, but it does not hurt to define it.
6786 cat >>confdefs.h <<\_ACEOF
6787 #define X_DISPLAY_MISSING 1
6790 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6792 if test -n "$x_includes"; then
6793 X_CFLAGS="$X_CFLAGS -I$x_includes"
6796 # It would also be nice to do this for all -L options, not just this one.
6797 if test -n "$x_libraries"; then
6798 X_LIBS="$X_LIBS -L$x_libraries"
6799 # For Solaris; some versions of Sun CC require a space after -R and
6800 # others require no space. Words are not sufficient . . . .
6801 case `(uname -sr) 2>/dev/null` in
6803 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6804 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6805 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6806 if test x$gcc_no_link = xyes; then
6807 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6808 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6809 { (exit 1); exit 1; }; }
6811 cat >conftest.$ac_ext <<_ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6826 rm -f conftest.$ac_objext conftest$ac_exeext
6827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6828 (eval $ac_link) 2>conftest.er1
6830 grep -v '^ *+' conftest.er1 >conftest.err
6832 cat conftest.err >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); } &&
6835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; } &&
6841 { ac_try='test -s conftest$ac_exeext'
6842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 (exit $ac_status); }; }; then
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6854 rm -f conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
6856 if test $ac_R_nospace = yes; then
6857 echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6
6859 X_LIBS="$X_LIBS -R$x_libraries"
6861 LIBS="$ac_xsave_LIBS -R $x_libraries"
6862 if test x$gcc_no_link = xyes; then
6863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6865 { (exit 1); exit 1; }; }
6867 cat >conftest.$ac_ext <<_ACEOF
6870 cat confdefs.h >>conftest.$ac_ext
6871 cat >>conftest.$ac_ext <<_ACEOF
6872 /* end confdefs.h. */
6882 rm -f conftest.$ac_objext conftest$ac_exeext
6883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6884 (eval $ac_link) 2>conftest.er1
6886 grep -v '^ *+' conftest.er1 >conftest.err
6888 cat conftest.err >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); } &&
6891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; } &&
6897 { ac_try='test -s conftest$ac_exeext'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; }; then
6905 echo "$as_me: failed program was:" >&5
6906 sed 's/^/| /' conftest.$ac_ext >&5
6910 rm -f conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912 if test $ac_R_space = yes; then
6913 echo "$as_me:$LINENO: result: yes" >&5
6914 echo "${ECHO_T}yes" >&6
6915 X_LIBS="$X_LIBS -R $x_libraries"
6917 echo "$as_me:$LINENO: result: neither works" >&5
6918 echo "${ECHO_T}neither works" >&6
6925 # Check for system-dependent libraries X programs must link with.
6926 # Do this before checking for the system-independent R6 libraries
6927 # (-lICE), since we may need -lsocket or whatever for X linking.
6929 if test "$ISC" = yes; then
6930 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6932 # Martyn Johnson says this is needed for Ultrix, if the X
6933 # libraries were built with DECnet support. And Karl Berry says
6934 # the Alpha needs dnet_stub (dnet does not exist).
6935 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6936 if test x$gcc_no_link = xyes; then
6937 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6938 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6939 { (exit 1); exit 1; }; }
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6948 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6954 char XOpenDisplay ();
6963 rm -f conftest.$ac_objext conftest$ac_exeext
6964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6965 (eval $ac_link) 2>conftest.er1
6967 grep -v '^ *+' conftest.er1 >conftest.err
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } &&
6972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); }; } &&
6978 { ac_try='test -s conftest$ac_exeext'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; }; then
6986 echo "$as_me: failed program was:" >&5
6987 sed 's/^/| /' conftest.$ac_ext >&5
6989 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6990 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6991 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 ac_check_lib_save_LIBS=$LIBS
6996 if test x$gcc_no_link = xyes; then
6997 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6998 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6999 { (exit 1); exit 1; }; }
7001 cat >conftest.$ac_ext <<_ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7008 /* Override any gcc2 internal prototype to avoid an error. */
7012 /* We use char because int might match the return type of a gcc2
7013 builtin and then its argument prototype would still apply. */
7023 rm -f conftest.$ac_objext conftest$ac_exeext
7024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7025 (eval $ac_link) 2>conftest.er1
7027 grep -v '^ *+' conftest.er1 >conftest.err
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } &&
7032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; } &&
7038 { ac_try='test -s conftest$ac_exeext'
7039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7043 (exit $ac_status); }; }; then
7044 ac_cv_lib_dnet_dnet_ntoa=yes
7046 echo "$as_me: failed program was:" >&5
7047 sed 's/^/| /' conftest.$ac_ext >&5
7049 ac_cv_lib_dnet_dnet_ntoa=no
7051 rm -f conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053 LIBS=$ac_check_lib_save_LIBS
7055 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7056 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7057 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7058 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7061 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7062 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7063 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7064 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 ac_check_lib_save_LIBS=$LIBS
7068 LIBS="-ldnet_stub $LIBS"
7069 if test x$gcc_no_link = xyes; then
7070 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7071 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7072 { (exit 1); exit 1; }; }
7074 cat >conftest.$ac_ext <<_ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7081 /* Override any gcc2 internal prototype to avoid an error. */
7085 /* We use char because int might match the return type of a gcc2
7086 builtin and then its argument prototype would still apply. */
7096 rm -f conftest.$ac_objext conftest$ac_exeext
7097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7098 (eval $ac_link) 2>conftest.er1
7100 grep -v '^ *+' conftest.er1 >conftest.err
7102 cat conftest.err >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); } &&
7105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; } &&
7111 { ac_try='test -s conftest$ac_exeext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7122 ac_cv_lib_dnet_stub_dnet_ntoa=no
7124 rm -f conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7126 LIBS=$ac_check_lib_save_LIBS
7128 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7129 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7130 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7131 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7136 rm -f conftest.err conftest.$ac_objext \
7137 conftest$ac_exeext conftest.$ac_ext
7138 LIBS="$ac_xsave_LIBS"
7140 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7141 # to get the SysV transport functions.
7142 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7144 # The nsl library prevents programs from opening the X display
7145 # on Irix 5.2, according to T.E. Dickey.
7146 # The functions gethostbyname, getservbyname, and inet_addr are
7147 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7148 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7149 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7150 if test "${ac_cv_func_gethostbyname+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 if test x$gcc_no_link = xyes; then
7154 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7155 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7156 { (exit 1); exit 1; }; }
7158 cat >conftest.$ac_ext <<_ACEOF
7161 cat confdefs.h >>conftest.$ac_ext
7162 cat >>conftest.$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7164 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7166 #define gethostbyname innocuous_gethostbyname
7168 /* System header to define __stub macros and hopefully few prototypes,
7169 which can conflict with char gethostbyname (); below.
7170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7171 <limits.h> exists even on freestanding compilers. */
7174 # include <limits.h>
7176 # include <assert.h>
7179 #undef gethostbyname
7181 /* Override any gcc2 internal prototype to avoid an error. */
7186 /* We use char because int might match the return type of a gcc2
7187 builtin and then its argument prototype would still apply. */
7188 char gethostbyname ();
7189 /* The GNU C library defines this for functions which it implements
7190 to always fail with ENOSYS. Some functions are actually named
7191 something starting with __ and the normal name is an alias. */
7192 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7195 char (*f) () = gethostbyname;
7204 return f != gethostbyname;
7209 rm -f conftest.$ac_objext conftest$ac_exeext
7210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7211 (eval $ac_link) 2>conftest.er1
7213 grep -v '^ *+' conftest.er1 >conftest.err
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } &&
7218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; } &&
7224 { ac_try='test -s conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_func_gethostbyname=yes
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7235 ac_cv_func_gethostbyname=no
7237 rm -f conftest.err conftest.$ac_objext \
7238 conftest$ac_exeext conftest.$ac_ext
7240 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7241 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7243 if test $ac_cv_func_gethostbyname = no; then
7244 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7245 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7246 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 ac_check_lib_save_LIBS=$LIBS
7251 if test x$gcc_no_link = xyes; then
7252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7254 { (exit 1); exit 1; }; }
7256 cat >conftest.$ac_ext <<_ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7263 /* Override any gcc2 internal prototype to avoid an error. */
7267 /* We use char because int might match the return type of a gcc2
7268 builtin and then its argument prototype would still apply. */
7269 char gethostbyname ();
7278 rm -f conftest.$ac_objext conftest$ac_exeext
7279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7280 (eval $ac_link) 2>conftest.er1
7282 grep -v '^ *+' conftest.er1 >conftest.err
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } &&
7287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; } &&
7293 { ac_try='test -s conftest$ac_exeext'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; }; then
7299 ac_cv_lib_nsl_gethostbyname=yes
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_cv_lib_nsl_gethostbyname=no
7306 rm -f conftest.err conftest.$ac_objext \
7307 conftest$ac_exeext conftest.$ac_ext
7308 LIBS=$ac_check_lib_save_LIBS
7310 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7311 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7312 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7313 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7316 if test $ac_cv_lib_nsl_gethostbyname = no; then
7317 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7318 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7319 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 ac_check_lib_save_LIBS=$LIBS
7324 if test x$gcc_no_link = xyes; then
7325 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7326 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7327 { (exit 1); exit 1; }; }
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7336 /* Override any gcc2 internal prototype to avoid an error. */
7340 /* We use char because int might match the return type of a gcc2
7341 builtin and then its argument prototype would still apply. */
7342 char gethostbyname ();
7351 rm -f conftest.$ac_objext conftest$ac_exeext
7352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7353 (eval $ac_link) 2>conftest.er1
7355 grep -v '^ *+' conftest.er1 >conftest.err
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } &&
7360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try='test -s conftest$ac_exeext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7372 ac_cv_lib_bsd_gethostbyname=yes
7374 echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7377 ac_cv_lib_bsd_gethostbyname=no
7379 rm -f conftest.err conftest.$ac_objext \
7380 conftest$ac_exeext conftest.$ac_ext
7381 LIBS=$ac_check_lib_save_LIBS
7383 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7384 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7385 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7392 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7393 # socket/setsockopt and other routines are undefined under SCO ODT
7394 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7395 # on later versions), says Simon Leinen: it contains gethostby*
7396 # variants that don't use the name server (or something). -lsocket
7397 # must be given before -lnsl if both are needed. We assume that
7398 # if connect needs -lnsl, so does gethostbyname.
7399 echo "$as_me:$LINENO: checking for connect" >&5
7400 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7401 if test "${ac_cv_func_connect+set}" = set; then
7402 echo $ECHO_N "(cached) $ECHO_C" >&6
7404 if test x$gcc_no_link = xyes; then
7405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7407 { (exit 1); exit 1; }; }
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7417 #define connect innocuous_connect
7419 /* System header to define __stub macros and hopefully few prototypes,
7420 which can conflict with char connect (); below.
7421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7422 <limits.h> exists even on freestanding compilers. */
7425 # include <limits.h>
7427 # include <assert.h>
7432 /* Override any gcc2 internal prototype to avoid an error. */
7437 /* We use char because int might match the return type of a gcc2
7438 builtin and then its argument prototype would still apply. */
7440 /* The GNU C library defines this for functions which it implements
7441 to always fail with ENOSYS. Some functions are actually named
7442 something starting with __ and the normal name is an alias. */
7443 #if defined (__stub_connect) || defined (__stub___connect)
7446 char (*f) () = connect;
7455 return f != connect;
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7462 (eval $ac_link) 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; } &&
7475 { ac_try='test -s conftest$ac_exeext'
7476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); }; }; then
7481 ac_cv_func_connect=yes
7483 echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7486 ac_cv_func_connect=no
7488 rm -f conftest.err conftest.$ac_objext \
7489 conftest$ac_exeext conftest.$ac_ext
7491 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7492 echo "${ECHO_T}$ac_cv_func_connect" >&6
7494 if test $ac_cv_func_connect = no; then
7495 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7496 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7497 if test "${ac_cv_lib_socket_connect+set}" = set; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_check_lib_save_LIBS=$LIBS
7501 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7502 if test x$gcc_no_link = xyes; then
7503 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7504 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7505 { (exit 1); exit 1; }; }
7507 cat >conftest.$ac_ext <<_ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7514 /* Override any gcc2 internal prototype to avoid an error. */
7518 /* We use char because int might match the return type of a gcc2
7519 builtin and then its argument prototype would still apply. */
7529 rm -f conftest.$ac_objext conftest$ac_exeext
7530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7531 (eval $ac_link) 2>conftest.er1
7533 grep -v '^ *+' conftest.er1 >conftest.err
7535 cat conftest.err >&5
7536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } &&
7538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7543 (exit $ac_status); }; } &&
7544 { ac_try='test -s conftest$ac_exeext'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7550 ac_cv_lib_socket_connect=yes
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7555 ac_cv_lib_socket_connect=no
7557 rm -f conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
7559 LIBS=$ac_check_lib_save_LIBS
7561 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7562 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7563 if test $ac_cv_lib_socket_connect = yes; then
7564 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7569 # Guillermo Gomez says -lposix is necessary on A/UX.
7570 echo "$as_me:$LINENO: checking for remove" >&5
7571 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7572 if test "${ac_cv_func_remove+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 if test x$gcc_no_link = xyes; then
7576 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7577 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7578 { (exit 1); exit 1; }; }
7580 cat >conftest.$ac_ext <<_ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7586 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7588 #define remove innocuous_remove
7590 /* System header to define __stub macros and hopefully few prototypes,
7591 which can conflict with char remove (); below.
7592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7593 <limits.h> exists even on freestanding compilers. */
7596 # include <limits.h>
7598 # include <assert.h>
7603 /* Override any gcc2 internal prototype to avoid an error. */
7608 /* We use char because int might match the return type of a gcc2
7609 builtin and then its argument prototype would still apply. */
7611 /* The GNU C library defines this for functions which it implements
7612 to always fail with ENOSYS. Some functions are actually named
7613 something starting with __ and the normal name is an alias. */
7614 #if defined (__stub_remove) || defined (__stub___remove)
7617 char (*f) () = remove;
7631 rm -f conftest.$ac_objext conftest$ac_exeext
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>conftest.er1
7635 grep -v '^ *+' conftest.er1 >conftest.err
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } &&
7640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); }; } &&
7646 { ac_try='test -s conftest$ac_exeext'
7647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); }; }; then
7652 ac_cv_func_remove=yes
7654 echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7657 ac_cv_func_remove=no
7659 rm -f conftest.err conftest.$ac_objext \
7660 conftest$ac_exeext conftest.$ac_ext
7662 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7663 echo "${ECHO_T}$ac_cv_func_remove" >&6
7665 if test $ac_cv_func_remove = no; then
7666 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7667 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7668 if test "${ac_cv_lib_posix_remove+set}" = set; then
7669 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 ac_check_lib_save_LIBS=$LIBS
7672 LIBS="-lposix $LIBS"
7673 if test x$gcc_no_link = xyes; then
7674 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7675 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7676 { (exit 1); exit 1; }; }
7678 cat >conftest.$ac_ext <<_ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7685 /* Override any gcc2 internal prototype to avoid an error. */
7689 /* We use char because int might match the return type of a gcc2
7690 builtin and then its argument prototype would still apply. */
7700 rm -f conftest.$ac_objext conftest$ac_exeext
7701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7702 (eval $ac_link) 2>conftest.er1
7704 grep -v '^ *+' conftest.er1 >conftest.err
7706 cat conftest.err >&5
7707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } &&
7709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; } &&
7715 { ac_try='test -s conftest$ac_exeext'
7716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; }; then
7721 ac_cv_lib_posix_remove=yes
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7726 ac_cv_lib_posix_remove=no
7728 rm -f conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LIBS=$ac_check_lib_save_LIBS
7732 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7733 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7734 if test $ac_cv_lib_posix_remove = yes; then
7735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7740 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7741 echo "$as_me:$LINENO: checking for shmat" >&5
7742 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7743 if test "${ac_cv_func_shmat+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 if test x$gcc_no_link = xyes; then
7747 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7748 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7749 { (exit 1); exit 1; }; }
7751 cat >conftest.$ac_ext <<_ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7759 #define shmat innocuous_shmat
7761 /* System header to define __stub macros and hopefully few prototypes,
7762 which can conflict with char shmat (); below.
7763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7764 <limits.h> exists even on freestanding compilers. */
7767 # include <limits.h>
7769 # include <assert.h>
7774 /* Override any gcc2 internal prototype to avoid an error. */
7779 /* We use char because int might match the return type of a gcc2
7780 builtin and then its argument prototype would still apply. */
7782 /* The GNU C library defines this for functions which it implements
7783 to always fail with ENOSYS. Some functions are actually named
7784 something starting with __ and the normal name is an alias. */
7785 #if defined (__stub_shmat) || defined (__stub___shmat)
7788 char (*f) () = shmat;
7802 rm -f conftest.$ac_objext conftest$ac_exeext
7803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7804 (eval $ac_link) 2>conftest.er1
7806 grep -v '^ *+' conftest.er1 >conftest.err
7808 cat conftest.err >&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } &&
7811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; } &&
7817 { ac_try='test -s conftest$ac_exeext'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 ac_cv_func_shmat=yes
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7830 rm -f conftest.err conftest.$ac_objext \
7831 conftest$ac_exeext conftest.$ac_ext
7833 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7834 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7836 if test $ac_cv_func_shmat = no; then
7837 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7838 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7839 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 ac_check_lib_save_LIBS=$LIBS
7844 if test x$gcc_no_link = xyes; then
7845 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7846 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7847 { (exit 1); exit 1; }; }
7849 cat >conftest.$ac_ext <<_ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7856 /* Override any gcc2 internal prototype to avoid an error. */
7860 /* We use char because int might match the return type of a gcc2
7861 builtin and then its argument prototype would still apply. */
7871 rm -f conftest.$ac_objext conftest$ac_exeext
7872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873 (eval $ac_link) 2>conftest.er1
7875 grep -v '^ *+' conftest.er1 >conftest.err
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest$ac_exeext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_lib_ipc_shmat=yes
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 ac_cv_lib_ipc_shmat=no
7899 rm -f conftest.err conftest.$ac_objext \
7900 conftest$ac_exeext conftest.$ac_ext
7901 LIBS=$ac_check_lib_save_LIBS
7903 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7904 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7905 if test $ac_cv_lib_ipc_shmat = yes; then
7906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7912 # Check for libraries that X11R6 Xt/Xaw programs need.
7913 ac_save_LDFLAGS=$LDFLAGS
7914 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7915 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7916 # check for ICE first), but we must link in the order -lSM -lICE or
7917 # we get undefined symbols. So assume we have SM if we have ICE.
7918 # These have to be linked with before -lX11, unlike the other
7919 # libraries we check for below, so use a different variable.
7920 # John Interrante, Karl Berry
7921 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7922 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7923 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 ac_check_lib_save_LIBS=$LIBS
7927 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7928 if test x$gcc_no_link = xyes; then
7929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7931 { (exit 1); exit 1; }; }
7933 cat >conftest.$ac_ext <<_ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7940 /* Override any gcc2 internal prototype to avoid an error. */
7944 /* We use char because int might match the return type of a gcc2
7945 builtin and then its argument prototype would still apply. */
7946 char IceConnectionNumber ();
7950 IceConnectionNumber ();
7955 rm -f conftest.$ac_objext conftest$ac_exeext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7957 (eval $ac_link) 2>conftest.er1
7959 grep -v '^ *+' conftest.er1 >conftest.err
7961 cat conftest.err >&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 ac_cv_lib_ICE_IceConnectionNumber=yes
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_cv_lib_ICE_IceConnectionNumber=no
7983 rm -f conftest.err conftest.$ac_objext \
7984 conftest$ac_exeext conftest.$ac_ext
7985 LIBS=$ac_check_lib_save_LIBS
7987 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7988 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7989 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7990 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7993 LDFLAGS=$ac_save_LDFLAGS
7998 # Determine which AWT peer libraries to build
7999 # Check whether --enable-java-awt or --disable-java-awt was given.
8000 if test "${enable_java_awt+set}" = set; then
8001 enableval="$enable_java_awt"
8005 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
8008 # The default toolkit to use is the first one specified.
8012 for peer in $peerlibs ; do
8015 if test "$no_x" = yes; then
8016 echo "*** xlib peers requested but no X library available" 1>&2
8020 if test -z "$TOOLKIT"; then
8021 TOOLKIT=gnu.awt.xlib.XToolkit
8026 if test "$no_x" = yes; then
8027 echo "*** xlib peers requested but no X library available" 1>&2
8031 if test -z "$TOOLKIT"; then
8032 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
8034 test -d jniinclude || mkdir jniinclude
8043 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
8050 if test "$use_xlib_awt" = yes; then
8060 if test "$use_gtk_awt" = yes; then
8069 # determine whether to enable the cairo GTK Graphics2D backend
8070 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8071 if test "${enable_gtk_cairo+set}" = set; then
8072 enableval="$enable_gtk_cairo"
8077 if test "x${enable_gtk_cairo}" = xyes; then
8085 if test "x${enable_gtk_cairo}" = xyes
8090 if test -z "$PKG_CONFIG"; then
8091 # Extract the first word of "pkg-config", so it can be a program name with args.
8092 set dummy pkg-config; ac_word=$2
8093 echo "$as_me:$LINENO: checking for $ac_word" >&5
8094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8095 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8110 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8117 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8121 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8123 if test -n "$PKG_CONFIG"; then
8124 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8125 echo "${ECHO_T}$PKG_CONFIG" >&6
8127 echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6
8133 if test "$PKG_CONFIG" = "no" ; then
8134 echo "*** The pkg-config script could not be found. Make sure it is"
8135 echo "*** in your path, or set the PKG_CONFIG environment variable"
8136 echo "*** to the full path to pkg-config."
8137 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8139 PKG_CONFIG_MIN_VERSION=0.9.0
8140 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8141 echo "$as_me:$LINENO: checking for cairo" >&5
8142 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8144 if $PKG_CONFIG --exists "cairo" ; then
8145 echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8149 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8150 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8151 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8152 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8153 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8155 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8156 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8157 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8158 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8159 echo "${ECHO_T}$CAIRO_LIBS" >&6
8163 ## If we have a custom action on failure, don't print errors, but
8164 ## do set a variable so people can do so.
8165 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8166 echo $CAIRO_PKG_ERRORS
8172 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8173 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8177 if test $succeeded = yes; then
8180 { { 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
8181 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;}
8182 { (exit 1); exit 1; }; }
8188 if test -z "$PKG_CONFIG"; then
8189 # Extract the first word of "pkg-config", so it can be a program name with args.
8190 set dummy pkg-config; ac_word=$2
8191 echo "$as_me:$LINENO: checking for $ac_word" >&5
8192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8193 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8194 echo $ECHO_N "(cached) $ECHO_C" >&6
8198 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8219 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8221 if test -n "$PKG_CONFIG"; then
8222 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8223 echo "${ECHO_T}$PKG_CONFIG" >&6
8225 echo "$as_me:$LINENO: result: no" >&5
8226 echo "${ECHO_T}no" >&6
8231 if test "$PKG_CONFIG" = "no" ; then
8232 echo "*** The pkg-config script could not be found. Make sure it is"
8233 echo "*** in your path, or set the PKG_CONFIG environment variable"
8234 echo "*** to the full path to pkg-config."
8235 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8237 PKG_CONFIG_MIN_VERSION=0.9.0
8238 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8239 echo "$as_me:$LINENO: checking for pangoft2" >&5
8240 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8242 if $PKG_CONFIG --exists "pangoft2" ; then
8243 echo "$as_me:$LINENO: result: yes" >&5
8244 echo "${ECHO_T}yes" >&6
8247 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8248 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8249 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8250 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8251 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8253 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8254 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8255 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8256 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8257 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8261 ## If we have a custom action on failure, don't print errors, but
8262 ## do set a variable so people can do so.
8263 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8264 echo $PANGOFT2_PKG_ERRORS
8270 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8271 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8275 if test $succeeded = yes; then
8278 { { 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
8279 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;}
8280 { (exit 1); exit 1; }; }
8289 # FIXME: this should be _libs on some hosts.
8292 # Allow the GC to be disabled. Can be useful when debugging.
8293 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8294 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8295 # Check whether --enable-java-gc or --disable-java-gc was given.
8296 if test "${enable_java_gc+set}" = set; then
8297 enableval="$enable_java_gc"
8310 echo "$as_me:$LINENO: result: boehm" >&5
8311 echo "${ECHO_T}boehm" >&6
8312 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8313 JC1GCSPEC='-fuse-boehm-gc'
8314 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8315 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8318 # The POSIX thread support needs to know this.
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_BOEHM_GC 1
8326 echo "$as_me:$LINENO: result: none" >&5
8327 echo "${ECHO_T}none" >&6
8331 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8332 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8333 { (exit 1); exit 1; }; }
8342 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8346 if test "$GC" = boehm; then
8348 USING_BOEHMGC_FALSE='#'
8350 USING_BOEHMGC_TRUE='#'
8351 USING_BOEHMGC_FALSE=
8356 if test "$GC" = no; then
8358 USING_NOGC_FALSE='#'
8366 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8367 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8368 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8369 echo "$as_me:$LINENO: result: $THREADS" >&5
8370 echo "${ECHO_T}$THREADS" >&6
8376 posix | posix95 | pthreads)
8381 cat >>confdefs.h <<\_ACEOF
8382 #define LINUX_THREADS 1
8390 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8391 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8392 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8393 { (exit 1); exit 1; }; }
8396 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8397 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8398 { (exit 1); exit 1; }; }
8413 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8416 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8417 # merely adds pthread_* functions) but it does have a -pthread switch
8418 # which is required at link-time to select -lc_r *instead* of -lc.
8419 THREADLDFLAGS=-pthread
8420 # Don't set THREADSPEC here as might be expected since -pthread is
8421 # not processed when found within a spec file, it must come from
8422 # the command line. For now, the user must provide the -pthread
8423 # switch to link code compiled with gcj. In future, consider adding
8424 # support for weak references to pthread_* functions ala gthr.h API.
8425 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8428 # FreeBSD 5 implements a model much closer to other modern UNIX
8429 # which support threads. However, it still does not support
8431 THREADLDFLAGS=-pthread
8435 THREADCXXFLAGS=-pthread
8436 # boehm-gc needs some functions from librt, so link that too.
8437 THREADLIBS='-lpthread -lrt'
8438 THREADSPEC='-lpthread -lrt'
8441 THREADLIBS=-lpthread
8442 THREADSPEC=-lpthread
8445 THREADH=posix-threads.h
8446 # MIT pthreads doesn't seem to have the mutexattr functions.
8447 # But for now we don't check for it. We just assume you aren't
8448 # using MIT pthreads.
8450 cat >>confdefs.h <<\_ACEOF
8451 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8455 # If we're using the Boehm GC, then we happen to know that it
8456 # defines _REENTRANT, so we don't bother. Eww.
8457 if test "$GC" != boehm; then
8459 cat >>confdefs.h <<\_ACEOF
8460 #define _REENTRANT 1
8465 cat >>confdefs.h <<\_ACEOF
8466 #define _POSIX_PTHREAD_SEMANTICS 1
8472 THREADH=win32-threads.h
8476 THREADH=no-threads.h
8479 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8489 if test "$THREADS" = posix; then
8490 USING_POSIX_THREADS_TRUE=
8491 USING_POSIX_THREADS_FALSE='#'
8493 USING_POSIX_THREADS_TRUE='#'
8494 USING_POSIX_THREADS_FALSE=
8499 if test "$THREADS" = win32; then
8500 USING_WIN32_THREADS_TRUE=
8501 USING_WIN32_THREADS_FALSE='#'
8503 USING_WIN32_THREADS_TRUE='#'
8504 USING_WIN32_THREADS_FALSE=
8509 if test "$THREADS" = none; then
8510 USING_NO_THREADS_TRUE=
8511 USING_NO_THREADS_FALSE='#'
8513 USING_NO_THREADS_TRUE='#'
8514 USING_NO_THREADS_FALSE=
8518 if test -d sysdep; then true; else mkdir sysdep; fi
8519 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8521 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8525 # Hash synchronization is only useful with posix threads right now.
8526 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8527 HASH_SYNC_SPEC=-fhash-synchronization
8529 cat >>confdefs.h <<\_ACEOF
8530 #define JV_HASH_SYNCHRONIZATION 1
8538 if test "$GCC" = yes; then
8547 # We're in the tree with gcc, and need to include some of its headers.
8548 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8550 if test "x${with_newlib}" = "xyes"; then
8551 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8552 # may not work correctly, because the compiler may not be able to
8555 # We assume newlib. This lets us hard-code the functions we know
8558 cat >>confdefs.h <<\_ACEOF
8559 #define HAVE_MEMMOVE 1
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_MEMCPY 1
8568 cat >>confdefs.h <<\_ACEOF
8569 #define HAVE_STRERROR 1
8573 cat >>confdefs.h <<\_ACEOF
8578 cat >>confdefs.h <<\_ACEOF
8579 #define HAVE_GMTIME_R 1
8583 cat >>confdefs.h <<\_ACEOF
8584 #define HAVE_LOCALTIME_R 1
8588 cat >>confdefs.h <<\_ACEOF
8589 #define HAVE_USLEEP_DECL 1
8592 # This is only for POSIX threads.
8594 cat >>confdefs.h <<\_ACEOF
8595 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8598 # We also assume we are using gcc, which provides alloca.
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_ALLOCA 1
8604 # Assume we do not have getuid and friends.
8606 cat >>confdefs.h <<\_ACEOF
8644 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8645 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8646 access stat mkdir rename rmdir unlink realpath utime chmod \
8647 nl_langinfo setlocale \
8648 inet_pton uname inet_ntoa \
8649 fork execvp pipe sigaction ftruncate
8651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8652 echo "$as_me:$LINENO: checking for $ac_func" >&5
8653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8654 if eval "test \"\${$as_ac_var+set}\" = set"; then
8655 echo $ECHO_N "(cached) $ECHO_C" >&6
8657 if test x$gcc_no_link = xyes; then
8658 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8659 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8660 { (exit 1); exit 1; }; }
8662 cat >conftest.$ac_ext <<_ACEOF
8665 cat confdefs.h >>conftest.$ac_ext
8666 cat >>conftest.$ac_ext <<_ACEOF
8667 /* end confdefs.h. */
8668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8670 #define $ac_func innocuous_$ac_func
8672 /* System header to define __stub macros and hopefully few prototypes,
8673 which can conflict with char $ac_func (); below.
8674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8675 <limits.h> exists even on freestanding compilers. */
8678 # include <limits.h>
8680 # include <assert.h>
8685 /* Override any gcc2 internal prototype to avoid an error. */
8690 /* We use char because int might match the return type of a gcc2
8691 builtin and then its argument prototype would still apply. */
8693 /* The GNU C library defines this for functions which it implements
8694 to always fail with ENOSYS. Some functions are actually named
8695 something starting with __ and the normal name is an alias. */
8696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8699 char (*f) () = $ac_func;
8708 return f != $ac_func;
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>conftest.er1
8717 grep -v '^ *+' conftest.er1 >conftest.err
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; } &&
8728 { ac_try='test -s conftest$ac_exeext'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; }; then
8734 eval "$as_ac_var=yes"
8736 echo "$as_me: failed program was:" >&5
8737 sed 's/^/| /' conftest.$ac_ext >&5
8739 eval "$as_ac_var=no"
8741 rm -f conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8746 if test `eval echo '${'$as_ac_var'}'` = yes; then
8747 cat >>confdefs.h <<_ACEOF
8748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8756 for ac_func in inet_aton inet_addr
8758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8759 echo "$as_me:$LINENO: checking for $ac_func" >&5
8760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8761 if eval "test \"\${$as_ac_var+set}\" = set"; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 if test x$gcc_no_link = xyes; then
8765 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8766 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8767 { (exit 1); exit 1; }; }
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8777 #define $ac_func innocuous_$ac_func
8779 /* System header to define __stub macros and hopefully few prototypes,
8780 which can conflict with char $ac_func (); below.
8781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8782 <limits.h> exists even on freestanding compilers. */
8785 # include <limits.h>
8787 # include <assert.h>
8792 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8800 /* The GNU C library defines this for functions which it implements
8801 to always fail with ENOSYS. Some functions are actually named
8802 something starting with __ and the normal name is an alias. */
8803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8806 char (*f) () = $ac_func;
8815 return f != $ac_func;
8820 rm -f conftest.$ac_objext conftest$ac_exeext
8821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8822 (eval $ac_link) 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } &&
8829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; } &&
8835 { ac_try='test -s conftest$ac_exeext'
8836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 eval "$as_ac_var=yes"
8843 echo "$as_me: failed program was:" >&5
8844 sed 's/^/| /' conftest.$ac_ext >&5
8846 eval "$as_ac_var=no"
8848 rm -f conftest.err conftest.$ac_objext \
8849 conftest$ac_exeext conftest.$ac_ext
8851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8853 if test `eval echo '${'$as_ac_var'}'` = yes; then
8854 cat >>confdefs.h <<_ACEOF
8855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8861 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8863 if test "${ac_cv_header_stdc+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 cat >conftest.$ac_ext <<_ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h. */
8885 rm -f conftest.$ac_objext
8886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8887 (eval $ac_compile) 2>conftest.er1
8889 grep -v '^ *+' conftest.er1 >conftest.err
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } &&
8894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; } &&
8900 { ac_try='test -s conftest.$ac_objext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_header_stdc=yes
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_cv_header_stdc=no
8913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8915 if test $ac_cv_header_stdc = yes; then
8916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8917 cat >conftest.$ac_ext <<_ACEOF
8920 cat confdefs.h >>conftest.$ac_ext
8921 cat >>conftest.$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8927 $EGREP "memchr" >/dev/null 2>&1; then
8930 ac_cv_header_stdc=no
8936 if test $ac_cv_header_stdc = yes; then
8937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8938 cat >conftest.$ac_ext <<_ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h. */
8947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8948 $EGREP "free" >/dev/null 2>&1; then
8951 ac_cv_header_stdc=no
8957 if test $ac_cv_header_stdc = yes; then
8958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8959 if test "$cross_compiling" = yes; then
8962 cat >conftest.$ac_ext <<_ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8969 #if ((' ' & 0x0FF) == 0x020)
8970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8973 # define ISLOWER(c) \
8974 (('a' <= (c) && (c) <= 'i') \
8975 || ('j' <= (c) && (c) <= 'r') \
8976 || ('s' <= (c) && (c) <= 'z'))
8977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8985 for (i = 0; i < 256; i++)
8986 if (XOR (islower (i), ISLOWER (i))
8987 || toupper (i) != TOUPPER (i))
8992 rm -f conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; }; then
9005 echo "$as_me: program exited with status $ac_status" >&5
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9010 ac_cv_header_stdc=no
9012 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9016 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9017 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9018 if test $ac_cv_header_stdc = yes; then
9020 cat >>confdefs.h <<\_ACEOF
9021 #define STDC_HEADERS 1
9026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9037 inttypes.h stdint.h unistd.h
9039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9040 echo "$as_me:$LINENO: checking for $ac_header" >&5
9041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 cat >conftest.$ac_ext <<_ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h. */
9051 $ac_includes_default
9053 #include <$ac_header>
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest.$ac_objext'
9071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); }; }; then
9076 eval "$as_ac_Header=yes"
9078 echo "$as_me: failed program was:" >&5
9079 sed 's/^/| /' conftest.$ac_ext >&5
9081 eval "$as_ac_Header=no"
9083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9088 cat >>confdefs.h <<_ACEOF
9089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9100 for ac_header in execinfo.h unistd.h dlfcn.h
9102 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9104 echo "$as_me:$LINENO: checking for $ac_header" >&5
9105 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9106 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9112 # Is the header compilable?
9113 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9115 cat >conftest.$ac_ext <<_ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9121 $ac_includes_default
9122 #include <$ac_header>
9124 rm -f conftest.$ac_objext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9126 (eval $ac_compile) 2>conftest.er1
9128 grep -v '^ *+' conftest.er1 >conftest.err
9130 cat conftest.err >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); } &&
9133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try='test -s conftest.$ac_objext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 ac_header_compiler=yes
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_header_compiler=no
9152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9153 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9154 echo "${ECHO_T}$ac_header_compiler" >&6
9156 # Is the header present?
9157 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9158 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <$ac_header>
9167 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9170 grep -v '^ *+' conftest.er1 >conftest.err
9172 cat conftest.err >&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } >/dev/null; then
9175 if test -s conftest.err; then
9176 ac_cpp_err=$ac_c_preproc_warn_flag
9177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9184 if test -z "$ac_cpp_err"; then
9185 ac_header_preproc=yes
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 ac_header_preproc=no
9192 rm -f conftest.err conftest.$ac_ext
9193 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9194 echo "${ECHO_T}$ac_header_preproc" >&6
9196 # So? What about this header?
9197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9203 ac_header_preproc=yes
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9220 ## ---------------------------------- ##
9221 ## Report this to the libjava lists. ##
9222 ## ---------------------------------- ##
9225 sed "s/^/$as_me: WARNING: /" >&2
9228 echo "$as_me:$LINENO: checking for $ac_header" >&5
9229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 eval "$as_ac_Header=\$ac_header_preproc"
9235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9236 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9240 cat >>confdefs.h <<_ACEOF
9241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9248 echo "$as_me:$LINENO: checking for backtrace" >&5
9249 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9250 if test "${ac_cv_func_backtrace+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 if test x$gcc_no_link = xyes; then
9254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9256 { (exit 1); exit 1; }; }
9258 cat >conftest.$ac_ext <<_ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9265 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9266 #define backtrace innocuous_backtrace
9268 /* System header to define __stub macros and hopefully few prototypes,
9269 which can conflict with char backtrace (); below.
9270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9271 <limits.h> exists even on freestanding compilers. */
9274 # include <limits.h>
9276 # include <assert.h>
9281 /* Override any gcc2 internal prototype to avoid an error. */
9286 /* We use char because int might match the return type of a gcc2
9287 builtin and then its argument prototype would still apply. */
9289 /* The GNU C library defines this for functions which it implements
9290 to always fail with ENOSYS. Some functions are actually named
9291 something starting with __ and the normal name is an alias. */
9292 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9295 char (*f) () = backtrace;
9304 return f != backtrace;
9309 rm -f conftest.$ac_objext conftest$ac_exeext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>conftest.er1
9313 grep -v '^ *+' conftest.er1 >conftest.err
9315 cat conftest.err >&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } &&
9318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest$ac_exeext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_func_backtrace=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_cv_func_backtrace=no
9337 rm -f conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext conftest.$ac_ext
9340 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9341 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9342 if test $ac_cv_func_backtrace = yes; then
9346 # Has broken backtrace()
9349 # Has broken backtrace(), but we supply our own.
9350 if test -d sysdep; then true; else mkdir -p sysdep; fi
9351 supply_backtrace=yes
9353 cat >>confdefs.h <<\_ACEOF
9354 #define HAVE_BACKTRACE 1
9360 cat >>confdefs.h <<\_ACEOF
9361 #define HAVE_BACKTRACE 1
9371 # Has backtrace() defined in libgcj itself
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_BACKTRACE 1
9383 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9384 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9385 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9386 echo $ECHO_N "(cached) $ECHO_C" >&6
9388 ac_check_lib_save_LIBS=$LIBS
9390 if test x$gcc_no_link = xyes; then
9391 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9392 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9393 { (exit 1); exit 1; }; }
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9402 /* Override any gcc2 internal prototype to avoid an error. */
9406 /* We use char because int might match the return type of a gcc2
9407 builtin and then its argument prototype would still apply. */
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9419 (eval $ac_link) 2>conftest.er1
9421 grep -v '^ *+' conftest.er1 >conftest.err
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } &&
9426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); }; } &&
9432 { ac_try='test -s conftest$ac_exeext'
9433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438 ac_cv_lib_dl_dladdr=yes
9440 echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9443 ac_cv_lib_dl_dladdr=no
9445 rm -f conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9450 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9451 if test $ac_cv_lib_dl_dladdr = yes; then
9453 if test "x${disable_dladdr}" = "xyes"; then
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_DLADDR 1
9466 if test x"$build" = x"$host"; then
9467 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9468 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9469 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9470 echo $ECHO_N "(cached) $ECHO_C" >&6
9472 test "$cross_compiling" = yes &&
9473 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9474 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9475 { (exit 1); exit 1; }; }
9476 if test -r "/proc/self/exe"; then
9477 ac_cv_file__proc_self_exe=yes
9479 ac_cv_file__proc_self_exe=no
9482 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9483 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9484 if test $ac_cv_file__proc_self_exe = yes; then
9486 cat >>confdefs.h <<_ACEOF
9487 #define HAVE__PROC_SELF_EXE 1
9492 cat >>confdefs.h <<\_ACEOF
9493 #define HAVE_PROC_SELF_EXE 1
9502 cat >>confdefs.h <<\_ACEOF
9503 #define HAVE_PROC_SELF_EXE 1
9511 if test "X$prefix" = "XNONE"; then
9512 acl_final_prefix="$ac_default_prefix"
9514 acl_final_prefix="$prefix"
9516 if test "X$exec_prefix" = "XNONE"; then
9517 acl_final_exec_prefix='${prefix}'
9519 acl_final_exec_prefix="$exec_prefix"
9521 acl_save_prefix="$prefix"
9522 prefix="$acl_final_prefix"
9523 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9524 prefix="$acl_save_prefix"
9527 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9528 if test "${with_gnu_ld+set}" = set; then
9529 withval="$with_gnu_ld"
9530 test "$withval" = no || with_gnu_ld=yes
9534 # Prepare PATH_SEPARATOR.
9535 # The user is always right.
9536 if test "${PATH_SEPARATOR+set}" != set; then
9537 echo "#! /bin/sh" >conf$$.sh
9538 echo "exit 0" >>conf$$.sh
9540 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9548 if test "$GCC" = yes; then
9549 # Check if gcc -print-prog-name=ld gives a path.
9550 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9551 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9554 # gcc leaves a trailing carriage return which upsets mingw
9555 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9557 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9560 # Accept absolute paths.
9561 [\\/]* | [A-Za-z]:[\\/]*)
9562 re_direlt='/[^/][^/]*/\.\./'
9563 # Canonicalize the path of ld
9564 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9565 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9566 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9568 test -z "$LD" && LD="$ac_prog"
9571 # If it fails, then pretend we aren't using GCC.
9575 # If it is relative, then search for the first ld in PATH.
9579 elif test "$with_gnu_ld" = yes; then
9580 echo "$as_me:$LINENO: checking for GNU ld" >&5
9581 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9583 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9584 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9586 if test "${acl_cv_path_LD+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 if test -z "$LD"; then
9590 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9591 for ac_dir in $PATH; do
9592 test -z "$ac_dir" && ac_dir=.
9593 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9594 acl_cv_path_LD="$ac_dir/$ac_prog"
9595 # Check to see if the program is GNU ld. I'd rather use --version,
9596 # but apparently some GNU ld's only accept -v.
9597 # Break only if it was the GNU/non-GNU ld that we prefer.
9598 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9599 test "$with_gnu_ld" != no && break
9601 test "$with_gnu_ld" != yes && break
9607 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9611 LD="$acl_cv_path_LD"
9612 if test -n "$LD"; then
9613 echo "$as_me:$LINENO: result: $LD" >&5
9614 echo "${ECHO_T}$LD" >&6
9616 echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6
9619 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9620 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9621 { (exit 1); exit 1; }; }
9622 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9623 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9624 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9625 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9628 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9629 acl_cv_prog_gnu_ld=yes
9631 acl_cv_prog_gnu_ld=no
9634 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9635 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9636 with_gnu_ld=$acl_cv_prog_gnu_ld
9640 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9641 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9642 if test "${acl_cv_rpath+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9647 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9653 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9654 echo "${ECHO_T}$acl_cv_rpath" >&6
9656 libext="$acl_cv_libext"
9657 shlibext="$acl_cv_shlibext"
9658 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9659 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9660 hardcode_direct="$acl_cv_hardcode_direct"
9661 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9662 # Check whether --enable-rpath or --disable-rpath was given.
9663 if test "${enable_rpath+set}" = set; then
9664 enableval="$enable_rpath"
9678 acl_save_prefix="$prefix"
9679 prefix="$acl_final_prefix"
9680 acl_save_exec_prefix="$exec_prefix"
9681 exec_prefix="$acl_final_exec_prefix"
9683 eval additional_includedir=\"$includedir\"
9684 eval additional_libdir=\"$libdir\"
9686 exec_prefix="$acl_save_exec_prefix"
9687 prefix="$acl_save_prefix"
9690 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9691 if test "${with_libiconv_prefix+set}" = set; then
9692 withval="$with_libiconv_prefix"
9694 if test "X$withval" = "Xno"; then
9697 if test "X$withval" = "X"; then
9699 acl_save_prefix="$prefix"
9700 prefix="$acl_final_prefix"
9701 acl_save_exec_prefix="$exec_prefix"
9702 exec_prefix="$acl_final_exec_prefix"
9704 eval additional_includedir=\"$includedir\"
9705 eval additional_libdir=\"$libdir\"
9707 exec_prefix="$acl_save_exec_prefix"
9708 prefix="$acl_save_prefix"
9711 additional_includedir="$withval/include"
9712 additional_libdir="$withval/lib"
9722 names_already_handled=
9723 names_next_round='iconv '
9724 while test -n "$names_next_round"; do
9725 names_this_round="$names_next_round"
9727 for name in $names_this_round; do
9729 for n in $names_already_handled; do
9730 if test "$n" = "$name"; then
9735 if test -z "$already_handled"; then
9736 names_already_handled="$names_already_handled $name"
9737 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9738 eval value=\"\$HAVE_LIB$uppername\"
9739 if test -n "$value"; then
9740 if test "$value" = yes; then
9741 eval value=\"\$LIB$uppername\"
9742 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9743 eval value=\"\$LTLIB$uppername\"
9744 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9753 if test $use_additional = yes; then
9754 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9755 found_dir="$additional_libdir"
9756 found_so="$additional_libdir/lib$name.$shlibext"
9757 if test -f "$additional_libdir/lib$name.la"; then
9758 found_la="$additional_libdir/lib$name.la"
9761 if test -f "$additional_libdir/lib$name.$libext"; then
9762 found_dir="$additional_libdir"
9763 found_a="$additional_libdir/lib$name.$libext"
9764 if test -f "$additional_libdir/lib$name.la"; then
9765 found_la="$additional_libdir/lib$name.la"
9770 if test "X$found_dir" = "X"; then
9771 for x in $LDFLAGS $LTLIBICONV; do
9773 acl_save_prefix="$prefix"
9774 prefix="$acl_final_prefix"
9775 acl_save_exec_prefix="$exec_prefix"
9776 exec_prefix="$acl_final_exec_prefix"
9778 exec_prefix="$acl_save_exec_prefix"
9779 prefix="$acl_save_prefix"
9783 dir=`echo "X$x" | sed -e 's/^X-L//'`
9784 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9786 found_so="$dir/lib$name.$shlibext"
9787 if test -f "$dir/lib$name.la"; then
9788 found_la="$dir/lib$name.la"
9791 if test -f "$dir/lib$name.$libext"; then
9793 found_a="$dir/lib$name.$libext"
9794 if test -f "$dir/lib$name.la"; then
9795 found_la="$dir/lib$name.la"
9801 if test "X$found_dir" != "X"; then
9806 if test "X$found_dir" != "X"; then
9807 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9808 if test "X$found_so" != "X"; then
9809 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9813 for x in $ltrpathdirs; do
9814 if test "X$x" = "X$found_dir"; then
9819 if test -z "$haveit"; then
9820 ltrpathdirs="$ltrpathdirs $found_dir"
9822 if test "$hardcode_direct" = yes; then
9823 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9825 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9826 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9828 for x in $rpathdirs; do
9829 if test "X$x" = "X$found_dir"; then
9834 if test -z "$haveit"; then
9835 rpathdirs="$rpathdirs $found_dir"
9839 for x in $LDFLAGS $LIBICONV; do
9841 acl_save_prefix="$prefix"
9842 prefix="$acl_final_prefix"
9843 acl_save_exec_prefix="$exec_prefix"
9844 exec_prefix="$acl_final_exec_prefix"
9846 exec_prefix="$acl_save_exec_prefix"
9847 prefix="$acl_save_prefix"
9849 if test "X$x" = "X-L$found_dir"; then
9854 if test -z "$haveit"; then
9855 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9857 if test "$hardcode_minus_L" != no; then
9858 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9860 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9866 if test "X$found_a" != "X"; then
9867 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9869 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9872 additional_includedir=
9873 case "$found_dir" in
9875 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9876 additional_includedir="$basedir/include"
9879 if test "X$additional_includedir" != "X"; then
9880 if test "X$additional_includedir" != "X/usr/include"; then
9882 if test "X$additional_includedir" = "X/usr/local/include"; then
9883 if test -n "$GCC"; then
9885 linux*) haveit=yes;;
9889 if test -z "$haveit"; then
9890 for x in $CPPFLAGS $INCICONV; do
9892 acl_save_prefix="$prefix"
9893 prefix="$acl_final_prefix"
9894 acl_save_exec_prefix="$exec_prefix"
9895 exec_prefix="$acl_final_exec_prefix"
9897 exec_prefix="$acl_save_exec_prefix"
9898 prefix="$acl_save_prefix"
9900 if test "X$x" = "X-I$additional_includedir"; then
9905 if test -z "$haveit"; then
9906 if test -d "$additional_includedir"; then
9907 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9913 if test -n "$found_la"; then
9914 save_libdir="$libdir"
9916 */* | *\\*) . "$found_la" ;;
9917 *) . "./$found_la" ;;
9919 libdir="$save_libdir"
9920 for dep in $dependency_libs; do
9923 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9924 if test "X$additional_libdir" != "X/usr/lib"; then
9926 if test "X$additional_libdir" = "X/usr/local/lib"; then
9927 if test -n "$GCC"; then
9929 linux*) haveit=yes;;
9933 if test -z "$haveit"; then
9935 for x in $LDFLAGS $LIBICONV; do
9937 acl_save_prefix="$prefix"
9938 prefix="$acl_final_prefix"
9939 acl_save_exec_prefix="$exec_prefix"
9940 exec_prefix="$acl_final_exec_prefix"
9942 exec_prefix="$acl_save_exec_prefix"
9943 prefix="$acl_save_prefix"
9945 if test "X$x" = "X-L$additional_libdir"; then
9950 if test -z "$haveit"; then
9951 if test -d "$additional_libdir"; then
9952 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9956 for x in $LDFLAGS $LTLIBICONV; do
9958 acl_save_prefix="$prefix"
9959 prefix="$acl_final_prefix"
9960 acl_save_exec_prefix="$exec_prefix"
9961 exec_prefix="$acl_final_exec_prefix"
9963 exec_prefix="$acl_save_exec_prefix"
9964 prefix="$acl_save_prefix"
9966 if test "X$x" = "X-L$additional_libdir"; then
9971 if test -z "$haveit"; then
9972 if test -d "$additional_libdir"; then
9973 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9980 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9981 if test "$enable_rpath" != no; then
9983 for x in $rpathdirs; do
9984 if test "X$x" = "X$dir"; then
9989 if test -z "$haveit"; then
9990 rpathdirs="$rpathdirs $dir"
9993 for x in $ltrpathdirs; do
9994 if test "X$x" = "X$dir"; then
9999 if test -z "$haveit"; then
10000 ltrpathdirs="$ltrpathdirs $dir"
10005 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10008 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10011 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10012 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10018 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10019 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10025 if test "X$rpathdirs" != "X"; then
10026 if test -n "$hardcode_libdir_separator"; then
10028 for found_dir in $rpathdirs; do
10029 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10031 acl_save_libdir="$libdir"
10033 eval flag=\"$hardcode_libdir_flag_spec\"
10034 libdir="$acl_save_libdir"
10035 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10037 for found_dir in $rpathdirs; do
10038 acl_save_libdir="$libdir"
10039 libdir="$found_dir"
10040 eval flag=\"$hardcode_libdir_flag_spec\"
10041 libdir="$acl_save_libdir"
10042 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10046 if test "X$ltrpathdirs" != "X"; then
10047 for found_dir in $ltrpathdirs; do
10048 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10058 am_save_CPPFLAGS="$CPPFLAGS"
10060 for element in $INCICONV; do
10062 for x in $CPPFLAGS; do
10064 acl_save_prefix="$prefix"
10065 prefix="$acl_final_prefix"
10066 acl_save_exec_prefix="$exec_prefix"
10067 exec_prefix="$acl_final_exec_prefix"
10069 exec_prefix="$acl_save_exec_prefix"
10070 prefix="$acl_save_prefix"
10072 if test "X$x" = "X$element"; then
10077 if test -z "$haveit"; then
10078 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10083 echo "$as_me:$LINENO: checking for iconv" >&5
10084 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10085 if test "${am_cv_func_iconv+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 am_cv_func_iconv="no, consider installing GNU libiconv"
10091 if test x$gcc_no_link = xyes; then
10092 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10093 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10094 { (exit 1); exit 1; }; }
10096 cat >conftest.$ac_ext <<_ACEOF
10099 cat confdefs.h >>conftest.$ac_ext
10100 cat >>conftest.$ac_ext <<_ACEOF
10101 /* end confdefs.h. */
10102 #include <stdlib.h>
10107 iconv_t cd = iconv_open("","");
10108 iconv(cd,NULL,NULL,NULL,NULL);
10114 rm -f conftest.$ac_objext conftest$ac_exeext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10116 (eval $ac_link) 2>conftest.er1
10118 grep -v '^ *+' conftest.er1 >conftest.err
10120 cat conftest.err >&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; } &&
10129 { ac_try='test -s conftest$ac_exeext'
10130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10131 (eval $ac_try) 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 am_cv_func_iconv=yes
10137 echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10141 rm -f conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 if test "$am_cv_func_iconv" != yes; then
10144 am_save_LIBS="$LIBS"
10145 LIBS="$LIBS $LIBICONV"
10146 if test x$gcc_no_link = xyes; then
10147 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10148 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10149 { (exit 1); exit 1; }; }
10151 cat >conftest.$ac_ext <<_ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h. */
10157 #include <stdlib.h>
10162 iconv_t cd = iconv_open("","");
10163 iconv(cd,NULL,NULL,NULL,NULL);
10169 rm -f conftest.$ac_objext conftest$ac_exeext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10171 (eval $ac_link) 2>conftest.er1
10173 grep -v '^ *+' conftest.er1 >conftest.err
10175 cat conftest.err >&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; } &&
10184 { ac_try='test -s conftest$ac_exeext'
10185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10186 (eval $ac_try) 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 am_cv_lib_iconv=yes
10191 am_cv_func_iconv=yes
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10197 rm -f conftest.err conftest.$ac_objext \
10198 conftest$ac_exeext conftest.$ac_ext
10199 LIBS="$am_save_LIBS"
10203 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10204 echo "${ECHO_T}$am_cv_func_iconv" >&6
10205 if test "$am_cv_func_iconv" = yes; then
10207 cat >>confdefs.h <<\_ACEOF
10208 #define HAVE_ICONV 1
10212 if test "$am_cv_lib_iconv" = yes; then
10213 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10214 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10215 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10216 echo "${ECHO_T}$LIBICONV" >&6
10218 CPPFLAGS="$am_save_CPPFLAGS"
10225 if test "$am_cv_func_iconv" = yes; then
10226 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10227 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10228 if test "${am_cv_proto_iconv+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10239 #include <stdlib.h>
10245 #if defined(__STDC__) || defined(__cplusplus)
10246 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10259 rm -f conftest.$ac_objext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10261 (eval $ac_compile) 2>conftest.er1
10263 grep -v '^ *+' conftest.er1 >conftest.err
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10270 (eval $ac_try) 2>&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); }; } &&
10274 { ac_try='test -s conftest.$ac_objext'
10275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10276 (eval $ac_try) 2>&5
10278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279 (exit $ac_status); }; }; then
10280 am_cv_proto_iconv_arg1=""
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 am_cv_proto_iconv_arg1="const"
10287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10288 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);"
10291 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10292 echo "$as_me:$LINENO: result: ${ac_t:-
10293 }$am_cv_proto_iconv" >&5
10294 echo "${ECHO_T}${ac_t:-
10295 }$am_cv_proto_iconv" >&6
10297 cat >>confdefs.h <<_ACEOF
10298 #define ICONV_CONST $am_cv_proto_iconv_arg1
10304 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10305 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10306 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10307 echo $ECHO_N "(cached) $ECHO_C" >&6
10309 if test x$gcc_no_link = xyes; then
10310 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10311 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10312 { (exit 1); exit 1; }; }
10314 cat >conftest.$ac_ext <<_ACEOF
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 #include <locale.h>
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10331 (eval $ac_link) 2>conftest.er1
10333 grep -v '^ *+' conftest.er1 >conftest.err
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } &&
10338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; } &&
10344 { ac_try='test -s conftest$ac_exeext'
10345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10346 (eval $ac_try) 2>&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }; }; then
10350 am_cv_val_LC_MESSAGES=yes
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10355 am_cv_val_LC_MESSAGES=no
10357 rm -f conftest.err conftest.$ac_objext \
10358 conftest$ac_exeext conftest.$ac_ext
10360 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10361 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10362 if test $am_cv_val_LC_MESSAGES = yes; then
10364 cat >>confdefs.h <<\_ACEOF
10365 #define HAVE_LC_MESSAGES 1
10370 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10371 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10372 if test "${ac_cv_struct_tm+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 cat >conftest.$ac_ext <<_ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381 #include <sys/types.h>
10387 struct tm *tp; tp->tm_sec;
10392 rm -f conftest.$ac_objext
10393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10394 (eval $ac_compile) 2>conftest.er1
10396 grep -v '^ *+' conftest.er1 >conftest.err
10398 cat conftest.err >&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } &&
10401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10403 (eval $ac_try) 2>&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); }; } &&
10407 { ac_try='test -s conftest.$ac_objext'
10408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10409 (eval $ac_try) 2>&5
10411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10412 (exit $ac_status); }; }; then
10413 ac_cv_struct_tm=time.h
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_cv_struct_tm=sys/time.h
10420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10422 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10423 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10424 if test $ac_cv_struct_tm = sys/time.h; then
10426 cat >>confdefs.h <<\_ACEOF
10427 #define TM_IN_SYS_TIME 1
10432 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10433 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10434 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 cat >conftest.$ac_ext <<_ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10443 #include <sys/types.h>
10444 #include <$ac_cv_struct_tm>
10450 static struct tm ac_aggr;
10451 if (ac_aggr.tm_zone)
10457 rm -f conftest.$ac_objext
10458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10459 (eval $ac_compile) 2>conftest.er1
10461 grep -v '^ *+' conftest.er1 >conftest.err
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } &&
10466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; } &&
10472 { ac_try='test -s conftest.$ac_objext'
10473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10474 (eval $ac_try) 2>&5
10476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477 (exit $ac_status); }; }; then
10478 ac_cv_member_struct_tm_tm_zone=yes
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10483 cat >conftest.$ac_ext <<_ACEOF
10486 cat confdefs.h >>conftest.$ac_ext
10487 cat >>conftest.$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10489 #include <sys/types.h>
10490 #include <$ac_cv_struct_tm>
10496 static struct tm ac_aggr;
10497 if (sizeof ac_aggr.tm_zone)
10503 rm -f conftest.$ac_objext
10504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10505 (eval $ac_compile) 2>conftest.er1
10507 grep -v '^ *+' conftest.er1 >conftest.err
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } &&
10512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10514 (eval $ac_try) 2>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; } &&
10518 { ac_try='test -s conftest.$ac_objext'
10519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10520 (eval $ac_try) 2>&5
10522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10523 (exit $ac_status); }; }; then
10524 ac_cv_member_struct_tm_tm_zone=yes
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 ac_cv_member_struct_tm_tm_zone=no
10531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10535 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10536 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10537 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10539 cat >>confdefs.h <<_ACEOF
10540 #define HAVE_STRUCT_TM_TM_ZONE 1
10546 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10548 cat >>confdefs.h <<\_ACEOF
10549 #define HAVE_TM_ZONE 1
10553 echo "$as_me:$LINENO: checking for tzname" >&5
10554 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10555 if test "${ac_cv_var_tzname+set}" = set; then
10556 echo $ECHO_N "(cached) $ECHO_C" >&6
10558 if test x$gcc_no_link = xyes; then
10559 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10561 { (exit 1); exit 1; }; }
10563 cat >conftest.$ac_ext <<_ACEOF
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10570 #ifndef tzname /* For SGI. */
10571 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10584 (eval $ac_link) 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } &&
10591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; } &&
10597 { ac_try='test -s conftest$ac_exeext'
10598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10599 (eval $ac_try) 2>&5
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; }; then
10603 ac_cv_var_tzname=yes
10605 echo "$as_me: failed program was:" >&5
10606 sed 's/^/| /' conftest.$ac_ext >&5
10608 ac_cv_var_tzname=no
10610 rm -f conftest.err conftest.$ac_objext \
10611 conftest$ac_exeext conftest.$ac_ext
10613 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10614 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10615 if test $ac_cv_var_tzname = yes; then
10617 cat >>confdefs.h <<\_ACEOF
10618 #define HAVE_TZNAME 1
10627 for ac_func in gethostbyname_r
10629 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10630 echo "$as_me:$LINENO: checking for $ac_func" >&5
10631 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10632 if eval "test \"\${$as_ac_var+set}\" = set"; then
10633 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 if test x$gcc_no_link = xyes; then
10636 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10637 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10638 { (exit 1); exit 1; }; }
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10648 #define $ac_func innocuous_$ac_func
10650 /* System header to define __stub macros and hopefully few prototypes,
10651 which can conflict with char $ac_func (); below.
10652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10653 <limits.h> exists even on freestanding compilers. */
10656 # include <limits.h>
10658 # include <assert.h>
10663 /* Override any gcc2 internal prototype to avoid an error. */
10668 /* We use char because int might match the return type of a gcc2
10669 builtin and then its argument prototype would still apply. */
10671 /* The GNU C library defines this for functions which it implements
10672 to always fail with ENOSYS. Some functions are actually named
10673 something starting with __ and the normal name is an alias. */
10674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10677 char (*f) () = $ac_func;
10686 return f != $ac_func;
10691 rm -f conftest.$ac_objext conftest$ac_exeext
10692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10693 (eval $ac_link) 2>conftest.er1
10695 grep -v '^ *+' conftest.er1 >conftest.err
10697 cat conftest.err >&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; } &&
10706 { ac_try='test -s conftest$ac_exeext'
10707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10708 (eval $ac_try) 2>&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); }; }; then
10712 eval "$as_ac_var=yes"
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10717 eval "$as_ac_var=no"
10719 rm -f conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10723 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10724 if test `eval echo '${'$as_ac_var'}'` = yes; then
10725 cat >>confdefs.h <<_ACEOF
10726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10730 cat >>confdefs.h <<\_ACEOF
10731 #define HAVE_GETHOSTBYNAME_R 1
10734 # There are two different kinds of gethostbyname_r.
10735 # We look for the one that returns `int'.
10736 # Hopefully this check is robust enough.
10737 cat >conftest.$ac_ext <<_ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10747 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10750 cat >>confdefs.h <<\_ACEOF
10751 #define GETHOSTBYNAME_R_RETURNS_INT 1
10758 case " $GCINCS " in
10759 *" -D_REENTRANT "*) ;;
10761 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10762 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10763 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10764 echo $ECHO_N "(cached) $ECHO_C" >&6
10767 ac_cpp='$CXXCPP $CPPFLAGS'
10768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10772 cat >conftest.$ac_ext <<_ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10782 gethostbyname_r("", 0, 0);
10787 rm -f conftest.$ac_objext
10788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10789 (eval $ac_compile) 2>conftest.er1
10791 grep -v '^ *+' conftest.er1 >conftest.err
10793 cat conftest.err >&5
10794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10795 (exit $ac_status); } &&
10796 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; } &&
10802 { ac_try='test -s conftest.$ac_objext'
10803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804 (eval $ac_try) 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 libjava_cv_gethostbyname_r_needs_reentrant=no
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.$ac_ext >&5
10813 CPPFLAGS_SAVE="$CPPFLAGS"
10814 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10815 cat >conftest.$ac_ext <<_ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10825 gethostbyname_r("", 0, 0);
10830 rm -f conftest.$ac_objext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10832 (eval $ac_compile) 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10841 (eval $ac_try) 2>&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); }; } &&
10845 { ac_try='test -s conftest.$ac_objext'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; }; then
10851 libjava_cv_gethostbyname_r_needs_reentrant=yes
10853 echo "$as_me: failed program was:" >&5
10854 sed 's/^/| /' conftest.$ac_ext >&5
10856 libjava_cv_gethostbyname_r_needs_reentrant=fail
10858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10859 CPPFLAGS="$CPPFLAGS_SAVE"
10862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10864 ac_cpp='$CPP $CPPFLAGS'
10865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10871 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10872 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10873 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10875 cat >>confdefs.h <<\_ACEOF
10876 #define _REENTRANT 1
10883 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10884 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10885 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 cat >conftest.$ac_ext <<_ACEOF
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10895 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10896 # define _REENTRANT 1
10902 struct hostent_data data;
10907 rm -f conftest.$ac_objext
10908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10909 (eval $ac_compile) 2>conftest.er1
10911 grep -v '^ *+' conftest.er1 >conftest.err
10913 cat conftest.err >&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } &&
10916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10918 (eval $ac_try) 2>&5
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; } &&
10922 { ac_try='test -s conftest.$ac_objext'
10923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10924 (eval $ac_try) 2>&5
10926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); }; }; then
10928 libjava_cv_struct_hostent_data=yes
10930 echo "$as_me: failed program was:" >&5
10931 sed 's/^/| /' conftest.$ac_ext >&5
10933 libjava_cv_struct_hostent_data=no
10935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10937 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10938 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10939 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10941 cat >>confdefs.h <<\_ACEOF
10942 #define HAVE_STRUCT_HOSTENT_DATA 1
10951 # FIXME: libjava source code expects to find a prototype for
10952 # gethostbyaddr_r in netdb.h. The outer check ensures that
10953 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10954 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10955 # linkage check is enough, yet C++ code requires proper prototypes.)
10956 cat >conftest.$ac_ext <<_ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10966 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10969 for ac_func in gethostbyaddr_r
10971 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10972 echo "$as_me:$LINENO: checking for $ac_func" >&5
10973 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10974 if eval "test \"\${$as_ac_var+set}\" = set"; then
10975 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 if test x$gcc_no_link = xyes; then
10978 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10979 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10980 { (exit 1); exit 1; }; }
10982 cat >conftest.$ac_ext <<_ACEOF
10985 cat confdefs.h >>conftest.$ac_ext
10986 cat >>conftest.$ac_ext <<_ACEOF
10987 /* end confdefs.h. */
10988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10990 #define $ac_func innocuous_$ac_func
10992 /* System header to define __stub macros and hopefully few prototypes,
10993 which can conflict with char $ac_func (); below.
10994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10995 <limits.h> exists even on freestanding compilers. */
10998 # include <limits.h>
11000 # include <assert.h>
11005 /* Override any gcc2 internal prototype to avoid an error. */
11010 /* We use char because int might match the return type of a gcc2
11011 builtin and then its argument prototype would still apply. */
11013 /* The GNU C library defines this for functions which it implements
11014 to always fail with ENOSYS. Some functions are actually named
11015 something starting with __ and the normal name is an alias. */
11016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11019 char (*f) () = $ac_func;
11028 return f != $ac_func;
11033 rm -f conftest.$ac_objext conftest$ac_exeext
11034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11035 (eval $ac_link) 2>conftest.er1
11037 grep -v '^ *+' conftest.er1 >conftest.err
11039 cat conftest.err >&5
11040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041 (exit $ac_status); } &&
11042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044 (eval $ac_try) 2>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); }; } &&
11048 { ac_try='test -s conftest$ac_exeext'
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; }; then
11054 eval "$as_ac_var=yes"
11056 echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11059 eval "$as_ac_var=no"
11061 rm -f conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11064 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11065 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11066 if test `eval echo '${'$as_ac_var'}'` = yes; then
11067 cat >>confdefs.h <<_ACEOF
11068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_GETHOSTBYADDR_R 1
11076 # There are two different kinds of gethostbyaddr_r.
11077 # We look for the one that returns `int'.
11078 # Hopefully this check is robust enough.
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11089 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11092 cat >>confdefs.h <<\_ACEOF
11093 #define GETHOSTBYADDR_R_RETURNS_INT 1
11107 for ac_func in gethostname
11109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11110 echo "$as_me:$LINENO: checking for $ac_func" >&5
11111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11112 if eval "test \"\${$as_ac_var+set}\" = set"; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 if test x$gcc_no_link = xyes; then
11116 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11117 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11118 { (exit 1); exit 1; }; }
11120 cat >conftest.$ac_ext <<_ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11128 #define $ac_func innocuous_$ac_func
11130 /* System header to define __stub macros and hopefully few prototypes,
11131 which can conflict with char $ac_func (); below.
11132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11133 <limits.h> exists even on freestanding compilers. */
11136 # include <limits.h>
11138 # include <assert.h>
11143 /* Override any gcc2 internal prototype to avoid an error. */
11148 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11151 /* The GNU C library defines this for functions which it implements
11152 to always fail with ENOSYS. Some functions are actually named
11153 something starting with __ and the normal name is an alias. */
11154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11157 char (*f) () = $ac_func;
11166 return f != $ac_func;
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11173 (eval $ac_link) 2>conftest.er1
11175 grep -v '^ *+' conftest.er1 >conftest.err
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11182 (eval $ac_try) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); }; } &&
11186 { ac_try='test -s conftest$ac_exeext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 eval "$as_ac_var=yes"
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 eval "$as_ac_var=no"
11199 rm -f conftest.err conftest.$ac_objext \
11200 conftest$ac_exeext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11204 if test `eval echo '${'$as_ac_var'}'` = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11210 cat >>confdefs.h <<\_ACEOF
11211 #define HAVE_GETHOSTNAME 1
11214 cat >conftest.$ac_ext <<_ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h. */
11220 #include <unistd.h>
11223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11224 $EGREP "gethostname" >/dev/null 2>&1; then
11227 cat >>confdefs.h <<\_ACEOF
11228 #define HAVE_GETHOSTNAME_DECL 1
11239 for ac_func in usleep
11241 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11242 echo "$as_me:$LINENO: checking for $ac_func" >&5
11243 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11244 if eval "test \"\${$as_ac_var+set}\" = set"; then
11245 echo $ECHO_N "(cached) $ECHO_C" >&6
11247 if test x$gcc_no_link = xyes; then
11248 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11249 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11250 { (exit 1); exit 1; }; }
11252 cat >conftest.$ac_ext <<_ACEOF
11255 cat confdefs.h >>conftest.$ac_ext
11256 cat >>conftest.$ac_ext <<_ACEOF
11257 /* end confdefs.h. */
11258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11259 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11260 #define $ac_func innocuous_$ac_func
11262 /* System header to define __stub macros and hopefully few prototypes,
11263 which can conflict with char $ac_func (); below.
11264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11265 <limits.h> exists even on freestanding compilers. */
11268 # include <limits.h>
11270 # include <assert.h>
11275 /* Override any gcc2 internal prototype to avoid an error. */
11280 /* We use char because int might match the return type of a gcc2
11281 builtin and then its argument prototype would still apply. */
11283 /* The GNU C library defines this for functions which it implements
11284 to always fail with ENOSYS. Some functions are actually named
11285 something starting with __ and the normal name is an alias. */
11286 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11289 char (*f) () = $ac_func;
11298 return f != $ac_func;
11303 rm -f conftest.$ac_objext conftest$ac_exeext
11304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11305 (eval $ac_link) 2>conftest.er1
11307 grep -v '^ *+' conftest.er1 >conftest.err
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
11312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; } &&
11318 { ac_try='test -s conftest$ac_exeext'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; }; then
11324 eval "$as_ac_var=yes"
11326 echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11329 eval "$as_ac_var=no"
11331 rm -f conftest.err conftest.$ac_objext \
11332 conftest$ac_exeext conftest.$ac_ext
11334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11335 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11336 if test `eval echo '${'$as_ac_var'}'` = yes; then
11337 cat >>confdefs.h <<_ACEOF
11338 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11341 cat >conftest.$ac_ext <<_ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 #include <unistd.h>
11350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11351 $EGREP "usleep" >/dev/null 2>&1; then
11354 cat >>confdefs.h <<\_ACEOF
11355 #define HAVE_USLEEP_DECL 1
11365 # Look for these functions in the thread library, but only bother
11366 # if using POSIX threads.
11367 if test "$THREADS" = posix; then
11369 LIBS="$LIBS $THREADLIBS"
11370 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11374 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11377 echo "$as_me:$LINENO: checking for $ac_func" >&5
11378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11379 if eval "test \"\${$as_ac_var+set}\" = set"; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11382 if test x$gcc_no_link = xyes; then
11383 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11384 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11385 { (exit 1); exit 1; }; }
11387 cat >conftest.$ac_ext <<_ACEOF
11390 cat confdefs.h >>conftest.$ac_ext
11391 cat >>conftest.$ac_ext <<_ACEOF
11392 /* end confdefs.h. */
11393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11395 #define $ac_func innocuous_$ac_func
11397 /* System header to define __stub macros and hopefully few prototypes,
11398 which can conflict with char $ac_func (); below.
11399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11400 <limits.h> exists even on freestanding compilers. */
11403 # include <limits.h>
11405 # include <assert.h>
11410 /* Override any gcc2 internal prototype to avoid an error. */
11415 /* We use char because int might match the return type of a gcc2
11416 builtin and then its argument prototype would still apply. */
11418 /* The GNU C library defines this for functions which it implements
11419 to always fail with ENOSYS. Some functions are actually named
11420 something starting with __ and the normal name is an alias. */
11421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11424 char (*f) () = $ac_func;
11433 return f != $ac_func;
11438 rm -f conftest.$ac_objext conftest$ac_exeext
11439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11440 (eval $ac_link) 2>conftest.er1
11442 grep -v '^ *+' conftest.er1 >conftest.err
11444 cat conftest.err >&5
11445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446 (exit $ac_status); } &&
11447 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11449 (eval $ac_try) 2>&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); }; } &&
11453 { ac_try='test -s conftest$ac_exeext'
11454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11455 (eval $ac_try) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; }; then
11459 eval "$as_ac_var=yes"
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 eval "$as_ac_var=no"
11466 rm -f conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11469 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11470 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11471 if test `eval echo '${'$as_ac_var'}'` = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11480 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11481 # Solaris 7 the name librt is preferred.
11483 for ac_func in sched_yield
11485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11486 echo "$as_me:$LINENO: checking for $ac_func" >&5
11487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11488 if eval "test \"\${$as_ac_var+set}\" = set"; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11491 if test x$gcc_no_link = xyes; then
11492 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11493 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11494 { (exit 1); exit 1; }; }
11496 cat >conftest.$ac_ext <<_ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h. */
11502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11504 #define $ac_func innocuous_$ac_func
11506 /* System header to define __stub macros and hopefully few prototypes,
11507 which can conflict with char $ac_func (); below.
11508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11509 <limits.h> exists even on freestanding compilers. */
11512 # include <limits.h>
11514 # include <assert.h>
11519 /* Override any gcc2 internal prototype to avoid an error. */
11524 /* We use char because int might match the return type of a gcc2
11525 builtin and then its argument prototype would still apply. */
11527 /* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11533 char (*f) () = $ac_func;
11542 return f != $ac_func;
11547 rm -f conftest.$ac_objext conftest$ac_exeext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11549 (eval $ac_link) 2>conftest.er1
11551 grep -v '^ *+' conftest.er1 >conftest.err
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; } &&
11562 { ac_try='test -s conftest$ac_exeext'
11563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11564 (eval $ac_try) 2>&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); }; }; then
11568 eval "$as_ac_var=yes"
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 eval "$as_ac_var=no"
11575 rm -f conftest.err conftest.$ac_objext \
11576 conftest$ac_exeext conftest.$ac_ext
11578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11579 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11580 if test `eval echo '${'$as_ac_var'}'` = yes; then
11581 cat >>confdefs.h <<_ACEOF
11582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11587 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11588 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11589 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 ac_check_lib_save_LIBS=$LIBS
11594 if test x$gcc_no_link = xyes; then
11595 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11596 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11597 { (exit 1); exit 1; }; }
11599 cat >conftest.$ac_ext <<_ACEOF
11602 cat confdefs.h >>conftest.$ac_ext
11603 cat >>conftest.$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11606 /* Override any gcc2 internal prototype to avoid an error. */
11610 /* We use char because int might match the return type of a gcc2
11611 builtin and then its argument prototype would still apply. */
11612 char sched_yield ();
11621 rm -f conftest.$ac_objext conftest$ac_exeext
11622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11623 (eval $ac_link) 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11632 (eval $ac_try) 2>&5
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); }; } &&
11636 { ac_try='test -s conftest$ac_exeext'
11637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11638 (eval $ac_try) 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_cv_lib_rt_sched_yield=yes
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 ac_cv_lib_rt_sched_yield=no
11649 rm -f conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11653 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11654 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11655 if test $ac_cv_lib_rt_sched_yield = yes; then
11657 cat >>confdefs.h <<\_ACEOF
11658 #define HAVE_SCHED_YIELD 1
11661 THREADLIBS="$THREADLIBS -lrt"
11662 THREADSPEC="$THREADSPEC -lrt"
11665 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11666 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11667 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 ac_check_lib_save_LIBS=$LIBS
11671 LIBS="-lposix4 $LIBS"
11672 if test x$gcc_no_link = xyes; then
11673 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11674 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11675 { (exit 1); exit 1; }; }
11677 cat >conftest.$ac_ext <<_ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11684 /* Override any gcc2 internal prototype to avoid an error. */
11688 /* We use char because int might match the return type of a gcc2
11689 builtin and then its argument prototype would still apply. */
11690 char sched_yield ();
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701 (eval $ac_link) 2>conftest.er1
11703 grep -v '^ *+' conftest.er1 >conftest.err
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
11708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest$ac_exeext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_lib_posix4_sched_yield=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_cv_lib_posix4_sched_yield=no
11727 rm -f conftest.err conftest.$ac_objext \
11728 conftest$ac_exeext conftest.$ac_ext
11729 LIBS=$ac_check_lib_save_LIBS
11731 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11732 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11733 if test $ac_cv_lib_posix4_sched_yield = yes; then
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_SCHED_YIELD 1
11739 THREADLIBS="$THREADLIBS -lposix4"
11740 THREADSPEC="$THREADSPEC -lposix4"
11750 # We can save a little space at runtime if the mutex has m_count
11751 # or __m_count. This is a nice hack for Linux.
11752 cat >conftest.$ac_ext <<_ACEOF
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 #include <pthread.h>
11763 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11769 rm -f conftest.$ac_objext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771 (eval $ac_compile) 2>conftest.er1
11773 grep -v '^ *+' conftest.er1 >conftest.err
11775 cat conftest.err >&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); } &&
11778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest.$ac_objext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11791 cat >>confdefs.h <<\_ACEOF
11792 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11800 cat >conftest.$ac_ext <<_ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 #include <pthread.h>
11811 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11817 rm -f conftest.$ac_objext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11819 (eval $ac_compile) 2>conftest.er1
11821 grep -v '^ *+' conftest.er1 >conftest.err
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest.$ac_objext'
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11839 cat >>confdefs.h <<\_ACEOF
11840 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.$ac_ext >&5
11848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11853 # We require a way to get the time.
11858 for ac_func in gettimeofday time ftime
11860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11861 echo "$as_me:$LINENO: checking for $ac_func" >&5
11862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11863 if eval "test \"\${$as_ac_var+set}\" = set"; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 if test x$gcc_no_link = xyes; then
11867 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11868 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11869 { (exit 1); exit 1; }; }
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11879 #define $ac_func innocuous_$ac_func
11881 /* System header to define __stub macros and hopefully few prototypes,
11882 which can conflict with char $ac_func (); below.
11883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11884 <limits.h> exists even on freestanding compilers. */
11887 # include <limits.h>
11889 # include <assert.h>
11894 /* Override any gcc2 internal prototype to avoid an error. */
11899 /* We use char because int might match the return type of a gcc2
11900 builtin and then its argument prototype would still apply. */
11902 /* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11908 char (*f) () = $ac_func;
11917 return f != $ac_func;
11922 rm -f conftest.$ac_objext conftest$ac_exeext
11923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11924 (eval $ac_link) 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } &&
11931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; } &&
11937 { ac_try='test -s conftest$ac_exeext'
11938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11939 (eval $ac_try) 2>&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); }; }; then
11943 eval "$as_ac_var=yes"
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.$ac_ext >&5
11948 eval "$as_ac_var=no"
11950 rm -f conftest.err conftest.$ac_objext \
11951 conftest$ac_exeext conftest.$ac_ext
11953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11954 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11955 if test `eval echo '${'$as_ac_var'}'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11963 if test "$time_found" = no; then
11964 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11965 echo "$as_me: error: no function found to get the time" >&2;}
11966 { (exit 1); exit 1; }; }
11970 for ac_func in memmove
11972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11973 echo "$as_me:$LINENO: checking for $ac_func" >&5
11974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11975 if eval "test \"\${$as_ac_var+set}\" = set"; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 if test x$gcc_no_link = xyes; then
11979 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11980 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11981 { (exit 1); exit 1; }; }
11983 cat >conftest.$ac_ext <<_ACEOF
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11991 #define $ac_func innocuous_$ac_func
11993 /* System header to define __stub macros and hopefully few prototypes,
11994 which can conflict with char $ac_func (); below.
11995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11996 <limits.h> exists even on freestanding compilers. */
11999 # include <limits.h>
12001 # include <assert.h>
12006 /* Override any gcc2 internal prototype to avoid an error. */
12011 /* We use char because int might match the return type of a gcc2
12012 builtin and then its argument prototype would still apply. */
12014 /* The GNU C library defines this for functions which it implements
12015 to always fail with ENOSYS. Some functions are actually named
12016 something starting with __ and the normal name is an alias. */
12017 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12020 char (*f) () = $ac_func;
12029 return f != $ac_func;
12034 rm -f conftest.$ac_objext conftest$ac_exeext
12035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12036 (eval $ac_link) 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest$ac_exeext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
12055 eval "$as_ac_var=yes"
12057 echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12060 eval "$as_ac_var=no"
12062 rm -f conftest.err conftest.$ac_objext \
12063 conftest$ac_exeext conftest.$ac_ext
12065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12067 if test `eval echo '${'$as_ac_var'}'` = yes; then
12068 cat >>confdefs.h <<_ACEOF
12069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12076 # We require memcpy.
12079 for ac_func in memcpy
12081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12082 echo "$as_me:$LINENO: checking for $ac_func" >&5
12083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12084 if eval "test \"\${$as_ac_var+set}\" = set"; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 if test x$gcc_no_link = xyes; then
12088 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12089 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12090 { (exit 1); exit 1; }; }
12092 cat >conftest.$ac_ext <<_ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12100 #define $ac_func innocuous_$ac_func
12102 /* System header to define __stub macros and hopefully few prototypes,
12103 which can conflict with char $ac_func (); below.
12104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12105 <limits.h> exists even on freestanding compilers. */
12108 # include <limits.h>
12110 # include <assert.h>
12115 /* Override any gcc2 internal prototype to avoid an error. */
12120 /* We use char because int might match the return type of a gcc2
12121 builtin and then its argument prototype would still apply. */
12123 /* The GNU C library defines this for functions which it implements
12124 to always fail with ENOSYS. Some functions are actually named
12125 something starting with __ and the normal name is an alias. */
12126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12129 char (*f) () = $ac_func;
12138 return f != $ac_func;
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12145 (eval $ac_link) 2>conftest.er1
12147 grep -v '^ *+' conftest.er1 >conftest.err
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
12152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12154 (eval $ac_try) 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; } &&
12158 { ac_try='test -s conftest$ac_exeext'
12159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12160 (eval $ac_try) 2>&5
12162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163 (exit $ac_status); }; }; then
12164 eval "$as_ac_var=yes"
12166 echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12169 eval "$as_ac_var=no"
12171 rm -f conftest.err conftest.$ac_objext \
12172 conftest$ac_exeext conftest.$ac_ext
12174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12176 if test `eval echo '${'$as_ac_var'}'` = yes; then
12177 cat >>confdefs.h <<_ACEOF
12178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12184 if test "$memcpy_found" = no; then
12185 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12186 echo "$as_me: error: memcpy is required" >&2;}
12187 { (exit 1); exit 1; }; }
12190 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12191 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12192 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 ac_check_lib_save_LIBS=$LIBS
12197 if test x$gcc_no_link = xyes; then
12198 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12200 { (exit 1); exit 1; }; }
12202 cat >conftest.$ac_ext <<_ACEOF
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12209 /* Override any gcc2 internal prototype to avoid an error. */
12213 /* We use char because int might match the return type of a gcc2
12214 builtin and then its argument prototype would still apply. */
12224 rm -f conftest.$ac_objext conftest$ac_exeext
12225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12226 (eval $ac_link) 2>conftest.er1
12228 grep -v '^ *+' conftest.er1 >conftest.err
12230 cat conftest.err >&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } &&
12233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; } &&
12239 { ac_try='test -s conftest$ac_exeext'
12240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12241 (eval $ac_try) 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); }; }; then
12245 ac_cv_lib_dl_dlopen=yes
12247 echo "$as_me: failed program was:" >&5
12248 sed 's/^/| /' conftest.$ac_ext >&5
12250 ac_cv_lib_dl_dlopen=no
12252 rm -f conftest.err conftest.$ac_objext \
12253 conftest$ac_exeext conftest.$ac_ext
12254 LIBS=$ac_check_lib_save_LIBS
12256 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12257 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12258 if test $ac_cv_lib_dl_dlopen = yes; then
12261 cat >>confdefs.h <<\_ACEOF
12262 #define HAVE_DLOPEN 1
12268 # Some library-finding code we stole from Tcl.
12269 #--------------------------------------------------------------------
12270 # Check for the existence of the -lsocket and -lnsl libraries.
12271 # The order here is important, so that they end up in the right
12272 # order in the command line generated by make. Here are some
12273 # special considerations:
12274 # 1. Use "connect" and "accept" to check for -lsocket, and
12275 # "gethostbyname" to check for -lnsl.
12276 # 2. Use each function name only once: can't redo a check because
12277 # autoconf caches the results of the last check and won't redo it.
12278 # 3. Use -lnsl and -lsocket only if they supply procedures that
12279 # aren't already present in the normal libraries. This is because
12280 # IRIX 5.2 has libraries, but they aren't needed and they're
12281 # bogus: they goof up name resolution if used.
12282 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12283 # To get around this problem, check for both libraries together
12284 # if -lsocket doesn't work by itself.
12285 #--------------------------------------------------------------------
12287 echo "$as_me:$LINENO: checking for socket libraries" >&5
12288 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12289 if test "${gcj_cv_lib_sockets+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 gcj_cv_lib_sockets=
12294 unset ac_cv_func_connect
12295 echo "$as_me:$LINENO: checking for connect" >&5
12296 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12297 if test "${ac_cv_func_connect+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12300 if test x$gcc_no_link = xyes; then
12301 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12303 { (exit 1); exit 1; }; }
12305 cat >conftest.$ac_ext <<_ACEOF
12308 cat confdefs.h >>conftest.$ac_ext
12309 cat >>conftest.$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12311 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12313 #define connect innocuous_connect
12315 /* System header to define __stub macros and hopefully few prototypes,
12316 which can conflict with char connect (); below.
12317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12318 <limits.h> exists even on freestanding compilers. */
12321 # include <limits.h>
12323 # include <assert.h>
12328 /* Override any gcc2 internal prototype to avoid an error. */
12333 /* We use char because int might match the return type of a gcc2
12334 builtin and then its argument prototype would still apply. */
12336 /* The GNU C library defines this for functions which it implements
12337 to always fail with ENOSYS. Some functions are actually named
12338 something starting with __ and the normal name is an alias. */
12339 #if defined (__stub_connect) || defined (__stub___connect)
12342 char (*f) () = connect;
12351 return f != connect;
12356 rm -f conftest.$ac_objext conftest$ac_exeext
12357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12358 (eval $ac_link) 2>conftest.er1
12360 grep -v '^ *+' conftest.er1 >conftest.err
12362 cat conftest.err >&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
12365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest$ac_exeext'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377 ac_cv_func_connect=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_cv_func_connect=no
12384 rm -f conftest.err conftest.$ac_objext \
12385 conftest$ac_exeext conftest.$ac_ext
12387 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12388 echo "${ECHO_T}$ac_cv_func_connect" >&6
12389 if test $ac_cv_func_connect = yes; then
12395 if test "$gcj_checkSocket" = 1; then
12396 unset ac_cv_func_connect
12397 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12398 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12399 if test "${ac_cv_lib_socket_main+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12402 ac_check_lib_save_LIBS=$LIBS
12403 LIBS="-lsocket $LIBS"
12404 if test x$gcc_no_link = xyes; then
12405 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12406 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12407 { (exit 1); exit 1; }; }
12409 cat >conftest.$ac_ext <<_ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427 (eval $ac_link) 2>conftest.er1
12429 grep -v '^ *+' conftest.er1 >conftest.err
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest$ac_exeext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_cv_lib_socket_main=yes
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ac_cv_lib_socket_main=no
12453 rm -f conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12457 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12458 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12459 if test $ac_cv_lib_socket_main = yes; then
12460 gcj_cv_lib_sockets="-lsocket"
12466 if test "$gcj_checkBoth" = 1; then
12468 LIBS="$LIBS -lsocket -lnsl"
12469 unset ac_cv_func_accept
12470 echo "$as_me:$LINENO: checking for accept" >&5
12471 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12472 if test "${ac_cv_func_accept+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 if test x$gcc_no_link = xyes; then
12476 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12477 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12478 { (exit 1); exit 1; }; }
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12488 #define accept innocuous_accept
12490 /* System header to define __stub macros and hopefully few prototypes,
12491 which can conflict with char accept (); below.
12492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12493 <limits.h> exists even on freestanding compilers. */
12496 # include <limits.h>
12498 # include <assert.h>
12503 /* Override any gcc2 internal prototype to avoid an error. */
12508 /* We use char because int might match the return type of a gcc2
12509 builtin and then its argument prototype would still apply. */
12511 /* The GNU C library defines this for functions which it implements
12512 to always fail with ENOSYS. Some functions are actually named
12513 something starting with __ and the normal name is an alias. */
12514 #if defined (__stub_accept) || defined (__stub___accept)
12517 char (*f) () = accept;
12526 return f != accept;
12531 rm -f conftest.$ac_objext conftest$ac_exeext
12532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12533 (eval $ac_link) 2>conftest.er1
12535 grep -v '^ *+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } &&
12540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest$ac_exeext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_cv_func_accept=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 ac_cv_func_accept=no
12559 rm -f conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
12562 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12563 echo "${ECHO_T}$ac_cv_func_accept" >&6
12564 if test $ac_cv_func_accept = yes; then
12566 gcj_cv_lib_sockets="-lsocket -lnsl"
12569 unset ac_cv_func_accept
12572 unset ac_cv_func_gethostbyname
12574 LIBS="$LIBS $gcj_cv_lib_sockets"
12575 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12576 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12577 if test "${ac_cv_func_gethostbyname+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 if test x$gcc_no_link = xyes; then
12581 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12582 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12583 { (exit 1); exit 1; }; }
12585 cat >conftest.$ac_ext <<_ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h. */
12591 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12593 #define gethostbyname innocuous_gethostbyname
12595 /* System header to define __stub macros and hopefully few prototypes,
12596 which can conflict with char gethostbyname (); below.
12597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12598 <limits.h> exists even on freestanding compilers. */
12601 # include <limits.h>
12603 # include <assert.h>
12606 #undef gethostbyname
12608 /* Override any gcc2 internal prototype to avoid an error. */
12613 /* We use char because int might match the return type of a gcc2
12614 builtin and then its argument prototype would still apply. */
12615 char gethostbyname ();
12616 /* The GNU C library defines this for functions which it implements
12617 to always fail with ENOSYS. Some functions are actually named
12618 something starting with __ and the normal name is an alias. */
12619 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12622 char (*f) () = gethostbyname;
12631 return f != gethostbyname;
12636 rm -f conftest.$ac_objext conftest$ac_exeext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12638 (eval $ac_link) 2>conftest.er1
12640 grep -v '^ *+' conftest.er1 >conftest.err
12642 cat conftest.err >&5
12643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12644 (exit $ac_status); } &&
12645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12647 (eval $ac_try) 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest$ac_exeext'
12652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12653 (eval $ac_try) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); }; }; then
12657 ac_cv_func_gethostbyname=yes
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12662 ac_cv_func_gethostbyname=no
12664 rm -f conftest.err conftest.$ac_objext \
12665 conftest$ac_exeext conftest.$ac_ext
12667 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12668 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12669 if test $ac_cv_func_gethostbyname = yes; then
12672 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12673 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12674 if test "${ac_cv_lib_nsl_main+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 ac_check_lib_save_LIBS=$LIBS
12679 if test x$gcc_no_link = xyes; then
12680 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12681 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12682 { (exit 1); exit 1; }; }
12684 cat >conftest.$ac_ext <<_ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12700 rm -f conftest.$ac_objext conftest$ac_exeext
12701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12702 (eval $ac_link) 2>conftest.er1
12704 grep -v '^ *+' conftest.er1 >conftest.err
12706 cat conftest.err >&5
12707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12708 (exit $ac_status); } &&
12709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try='test -s conftest$ac_exeext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
12721 ac_cv_lib_nsl_main=yes
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12726 ac_cv_lib_nsl_main=no
12728 rm -f conftest.err conftest.$ac_objext \
12729 conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12732 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12733 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12734 if test $ac_cv_lib_nsl_main = yes; then
12735 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12740 unset ac_cv_func_gethostbyname
12744 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12745 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12746 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12748 if test "$with_system_zlib" = yes; then
12749 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12750 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12751 if test "${ac_cv_lib_z_deflate+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12754 ac_check_lib_save_LIBS=$LIBS
12756 if test x$gcc_no_link = xyes; then
12757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12759 { (exit 1); exit 1; }; }
12761 cat >conftest.$ac_ext <<_ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h. */
12768 /* Override any gcc2 internal prototype to avoid an error. */
12772 /* We use char because int might match the return type of a gcc2
12773 builtin and then its argument prototype would still apply. */
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785 (eval $ac_link) 2>conftest.er1
12787 grep -v '^ *+' conftest.er1 >conftest.err
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } &&
12792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; } &&
12798 { ac_try='test -s conftest$ac_exeext'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; }; then
12804 ac_cv_lib_z_deflate=yes
12806 echo "$as_me: failed program was:" >&5
12807 sed 's/^/| /' conftest.$ac_ext >&5
12809 ac_cv_lib_z_deflate=no
12811 rm -f conftest.err conftest.$ac_objext \
12812 conftest$ac_exeext conftest.$ac_ext
12813 LIBS=$ac_check_lib_save_LIBS
12815 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12816 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12817 if test $ac_cv_lib_z_deflate = yes; then
12825 # Test for Gtk stuff, if asked for.
12826 if test "$use_gtk_awt" = yes; then
12830 if test -z "$PKG_CONFIG"; then
12831 # Extract the first word of "pkg-config", so it can be a program name with args.
12832 set dummy pkg-config; ac_word=$2
12833 echo "$as_me:$LINENO: checking for $ac_word" >&5
12834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 case $PKG_CONFIG in
12840 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844 for as_dir in $PATH
12847 test -z "$as_dir" && as_dir=.
12848 for ac_exec_ext in '' $ac_executable_extensions; do
12849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12850 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12857 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12861 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12863 if test -n "$PKG_CONFIG"; then
12864 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12865 echo "${ECHO_T}$PKG_CONFIG" >&6
12867 echo "$as_me:$LINENO: result: no" >&5
12868 echo "${ECHO_T}no" >&6
12873 if test "$PKG_CONFIG" = "no" ; then
12874 echo "*** The pkg-config script could not be found. Make sure it is"
12875 echo "*** in your path, or set the PKG_CONFIG environment variable"
12876 echo "*** to the full path to pkg-config."
12877 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12879 PKG_CONFIG_MIN_VERSION=0.9.0
12880 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12881 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12882 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12884 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12885 echo "$as_me:$LINENO: result: yes" >&5
12886 echo "${ECHO_T}yes" >&6
12889 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12890 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12891 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12892 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12893 echo "${ECHO_T}$GTK_CFLAGS" >&6
12895 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12896 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12897 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12898 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12899 echo "${ECHO_T}$GTK_LIBS" >&6
12903 ## If we have a custom action on failure, don't print errors, but
12904 ## do set a variable so people can do so.
12905 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12906 echo $GTK_PKG_ERRORS
12912 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12913 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12917 if test $succeeded = yes; then
12920 { { 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
12921 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;}
12922 { (exit 1); exit 1; }; }
12931 if test -z "$PKG_CONFIG"; then
12932 # Extract the first word of "pkg-config", so it can be a program name with args.
12933 set dummy pkg-config; ac_word=$2
12934 echo "$as_me:$LINENO: checking for $ac_word" >&5
12935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12936 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 case $PKG_CONFIG in
12941 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12951 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12958 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12962 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12964 if test -n "$PKG_CONFIG"; then
12965 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12966 echo "${ECHO_T}$PKG_CONFIG" >&6
12968 echo "$as_me:$LINENO: result: no" >&5
12969 echo "${ECHO_T}no" >&6
12974 if test "$PKG_CONFIG" = "no" ; then
12975 echo "*** The pkg-config script could not be found. Make sure it is"
12976 echo "*** in your path, or set the PKG_CONFIG environment variable"
12977 echo "*** to the full path to pkg-config."
12978 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12980 PKG_CONFIG_MIN_VERSION=0.9.0
12981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12982 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12983 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12985 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12986 echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6
12990 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12991 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12992 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12993 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12994 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12996 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12997 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12998 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12999 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13000 echo "${ECHO_T}$GLIB_LIBS" >&6
13004 ## If we have a custom action on failure, don't print errors, but
13005 ## do set a variable so people can do so.
13006 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13007 echo $GLIB_PKG_ERRORS
13013 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13014 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13018 if test $succeeded = yes; then
13021 { { 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
13022 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;}
13023 { (exit 1); exit 1; }; }
13032 if test -z "$PKG_CONFIG"; then
13033 # Extract the first word of "pkg-config", so it can be a program name with args.
13034 set dummy pkg-config; ac_word=$2
13035 echo "$as_me:$LINENO: checking for $ac_word" >&5
13036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13037 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13038 echo $ECHO_N "(cached) $ECHO_C" >&6
13040 case $PKG_CONFIG in
13042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13046 for as_dir in $PATH
13049 test -z "$as_dir" && as_dir=.
13050 for ac_exec_ext in '' $ac_executable_extensions; do
13051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13052 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13059 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13063 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13065 if test -n "$PKG_CONFIG"; then
13066 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13067 echo "${ECHO_T}$PKG_CONFIG" >&6
13069 echo "$as_me:$LINENO: result: no" >&5
13070 echo "${ECHO_T}no" >&6
13075 if test "$PKG_CONFIG" = "no" ; then
13076 echo "*** The pkg-config script could not be found. Make sure it is"
13077 echo "*** in your path, or set the PKG_CONFIG environment variable"
13078 echo "*** to the full path to pkg-config."
13079 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13081 PKG_CONFIG_MIN_VERSION=0.9.0
13082 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13083 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13084 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13086 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13087 echo "$as_me:$LINENO: result: yes" >&5
13088 echo "${ECHO_T}yes" >&6
13091 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13092 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13093 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13094 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13095 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13097 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13098 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13099 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13100 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13101 echo "${ECHO_T}$LIBART_LIBS" >&6
13105 ## If we have a custom action on failure, don't print errors, but
13106 ## do set a variable so people can do so.
13107 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13108 echo $LIBART_PKG_ERRORS
13114 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13115 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13119 if test $succeeded = yes; then
13122 { { 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
13123 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;}
13124 { (exit 1); exit 1; }; }
13130 # We require the XTest Extension to support java.awt.Robot.
13131 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13132 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13133 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 ac_check_lib_save_LIBS=$LIBS
13137 LIBS="-lXtst ${X_LIBS} $LIBS"
13138 if test x$gcc_no_link = xyes; then
13139 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13141 { (exit 1); exit 1; }; }
13143 cat >conftest.$ac_ext <<_ACEOF
13146 cat confdefs.h >>conftest.$ac_ext
13147 cat >>conftest.$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13150 /* Override any gcc2 internal prototype to avoid an error. */
13154 /* We use char because int might match the return type of a gcc2
13155 builtin and then its argument prototype would still apply. */
13156 char XTestQueryExtension ();
13160 XTestQueryExtension ();
13165 rm -f conftest.$ac_objext conftest$ac_exeext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13167 (eval $ac_link) 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest$ac_exeext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13186 ac_cv_lib_Xtst_XTestQueryExtension=yes
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13191 ac_cv_lib_Xtst_XTestQueryExtension=no
13193 rm -f conftest.err conftest.$ac_objext \
13194 conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13197 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13198 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13199 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13202 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13203 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13204 { (exit 1); exit 1; }; }
13209 # On Solaris, and maybe other architectures, the Boehm collector
13211 if test "$GC" = boehm; then
13212 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13213 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13214 if test "${ac_cv_lib_dl_main+set}" = set; then
13215 echo $ECHO_N "(cached) $ECHO_C" >&6
13217 ac_check_lib_save_LIBS=$LIBS
13219 if test x$gcc_no_link = xyes; then
13220 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13221 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13222 { (exit 1); exit 1; }; }
13224 cat >conftest.$ac_ext <<_ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>conftest.er1
13244 grep -v '^ *+' conftest.er1 >conftest.err
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 ac_cv_lib_dl_main=yes
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_cv_lib_dl_main=no
13268 rm -f conftest.err conftest.$ac_objext \
13269 conftest$ac_exeext conftest.$ac_ext
13270 LIBS=$ac_check_lib_save_LIBS
13272 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13273 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13274 if test $ac_cv_lib_dl_main = yes; then
13275 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13282 if test "$supply_backtrace" = yes; then
13283 SUPPLY_BACKTRACE_TRUE=
13284 SUPPLY_BACKTRACE_FALSE='#'
13286 SUPPLY_BACKTRACE_TRUE='#'
13287 SUPPLY_BACKTRACE_FALSE=
13291 if test -z "${with_multisubdir}"; then
13294 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
13299 # Which gcj do we use?
13301 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
13302 if test -n "${with_cross_host}"; then
13303 # We are being configured with a cross compiler. We can't
13304 # use ac_exeext, because that is for the target platform.
13307 case "${with_cross_host}" in
13308 *mingw* | *cygwin*)
13309 cross_host_exeext=.exe
13312 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
13313 if test x"$build_noncanonical" = x"$with_cross_host"; then
13314 # Ordinary cross (host!=target and host=build)
13317 # Canadian cross (host!=target and host!=build)
13324 # We are being configured with a native or crossed-native compiler
13325 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
13326 if test x"$build" = x"$host"; then
13327 # True native build (host=target and host=build)
13330 # Crossed-native build (host=target and host!=build)
13337 case "${which_gcj}" in
13339 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
13340 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
13341 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
13344 if test "x${with_newlib}" = "xyes"; then
13345 # FIXME (comment): Why is this needed?
13346 GCC_UNWIND_INCLUDE=
13347 GCJ="${target_noncanonical}-gcj"
13349 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
13351 ZIP='$(target_noncanonical)-fastjar'
13352 GCJH='$(target_noncanonical)-gcjh'
13355 GCJ="gcj -B`${PWDCMD-pwd}`/"
13356 ## In this case, gcj is found outside the build tree. However, zip is
13357 ## found in the build tree.
13358 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
13366 # Create it, so that compile/link tests don't fail
13367 test -f libgcj.spec || touch libgcj.spec
13369 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13371 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13372 *) CLASSPATH_SEPARATOR=':' ;;
13376 # We must search the source tree for java.lang, since we still don't
13377 # have libgcj.jar nor java/lang/*.class
13378 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13379 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13381 # Since some classes depend on this one, we need its source available
13382 # before we can do any GCJ compilation test :-(
13383 if test ! -f gnu/classpath/Configuration.java; then
13384 test -d gnu || mkdir gnu
13385 test -d gnu/classpath || mkdir gnu/classpath
13386 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
13387 -e 's,@TOOLKIT@,$TOOLKIT,' \
13388 < $srcdir/gnu/classpath/Configuration.java.in \
13389 > gnu/classpath/Configuration.java
13390 # We do not want to redirect the output of the grep below to /dev/null,
13391 # but we add /dev/null to the input list so that grep will print the
13392 # filename of Configuration.java in case it finds any matches.
13393 if grep @ gnu/classpath/Configuration.java /dev/null; then
13394 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13395 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13396 { (exit 1); exit 1; }; }
13400 if test -n "$ac_tool_prefix"; then
13401 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13402 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13403 echo "$as_me:$LINENO: checking for $ac_word" >&5
13404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13405 if test "${ac_cv_prog_GCJ+set}" = set; then
13406 echo $ECHO_N "(cached) $ECHO_C" >&6
13408 if test -n "$GCJ"; then
13409 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13412 for as_dir in $PATH
13415 test -z "$as_dir" && as_dir=.
13416 for ac_exec_ext in '' $ac_executable_extensions; do
13417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13418 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13427 GCJ=$ac_cv_prog_GCJ
13428 if test -n "$GCJ"; then
13429 echo "$as_me:$LINENO: result: $GCJ" >&5
13430 echo "${ECHO_T}$GCJ" >&6
13432 echo "$as_me:$LINENO: result: no" >&5
13433 echo "${ECHO_T}no" >&6
13437 if test -z "$ac_cv_prog_GCJ"; then
13439 # Extract the first word of "gcj", so it can be a program name with args.
13440 set dummy gcj; ac_word=$2
13441 echo "$as_me:$LINENO: checking for $ac_word" >&5
13442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13443 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13446 if test -n "$ac_ct_GCJ"; then
13447 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13450 for as_dir in $PATH
13453 test -z "$as_dir" && as_dir=.
13454 for ac_exec_ext in '' $ac_executable_extensions; do
13455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13456 ac_cv_prog_ac_ct_GCJ="gcj"
13457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13463 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13466 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13467 if test -n "$ac_ct_GCJ"; then
13468 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13469 echo "${ECHO_T}$ac_ct_GCJ" >&6
13471 echo "$as_me:$LINENO: result: no" >&5
13472 echo "${ECHO_T}no" >&6
13477 GCJ="$ac_cv_prog_GCJ"
13480 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13485 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13487 echo "$as_me:$LINENO: checking size of void *" >&5
13488 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13489 if test "${ac_cv_sizeof_void_p+set}" = set; then
13490 echo $ECHO_N "(cached) $ECHO_C" >&6
13492 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13499 #include "confdefs.h"
13500 #include <sys/types.h>
13506 switch (0) case 0: case (sizeof (void *) == $ac_size):;
13511 rm -f conftest.$ac_objext
13512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13513 (eval $ac_compile) 2>conftest.er1
13515 grep -v '^ *+' conftest.er1 >conftest.err
13517 cat conftest.err >&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } &&
13520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest.$ac_objext'
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_cv_sizeof_void_p=$ac_size
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13539 if test x$ac_cv_sizeof_void_p != x ; then break; fi
13544 if test x$ac_cv_sizeof_void_p = x ; then
13545 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
13546 echo "$as_me: error: cannot determine a size for void *" >&2;}
13547 { (exit 1); exit 1; }; }
13549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13550 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13552 cat >>confdefs.h <<_ACEOF
13553 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13558 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13559 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13560 if test "${ac_cv_c_bigendian+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 ac_cv_c_bigendian=unknown
13564 # See if sys/param.h defines the BYTE_ORDER macro.
13565 cat >conftest.$ac_ext <<_ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 #include <sys/types.h>
13572 #include <sys/param.h>
13577 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13578 bogus endian macros
13584 rm -f conftest.$ac_objext
13585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13586 (eval $ac_compile) 2>conftest.er1
13588 grep -v '^ *+' conftest.er1 >conftest.err
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
13593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595 (eval $ac_try) 2>&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); }; } &&
13599 { ac_try='test -s conftest.$ac_objext'
13600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13601 (eval $ac_try) 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 # It does; now see whether it defined to BIG_ENDIAN or not.
13606 cat >conftest.$ac_ext <<_ACEOF
13609 cat confdefs.h >>conftest.$ac_ext
13610 cat >>conftest.$ac_ext <<_ACEOF
13611 /* end confdefs.h. */
13612 #include <sys/types.h>
13613 #include <sys/param.h>
13618 #if BYTE_ORDER != BIG_ENDIAN
13625 rm -f conftest.$ac_objext
13626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>conftest.er1
13629 grep -v '^ *+' conftest.er1 >conftest.err
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
13634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13636 (eval $ac_try) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); }; } &&
13640 { ac_try='test -s conftest.$ac_objext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13646 ac_cv_c_bigendian=yes
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 ac_cv_c_bigendian=no
13653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13655 echo "$as_me: failed program was:" >&5
13656 sed 's/^/| /' conftest.$ac_ext >&5
13659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13660 if test $ac_cv_c_bigendian = unknown; then
13661 if test "$cross_compiling" = yes; then
13662 echo $ac_n "cross-compiling... " 2>&6
13664 cat >conftest.$ac_ext <<_ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13671 /* Are we little or big endian? From Harbison&Steele. */
13675 char c[sizeof (long)];
13678 exit (u.c[sizeof (long) - 1] == 1);
13681 rm -f conftest$ac_exeext
13682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13683 (eval $ac_link) 2>&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13688 (eval $ac_try) 2>&5
13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); }; }; then
13692 ac_cv_c_bigendian=no
13694 echo "$as_me: program exited with status $ac_status" >&5
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13698 ( exit $ac_status )
13699 ac_cv_c_bigendian=yes
13701 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13705 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13706 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13707 if test $ac_cv_c_bigendian = unknown; then
13708 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
13709 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
13711 cat >conftest.c <<EOF
13712 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13713 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13714 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
13715 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13716 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13717 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
13718 int main() { _ascii (); _ebcdic (); return 0; }
13720 if test -f conftest.c ; then
13721 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
13722 if test `grep -l BIGenDianSyS conftest.o` ; then
13723 echo $ac_n ' big endian probe OK, ' 1>&6
13724 ac_cv_c_bigendian=yes
13726 if test `grep -l LiTTleEnDian conftest.o` ; then
13727 echo $ac_n ' little endian probe OK, ' 1>&6
13728 if test $ac_cv_c_bigendian = yes ; then
13729 ac_cv_c_bigendian=unknown;
13731 ac_cv_c_bigendian=no
13734 echo $ac_n 'guessing bigendian ... ' >&6
13737 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13738 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13740 if test $ac_cv_c_bigendian = yes; then
13742 cat >>confdefs.h <<\_ACEOF
13743 #define WORDS_BIGENDIAN 1
13747 cat >>confdefs.h <<\_ACEOF
13748 #define HOST_WORDS_BIG_ENDIAN 1
13756 cat >>confdefs.h <<_ACEOF
13757 #define BYTEORDER $BYTEORDER
13760 if test $ac_cv_c_bigendian = unknown; then
13761 { { echo "$as_me:$LINENO: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&5
13762 echo "$as_me: error: unknown endianess - sorry, please pre-set ac_cv_c_bigendian" >&2;}
13763 { (exit 1); exit 1; }; }
13771 if test -z "$ZLIBSPEC"; then
13772 # Use zlib from the GCC tree.
13773 ZINCS='-I$(top_srcdir)/../zlib'
13774 ZLIBS=../zlib/libzgcj_convenience.la
13777 SYS_ZLIBS="$ZLIBSPEC"
13789 if test "$NATIVE" = yes; then
13799 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
13800 NEEDS_DATA_START_TRUE=
13801 NEEDS_DATA_START_FALSE='#'
13803 NEEDS_DATA_START_TRUE='#'
13804 NEEDS_DATA_START_FALSE=
13809 # Process the option "--enable-version-specific-runtime-libs"
13810 # Calculate toolexeclibdir
13811 case ${version_specific_libs} in
13813 # Need the gcc compiler version to know where to install libraries
13814 # and header files if --enable-version-specific-runtime-libs option
13816 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
13817 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
13818 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
13819 toolexeclibdir=$toolexecmainlibdir
13822 if test -n "$with_cross_host" &&
13823 test x"$with_cross_host" != x"no"; then
13824 # Install a library built with a cross compiler in tooldir, not libdir.
13825 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
13826 toolexecmainlibdir='$(toolexecdir)/lib'
13828 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
13829 toolexecmainlibdir='$(libdir)'
13831 multi_os_directory=`$CC -print-multi-os-directory`
13832 case $multi_os_directory in
13833 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
13834 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
13842 # Determine gcj version number.
13843 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
13844 GCJVERSION=$gcjversion
13847 cat >>confdefs.h <<_ACEOF
13848 #define GCJVERSION "$GCJVERSION"
13853 cat >>confdefs.h <<\_ACEOF
13854 #define JV_VERSION "1.4.2"
13858 cat >>confdefs.h <<\_ACEOF
13859 #define JV_API_VERSION "1.4"
13864 case "${with_gxx_include_dir}" in
13866 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
13867 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
13868 { (exit 1); exit 1; }; }
13871 case "${enable_version_specific_runtime_libs}" in
13872 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
13874 libstdcxx_incdir='c++/$(gcc_version)'
13875 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
13877 *) gxx_include_dir=${with_gxx_include_dir} ;;
13883 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
13884 # On that system, sys/ioctl.h will not include sys/filio.h unless
13885 # BSD_COMP is defined; just including sys/filio.h is simpler.
13886 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13887 # for now. If you change this, you also must update natFile.cc.
13908 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
13909 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
13910 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
13911 pwd.h sys/config.h stdint.h langinfo.h locale.h \
13914 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13915 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13916 echo "$as_me:$LINENO: checking for $ac_header" >&5
13917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13924 # Is the header compilable?
13925 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13927 cat >conftest.$ac_ext <<_ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933 $ac_includes_default
13934 #include <$ac_header>
13936 rm -f conftest.$ac_objext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938 (eval $ac_compile) 2>conftest.er1
13940 grep -v '^ *+' conftest.er1 >conftest.err
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } &&
13945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; } &&
13951 { ac_try='test -s conftest.$ac_objext'
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 ac_header_compiler=yes
13959 echo "$as_me: failed program was:" >&5
13960 sed 's/^/| /' conftest.$ac_ext >&5
13962 ac_header_compiler=no
13964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13966 echo "${ECHO_T}$ac_header_compiler" >&6
13968 # Is the header present?
13969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13971 cat >conftest.$ac_ext <<_ACEOF
13974 cat confdefs.h >>conftest.$ac_ext
13975 cat >>conftest.$ac_ext <<_ACEOF
13976 /* end confdefs.h. */
13977 #include <$ac_header>
13979 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13982 grep -v '^ *+' conftest.er1 >conftest.err
13984 cat conftest.err >&5
13985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986 (exit $ac_status); } >/dev/null; then
13987 if test -s conftest.err; then
13988 ac_cpp_err=$ac_c_preproc_warn_flag
13989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13996 if test -z "$ac_cpp_err"; then
13997 ac_header_preproc=yes
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 ac_header_preproc=no
14004 rm -f conftest.err conftest.$ac_ext
14005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14006 echo "${ECHO_T}$ac_header_preproc" >&6
14008 # So? What about this header?
14009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14015 ac_header_preproc=yes
14018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14032 ## ---------------------------------- ##
14033 ## Report this to the libjava lists. ##
14034 ## ---------------------------------- ##
14037 sed "s/^/$as_me: WARNING: /" >&2
14040 echo "$as_me:$LINENO: checking for $ac_header" >&5
14041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14042 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 eval "$as_ac_Header=\$ac_header_preproc"
14047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14052 cat >>confdefs.h <<_ACEOF
14053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14061 for ac_header in inttypes.h
14063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14065 echo "$as_me:$LINENO: checking for $ac_header" >&5
14066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14073 # Is the header compilable?
14074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14076 cat >conftest.$ac_ext <<_ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082 $ac_includes_default
14083 #include <$ac_header>
14085 rm -f conftest.$ac_objext
14086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14087 (eval $ac_compile) 2>conftest.er1
14089 grep -v '^ *+' conftest.er1 >conftest.err
14091 cat conftest.err >&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } &&
14094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; } &&
14100 { ac_try='test -s conftest.$ac_objext'
14101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14102 (eval $ac_try) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); }; }; then
14106 ac_header_compiler=yes
14108 echo "$as_me: failed program was:" >&5
14109 sed 's/^/| /' conftest.$ac_ext >&5
14111 ac_header_compiler=no
14113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14114 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14115 echo "${ECHO_T}$ac_header_compiler" >&6
14117 # Is the header present?
14118 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14119 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14120 cat >conftest.$ac_ext <<_ACEOF
14123 cat confdefs.h >>conftest.$ac_ext
14124 cat >>conftest.$ac_ext <<_ACEOF
14125 /* end confdefs.h. */
14126 #include <$ac_header>
14128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14131 grep -v '^ *+' conftest.er1 >conftest.err
14133 cat conftest.err >&5
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } >/dev/null; then
14136 if test -s conftest.err; then
14137 ac_cpp_err=$ac_c_preproc_warn_flag
14138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14145 if test -z "$ac_cpp_err"; then
14146 ac_header_preproc=yes
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 ac_header_preproc=no
14153 rm -f conftest.err conftest.$ac_ext
14154 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14155 echo "${ECHO_T}$ac_header_preproc" >&6
14157 # So? What about this header?
14158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14160 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14161 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14163 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14164 ac_header_preproc=yes
14167 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14168 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14169 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14170 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14171 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14172 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14173 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14174 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14176 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14178 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14181 ## ---------------------------------- ##
14182 ## Report this to the libjava lists. ##
14183 ## ---------------------------------- ##
14186 sed "s/^/$as_me: WARNING: /" >&2
14189 echo "$as_me:$LINENO: checking for $ac_header" >&5
14190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14192 echo $ECHO_N "(cached) $ECHO_C" >&6
14194 eval "$as_ac_Header=\$ac_header_preproc"
14196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14201 cat >>confdefs.h <<_ACEOF
14202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14206 cat >>confdefs.h <<\_ACEOF
14207 #define HAVE_INTTYPES_H 1
14211 cat >>confdefs.h <<\_ACEOF
14212 #define JV_HAVE_INTTYPES_H 1
14220 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14221 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14222 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 cat >conftest.$ac_ext <<_ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <sys/types.h>
14232 #include <sys/wait.h>
14233 #ifndef WEXITSTATUS
14234 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14237 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14245 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14250 rm -f conftest.$ac_objext
14251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14252 (eval $ac_compile) 2>conftest.er1
14254 grep -v '^ *+' conftest.er1 >conftest.err
14256 cat conftest.err >&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); } &&
14259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261 (eval $ac_try) 2>&5
14263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264 (exit $ac_status); }; } &&
14265 { ac_try='test -s conftest.$ac_objext'
14266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14267 (eval $ac_try) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; }; then
14271 ac_cv_header_sys_wait_h=yes
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_header_sys_wait_h=no
14278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14280 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14282 if test $ac_cv_header_sys_wait_h = yes; then
14284 cat >>confdefs.h <<\_ACEOF
14285 #define HAVE_SYS_WAIT_H 1
14291 echo "$as_me:$LINENO: checking for ssize_t" >&5
14292 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14293 if test "${ac_cv_type_ssize_t+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 $ac_includes_default
14308 if (sizeof (ssize_t))
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" || test ! -s conftest.err'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest.$ac_objext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_cv_type_ssize_t=yes
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ac_cv_type_ssize_t=no
14342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14344 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14345 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14346 if test $ac_cv_type_ssize_t = yes; then
14350 cat >>confdefs.h <<_ACEOF
14351 #define ssize_t int
14357 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14358 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14359 cat >conftest.$ac_ext <<_ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 #include <sys/types.h>
14367 #include <stdlib.h>
14368 #include <stddef.h>
14370 #if HAVE_NETINET_IN_H
14371 #include <netinet/in.h>
14381 rm -f conftest.$ac_objext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14383 (eval $ac_compile) 2>conftest.er1
14385 grep -v '^ *+' conftest.er1 >conftest.err
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; } &&
14396 { ac_try='test -s conftest.$ac_objext'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; }; then
14403 cat >>confdefs.h <<\_ACEOF
14404 #define HAVE_IN_ADDR_T 1
14407 echo "$as_me:$LINENO: result: yes" >&5
14408 echo "${ECHO_T}yes" >&6
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 echo "$as_me:$LINENO: result: no" >&5
14414 echo "${ECHO_T}no" >&6
14416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14418 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14419 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 #include <netinet/in.h>
14430 struct ip_mreq mreq;
14435 rm -f conftest.$ac_objext
14436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14437 (eval $ac_compile) 2>conftest.er1
14439 grep -v '^ *+' conftest.er1 >conftest.err
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest.$ac_objext'
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14457 cat >>confdefs.h <<\_ACEOF
14458 #define HAVE_STRUCT_IP_MREQ 1
14461 echo "$as_me:$LINENO: result: yes" >&5
14462 echo "${ECHO_T}yes" >&6
14464 echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.$ac_ext >&5
14467 echo "$as_me:$LINENO: result: no" >&5
14468 echo "${ECHO_T}no" >&6
14470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14472 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14473 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14474 cat >conftest.$ac_ext <<_ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 #include <netinet/in.h>
14484 struct ipv6_mreq mreq6;
14489 rm -f conftest.$ac_objext
14490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14491 (eval $ac_compile) 2>conftest.er1
14493 grep -v '^ *+' conftest.er1 >conftest.err
14495 cat conftest.err >&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
14498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; } &&
14504 { ac_try='test -s conftest.$ac_objext'
14505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
14511 cat >>confdefs.h <<\_ACEOF
14512 #define HAVE_STRUCT_IPV6_MREQ 1
14515 echo "$as_me:$LINENO: result: yes" >&5
14516 echo "${ECHO_T}yes" >&6
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14521 echo "$as_me:$LINENO: result: no" >&5
14522 echo "${ECHO_T}no" >&6
14524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14526 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14527 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14528 cat >conftest.$ac_ext <<_ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534 #include <netinet/in.h>
14538 struct sockaddr_in6 addr6;
14543 rm -f conftest.$ac_objext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14545 (eval $ac_compile) 2>conftest.er1
14547 grep -v '^ *+' conftest.er1 >conftest.err
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; } &&
14558 { ac_try='test -s conftest.$ac_objext'
14559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14560 (eval $ac_try) 2>&5
14562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14563 (exit $ac_status); }; }; then
14565 cat >>confdefs.h <<\_ACEOF
14566 #define HAVE_INET6 1
14569 echo "$as_me:$LINENO: result: yes" >&5
14570 echo "${ECHO_T}yes" >&6
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 echo "$as_me:$LINENO: result: no" >&5
14576 echo "${ECHO_T}no" >&6
14578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14580 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
14581 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
14582 cat >conftest.$ac_ext <<_ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 #define _POSIX_PII_SOCKET
14589 #include <sys/types.h>
14590 #include <sys/socket.h>
14599 rm -f conftest.$ac_objext
14600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14601 (eval $ac_compile) 2>conftest.er1
14603 grep -v '^ *+' conftest.er1 >conftest.err
14605 cat conftest.err >&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } &&
14608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; } &&
14614 { ac_try='test -s conftest.$ac_objext'
14615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616 (eval $ac_try) 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14621 cat >>confdefs.h <<\_ACEOF
14622 #define HAVE_SOCKLEN_T 1
14625 echo "$as_me:$LINENO: result: yes" >&5
14626 echo "${ECHO_T}yes" >&6
14628 echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14631 echo "$as_me:$LINENO: result: no" >&5
14632 echo "${ECHO_T}no" >&6
14634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14636 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
14637 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
14638 cat >conftest.$ac_ext <<_ACEOF
14641 cat confdefs.h >>conftest.$ac_ext
14642 cat >>conftest.$ac_ext <<_ACEOF
14643 /* end confdefs.h. */
14648 struct tm tim; tim.tm_gmtoff = 0;
14653 rm -f conftest.$ac_objext
14654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14655 (eval $ac_compile) 2>conftest.er1
14657 grep -v '^ *+' conftest.er1 >conftest.err
14659 cat conftest.err >&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); } &&
14662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; } &&
14668 { ac_try='test -s conftest.$ac_objext'
14669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14670 (eval $ac_try) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); }; }; then
14675 cat >>confdefs.h <<\_ACEOF
14676 #define STRUCT_TM_HAS_GMTOFF 1
14679 echo "$as_me:$LINENO: result: yes" >&5
14680 echo "${ECHO_T}yes" >&6
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 echo "$as_me:$LINENO: result: no" >&5
14686 echo "${ECHO_T}no" >&6
14687 echo "$as_me:$LINENO: checking for global timezone variable" >&5
14688 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
14689 cat >conftest.$ac_ext <<_ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14699 void i(){long z2 = 2*timezone;}
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706 (eval $ac_compile) 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; } &&
14719 { ac_try='test -s conftest.$ac_objext'
14720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721 (eval $ac_try) 2>&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); }; }; then
14726 cat >>confdefs.h <<\_ACEOF
14727 #define HAVE_TIMEZONE 1
14730 echo "$as_me:$LINENO: result: yes" >&5
14731 echo "${ECHO_T}yes" >&6
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.$ac_ext >&5
14736 echo "$as_me:$LINENO: result: no" >&5
14737 echo "${ECHO_T}no" >&6
14738 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
14739 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
14740 cat >conftest.$ac_ext <<_ACEOF
14743 cat confdefs.h >>conftest.$ac_ext
14744 cat >>conftest.$ac_ext <<_ACEOF
14745 /* end confdefs.h. */
14750 long z2 = _timezone;
14755 rm -f conftest.$ac_objext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14757 (eval $ac_compile) 2>conftest.er1
14759 grep -v '^ *+' conftest.er1 >conftest.err
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } &&
14764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; } &&
14770 { ac_try='test -s conftest.$ac_objext'
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14777 cat >>confdefs.h <<\_ACEOF
14778 #define HAVE_UNDERSCORE_TIMEZONE 1
14781 echo "$as_me:$LINENO: result: yes" >&5
14782 echo "${ECHO_T}yes" >&6
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 echo "$as_me:$LINENO: result: no" >&5
14788 echo "${ECHO_T}no" >&6
14790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14796 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14797 # for constant arguments. Useless!
14798 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14799 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14800 if test "${ac_cv_working_alloca_h+set}" = set; then
14801 echo $ECHO_N "(cached) $ECHO_C" >&6
14803 if test x$gcc_no_link = xyes; then
14804 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14805 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14806 { (exit 1); exit 1; }; }
14808 cat >conftest.$ac_ext <<_ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14814 #include <alloca.h>
14818 char *p = (char *) alloca (2 * sizeof (int));
14823 rm -f conftest.$ac_objext conftest$ac_exeext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14825 (eval $ac_link) 2>conftest.er1
14827 grep -v '^ *+' conftest.er1 >conftest.err
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14834 (eval $ac_try) 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest$ac_exeext'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 ac_cv_working_alloca_h=yes
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14849 ac_cv_working_alloca_h=no
14851 rm -f conftest.err conftest.$ac_objext \
14852 conftest$ac_exeext conftest.$ac_ext
14854 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14855 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14856 if test $ac_cv_working_alloca_h = yes; then
14858 cat >>confdefs.h <<\_ACEOF
14859 #define HAVE_ALLOCA_H 1
14864 echo "$as_me:$LINENO: checking for alloca" >&5
14865 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14866 if test "${ac_cv_func_alloca_works+set}" = set; then
14867 echo $ECHO_N "(cached) $ECHO_C" >&6
14869 if test x$gcc_no_link = xyes; then
14870 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14871 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14872 { (exit 1); exit 1; }; }
14874 cat >conftest.$ac_ext <<_ACEOF
14877 cat confdefs.h >>conftest.$ac_ext
14878 cat >>conftest.$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14881 # define alloca __builtin_alloca
14884 # include <malloc.h>
14885 # define alloca _alloca
14888 # include <alloca.h>
14893 # ifndef alloca /* predefined by HP cc +Olibcalls */
14904 char *p = (char *) alloca (1);
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14911 (eval $ac_link) 2>conftest.er1
14913 grep -v '^ *+' conftest.er1 >conftest.err
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
14918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; } &&
14924 { ac_try='test -s conftest$ac_exeext'
14925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14926 (eval $ac_try) 2>&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); }; }; then
14930 ac_cv_func_alloca_works=yes
14932 echo "$as_me: failed program was:" >&5
14933 sed 's/^/| /' conftest.$ac_ext >&5
14935 ac_cv_func_alloca_works=no
14937 rm -f conftest.err conftest.$ac_objext \
14938 conftest$ac_exeext conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14941 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14943 if test $ac_cv_func_alloca_works = yes; then
14945 cat >>confdefs.h <<\_ACEOF
14946 #define HAVE_ALLOCA 1
14950 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14951 # that cause trouble. Some versions do not even contain alloca or
14952 # contain a buggy version. If you still want to use their alloca,
14953 # use ar to extract alloca.o from them instead of compiling alloca.c.
14955 ALLOCA=alloca.$ac_objext
14957 cat >>confdefs.h <<\_ACEOF
14962 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14963 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14964 if test "${ac_cv_os_cray+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #if defined(CRAY) && ! defined(CRAY2)
14980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14981 $EGREP "webecray" >/dev/null 2>&1; then
14989 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14990 echo "${ECHO_T}$ac_cv_os_cray" >&6
14991 if test $ac_cv_os_cray = yes; then
14992 for ac_func in _getb67 GETB67 getb67; do
14993 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14994 echo "$as_me:$LINENO: checking for $ac_func" >&5
14995 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14996 if eval "test \"\${$as_ac_var+set}\" = set"; then
14997 echo $ECHO_N "(cached) $ECHO_C" >&6
14999 if test x$gcc_no_link = xyes; then
15000 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15001 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15002 { (exit 1); exit 1; }; }
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15012 #define $ac_func innocuous_$ac_func
15014 /* System header to define __stub macros and hopefully few prototypes,
15015 which can conflict with char $ac_func (); below.
15016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15017 <limits.h> exists even on freestanding compilers. */
15020 # include <limits.h>
15022 # include <assert.h>
15027 /* Override any gcc2 internal prototype to avoid an error. */
15032 /* We use char because int might match the return type of a gcc2
15033 builtin and then its argument prototype would still apply. */
15035 /* The GNU C library defines this for functions which it implements
15036 to always fail with ENOSYS. Some functions are actually named
15037 something starting with __ and the normal name is an alias. */
15038 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15041 char (*f) () = $ac_func;
15050 return f != $ac_func;
15055 rm -f conftest.$ac_objext conftest$ac_exeext
15056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15057 (eval $ac_link) 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } &&
15064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; } &&
15070 { ac_try='test -s conftest$ac_exeext'
15071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072 (eval $ac_try) 2>&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); }; }; then
15076 eval "$as_ac_var=yes"
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 eval "$as_ac_var=no"
15083 rm -f conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
15086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15088 if test `eval echo '${'$as_ac_var'}'` = yes; then
15090 cat >>confdefs.h <<_ACEOF
15091 #define CRAY_STACKSEG_END $ac_func
15100 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15101 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15102 if test "${ac_cv_c_stack_direction+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 if test "$cross_compiling" = yes; then
15106 ac_cv_c_stack_direction=0
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15115 find_stack_direction ()
15117 static char *addr = 0;
15122 return find_stack_direction ();
15125 return (&dummy > addr) ? 1 : -1;
15131 exit (find_stack_direction () < 0);
15134 rm -f conftest$ac_exeext
15135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15136 (eval $ac_link) 2>&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15141 (eval $ac_try) 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15145 ac_cv_c_stack_direction=1
15147 echo "$as_me: program exited with status $ac_status" >&5
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ( exit $ac_status )
15152 ac_cv_c_stack_direction=-1
15154 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15157 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15158 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15160 cat >>confdefs.h <<_ACEOF
15161 #define STACK_DIRECTION $ac_cv_c_stack_direction
15167 if test x$gcc_no_link = xyes; then
15168 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15169 ac_cv_func_mmap_fixed_mapped=no
15172 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15175 for ac_header in stdlib.h unistd.h
15177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15179 echo "$as_me:$LINENO: checking for $ac_header" >&5
15180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15187 # Is the header compilable?
15188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15190 cat >conftest.$ac_ext <<_ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 $ac_includes_default
15197 #include <$ac_header>
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>conftest.er1
15203 grep -v '^ *+' conftest.er1 >conftest.err
15205 cat conftest.err >&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15214 { ac_try='test -s conftest.$ac_objext'
15215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15216 (eval $ac_try) 2>&5
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); }; }; then
15220 ac_header_compiler=yes
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 ac_header_compiler=no
15227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15228 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15229 echo "${ECHO_T}$ac_header_compiler" >&6
15231 # Is the header present?
15232 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15234 cat >conftest.$ac_ext <<_ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15240 #include <$ac_header>
15242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15245 grep -v '^ *+' conftest.er1 >conftest.err
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } >/dev/null; then
15250 if test -s conftest.err; then
15251 ac_cpp_err=$ac_c_preproc_warn_flag
15252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15259 if test -z "$ac_cpp_err"; then
15260 ac_header_preproc=yes
15262 echo "$as_me: failed program was:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15265 ac_header_preproc=no
15267 rm -f conftest.err conftest.$ac_ext
15268 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15269 echo "${ECHO_T}$ac_header_preproc" >&6
15271 # So? What about this header?
15272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15278 ac_header_preproc=yes
15281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15284 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15288 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15295 ## ---------------------------------- ##
15296 ## Report this to the libjava lists. ##
15297 ## ---------------------------------- ##
15300 sed "s/^/$as_me: WARNING: /" >&2
15303 echo "$as_me:$LINENO: checking for $ac_header" >&5
15304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15306 echo $ECHO_N "(cached) $ECHO_C" >&6
15308 eval "$as_ac_Header=\$ac_header_preproc"
15310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15315 cat >>confdefs.h <<_ACEOF
15316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15324 for ac_func in getpagesize
15326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15327 echo "$as_me:$LINENO: checking for $ac_func" >&5
15328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15329 if eval "test \"\${$as_ac_var+set}\" = set"; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 if test x$gcc_no_link = xyes; then
15333 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15334 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15335 { (exit 1); exit 1; }; }
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15345 #define $ac_func innocuous_$ac_func
15347 /* System header to define __stub macros and hopefully few prototypes,
15348 which can conflict with char $ac_func (); below.
15349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15350 <limits.h> exists even on freestanding compilers. */
15353 # include <limits.h>
15355 # include <assert.h>
15360 /* Override any gcc2 internal prototype to avoid an error. */
15365 /* We use char because int might match the return type of a gcc2
15366 builtin and then its argument prototype would still apply. */
15368 /* The GNU C library defines this for functions which it implements
15369 to always fail with ENOSYS. Some functions are actually named
15370 something starting with __ and the normal name is an alias. */
15371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15374 char (*f) () = $ac_func;
15383 return f != $ac_func;
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390 (eval $ac_link) 2>conftest.er1
15392 grep -v '^ *+' conftest.er1 >conftest.err
15394 cat conftest.err >&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); } &&
15397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15399 (eval $ac_try) 2>&5
15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15402 (exit $ac_status); }; } &&
15403 { ac_try='test -s conftest$ac_exeext'
15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15405 (eval $ac_try) 2>&5
15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15408 (exit $ac_status); }; }; then
15409 eval "$as_ac_var=yes"
15411 echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 eval "$as_ac_var=no"
15416 rm -f conftest.err conftest.$ac_objext \
15417 conftest$ac_exeext conftest.$ac_ext
15419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15421 if test `eval echo '${'$as_ac_var'}'` = yes; then
15422 cat >>confdefs.h <<_ACEOF
15423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15429 echo "$as_me:$LINENO: checking for working mmap" >&5
15430 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15431 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15432 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 if test "$cross_compiling" = yes; then
15435 ac_cv_func_mmap_fixed_mapped=no
15437 cat >conftest.$ac_ext <<_ACEOF
15440 cat confdefs.h >>conftest.$ac_ext
15441 cat >>conftest.$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 $ac_includes_default
15444 /* malloc might have been renamed as rpl_malloc. */
15447 /* Thanks to Mike Haertel and Jim Avera for this test.
15448 Here is a matrix of mmap possibilities:
15449 mmap private not fixed
15450 mmap private fixed at somewhere currently unmapped
15451 mmap private fixed at somewhere already mapped
15452 mmap shared not fixed
15453 mmap shared fixed at somewhere currently unmapped
15454 mmap shared fixed at somewhere already mapped
15455 For private mappings, we should verify that changes cannot be read()
15456 back from the file, nor mmap's back from the file at a different
15457 address. (There have been systems where private was not correctly
15458 implemented like the infamous i386 svr4.0, and systems where the
15459 VM page cache was not coherent with the file system buffer cache
15460 like early versions of FreeBSD and possibly contemporary NetBSD.)
15461 For shared mappings, we should conversely verify that changes get
15462 propagated back to all the places they're supposed to be.
15464 Grep wants private fixed already mapped.
15465 The main things grep needs to know about mmap are:
15466 * does it exist and is it safe to write into the mmap'd area
15467 * how to use it (BSD variants) */
15470 #include <sys/mman.h>
15472 #if !STDC_HEADERS && !HAVE_STDLIB_H
15476 /* This mess was copied from the GNU getpagesize.h. */
15477 #if !HAVE_GETPAGESIZE
15478 /* Assume that all systems that can run configure have sys/param.h. */
15479 # if !HAVE_SYS_PARAM_H
15480 # define HAVE_SYS_PARAM_H 1
15483 # ifdef _SC_PAGESIZE
15484 # define getpagesize() sysconf(_SC_PAGESIZE)
15485 # else /* no _SC_PAGESIZE */
15486 # if HAVE_SYS_PARAM_H
15487 # include <sys/param.h>
15488 # ifdef EXEC_PAGESIZE
15489 # define getpagesize() EXEC_PAGESIZE
15490 # else /* no EXEC_PAGESIZE */
15492 # define getpagesize() NBPG * CLSIZE
15495 # endif /* no CLSIZE */
15496 # else /* no NBPG */
15498 # define getpagesize() NBPC
15499 # else /* no NBPC */
15501 # define getpagesize() PAGESIZE
15502 # endif /* PAGESIZE */
15503 # endif /* no NBPC */
15504 # endif /* no NBPG */
15505 # endif /* no EXEC_PAGESIZE */
15506 # else /* no HAVE_SYS_PARAM_H */
15507 # define getpagesize() 8192 /* punt totally */
15508 # endif /* no HAVE_SYS_PARAM_H */
15509 # endif /* no _SC_PAGESIZE */
15511 #endif /* no HAVE_GETPAGESIZE */
15516 char *data, *data2, *data3;
15520 pagesize = getpagesize ();
15522 /* First, make a file with some known garbage in it. */
15523 data = (char *) malloc (pagesize);
15526 for (i = 0; i < pagesize; ++i)
15527 *(data + i) = rand ();
15529 fd = creat ("conftest.mmap", 0600);
15532 if (write (fd, data, pagesize) != pagesize)
15536 /* Next, try to mmap the file at a fixed address which already has
15537 something else allocated at it. If we can, also make sure that
15538 we see the same garbage. */
15539 fd = open ("conftest.mmap", O_RDWR);
15542 data2 = (char *) malloc (2 * pagesize);
15545 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15546 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15547 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15549 for (i = 0; i < pagesize; ++i)
15550 if (*(data + i) != *(data2 + i))
15553 /* Finally, make sure that changes to the mapped area do not
15554 percolate back to the file as seen by read(). (This is a bug on
15555 some variants of i386 svr4.0.) */
15556 for (i = 0; i < pagesize; ++i)
15557 *(data2 + i) = *(data2 + i) + 1;
15558 data3 = (char *) malloc (pagesize);
15561 if (read (fd, data3, pagesize) != pagesize)
15563 for (i = 0; i < pagesize; ++i)
15564 if (*(data + i) != *(data3 + i))
15570 rm -f conftest$ac_exeext
15571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15572 (eval $ac_link) 2>&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; }; then
15581 ac_cv_func_mmap_fixed_mapped=yes
15583 echo "$as_me: program exited with status $ac_status" >&5
15584 echo "$as_me: failed program was:" >&5
15585 sed 's/^/| /' conftest.$ac_ext >&5
15587 ( exit $ac_status )
15588 ac_cv_func_mmap_fixed_mapped=no
15590 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15593 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15594 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15595 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE_MMAP 1
15602 rm -f conftest.mmap
15606 for ac_prog in perl
15608 # Extract the first word of "$ac_prog", so it can be a program name with args.
15609 set dummy $ac_prog; ac_word=$2
15610 echo "$as_me:$LINENO: checking for $ac_word" >&5
15611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15612 if test "${ac_cv_prog_PERL+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15615 if test -n "$PERL"; then
15616 ac_cv_prog_PERL="$PERL" # Let the user override the test.
15618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15619 for as_dir in $PATH
15622 test -z "$as_dir" && as_dir=.
15623 for ac_exec_ext in '' $ac_executable_extensions; do
15624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15625 ac_cv_prog_PERL="$ac_prog"
15626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15634 PERL=$ac_cv_prog_PERL
15635 if test -n "$PERL"; then
15636 echo "$as_me:$LINENO: result: $PERL" >&5
15637 echo "${ECHO_T}$PERL" >&6
15639 echo "$as_me:$LINENO: result: no" >&5
15640 echo "${ECHO_T}no" >&6
15643 test -n "$PERL" && break
15645 test -n "$PERL" || PERL="false"
15649 SIGNAL_HANDLER_AUX=
15653 SIGNAL_HANDLER=include/i386-signal.h
15655 sparc*-sun-solaris*)
15656 SIGNAL_HANDLER=include/sparc-signal.h
15659 # SYSDEP_SOURCES=sysdep/ia64.c
15660 # test -d sysdep || mkdir sysdep
15663 SIGNAL_HANDLER=include/pa-signal.h
15666 SIGNAL_HANDLER=include/dwarf2-signal.h
15669 SIGNAL_HANDLER=include/powerpc-signal.h
15672 SIGNAL_HANDLER=include/dwarf2-signal.h
15675 SIGNAL_HANDLER=include/s390-signal.h
15678 SIGNAL_HANDLER=include/x86_64-signal.h
15679 SIGNAL_HANDLER_AUX=include/i386-signal.h
15682 SIGNAL_HANDLER=include/dwarf2-signal.h
15685 SIGNAL_HANDLER=include/sh-signal.h
15688 SIGNAL_HANDLER=include/win32-signal.h
15691 SIGNAL_HANDLER=include/mips-signal.h
15694 SIGNAL_HANDLER=include/darwin-signal.h
15697 SIGNAL_HANDLER=include/default-signal.h
15701 # If we're using sjlj exceptions, forget what we just learned.
15702 if test "$enable_sjlj_exceptions" = yes; then
15703 SIGNAL_HANDLER=include/default-signal.h
15704 SIGNAL_HANDLER_AUX=
15707 # Define here any compiler flags that you need in order to make backtrace() work.
15710 x86_64*-*-linux*|i?86-*)
15711 BACKTRACESPEC=-fno-omit-frame-pointer
15718 if test -z "$SIGNAL_HANDLER_AUX"; then
15719 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
15722 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
15725 if test "${multilib}" = "yes"; then
15726 multilib_arg="--enable-multilib"
15733 here=`${PWDCMD-pwd}`
15736 # We get this from the environment.
15739 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile"
15742 ac_config_commands="$ac_config_commands default"
15745 cat >confcache <<\_ACEOF
15746 # This file is a shell script that caches the results of configure
15747 # tests run on this system so they can be shared between configure
15748 # scripts and configure runs, see configure's option --config-cache.
15749 # It is not useful on other systems. If it contains results you don't
15750 # want to keep, you may remove or edit it.
15752 # config.status only pays attention to the cache file if you give it
15753 # the --recheck option to rerun configure.
15755 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15756 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15757 # following values.
15761 # The following way of writing the cache mishandles newlines in values,
15762 # but we know of no workaround that is simple, portable, and efficient.
15763 # So, don't put newlines in cache variables' values.
15764 # Ultrix sh set writes to stderr and can't be redirected directly,
15765 # and sets the high bit in the cache file unless we assign to the vars.
15768 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15770 # `set' does not quote correctly, so add quotes (double-quote
15771 # substitution turns \\\\ into \\, and sed turns \\ into \).
15774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15777 # `set' quotes correctly as required by POSIX, so do not add quotes.
15779 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15786 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15788 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15790 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15791 if test -w $cache_file; then
15792 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15793 cat confcache >$cache_file
15795 echo "not updating unwritable cache $cache_file"
15800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15801 # Let make expand exec_prefix.
15802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15804 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15805 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15806 # trailing colons and then remove the whole line if VPATH becomes empty
15807 # (actually we leave an empty line to preserve line numbers).
15808 if test "x$srcdir" = x.; then
15809 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15810 s/:*\$(srcdir):*/:/;
15811 s/:*\${srcdir}:*/:/;
15813 s/^\([^=]*=[ ]*\):*/\1/;
15819 DEFS=-DHAVE_CONFIG_H
15823 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15824 # 1. Remove the extension, and $U if already installed.
15825 ac_i=`echo "$ac_i" |
15826 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15828 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15829 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15831 LIBOBJS=$ac_libobjs
15833 LTLIBOBJS=$ac_ltlibobjs
15836 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15837 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15838 Usually this means the macro was only invoked conditionally." >&5
15839 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15840 Usually this means the macro was only invoked conditionally." >&2;}
15841 { (exit 1); exit 1; }; }
15843 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15844 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15845 Usually this means the macro was only invoked conditionally." >&5
15846 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15847 Usually this means the macro was only invoked conditionally." >&2;}
15848 { (exit 1); exit 1; }; }
15850 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15851 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
15852 Usually this means the macro was only invoked conditionally." >&5
15853 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
15854 Usually this means the macro was only invoked conditionally." >&2;}
15855 { (exit 1); exit 1; }; }
15857 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15858 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
15859 Usually this means the macro was only invoked conditionally." >&5
15860 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
15861 Usually this means the macro was only invoked conditionally." >&2;}
15862 { (exit 1); exit 1; }; }
15864 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
15865 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
15866 Usually this means the macro was only invoked conditionally." >&5
15867 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
15868 Usually this means the macro was only invoked conditionally." >&2;}
15869 { (exit 1); exit 1; }; }
15871 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15872 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
15873 Usually this means the macro was only invoked conditionally." >&5
15874 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
15875 Usually this means the macro was only invoked conditionally." >&2;}
15876 { (exit 1); exit 1; }; }
15878 if test -z "${ONESTEP_TRUE}" && test -z "${ONESTEP_FALSE}"; then
15879 { { echo "$as_me:$LINENO: error: conditional \"ONESTEP\" was never defined.
15880 Usually this means the macro was only invoked conditionally." >&5
15881 echo "$as_me: error: conditional \"ONESTEP\" was never defined.
15882 Usually this means the macro was only invoked conditionally." >&2;}
15883 { (exit 1); exit 1; }; }
15885 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
15886 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
15887 Usually this means the macro was only invoked conditionally." >&5
15888 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
15889 Usually this means the macro was only invoked conditionally." >&2;}
15890 { (exit 1); exit 1; }; }
15892 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
15893 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15894 Usually this means the macro was only invoked conditionally." >&5
15895 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
15896 Usually this means the macro was only invoked conditionally." >&2;}
15897 { (exit 1); exit 1; }; }
15899 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
15900 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15901 Usually this means the macro was only invoked conditionally." >&5
15902 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
15903 Usually this means the macro was only invoked conditionally." >&2;}
15904 { (exit 1); exit 1; }; }
15906 if test -z "${USING_ECOS_PLATFORM_TRUE}" && test -z "${USING_ECOS_PLATFORM_FALSE}"; then
15907 { { echo "$as_me:$LINENO: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15908 Usually this means the macro was only invoked conditionally." >&5
15909 echo "$as_me: error: conditional \"USING_ECOS_PLATFORM\" was never defined.
15910 Usually this means the macro was only invoked conditionally." >&2;}
15911 { (exit 1); exit 1; }; }
15913 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
15914 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
15915 Usually this means the macro was only invoked conditionally." >&5
15916 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
15917 Usually this means the macro was only invoked conditionally." >&2;}
15918 { (exit 1); exit 1; }; }
15920 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
15921 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
15922 Usually this means the macro was only invoked conditionally." >&5
15923 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
15924 Usually this means the macro was only invoked conditionally." >&2;}
15925 { (exit 1); exit 1; }; }
15927 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
15928 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
15929 Usually this means the macro was only invoked conditionally." >&5
15930 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
15931 Usually this means the macro was only invoked conditionally." >&2;}
15932 { (exit 1); exit 1; }; }
15934 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
15935 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
15936 Usually this means the macro was only invoked conditionally." >&5
15937 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
15938 Usually this means the macro was only invoked conditionally." >&2;}
15939 { (exit 1); exit 1; }; }
15941 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
15942 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
15943 Usually this means the macro was only invoked conditionally." >&5
15944 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
15945 Usually this means the macro was only invoked conditionally." >&2;}
15946 { (exit 1); exit 1; }; }
15948 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
15949 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
15950 Usually this means the macro was only invoked conditionally." >&5
15951 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
15952 Usually this means the macro was only invoked conditionally." >&2;}
15953 { (exit 1); exit 1; }; }
15955 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
15956 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
15957 Usually this means the macro was only invoked conditionally." >&5
15958 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
15959 Usually this means the macro was only invoked conditionally." >&2;}
15960 { (exit 1); exit 1; }; }
15962 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
15963 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
15964 Usually this means the macro was only invoked conditionally." >&5
15965 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
15966 Usually this means the macro was only invoked conditionally." >&2;}
15967 { (exit 1); exit 1; }; }
15969 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
15970 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
15971 Usually this means the macro was only invoked conditionally." >&5
15972 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
15973 Usually this means the macro was only invoked conditionally." >&2;}
15974 { (exit 1); exit 1; }; }
15976 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
15977 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
15978 Usually this means the macro was only invoked conditionally." >&5
15979 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
15980 Usually this means the macro was only invoked conditionally." >&2;}
15981 { (exit 1); exit 1; }; }
15983 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
15984 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15985 Usually this means the macro was only invoked conditionally." >&5
15986 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
15987 Usually this means the macro was only invoked conditionally." >&2;}
15988 { (exit 1); exit 1; }; }
15990 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
15991 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
15992 Usually this means the macro was only invoked conditionally." >&5
15993 echo "$as_me: error: conditional \"NATIVE\" was never defined.
15994 Usually this means the macro was only invoked conditionally." >&2;}
15995 { (exit 1); exit 1; }; }
15997 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
15998 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
15999 Usually this means the macro was only invoked conditionally." >&5
16000 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16001 Usually this means the macro was only invoked conditionally." >&2;}
16002 { (exit 1); exit 1; }; }
16005 : ${CONFIG_STATUS=./config.status}
16006 ac_clean_files_save=$ac_clean_files
16007 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16008 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16009 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16010 cat >$CONFIG_STATUS <<_ACEOF
16012 # Generated by $as_me.
16013 # Run this file to recreate the current configuration.
16014 # Compiler output produced by configure, useful for debugging
16015 # configure, is in config.log if it exists.
16018 ac_cs_recheck=false
16020 SHELL=\${CONFIG_SHELL-$SHELL}
16023 cat >>$CONFIG_STATUS <<\_ACEOF
16024 ## --------------------- ##
16025 ## M4sh Initialization. ##
16026 ## --------------------- ##
16028 # Be Bourne compatible
16029 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16032 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16033 # is contrary to our usage. Disable this feature.
16034 alias -g '${1+"$@"}'='"$@"'
16035 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16038 DUALCASE=1; export DUALCASE # for MKS sh
16040 # Support unset when possible.
16041 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16048 # Work around bugs in pre-3.0 UWIN ksh.
16049 $as_unset ENV MAIL MAILPATH
16056 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16057 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16058 LC_TELEPHONE LC_TIME
16060 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16061 eval $as_var=C; export $as_var
16067 # Required to use basename.
16068 if expr a : '\(a\)' >/dev/null 2>&1; then
16074 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16075 as_basename=basename
16081 # Name of the executable.
16082 as_me=`$as_basename "$0" ||
16083 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16084 X"$0" : 'X\(//\)$' \| \
16085 X"$0" : 'X\(/\)$' \| \
16086 . : '\(.\)' 2>/dev/null ||
16088 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16089 /^X\/\(\/\/\)$/{ s//\1/; q; }
16090 /^X\/\(\/\).*/{ s//\1/; q; }
16094 # PATH needs CR, and LINENO needs CR and PATH.
16095 # Avoid depending upon Character Ranges.
16096 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16097 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16098 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16099 as_cr_digits='0123456789'
16100 as_cr_alnum=$as_cr_Letters$as_cr_digits
16102 # The user is always right.
16103 if test "${PATH_SEPARATOR+set}" != set; then
16104 echo "#! /bin/sh" >conf$$.sh
16105 echo "exit 0" >>conf$$.sh
16107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16116 as_lineno_1=$LINENO
16117 as_lineno_2=$LINENO
16118 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16119 test "x$as_lineno_1" != "x$as_lineno_2" &&
16120 test "x$as_lineno_3" = "x$as_lineno_2" || {
16121 # Find who we are. Look in the path if we contain no path at all
16124 *[\\/]* ) as_myself=$0 ;;
16125 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16129 test -z "$as_dir" && as_dir=.
16130 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16135 # We did not find ourselves, most probably we were run as `sh COMMAND'
16136 # in which case we are not to be found in the path.
16137 if test "x$as_myself" = x; then
16140 if test ! -f "$as_myself"; then
16141 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16142 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16143 { (exit 1); exit 1; }; }
16145 case $CONFIG_SHELL in
16147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16148 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16151 test -z "$as_dir" && as_dir=.
16152 for as_base in sh bash ksh sh5; do
16155 if ("$as_dir/$as_base" -c '
16156 as_lineno_1=$LINENO
16157 as_lineno_2=$LINENO
16158 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16159 test "x$as_lineno_1" != "x$as_lineno_2" &&
16160 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16161 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16162 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16163 CONFIG_SHELL=$as_dir/$as_base
16164 export CONFIG_SHELL
16165 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16173 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16174 # uniformly replaced by the line number. The first 'sed' inserts a
16175 # line-number line before each line; the second 'sed' does the real
16176 # work. The second script uses 'N' to pair each line-number line
16177 # with the numbered line, and appends trailing '-' during
16178 # substitution so that $LINENO is not a special case at line end.
16179 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16180 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16181 sed '=' <$as_myself |
16186 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16189 s,^['$as_cr_digits']*\n,,
16190 ' >$as_me.lineno &&
16191 chmod +x $as_me.lineno ||
16192 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16193 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16194 { (exit 1); exit 1; }; }
16196 # Don't try to exec as it changes $[0], causing all sort of problems
16197 # (the dirname of $[0] is not the place where we might find the
16198 # original and so on. Autoconf is especially sensible to this).
16200 # Exit status is that of the last command.
16205 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16206 *c*,-n*) ECHO_N= ECHO_C='
16208 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16209 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16212 if expr a : '\(a\)' >/dev/null 2>&1; then
16218 rm -f conf$$ conf$$.exe conf$$.file
16220 if ln -s conf$$.file conf$$ 2>/dev/null; then
16221 # We could just check for DJGPP; but this test a) works b) is more generic
16222 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16223 if test -f conf$$.exe; then
16224 # Don't use ln at all; we don't have any links
16229 elif ln conf$$.file conf$$ 2>/dev/null; then
16234 rm -f conf$$ conf$$.exe conf$$.file
16236 if mkdir -p . 2>/dev/null; then
16239 test -d ./-p && rmdir ./-p
16243 as_executable_p="test -f"
16245 # Sed expression to map a string onto a valid CPP name.
16246 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16248 # Sed expression to map a string onto a valid variable name.
16249 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16253 # We need space, tab and new line, in precisely that order.
16263 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16264 # report actual input values of CONFIG_FILES etc. instead of their
16265 # values after options handling. Logging --version etc. is OK.
16269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16270 ## Running $as_me. ##
16275 This file was extended by libjava $as_me version-unused, which was
16276 generated by GNU Autoconf 2.59. Invocation command line was
16278 CONFIG_FILES = $CONFIG_FILES
16279 CONFIG_HEADERS = $CONFIG_HEADERS
16280 CONFIG_LINKS = $CONFIG_LINKS
16281 CONFIG_COMMANDS = $CONFIG_COMMANDS
16285 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16289 # Files that config.status was made for.
16290 if test -n "$ac_config_files"; then
16291 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16294 if test -n "$ac_config_headers"; then
16295 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16298 if test -n "$ac_config_links"; then
16299 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16302 if test -n "$ac_config_commands"; then
16303 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16306 cat >>$CONFIG_STATUS <<\_ACEOF
16309 \`$as_me' instantiates files from templates according to the
16310 current configuration.
16312 Usage: $0 [OPTIONS] [FILE]...
16314 -h, --help print this help, then exit
16315 -V, --version print version number, then exit
16316 -q, --quiet do not print progress messages
16317 -d, --debug don't remove temporary files
16318 --recheck update $as_me by reconfiguring in the same conditions
16319 --file=FILE[:TEMPLATE]
16320 instantiate the configuration file FILE
16321 --header=FILE[:TEMPLATE]
16322 instantiate the configuration header FILE
16324 Configuration files:
16327 Configuration headers:
16330 Configuration links:
16333 Configuration commands:
16336 Report bugs to <bug-autoconf@gnu.org>."
16339 cat >>$CONFIG_STATUS <<_ACEOF
16341 libjava config.status version-unused
16342 configured by $0, generated by GNU Autoconf 2.59,
16343 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16345 Copyright (C) 2003 Free Software Foundation, Inc.
16346 This config.status script is free software; the Free Software Foundation
16347 gives unlimited permission to copy, distribute and modify it."
16352 cat >>$CONFIG_STATUS <<\_ACEOF
16353 # If no file are specified by the user, then we need to provide default
16354 # value. By we need to know if files were specified by the user.
16360 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16361 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16369 *) # This is not an option, so the user has probably given explicit
16372 ac_need_defaults=false;;
16376 # Handling of the options.
16378 cat >>$CONFIG_STATUS <<\_ACEOF
16379 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16381 --version | --vers* | -V )
16382 echo "$ac_cs_version"; exit 0 ;;
16384 # Conflict between --help and --header
16385 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16386 Try \`$0 --help' for more information." >&5
16387 echo "$as_me: error: ambiguous option: $1
16388 Try \`$0 --help' for more information." >&2;}
16389 { (exit 1); exit 1; }; };;
16390 --help | --hel | -h )
16391 echo "$ac_cs_usage"; exit 0 ;;
16392 --debug | --d* | -d )
16394 --file | --fil | --fi | --f )
16396 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16397 ac_need_defaults=false;;
16398 --header | --heade | --head | --hea )
16400 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16401 ac_need_defaults=false;;
16402 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16403 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16406 # This is an error.
16407 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16408 Try \`$0 --help' for more information." >&5
16409 echo "$as_me: error: unrecognized option: $1
16410 Try \`$0 --help' for more information." >&2;}
16411 { (exit 1); exit 1; }; } ;;
16413 *) ac_config_targets="$ac_config_targets $1" ;;
16419 ac_configure_extra_args=
16421 if $ac_cs_silent; then
16423 ac_configure_extra_args="$ac_configure_extra_args --silent"
16427 cat >>$CONFIG_STATUS <<_ACEOF
16428 if \$ac_cs_recheck; then
16429 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16430 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16435 cat >>$CONFIG_STATUS <<_ACEOF
16437 # INIT-COMMANDS section.
16440 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16444 with_multisubdir=${with_multisubdir}
16445 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16446 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16447 libgcj_basedir=${libgcj_basedir}
16450 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16457 cat >>$CONFIG_STATUS <<\_ACEOF
16458 for ac_config_target in $ac_config_targets
16460 case "$ac_config_target" in
16461 # Handling of arguments.
16462 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16463 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16464 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16465 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16466 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
16467 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16468 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16469 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16470 "external/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
16471 "external/sax/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
16472 "external/w3c_dom/Makefile" ) CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
16473 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16474 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16475 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16476 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16477 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16478 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
16479 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16480 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16481 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16482 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16483 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16484 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16485 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16486 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16487 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16488 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16489 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16490 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16491 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16492 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16493 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16494 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16495 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16496 { (exit 1); exit 1; }; };;
16500 # If the user did not use the arguments to specify the items to instantiate,
16501 # then the envvar interface is used. Set only those that are not.
16502 # We use the long form for the default assignment because of an extremely
16503 # bizarre bug on SunOS 4.1.3.
16504 if $ac_need_defaults; then
16505 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16506 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16507 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16508 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16511 # Have a temporary directory for convenience. Make it in the build tree
16512 # simply because there is no reason to put it here, and in addition,
16513 # creating and moving files from /tmp can sometimes cause problems.
16514 # Create a temporary directory, and hook for its removal unless debugging.
16517 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16518 trap '{ (exit 1); exit 1; }' 1 2 13 15
16521 # Create a (secure) tmp directory for tmp files.
16524 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16525 test -n "$tmp" && test -d "$tmp"
16528 tmp=./confstat$$-$RANDOM
16529 (umask 077 && mkdir $tmp)
16532 echo "$me: cannot create a temporary directory in ." >&2
16533 { (exit 1); exit 1; }
16538 cat >>$CONFIG_STATUS <<_ACEOF
16541 # CONFIG_FILES section.
16544 # No need to generate the scripts if there are no CONFIG_FILES.
16545 # This happens for instance when ./config.status config.h
16546 if test -n "\$CONFIG_FILES"; then
16547 # Protect against being on the right side of a sed subst in config.status.
16548 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16549 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16550 s,@SHELL@,$SHELL,;t t
16551 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16552 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16553 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16554 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16555 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16556 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16557 s,@exec_prefix@,$exec_prefix,;t t
16558 s,@prefix@,$prefix,;t t
16559 s,@program_transform_name@,$program_transform_name,;t t
16560 s,@bindir@,$bindir,;t t
16561 s,@sbindir@,$sbindir,;t t
16562 s,@libexecdir@,$libexecdir,;t t
16563 s,@datadir@,$datadir,;t t
16564 s,@sysconfdir@,$sysconfdir,;t t
16565 s,@sharedstatedir@,$sharedstatedir,;t t
16566 s,@localstatedir@,$localstatedir,;t t
16567 s,@libdir@,$libdir,;t t
16568 s,@includedir@,$includedir,;t t
16569 s,@oldincludedir@,$oldincludedir,;t t
16570 s,@infodir@,$infodir,;t t
16571 s,@mandir@,$mandir,;t t
16572 s,@build_alias@,$build_alias,;t t
16573 s,@host_alias@,$host_alias,;t t
16574 s,@target_alias@,$target_alias,;t t
16575 s,@DEFS@,$DEFS,;t t
16576 s,@ECHO_C@,$ECHO_C,;t t
16577 s,@ECHO_N@,$ECHO_N,;t t
16578 s,@ECHO_T@,$ECHO_T,;t t
16579 s,@LIBS@,$LIBS,;t t
16580 s,@build@,$build,;t t
16581 s,@build_cpu@,$build_cpu,;t t
16582 s,@build_vendor@,$build_vendor,;t t
16583 s,@build_os@,$build_os,;t t
16584 s,@build_subdir@,$build_subdir,;t t
16585 s,@host_subdir@,$host_subdir,;t t
16586 s,@target_subdir@,$target_subdir,;t t
16587 s,@libgcj_basedir@,$libgcj_basedir,;t t
16588 s,@host@,$host,;t t
16589 s,@host_cpu@,$host_cpu,;t t
16590 s,@host_vendor@,$host_vendor,;t t
16591 s,@host_os@,$host_os,;t t
16592 s,@target@,$target,;t t
16593 s,@target_cpu@,$target_cpu,;t t
16594 s,@target_vendor@,$target_vendor,;t t
16595 s,@target_os@,$target_os,;t t
16596 s,@target_noncanonical@,$target_noncanonical,;t t
16597 s,@LN_S@,$LN_S,;t t
16598 s,@mkinstalldirs@,$mkinstalldirs,;t t
16600 s,@ac_ct_CC@,$ac_ct_CC,;t t
16601 s,@EXEEXT@,$EXEEXT,;t t
16602 s,@OBJEXT@,$OBJEXT,;t t
16604 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16605 s,@CFLAGS@,$CFLAGS,;t t
16606 s,@CXXFLAGS@,$CXXFLAGS,;t t
16607 s,@LDFLAGS@,$LDFLAGS,;t t
16608 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16609 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16610 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16611 s,@CYGPATH_W@,$CYGPATH_W,;t t
16612 s,@PACKAGE@,$PACKAGE,;t t
16613 s,@VERSION@,$VERSION,;t t
16614 s,@ACLOCAL@,$ACLOCAL,;t t
16615 s,@AUTOCONF@,$AUTOCONF,;t t
16616 s,@AUTOMAKE@,$AUTOMAKE,;t t
16617 s,@AUTOHEADER@,$AUTOHEADER,;t t
16618 s,@MAKEINFO@,$MAKEINFO,;t t
16619 s,@install_sh@,$install_sh,;t t
16620 s,@STRIP@,$STRIP,;t t
16621 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16622 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16623 s,@mkdir_p@,$mkdir_p,;t t
16625 s,@SET_MAKE@,$SET_MAKE,;t t
16626 s,@am__leading_dot@,$am__leading_dot,;t t
16627 s,@AMTAR@,$AMTAR,;t t
16628 s,@am__tar@,$am__tar,;t t
16629 s,@am__untar@,$am__untar,;t t
16630 s,@DEPDIR@,$DEPDIR,;t t
16631 s,@am__include@,$am__include,;t t
16632 s,@am__quote@,$am__quote,;t t
16633 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16634 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16635 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16636 s,@CCDEPMODE@,$CCDEPMODE,;t t
16637 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16638 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16639 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16640 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
16641 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
16643 s,@ac_ct_AS@,$ac_ct_AS,;t t
16645 s,@ac_ct_AR@,$ac_ct_AR,;t t
16646 s,@RANLIB@,$RANLIB,;t t
16647 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16648 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16649 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16650 s,@MAINT@,$MAINT,;t t
16651 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
16652 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
16653 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
16654 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
16655 s,@INCLTDL@,$INCLTDL,;t t
16656 s,@LIBLTDL@,$LIBLTDL,;t t
16657 s,@DIRLTDL@,$DIRLTDL,;t t
16658 s,@LIBTOOL@,$LIBTOOL,;t t
16659 s,@CXXCPP@,$CXXCPP,;t t
16660 s,@CPPFLAGS@,$CPPFLAGS,;t t
16662 s,@GCJFLAGS@,$GCJFLAGS,;t t
16663 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
16664 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
16665 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
16666 s,@subdirs@,$subdirs,;t t
16667 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
16668 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
16669 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
16670 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
16671 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
16672 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
16673 s,@JAVA_HOME@,$JAVA_HOME,;t t
16674 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
16675 s,@INTERPRETER@,$INTERPRETER,;t t
16676 s,@LIBFFI@,$LIBFFI,;t t
16677 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
16678 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
16680 s,@EGREP@,$EGREP,;t t
16681 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
16682 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
16683 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
16684 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
16685 s,@USING_ECOS_PLATFORM_TRUE@,$USING_ECOS_PLATFORM_TRUE,;t t
16686 s,@USING_ECOS_PLATFORM_FALSE@,$USING_ECOS_PLATFORM_FALSE,;t t
16687 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
16688 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
16689 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
16690 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
16691 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
16692 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
16693 s,@X_CFLAGS@,$X_CFLAGS,;t t
16694 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16695 s,@X_LIBS@,$X_LIBS,;t t
16696 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16697 s,@TOOLKIT@,$TOOLKIT,;t t
16698 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
16699 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
16700 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
16701 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
16702 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
16703 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
16704 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
16705 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
16706 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
16707 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
16708 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
16709 s,@GCLIBS@,$GCLIBS,;t t
16710 s,@GCINCS@,$GCINCS,;t t
16711 s,@GCDEPS@,$GCDEPS,;t t
16712 s,@GCSPEC@,$GCSPEC,;t t
16713 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
16714 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
16715 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
16716 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
16717 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
16718 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
16719 s,@THREADLIBS@,$THREADLIBS,;t t
16720 s,@THREADINCS@,$THREADINCS,;t t
16721 s,@THREADDEPS@,$THREADDEPS,;t t
16722 s,@THREADSPEC@,$THREADSPEC,;t t
16723 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
16724 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
16725 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
16726 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
16727 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
16728 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
16729 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
16730 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
16731 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
16732 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
16733 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
16734 s,@LIBICONV@,$LIBICONV,;t t
16735 s,@LTLIBICONV@,$LTLIBICONV,;t t
16736 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
16737 s,@GTK_LIBS@,$GTK_LIBS,;t t
16738 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
16739 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
16740 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
16741 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
16742 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
16743 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
16744 s,@GCJH@,$GCJH,;t t
16746 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
16747 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
16748 s,@ZLIBS@,$ZLIBS,;t t
16749 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
16750 s,@ZINCS@,$ZINCS,;t t
16751 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
16752 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
16753 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
16754 s,@IEEESPEC@,$IEEESPEC,;t t
16755 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
16756 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
16757 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
16758 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
16759 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
16760 s,@toolexecdir@,$toolexecdir,;t t
16761 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
16762 s,@toolexeclibdir@,$toolexeclibdir,;t t
16763 s,@GCJVERSION@,$GCJVERSION,;t t
16764 s,@gxx_include_dir@,$gxx_include_dir,;t t
16765 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
16766 s,@ALLOCA@,$ALLOCA,;t t
16767 s,@PERL@,$PERL,;t t
16768 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
16769 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
16770 s,@here@,$here,;t t
16771 s,@LIBOBJS@,$LIBOBJS,;t t
16772 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16777 cat >>$CONFIG_STATUS <<\_ACEOF
16778 # Split the substitutions into bite-sized pieces for seds with
16779 # small command number limits, like on Digital OSF/1 and HP-UX.
16780 ac_max_sed_lines=48
16781 ac_sed_frag=1 # Number of current file.
16782 ac_beg=1 # First line for current file.
16783 ac_end=$ac_max_sed_lines # Line after last line for current file.
16786 while $ac_more_lines; do
16787 if test $ac_beg -gt 1; then
16788 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16790 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16792 if test ! -s $tmp/subs.frag; then
16793 ac_more_lines=false
16795 # The purpose of the label and of the branching condition is to
16796 # speed up the sed processing (if there are no `@' at all, there
16797 # is no need to browse any of the substitutions).
16798 # These are the two extra sed commands mentioned above.
16800 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16801 if test -z "$ac_sed_cmds"; then
16802 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16804 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16806 ac_sed_frag=`expr $ac_sed_frag + 1`
16808 ac_end=`expr $ac_end + $ac_max_sed_lines`
16811 if test -z "$ac_sed_cmds"; then
16814 fi # test -n "$CONFIG_FILES"
16817 cat >>$CONFIG_STATUS <<\_ACEOF
16818 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16819 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16821 - | *:- | *:-:* ) # input from stdin
16823 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16824 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16825 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16826 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16827 * ) ac_file_in=$ac_file.in ;;
16830 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16831 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16832 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16833 X"$ac_file" : 'X\(//\)[^/]' \| \
16834 X"$ac_file" : 'X\(//\)$' \| \
16835 X"$ac_file" : 'X\(/\)' \| \
16836 . : '\(.\)' 2>/dev/null ||
16838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16840 /^X\(\/\/\)$/{ s//\1/; q; }
16841 /^X\(\/\).*/{ s//\1/; q; }
16843 { if $as_mkdir_p; then
16848 while test ! -d "$as_dir"; do
16849 as_dirs="$as_dir $as_dirs"
16850 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16852 X"$as_dir" : 'X\(//\)[^/]' \| \
16853 X"$as_dir" : 'X\(//\)$' \| \
16854 X"$as_dir" : 'X\(/\)' \| \
16855 . : '\(.\)' 2>/dev/null ||
16857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16859 /^X\(\/\/\)$/{ s//\1/; q; }
16860 /^X\(\/\).*/{ s//\1/; q; }
16863 test ! -n "$as_dirs" || mkdir $as_dirs
16864 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16865 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16866 { (exit 1); exit 1; }; }; }
16870 if test "$ac_dir" != .; then
16871 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16872 # A "../" for each directory in $ac_dir_suffix.
16873 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16875 ac_dir_suffix= ac_top_builddir=
16879 .) # No --srcdir option. We are building in place.
16881 if test -z "$ac_top_builddir"; then
16884 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16886 [\\/]* | ?:[\\/]* ) # Absolute path.
16887 ac_srcdir=$srcdir$ac_dir_suffix;
16888 ac_top_srcdir=$srcdir ;;
16889 *) # Relative path.
16890 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16891 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16894 # Do not use `cd foo && pwd` to compute absolute paths, because
16895 # the directories may not exist.
16897 .) ac_abs_builddir="$ac_dir";;
16900 .) ac_abs_builddir=`pwd`;;
16901 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16902 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16905 case $ac_abs_builddir in
16906 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16908 case ${ac_top_builddir}. in
16909 .) ac_abs_top_builddir=$ac_abs_builddir;;
16910 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16911 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16914 case $ac_abs_builddir in
16915 .) ac_abs_srcdir=$ac_srcdir;;
16918 .) ac_abs_srcdir=$ac_abs_builddir;;
16919 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16920 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16923 case $ac_abs_builddir in
16924 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16926 case $ac_top_srcdir in
16927 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16928 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16929 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16935 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16936 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16939 # Let's still pretend it is `configure' which instantiates (i.e., don't
16940 # use $as_me), people would be surprised to read:
16941 # /* config.h. Generated by config.status. */
16942 if test x"$ac_file" = x-; then
16945 configure_input="$ac_file. "
16947 configure_input=$configure_input"Generated from `echo $ac_file_in |
16948 sed 's,.*/,,'` by configure."
16950 # First look for the input files in the build tree, otherwise in the
16952 ac_file_inputs=`IFS=:
16953 for f in $ac_file_in; do
16955 -) echo $tmp/stdin ;;
16957 # Absolute (can't be DOS-style, as IFS=:)
16958 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16959 echo "$as_me: error: cannot find input file: $f" >&2;}
16960 { (exit 1); exit 1; }; }
16963 if test -f "$f"; then
16966 elif test -f "$srcdir/$f"; then
16971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16972 echo "$as_me: error: cannot find input file: $f" >&2;}
16973 { (exit 1); exit 1; }; }
16976 done` || { (exit 1); exit 1; }
16978 if test x"$ac_file" != x-; then
16979 { echo "$as_me:$LINENO: creating $ac_file" >&5
16980 echo "$as_me: creating $ac_file" >&6;}
16984 cat >>$CONFIG_STATUS <<_ACEOF
16988 cat >>$CONFIG_STATUS <<\_ACEOF
16990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16991 s,@configure_input@,$configure_input,;t t
16992 s,@srcdir@,$ac_srcdir,;t t
16993 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16994 s,@top_srcdir@,$ac_top_srcdir,;t t
16995 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16996 s,@builddir@,$ac_builddir,;t t
16997 s,@abs_builddir@,$ac_abs_builddir,;t t
16998 s,@top_builddir@,$ac_top_builddir,;t t
16999 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17000 s,@INSTALL@,$ac_INSTALL,;t t
17001 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17003 if test x"$ac_file" != x-; then
17004 mv $tmp/out $ac_file
17012 cat >>$CONFIG_STATUS <<\_ACEOF
17015 # CONFIG_HEADER section.
17018 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17019 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17021 # ac_d sets the value in "#define NAME VALUE" lines.
17022 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17023 ac_dB='[ ].*$,\1#\2'
17026 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17027 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17028 ac_uB='$,\1#\2define\3'
17032 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17033 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17035 - | *:- | *:-:* ) # input from stdin
17037 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17039 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17040 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17041 * ) ac_file_in=$ac_file.in ;;
17044 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17045 echo "$as_me: creating $ac_file" >&6;}
17047 # First look for the input files in the build tree, otherwise in the
17049 ac_file_inputs=`IFS=:
17050 for f in $ac_file_in; do
17052 -) echo $tmp/stdin ;;
17054 # Absolute (can't be DOS-style, as IFS=:)
17055 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17056 echo "$as_me: error: cannot find input file: $f" >&2;}
17057 { (exit 1); exit 1; }; }
17058 # Do quote $f, to prevent DOS paths from being IFS'd.
17061 if test -f "$f"; then
17064 elif test -f "$srcdir/$f"; then
17069 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17070 echo "$as_me: error: cannot find input file: $f" >&2;}
17071 { (exit 1); exit 1; }; }
17074 done` || { (exit 1); exit 1; }
17075 # Remove the trailing spaces.
17076 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17080 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17081 # `conftest.undefs', that substitutes the proper values into
17082 # config.h.in to produce config.h. The first handles `#define'
17083 # templates, and the second `#undef' templates.
17084 # And first: Protect against being on the right side of a sed subst in
17085 # config.status. Protect against being in an unquoted here document
17086 # in config.status.
17087 rm -f conftest.defines conftest.undefs
17088 # Using a here document instead of a string reduces the quoting nightmare.
17089 # Putting comments in sed scripts is not portable.
17091 # `end' is used to avoid that the second main sed command (meant for
17092 # 0-ary CPP macros) applies to n-ary macro definitions.
17093 # See the Autoconf documentation for `clear'.
17094 cat >confdef2sed.sed <<\_ACEOF
17099 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17101 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17104 # If some macros were called several times there might be several times
17105 # the same #defines, which is useless. Nevertheless, we may not want to
17106 # sort them, since we want the *last* AC-DEFINE to be honored.
17107 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17108 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17109 rm -f confdef2sed.sed
17111 # This sed command replaces #undef with comments. This is necessary, for
17112 # example, in the case of _POSIX_SOURCE, which is predefined and required
17113 # on some systems where configure will not decide to define it.
17114 cat >>conftest.undefs <<\_ACEOF
17115 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17118 # Break up conftest.defines because some shells have a limit on the size
17119 # of here documents, and old seds have small limits too (100 cmds).
17120 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17121 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17122 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17123 echo ' :' >>$CONFIG_STATUS
17124 rm -f conftest.tail
17125 while grep . conftest.defines >/dev/null
17127 # Write a limited-size here document to $tmp/defines.sed.
17128 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17129 # Speed up: don't consider the non `#define' lines.
17130 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17131 # Work around the forget-to-reset-the-flag bug.
17132 echo 't clr' >>$CONFIG_STATUS
17133 echo ': clr' >>$CONFIG_STATUS
17134 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17136 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17138 mv $tmp/out $tmp/in
17140 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17141 rm -f conftest.defines
17142 mv conftest.tail conftest.defines
17144 rm -f conftest.defines
17145 echo ' fi # grep' >>$CONFIG_STATUS
17146 echo >>$CONFIG_STATUS
17148 # Break up conftest.undefs because some shells have a limit on the size
17149 # of here documents, and old seds have small limits too (100 cmds).
17150 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17151 rm -f conftest.tail
17152 while grep . conftest.undefs >/dev/null
17154 # Write a limited-size here document to $tmp/undefs.sed.
17155 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17156 # Speed up: don't consider the non `#undef'
17157 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17158 # Work around the forget-to-reset-the-flag bug.
17159 echo 't clr' >>$CONFIG_STATUS
17160 echo ': clr' >>$CONFIG_STATUS
17161 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17163 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17165 mv $tmp/out $tmp/in
17167 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17168 rm -f conftest.undefs
17169 mv conftest.tail conftest.undefs
17171 rm -f conftest.undefs
17173 cat >>$CONFIG_STATUS <<\_ACEOF
17174 # Let's still pretend it is `configure' which instantiates (i.e., don't
17175 # use $as_me), people would be surprised to read:
17176 # /* config.h. Generated by config.status. */
17177 if test x"$ac_file" = x-; then
17178 echo "/* Generated by configure. */" >$tmp/config.h
17180 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17182 cat $tmp/in >>$tmp/config.h
17184 if test x"$ac_file" != x-; then
17185 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17186 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17187 echo "$as_me: $ac_file is unchanged" >&6;}
17189 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17190 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17191 X"$ac_file" : 'X\(//\)[^/]' \| \
17192 X"$ac_file" : 'X\(//\)$' \| \
17193 X"$ac_file" : 'X\(/\)' \| \
17194 . : '\(.\)' 2>/dev/null ||
17196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17198 /^X\(\/\/\)$/{ s//\1/; q; }
17199 /^X\(\/\).*/{ s//\1/; q; }
17201 { if $as_mkdir_p; then
17206 while test ! -d "$as_dir"; do
17207 as_dirs="$as_dir $as_dirs"
17208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17209 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17210 X"$as_dir" : 'X\(//\)[^/]' \| \
17211 X"$as_dir" : 'X\(//\)$' \| \
17212 X"$as_dir" : 'X\(/\)' \| \
17213 . : '\(.\)' 2>/dev/null ||
17215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17217 /^X\(\/\/\)$/{ s//\1/; q; }
17218 /^X\(\/\).*/{ s//\1/; q; }
17221 test ! -n "$as_dirs" || mkdir $as_dirs
17222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17223 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17224 { (exit 1); exit 1; }; }; }
17227 mv $tmp/config.h $ac_file
17231 rm -f $tmp/config.h
17233 # Compute $ac_file's index in $config_headers.
17235 for _am_header in $config_headers :; do
17236 case $_am_header in
17237 $ac_file | $ac_file:* )
17240 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17243 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17244 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17245 X$ac_file : 'X\(//\)[^/]' \| \
17246 X$ac_file : 'X\(//\)$' \| \
17247 X$ac_file : 'X\(/\)' \| \
17248 . : '\(.\)' 2>/dev/null ||
17250 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17251 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17252 /^X\(\/\/\)$/{ s//\1/; q; }
17253 /^X\(\/\).*/{ s//\1/; q; }
17254 s/.*/./; q'`/stamp-h$_am_stamp_count
17257 cat >>$CONFIG_STATUS <<\_ACEOF
17260 # CONFIG_LINKS section.
17263 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17264 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17265 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17267 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17268 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17270 if test ! -r $srcdir/$ac_source; then
17271 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17272 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17273 { (exit 1); exit 1; }; }
17277 # Make relative symlinks.
17278 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17279 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17280 X"$ac_dest" : 'X\(//\)[^/]' \| \
17281 X"$ac_dest" : 'X\(//\)$' \| \
17282 X"$ac_dest" : 'X\(/\)' \| \
17283 . : '\(.\)' 2>/dev/null ||
17285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17286 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17287 /^X\(\/\/\)$/{ s//\1/; q; }
17288 /^X\(\/\).*/{ s//\1/; q; }
17290 { if $as_mkdir_p; then
17291 mkdir -p "$ac_dest_dir"
17293 as_dir="$ac_dest_dir"
17295 while test ! -d "$as_dir"; do
17296 as_dirs="$as_dir $as_dirs"
17297 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17298 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17299 X"$as_dir" : 'X\(//\)[^/]' \| \
17300 X"$as_dir" : 'X\(//\)$' \| \
17301 X"$as_dir" : 'X\(/\)' \| \
17302 . : '\(.\)' 2>/dev/null ||
17304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17305 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17306 /^X\(\/\/\)$/{ s//\1/; q; }
17307 /^X\(\/\).*/{ s//\1/; q; }
17310 test ! -n "$as_dirs" || mkdir $as_dirs
17311 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17312 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17313 { (exit 1); exit 1; }; }; }
17317 if test "$ac_dest_dir" != .; then
17318 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17319 # A "../" for each directory in $ac_dir_suffix.
17320 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17322 ac_dir_suffix= ac_top_builddir=
17326 .) # No --srcdir option. We are building in place.
17328 if test -z "$ac_top_builddir"; then
17331 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17333 [\\/]* | ?:[\\/]* ) # Absolute path.
17334 ac_srcdir=$srcdir$ac_dir_suffix;
17335 ac_top_srcdir=$srcdir ;;
17336 *) # Relative path.
17337 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17338 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17341 # Do not use `cd foo && pwd` to compute absolute paths, because
17342 # the directories may not exist.
17344 .) ac_abs_builddir="$ac_dest_dir";;
17346 case "$ac_dest_dir" in
17347 .) ac_abs_builddir=`pwd`;;
17348 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17349 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17352 case $ac_abs_builddir in
17353 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17355 case ${ac_top_builddir}. in
17356 .) ac_abs_top_builddir=$ac_abs_builddir;;
17357 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17358 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17361 case $ac_abs_builddir in
17362 .) ac_abs_srcdir=$ac_srcdir;;
17365 .) ac_abs_srcdir=$ac_abs_builddir;;
17366 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17367 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17370 case $ac_abs_builddir in
17371 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17373 case $ac_top_srcdir in
17374 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17375 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17376 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17382 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17383 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17386 # Try a symlink, then a hard link, then a copy.
17387 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17388 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17389 cp -p $srcdir/$ac_source $ac_dest ||
17390 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17391 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17392 { (exit 1); exit 1; }; }
17395 cat >>$CONFIG_STATUS <<\_ACEOF
17398 # CONFIG_COMMANDS section.
17400 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17401 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17402 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17403 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17404 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17405 X"$ac_dest" : 'X\(//\)[^/]' \| \
17406 X"$ac_dest" : 'X\(//\)$' \| \
17407 X"$ac_dest" : 'X\(/\)' \| \
17408 . : '\(.\)' 2>/dev/null ||
17410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17412 /^X\(\/\/\)$/{ s//\1/; q; }
17413 /^X\(\/\).*/{ s//\1/; q; }
17415 { if $as_mkdir_p; then
17420 while test ! -d "$as_dir"; do
17421 as_dirs="$as_dir $as_dirs"
17422 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17424 X"$as_dir" : 'X\(//\)[^/]' \| \
17425 X"$as_dir" : 'X\(//\)$' \| \
17426 X"$as_dir" : 'X\(/\)' \| \
17427 . : '\(.\)' 2>/dev/null ||
17429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17430 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17431 /^X\(\/\/\)$/{ s//\1/; q; }
17432 /^X\(\/\).*/{ s//\1/; q; }
17435 test ! -n "$as_dirs" || mkdir $as_dirs
17436 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17437 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17438 { (exit 1); exit 1; }; }; }
17442 if test "$ac_dir" != .; then
17443 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17444 # A "../" for each directory in $ac_dir_suffix.
17445 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17447 ac_dir_suffix= ac_top_builddir=
17451 .) # No --srcdir option. We are building in place.
17453 if test -z "$ac_top_builddir"; then
17456 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17458 [\\/]* | ?:[\\/]* ) # Absolute path.
17459 ac_srcdir=$srcdir$ac_dir_suffix;
17460 ac_top_srcdir=$srcdir ;;
17461 *) # Relative path.
17462 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17463 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17466 # Do not use `cd foo && pwd` to compute absolute paths, because
17467 # the directories may not exist.
17469 .) ac_abs_builddir="$ac_dir";;
17472 .) ac_abs_builddir=`pwd`;;
17473 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17474 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17477 case $ac_abs_builddir in
17478 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17480 case ${ac_top_builddir}. in
17481 .) ac_abs_top_builddir=$ac_abs_builddir;;
17482 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17483 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17486 case $ac_abs_builddir in
17487 .) ac_abs_srcdir=$ac_srcdir;;
17490 .) ac_abs_srcdir=$ac_abs_builddir;;
17491 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17492 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17495 case $ac_abs_builddir in
17496 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17498 case $ac_top_srcdir in
17499 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17500 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17501 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17506 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17507 echo "$as_me: executing $ac_dest commands" >&6;}
17509 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17510 # Strip MF so we end up with the name of the file.
17511 mf=`echo "$mf" | sed -e 's/:.*$//'`
17512 # Check whether this is an Automake generated Makefile or not.
17513 # We used to match only the files named `Makefile.in', but
17514 # some people rename them; so instead we look at the file content.
17515 # Grep'ing the first line is not enough: some people post-process
17516 # each Makefile.in and add a new line on top of each file to say so.
17517 # So let's grep whole file.
17518 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17519 dirpart=`(dirname "$mf") 2>/dev/null ||
17520 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17521 X"$mf" : 'X\(//\)[^/]' \| \
17522 X"$mf" : 'X\(//\)$' \| \
17523 X"$mf" : 'X\(/\)' \| \
17524 . : '\(.\)' 2>/dev/null ||
17526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17528 /^X\(\/\/\)$/{ s//\1/; q; }
17529 /^X\(\/\).*/{ s//\1/; q; }
17534 # Extract the definition of DEPDIR, am__include, and am__quote
17535 # from the Makefile without running `make'.
17536 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17537 test -z "$DEPDIR" && continue
17538 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17539 test -z "am__include" && continue
17540 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17541 # When using ansi2knr, U may be empty or an underscore; expand it
17542 U=`sed -n 's/^U = //p' < "$mf"`
17543 # Find all dependency output files, they are included files with
17544 # $(DEPDIR) in their names. We invoke sed twice because it is the
17545 # simplest approach to changing $(DEPDIR) to its actual value in the
17547 for file in `sed -n "
17548 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17549 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17550 # Make sure the directory exists.
17551 test -f "$dirpart/$file" && continue
17552 fdir=`(dirname "$file") 2>/dev/null ||
17553 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17554 X"$file" : 'X\(//\)[^/]' \| \
17555 X"$file" : 'X\(//\)$' \| \
17556 X"$file" : 'X\(/\)' \| \
17557 . : '\(.\)' 2>/dev/null ||
17559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17561 /^X\(\/\/\)$/{ s//\1/; q; }
17562 /^X\(\/\).*/{ s//\1/; q; }
17564 { if $as_mkdir_p; then
17565 mkdir -p $dirpart/$fdir
17567 as_dir=$dirpart/$fdir
17569 while test ! -d "$as_dir"; do
17570 as_dirs="$as_dir $as_dirs"
17571 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17572 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17573 X"$as_dir" : 'X\(//\)[^/]' \| \
17574 X"$as_dir" : 'X\(//\)$' \| \
17575 X"$as_dir" : 'X\(/\)' \| \
17576 . : '\(.\)' 2>/dev/null ||
17578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17580 /^X\(\/\/\)$/{ s//\1/; q; }
17581 /^X\(\/\).*/{ s//\1/; q; }
17584 test ! -n "$as_dirs" || mkdir $as_dirs
17585 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
17586 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
17587 { (exit 1); exit 1; }; }; }
17589 # echo "creating $dirpart/$file"
17590 echo '# dummy' > "$dirpart/$file"
17594 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
17595 case " $CONFIG_FILES " in
17597 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
17598 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
17601 for ac_multi_file in $CONFIG_FILES; do
17602 case $ac_multi_file in
17604 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
17612 cat >>$CONFIG_STATUS <<\_ACEOF
17614 { (exit 0); exit 0; }
17616 chmod +x $CONFIG_STATUS
17617 ac_clean_files=$ac_clean_files_save
17620 # configure is writing to config.log, and then calls config.status.
17621 # config.status does its own redirection, appending to config.log.
17622 # Unfortunately, on DOS this fails, as config.log is still kept open
17623 # by configure, so config.status won't be able to write to it; its
17624 # output is simply discarded. So we exec the FD to /dev/null,
17625 # effectively closing config.log, so it can be properly (re)opened and
17626 # appended to by config.status. When coming back to configure, we
17627 # need to make the FD available again.
17628 if test "$no_create" != yes; then
17630 ac_config_status_args=
17631 test "$silent" = yes &&
17632 ac_config_status_args="$ac_config_status_args --quiet"
17634 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17637 # would make configure fail if this is the last instruction.
17638 $ac_cs_success || { (exit 1); exit 1; }
17642 # CONFIG_SUBDIRS section.
17644 if test "$no_recursion" != yes; then
17646 # Remove --cache-file and --srcdir arguments so they do not pile up.
17647 ac_sub_configure_args=
17649 for ac_arg in $ac_configure_args; do
17650 if test -n "$ac_prev"; then
17655 -cache-file | --cache-file | --cache-fil | --cache-fi \
17656 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17657 ac_prev=cache_file ;;
17658 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17659 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17662 --config-cache | -C)
17664 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17666 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17672 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
17676 # Always prepend --prefix to ensure using the same prefix
17677 # in subdir configurations.
17678 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
17681 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17683 # Do not complain, so a configure script can configure whichever
17684 # parts of a large source tree are present.
17685 test -d $srcdir/$ac_dir || continue
17687 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
17688 echo "$as_me: configuring in $ac_dir" >&6;}
17689 { if $as_mkdir_p; then
17694 while test ! -d "$as_dir"; do
17695 as_dirs="$as_dir $as_dirs"
17696 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17697 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17698 X"$as_dir" : 'X\(//\)[^/]' \| \
17699 X"$as_dir" : 'X\(//\)$' \| \
17700 X"$as_dir" : 'X\(/\)' \| \
17701 . : '\(.\)' 2>/dev/null ||
17703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17705 /^X\(\/\/\)$/{ s//\1/; q; }
17706 /^X\(\/\).*/{ s//\1/; q; }
17709 test ! -n "$as_dirs" || mkdir $as_dirs
17710 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17711 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17712 { (exit 1); exit 1; }; }; }
17716 if test "$ac_dir" != .; then
17717 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17718 # A "../" for each directory in $ac_dir_suffix.
17719 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17721 ac_dir_suffix= ac_top_builddir=
17725 .) # No --srcdir option. We are building in place.
17727 if test -z "$ac_top_builddir"; then
17730 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17732 [\\/]* | ?:[\\/]* ) # Absolute path.
17733 ac_srcdir=$srcdir$ac_dir_suffix;
17734 ac_top_srcdir=$srcdir ;;
17735 *) # Relative path.
17736 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17737 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17740 # Do not use `cd foo && pwd` to compute absolute paths, because
17741 # the directories may not exist.
17743 .) ac_abs_builddir="$ac_dir";;
17746 .) ac_abs_builddir=`pwd`;;
17747 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17748 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17751 case $ac_abs_builddir in
17752 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17754 case ${ac_top_builddir}. in
17755 .) ac_abs_top_builddir=$ac_abs_builddir;;
17756 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17757 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17760 case $ac_abs_builddir in
17761 .) ac_abs_srcdir=$ac_srcdir;;
17764 .) ac_abs_srcdir=$ac_abs_builddir;;
17765 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17766 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17769 case $ac_abs_builddir in
17770 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17772 case $ac_top_srcdir in
17773 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17774 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17775 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17782 # Check for guested configure; otherwise get Cygnus style configure.
17783 if test -f $ac_srcdir/configure.gnu; then
17784 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
17785 elif test -f $ac_srcdir/configure; then
17786 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
17787 elif test -f $ac_srcdir/configure.in; then
17788 ac_sub_configure=$ac_configure
17790 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
17791 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17795 # The recursion is here.
17796 if test -n "$ac_sub_configure"; then
17797 # Make the cache file name correct relative to the subdirectory.
17798 case $cache_file in
17799 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17800 *) # Relative path.
17801 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
17804 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17805 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17806 # The eval makes quoting arguments work.
17807 eval $ac_sub_configure $ac_sub_configure_args \
17808 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
17809 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
17810 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
17811 { (exit 1); exit 1; }; }