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 classpath 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 LIBGCJDEBUG TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GCJH ZIP INCLTDL LIBLTDL DIRLTDL LIBTOOL CXXCPP CPPFLAGS GCJ GCJFLAGS GCJDEPMODE am__fastdepGCJ_TRUE am__fastdepGCJ_FALSE subdirs TESTSUBDIR_TRUE TESTSUBDIR_FALSE JAVA_HOME_SET_TRUE JAVA_HOME_SET_FALSE JAVA_HOME 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_DARWIN_CRT_TRUE USING_DARWIN_CRT_FALSE SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS extra_ldflags_libjava 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 CLASSPATH_SEPARATOR ac_ct_GCJ ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC BACKTRACESPEC 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 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-libgcj-debug enable runtime debugging code
861 --enable-java-awt list of AWT peer implementations to be built
862 --enable-shared=PKGS build shared libraries default=yes
863 --enable-static=PKGS build static libraries default=yes
864 --enable-fast-install=PKGS optimize for fast installation default=yes
865 --disable-libtool-lock avoid locking (might break parallel builds)
866 --disable-getenv-properties
867 don't set system properties from GCJ_PROPERTIES
868 --enable-hash-synchronization
869 use global hash table for monitor locks
870 --enable-gc-debug include full support for pointer backtracing etc.
871 --enable-interpreter enable interpreter
872 --enable-sjlj-exceptions
873 force use of builtin_setjmp for exceptions
874 --disable-java-net disable java.net
875 --disable-jvmpi disable JVMPI support
876 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
877 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --disable-rpath do not hardcode runtime library paths
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-target-subdir=SUBDIR
884 configure in a subdirectory
885 --with-cross-host=HOST configure with a cross compiler from HOST
886 --with-newlib configure with newlib
887 --with-gnu-ld assume the C compiler uses GNU ld default=no
888 --with-pic try to use only PIC/non-PIC objects default=use both
889 --with-java-home=DIRECTORY
890 value of java.home system property
891 --with-win32-nlsapi=ansi or unicows or unicode
892 native MinGW libgcj Win32 OS API (default is ansi)
893 --without-libffi don't use libffi
894 --with-ecos enable runtime eCos target support
895 --with-system-zlib use installed libz
896 --with-x use the X Window System
897 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
898 --without-libiconv-prefix don't search for libiconv in includedir and libdir
900 Some influential environment variables:
901 CC C compiler command
902 CFLAGS C compiler flags
903 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
904 nonstandard directory <lib dir>
905 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
906 headers in a nonstandard directory <include dir>
907 CXX C++ compiler command
908 CXXFLAGS C++ compiler flags
909 CXXCPP C++ preprocessor
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 ac_dir_suffix= ac_top_builddir=
934 .) # No --srcdir option. We are building in place.
936 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
952 .) ac_abs_builddir="$ac_dir";;
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1010 libjava configure version-unused
1011 generated by GNU Autoconf 2.59
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1024 It was created by libjava $as_me version-unused, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1084 ac_must_keep_next=false
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1113 -* ) ac_must_keep_next=true ;;
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1142 # The following way of writing the cache mishandles newlines in values,
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1165 for ac_var in $ac_subst_vars
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1172 if test -n "$ac_subst_files"; then
1179 for ac_var in $ac_subst_files
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1187 if test -s confdefs.h; then
1194 sed "/^$/d" confdefs.h | sort
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1215 # Predefined preprocessor variables.
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1277 # Check that the precious variables saved in the cache have kept the same
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1301 echo "$as_me: former value: $ac_old_val" >&2;}
1302 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1303 echo "$as_me: current value: $ac_new_val" >&2;}
1304 ac_cache_corrupted=:
1307 # Pass precious variables to config.status.
1308 if test "$ac_new_set" = set; then
1310 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312 *) ac_arg=$ac_var=$ac_new_val ;;
1314 case " $ac_configure_args " in
1315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1316 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1320 if $ac_cache_corrupted; then
1321 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325 { (exit 1); exit 1; }; }
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1364 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1365 if test -f $ac_dir/install-sh; then
1367 ac_install_sh="$ac_aux_dir/install-sh -c"
1369 elif test -f $ac_dir/install.sh; then
1371 ac_install_sh="$ac_aux_dir/install.sh -c"
1373 elif test -f $ac_dir/shtool; then
1375 ac_install_sh="$ac_aux_dir/shtool install -c"
1379 if test -z "$ac_aux_dir"; then
1380 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1381 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1382 { (exit 1); exit 1; }; }
1384 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1385 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1386 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1388 # Make sure we can run config.sub.
1389 $ac_config_sub sun4 >/dev/null 2>&1 ||
1390 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1391 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1392 { (exit 1); exit 1; }; }
1394 echo "$as_me:$LINENO: checking build system type" >&5
1395 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1396 if test "${ac_cv_build+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1399 ac_cv_build_alias=$build_alias
1400 test -z "$ac_cv_build_alias" &&
1401 ac_cv_build_alias=`$ac_config_guess`
1402 test -z "$ac_cv_build_alias" &&
1403 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1404 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1405 { (exit 1); exit 1; }; }
1406 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1407 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1408 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1409 { (exit 1); exit 1; }; }
1412 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1413 echo "${ECHO_T}$ac_cv_build" >&6
1415 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1416 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1417 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1420 case ${build_alias} in
1421 "") build_noncanonical=${build} ;;
1422 *) build_noncanonical=${build_alias} ;;
1425 case ${host_alias} in
1426 "") host_noncanonical=${build_noncanonical} ;;
1427 *) host_noncanonical=${host_alias} ;;
1430 case ${target_alias} in
1431 "") target_noncanonical=${host_noncanonical} ;;
1432 *) target_noncanonical=${target_alias} ;;
1435 # Prefix 'build-' so this never conflicts with target_subdir.
1436 build_subdir="build-${build_noncanonical}"
1437 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
1438 if ( test $srcdir = . && test -d gcc ) \
1439 || test -d $srcdir/../host-${host_noncanonical}; then
1440 host_subdir="host-${host_noncanonical}"
1445 target_subdir=${target_noncanonical}
1448 # We use these options to decide which functions to include.
1450 # Check whether --with-target-subdir or --without-target-subdir was given.
1451 if test "${with_target_subdir+set}" = set; then
1452 withval="$with_target_subdir"
1456 # We may get other options which we don't document:
1457 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1459 # When building with srcdir == objdir, links to the source files will
1460 # be created in directories within the target_subdir. We have to
1461 # adjust toplevel_srcdir accordingly, so that configure finds
1462 # install-sh and other auxiliary files that live in the top-level
1464 if test "${srcdir}" = "."; then
1465 if test -z "${with_target_subdir}"; then
1468 if test "${with_target_subdir}" != "."; then
1469 toprel="${with_multisrctop}../.."
1471 toprel="${with_multisrctop}.."
1478 libgcj_basedir=$srcdir/$toprel/./libjava
1481 echo "$as_me:$LINENO: checking host system type" >&5
1482 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1483 if test "${ac_cv_host+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 ac_cv_host_alias=$host_alias
1487 test -z "$ac_cv_host_alias" &&
1488 ac_cv_host_alias=$ac_cv_build_alias
1489 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1491 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1492 { (exit 1); exit 1; }; }
1495 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1496 echo "${ECHO_T}$ac_cv_host" >&6
1498 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1499 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1500 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1503 echo "$as_me:$LINENO: checking target system type" >&5
1504 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1505 if test "${ac_cv_target+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 ac_cv_target_alias=$target_alias
1509 test "x$ac_cv_target_alias" = "x" &&
1510 ac_cv_target_alias=$ac_cv_host_alias
1511 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1513 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1514 { (exit 1); exit 1; }; }
1517 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1518 echo "${ECHO_T}$ac_cv_target" >&6
1519 target=$ac_cv_target
1520 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1521 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1522 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1525 # The aliases save the names the user supplied, while $host etc.
1526 # will get canonicalized.
1527 test -n "$target_alias" &&
1528 test "$program_prefix$program_suffix$program_transform_name" = \
1530 program_prefix=${target_alias}-
1531 case ${build_alias} in
1532 "") build_noncanonical=${build} ;;
1533 *) build_noncanonical=${build_alias} ;;
1536 case ${target_alias} in
1537 "") target_noncanonical=${host_noncanonical} ;;
1538 *) target_noncanonical=${target_alias} ;;
1544 # This works around the fact that libtool configuration may change LD
1545 # for this particular configuration, but some shells, instead of
1546 # keeping the changes in LD private, export them just because LD is
1548 ORIGINAL_LD_FOR_MULTILIBS=$LD
1550 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1551 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1553 if test "$LN_S" = "ln -s"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1557 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1558 echo "${ECHO_T}no, using $LN_S" >&6
1562 # This works around an automake problem.
1563 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1567 # Check whether --with-cross-host or --without-cross-host was given.
1568 if test "${with_cross_host+set}" = set; then
1569 withval="$with_cross_host"
1574 # Check whether --with-newlib or --without-newlib was given.
1575 if test "${with_newlib+set}" = set; then
1576 withval="$with_newlib"
1580 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1581 if test "${enable_version_specific_runtime_libs+set}" = set; then
1582 enableval="$enable_version_specific_runtime_libs"
1583 case "$enableval" in
1584 yes) version_specific_libs=yes ;;
1585 no) version_specific_libs=no ;;
1586 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1587 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1588 { (exit 1); exit 1; }; };;
1591 version_specific_libs=no
1595 # Default to --enable-multilib
1596 # Check whether --enable-multilib or --disable-multilib was given.
1597 if test "${enable_multilib+set}" = set; then
1598 enableval="$enable_multilib"
1599 case "${enableval}" in
1600 yes) multilib=yes ;;
1602 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1603 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1604 { (exit 1); exit 1; }; } ;;
1609 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1612 # (1) We use an abnormal CXX (without library references), so we
1613 # must cache it under a different name.
1614 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1615 # the non-multilib-adjusted value will be used in multilibs.
1616 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1617 # (4) As another side effect, automake doesn't automatically include them
1619 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1620 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1621 # used in later tests. This may not be necessary in libjava; I don't know.
1625 save_CXXFLAGS="$CXXFLAGS"
1626 CXXFLAGS="$CXXFLAGS -fno-builtin"
1628 ac_cpp='$CPP $CPPFLAGS'
1629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1632 if test -n "$ac_tool_prefix"; then
1633 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1634 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1635 echo "$as_me:$LINENO: checking for $ac_word" >&5
1636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637 if test "${ac_cv_prog_CC+set}" = set; then
1638 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test.
1643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647 test -z "$as_dir" && as_dir=.
1648 for ac_exec_ext in '' $ac_executable_extensions; do
1649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1660 if test -n "$CC"; then
1661 echo "$as_me:$LINENO: result: $CC" >&5
1662 echo "${ECHO_T}$CC" >&6
1664 echo "$as_me:$LINENO: result: no" >&5
1665 echo "${ECHO_T}no" >&6
1669 if test -z "$ac_cv_prog_CC"; then
1671 # Extract the first word of "gcc", so it can be a program name with args.
1672 set dummy gcc; ac_word=$2
1673 echo "$as_me:$LINENO: checking for $ac_word" >&5
1674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1676 echo $ECHO_N "(cached) $ECHO_C" >&6
1678 if test -n "$ac_ct_CC"; then
1679 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685 test -z "$as_dir" && as_dir=.
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688 ac_cv_prog_ac_ct_CC="gcc"
1689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1698 if test -n "$ac_ct_CC"; then
1699 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1700 echo "${ECHO_T}$ac_ct_CC" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1711 if test -z "$CC"; then
1712 if test -n "$ac_tool_prefix"; then
1713 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1714 set dummy ${ac_tool_prefix}cc; ac_word=$2
1715 echo "$as_me:$LINENO: checking for $ac_word" >&5
1716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1717 if test "${ac_cv_prog_CC+set}" = set; then
1718 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 if test -n "$CC"; then
1721 ac_cv_prog_CC="$CC" # Let the user override the test.
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 test -z "$as_dir" && as_dir=.
1728 for ac_exec_ext in '' $ac_executable_extensions; do
1729 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1730 ac_cv_prog_CC="${ac_tool_prefix}cc"
1731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1740 if test -n "$CC"; then
1741 echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1749 if test -z "$ac_cv_prog_CC"; then
1751 # Extract the first word of "cc", so it can be a program name with args.
1752 set dummy cc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 if test -n "$ac_ct_CC"; then
1759 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_ac_ct_CC="cc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1778 if test -n "$ac_ct_CC"; then
1779 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1780 echo "${ECHO_T}$ac_ct_CC" >&6
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1792 if test -z "$CC"; then
1793 # Extract the first word of "cc", so it can be a program name with args.
1794 set dummy cc; ac_word=$2
1795 echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 if test -n "$CC"; then
1801 ac_cv_prog_CC="$CC" # Let the user override the test.
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1812 ac_prog_rejected=yes
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 if test $ac_prog_rejected = yes; then
1823 # We found a bogon in the path, so make sure we never use it.
1824 set dummy $ac_cv_prog_CC
1826 if test $# != 0; then
1827 # We chose a different compiler from the bogus one.
1828 # However, it has the same basename, so the bogon will be chosen
1829 # first if we set CC to just the basename; use the full file name.
1831 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1851 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1885 test -n "$CC" && break
1888 if test -z "$CC"; then
1892 # Extract the first word of "$ac_prog", so it can be a program name with args.
1893 set dummy $ac_prog; ac_word=$2
1894 echo "$as_me:$LINENO: checking for $ac_word" >&5
1895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 if test -n "$ac_ct_CC"; then
1900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1906 test -z "$as_dir" && as_dir=.
1907 for ac_exec_ext in '' $ac_executable_extensions; do
1908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909 ac_cv_prog_ac_ct_CC="$ac_prog"
1910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1918 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1919 if test -n "$ac_ct_CC"; then
1920 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1921 echo "${ECHO_T}$ac_ct_CC" >&6
1923 echo "$as_me:$LINENO: result: no" >&5
1924 echo "${ECHO_T}no" >&6
1927 test -n "$ac_ct_CC" && break
1936 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1937 See \`config.log' for more details." >&5
1938 echo "$as_me: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&2;}
1940 { (exit 1); exit 1; }; }
1942 # Provide some information about the compiler.
1943 echo "$as_me:$LINENO:" \
1944 "checking for C compiler version" >&5
1945 ac_compiler=`set X $ac_compile; echo $2`
1946 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1947 (eval $ac_compiler --version </dev/null >&5) 2>&5
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }
1951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1952 (eval $ac_compiler -v </dev/null >&5) 2>&5
1954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1955 (exit $ac_status); }
1956 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1957 (eval $ac_compiler -V </dev/null >&5) 2>&5
1959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960 (exit $ac_status); }
1962 cat >conftest.$ac_ext <<_ACEOF
1965 cat confdefs.h >>conftest.$ac_ext
1966 cat >>conftest.$ac_ext <<_ACEOF
1967 /* end confdefs.h. */
1978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1979 (eval $ac_link) 2>&5
1981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1982 (exit $ac_status); }; then
1988 if test x$gcc_no_link = xyes; then
1989 # Setting cross_compile will disable run tests; it will
1990 # also disable AC_CHECK_FILE but that's generally
1991 # correct if we can't link.
1995 cat >conftest.$ac_ext <<_ACEOF
1998 cat confdefs.h >>conftest.$ac_ext
1999 cat >>conftest.$ac_ext <<_ACEOF
2000 /* end confdefs.h. */
2010 ac_clean_files_save=$ac_clean_files
2011 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2012 # Try to create an executable without -o first, disregard a.out.
2013 # It will help us diagnose broken compilers, and finding out an intuition
2015 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2016 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2017 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019 (eval $ac_link_default) 2>&5
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; then
2023 # Find the output, starting from the most likely. This scheme is
2024 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027 # Be careful to initialize this variable, since it used to be cached.
2028 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2030 # b.out is created by i960 compilers.
2031 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2033 test -f "$ac_file" || continue
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2038 # This is the source file.
2041 # We found the default executable, but exeext='' is most
2045 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 # FIXME: I believe we export ac_cv_exeext for Libtool,
2047 # but it would be cool to find out if it's true. Does anybody
2048 # maintain Libtool? --akim.
2056 echo "$as_me: failed program was:" >&5
2057 sed 's/^/| /' conftest.$ac_ext >&5
2059 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2060 See \`config.log' for more details." >&5
2061 echo "$as_me: error: C compiler cannot create executables
2062 See \`config.log' for more details." >&2;}
2063 { (exit 77); exit 77; }; }
2066 ac_exeext=$ac_cv_exeext
2067 echo "$as_me:$LINENO: result: $ac_file" >&5
2068 echo "${ECHO_T}$ac_file" >&6
2070 # Check the compiler produces executables we can run. If not, either
2071 # the compiler is broken, or we cross compile.
2072 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2073 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2074 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2075 # If not cross compiling, check that we can run a simple program.
2076 if test "$cross_compiling" != yes; then
2077 if { ac_try='./$ac_file'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2085 if test "$cross_compiling" = maybe; then
2088 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2089 If you meant to cross compile, use \`--host'.
2090 See \`config.log' for more details." >&5
2091 echo "$as_me: error: cannot run C compiled programs.
2092 If you meant to cross compile, use \`--host'.
2093 See \`config.log' for more details." >&2;}
2094 { (exit 1); exit 1; }; }
2098 echo "$as_me:$LINENO: result: yes" >&5
2099 echo "${ECHO_T}yes" >&6
2101 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2102 ac_clean_files=$ac_clean_files_save
2103 # Check the compiler produces executables we can run. If not, either
2104 # the compiler is broken, or we cross compile.
2105 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108 echo "${ECHO_T}$cross_compiling" >&6
2110 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2119 # work properly (i.e., refer to `conftest.exe'), while it won't with
2121 for ac_file in conftest.exe conftest conftest.*; do
2122 test -f "$ac_file" || continue
2124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2132 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2133 See \`config.log' for more details." >&5
2134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2135 See \`config.log' for more details." >&2;}
2136 { (exit 1); exit 1; }; }
2139 rm -f conftest$ac_cv_exeext
2140 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2141 echo "${ECHO_T}$ac_cv_exeext" >&6
2143 rm -f conftest.$ac_ext
2144 EXEEXT=$ac_cv_exeext
2147 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149 if test "${ac_cv_objext+set}" = set; then
2150 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 cat >conftest.$ac_ext <<_ACEOF
2155 cat confdefs.h >>conftest.$ac_ext
2156 cat >>conftest.$ac_ext <<_ACEOF
2157 /* end confdefs.h. */
2167 rm -f conftest.o conftest.obj
2168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2169 (eval $ac_compile) 2>&5
2171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2172 (exit $ac_status); }; then
2173 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2187 See \`config.log' for more details." >&2;}
2188 { (exit 1); exit 1; }; }
2191 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2193 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2194 echo "${ECHO_T}$ac_cv_objext" >&6
2195 OBJEXT=$ac_cv_objext
2197 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2198 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2199 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2202 cat >conftest.$ac_ext <<_ACEOF
2205 cat confdefs.h >>conftest.$ac_ext
2206 cat >>conftest.$ac_ext <<_ACEOF
2207 /* end confdefs.h. */
2220 rm -f conftest.$ac_objext
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>conftest.er1
2224 grep -v '^ *+' conftest.er1 >conftest.err
2226 cat conftest.err >&5
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
2229 { ac_try='test -z "$ac_c_werror_flag"
2230 || test ! -s conftest.err'
2231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2250 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2253 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2254 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2255 GCC=`test $ac_compiler_gnu = yes && echo yes`
2256 ac_test_CFLAGS=${CFLAGS+set}
2257 ac_save_CFLAGS=$CFLAGS
2259 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2261 if test "${ac_cv_prog_cc_g+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 cat >conftest.$ac_ext <<_ACEOF
2267 cat confdefs.h >>conftest.$ac_ext
2268 cat >>conftest.$ac_ext <<_ACEOF
2269 /* end confdefs.h. */
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281 (eval $ac_compile) 2>conftest.er1
2283 grep -v '^ *+' conftest.er1 >conftest.err
2285 cat conftest.err >&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); } &&
2288 { ac_try='test -z "$ac_c_werror_flag"
2289 || test ! -s conftest.err'
2290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }; } &&
2295 { ac_try='test -s conftest.$ac_objext'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; }; then
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2310 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2312 if test "$ac_test_CFLAGS" = set; then
2313 CFLAGS=$ac_save_CFLAGS
2314 elif test $ac_cv_prog_cc_g = yes; then
2315 if test "$GCC" = yes; then
2321 if test "$GCC" = yes; then
2327 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2328 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2329 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 ac_cv_prog_cc_stdc=no
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2342 #include <sys/types.h>
2343 #include <sys/stat.h>
2344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2345 struct buf { int x; };
2346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2347 static char *e (p, i)
2353 static char *f (char * (*g) (char **, int), char **p, ...)
2358 s = g (p, va_arg (v,int));
2363 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2364 function prototypes and stuff, but not '\xHH' hex character constants.
2365 These don't provoke an error unfortunately, instead are silently treated
2366 as 'x'. The following induces an error, until -std1 is added to get
2367 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2368 array size at least. It's necessary to write '\x00'==0 to get something
2369 that's true only with -std1. */
2370 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2372 int test (int i, double x);
2373 struct s1 {int (*f) (int a);};
2374 struct s2 {int (*f) (double a);};
2375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2386 # Don't try gcc -ansi; that turns off useful extensions and
2387 # breaks some systems' header files.
2388 # AIX -qlanglvl=ansi
2389 # Ultrix and OSF/1 -std1
2390 # HP-UX 10.20 and later -Ae
2391 # HP-UX older versions -Aa -D_HPUX_SOURCE
2392 # SVR4 -Xc -D__EXTENSIONS__
2393 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2395 CC="$ac_save_CC $ac_arg"
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>conftest.er1
2400 grep -v '^ *+' conftest.er1 >conftest.err
2402 cat conftest.err >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); } &&
2405 { ac_try='test -z "$ac_c_werror_flag"
2406 || 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"
2461 || test ! -s conftest.err'
2462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); }; } &&
2467 { ac_try='test -s conftest.$ac_objext'
2468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); }; }; then
2473 for ac_declaration in \
2475 'extern "C" void std::exit (int) throw (); using std::exit;' \
2476 'extern "C" void std::exit (int); using std::exit;' \
2477 'extern "C" void exit (int) throw ();' \
2478 'extern "C" void exit (int);' \
2481 cat >conftest.$ac_ext <<_ACEOF
2484 cat confdefs.h >>conftest.$ac_ext
2485 cat >>conftest.$ac_ext <<_ACEOF
2486 /* end confdefs.h. */
2497 rm -f conftest.$ac_objext
2498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2501 grep -v '^ *+' conftest.er1 >conftest.err
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2527 cat >conftest.$ac_ext <<_ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2542 rm -f conftest.$ac_objext
2543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2544 (eval $ac_compile) 2>conftest.er1
2546 grep -v '^ *+' conftest.er1 >conftest.err
2548 cat conftest.err >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); } &&
2551 { ac_try='test -z "$ac_c_werror_flag"
2552 || test ! -s conftest.err'
2553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557 (exit $ac_status); }; } &&
2558 { ac_try='test -s conftest.$ac_objext'
2559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2566 echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2573 if test -n "$ac_declaration"; then
2574 echo '#ifdef __cplusplus' >>confdefs.h
2575 echo $ac_declaration >>confdefs.h
2576 echo '#endif' >>confdefs.h
2580 echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2592 ac_cpp='$CXXCPP $CPPFLAGS'
2593 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2596 if test -n "$ac_tool_prefix"; then
2597 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2599 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2600 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2601 echo "$as_me:$LINENO: checking for $ac_word" >&5
2602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2603 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2606 if test -n "$CXX"; then
2607 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 test -z "$as_dir" && as_dir=.
2614 for ac_exec_ext in '' $ac_executable_extensions; do
2615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2616 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625 CXX=$glibcxx_cv_prog_CXX
2626 if test -n "$CXX"; then
2627 echo "$as_me:$LINENO: result: $CXX" >&5
2628 echo "${ECHO_T}$CXX" >&6
2630 echo "$as_me:$LINENO: result: no" >&5
2631 echo "${ECHO_T}no" >&6
2634 test -n "$CXX" && break
2637 if test -z "$CXX"; then
2639 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2645 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2648 if test -n "$ac_ct_CXX"; then
2649 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CXX="$ac_prog"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2668 if test -n "$ac_ct_CXX"; then
2669 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2670 echo "${ECHO_T}$ac_ct_CXX" >&6
2672 echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2676 test -n "$ac_ct_CXX" && break
2678 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2684 # Provide some information about the compiler.
2685 echo "$as_me:$LINENO:" \
2686 "checking for C++ compiler version" >&5
2687 ac_compiler=`set X $ac_compile; echo $2`
2688 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2689 (eval $ac_compiler --version </dev/null >&5) 2>&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2694 (eval $ac_compiler -v </dev/null >&5) 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }
2698 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2699 (eval $ac_compiler -V </dev/null >&5) 2>&5
2701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702 (exit $ac_status); }
2704 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2705 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2706 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2709 cat >conftest.$ac_ext <<_ACEOF
2712 cat confdefs.h >>conftest.$ac_ext
2713 cat >>conftest.$ac_ext <<_ACEOF
2714 /* end confdefs.h. */
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729 (eval $ac_compile) 2>conftest.er1
2731 grep -v '^ *+' conftest.er1 >conftest.err
2733 cat conftest.err >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); } &&
2736 { ac_try='test -z "$ac_cxx_werror_flag"
2737 || test ! -s conftest.err'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; } &&
2743 { ac_try='test -s conftest.$ac_objext'
2744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; }; then
2751 echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2760 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2762 GXX=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CXXFLAGS=${CXXFLAGS+set}
2764 ac_save_CXXFLAGS=$CXXFLAGS
2766 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2767 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2768 if test "${ac_cv_prog_cxx_g+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 cat >conftest.$ac_ext <<_ACEOF
2774 cat confdefs.h >>conftest.$ac_ext
2775 cat >>conftest.$ac_ext <<_ACEOF
2776 /* end confdefs.h. */
2786 rm -f conftest.$ac_objext
2787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2788 (eval $ac_compile) 2>conftest.er1
2790 grep -v '^ *+' conftest.er1 >conftest.err
2792 cat conftest.err >&5
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); } &&
2795 { ac_try='test -z "$ac_cxx_werror_flag"
2796 || test ! -s conftest.err'
2797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); }; } &&
2802 { ac_try='test -s conftest.$ac_objext'
2803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807 (exit $ac_status); }; }; then
2808 ac_cv_prog_cxx_g=yes
2810 echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2817 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2819 if test "$ac_test_CXXFLAGS" = set; then
2820 CXXFLAGS=$ac_save_CXXFLAGS
2821 elif test $ac_cv_prog_cxx_g = yes; then
2822 if test "$GXX" = yes; then
2828 if test "$GXX" = yes; then
2834 for ac_declaration in \
2836 'extern "C" void std::exit (int) throw (); using std::exit;' \
2837 'extern "C" void std::exit (int); using std::exit;' \
2838 'extern "C" void exit (int) throw ();' \
2839 'extern "C" void exit (int);' \
2842 cat >conftest.$ac_ext <<_ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h. */
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860 (eval $ac_compile) 2>conftest.er1
2862 grep -v '^ *+' conftest.er1 >conftest.err
2864 cat conftest.err >&5
2865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866 (exit $ac_status); } &&
2867 { ac_try='test -z "$ac_cxx_werror_flag"
2868 || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_cxx_werror_flag"
2913 || test ! -s conftest.err'
2914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918 (exit $ac_status); }; } &&
2919 { ac_try='test -s conftest.$ac_objext'
2920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); }; }; then
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934 if test -n "$ac_declaration"; then
2935 echo '#ifdef __cplusplus' >>confdefs.h
2936 echo $ac_declaration >>confdefs.h
2937 echo '#endif' >>confdefs.h
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946 CXXFLAGS="$save_CXXFLAGS"
2952 am__api_version="1.9"
2953 # Find a good install program. We prefer a C program (faster),
2954 # so one script is as good as another. But avoid the broken or
2955 # incompatible versions:
2956 # SysV /etc/install, /usr/sbin/install
2957 # SunOS /usr/etc/install
2958 # IRIX /sbin/install
2960 # AmigaOS /C/install, which installs bootblocks on floppy discs
2961 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2962 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2963 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2964 # OS/2's system install, which has a completely different semantic
2965 # ./install, which can be erroneously created by make from ./install.sh.
2966 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2967 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2968 if test -z "$INSTALL"; then
2969 if test "${ac_cv_path_install+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976 test -z "$as_dir" && as_dir=.
2977 # Account for people who put trailing slashes in PATH elements.
2979 ./ | .// | /cC/* | \
2980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2981 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2984 # OSF1 and SCO ODT 3.0 have their own names for install.
2985 # Don't use installbsd from OSF since it installs stuff as root
2987 for ac_prog in ginstall scoinst install; do
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2990 if test $ac_prog = install &&
2991 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2992 # AIX install. It has an incompatible calling convention.
2994 elif test $ac_prog = install &&
2995 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2996 # program-specific install script used by HP pwplus--don't use.
2999 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3011 if test "${ac_cv_path_install+set}" = set; then
3012 INSTALL=$ac_cv_path_install
3014 # As a last resort, use the slow shell script. We don't cache a
3015 # path for INSTALL within a source directory, because that will
3016 # break other packages using the cache if that directory is
3017 # removed, or if the path is relative.
3018 INSTALL=$ac_install_sh
3021 echo "$as_me:$LINENO: result: $INSTALL" >&5
3022 echo "${ECHO_T}$INSTALL" >&6
3024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3025 # It thinks the first close brace ends the variable substitution.
3026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3032 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3033 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3036 echo timestamp > conftest.file
3037 # Do `set' in a subshell so we don't clobber the current shell's
3038 # arguments. Must try -L first in case configure is actually a
3039 # symlink; some systems play weird games with the mod time of symlinks
3040 # (eg FreeBSD returns the mod time of the symlink's containing
3043 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3044 if test "$*" = "X"; then
3046 set X `ls -t $srcdir/configure conftest.file`
3049 if test "$*" != "X $srcdir/configure conftest.file" \
3050 && test "$*" != "X conftest.file $srcdir/configure"; then
3052 # If neither matched, then we have a broken ls. This can happen
3053 # if, for instance, CONFIG_SHELL is bash and it inherits a
3054 # broken ls alias from the environment. This has actually
3055 # happened. Such a system could not be considered "sane".
3056 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3057 alias in your environment" >&5
3058 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3059 alias in your environment" >&2;}
3060 { (exit 1); exit 1; }; }
3063 test "$2" = conftest.file
3069 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3070 Check your system clock" >&5
3071 echo "$as_me: error: newly created file is older than distributed files!
3072 Check your system clock" >&2;}
3073 { (exit 1); exit 1; }; }
3075 echo "$as_me:$LINENO: result: yes" >&5
3076 echo "${ECHO_T}yes" >&6
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3082 # Double any \ or $. echo might interpret backslashes.
3083 # By default was `s,x,x', remove it if useless.
3084 cat <<\_ACEOF >conftest.sed
3085 s/[\\$]/&&/g;s/;s,x,x,$//
3087 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3090 # expand $ac_aux_dir to an absolute path
3091 am_aux_dir=`cd $ac_aux_dir && pwd`
3093 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3094 # Use eval to expand $SHELL
3095 if eval "$MISSING --run true"; then
3096 am_missing_run="$MISSING --run "
3099 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3100 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3103 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3104 # We used to keeping the `.' as first argument, in order to
3105 # allow $(mkdir_p) to be used without argument. As in
3106 # $(mkdir_p) $(somedir)
3107 # where $(somedir) is conditionally defined. However this is wrong
3109 # 1. if the package is installed by a user who cannot write `.'
3110 # make install will fail,
3111 # 2. the above comment should most certainly read
3112 # $(mkdir_p) $(DESTDIR)$(somedir)
3113 # so it does not work when $(somedir) is undefined and
3114 # $(DESTDIR) is not.
3115 # To support the latter case, we have to write
3116 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3117 # so the `.' trick is pointless.
3118 mkdir_p='mkdir -p --'
3120 # On NextStep and OpenStep, the `mkdir' command does not
3121 # recognize any option. It will interpret all options as
3122 # directories to create, and then abort because `.' already
3124 for d in ./-p ./--version;
3126 test -d $d && rmdir $d
3128 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3129 if test -f "$ac_aux_dir/mkinstalldirs"; then
3130 mkdir_p='$(mkinstalldirs)'
3132 mkdir_p='$(install_sh) -d'
3136 for ac_prog in gawk mawk nawk awk
3138 # Extract the first word of "$ac_prog", so it can be a program name with args.
3139 set dummy $ac_prog; ac_word=$2
3140 echo "$as_me:$LINENO: checking for $ac_word" >&5
3141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3142 if test "${ac_cv_prog_AWK+set}" = set; then
3143 echo $ECHO_N "(cached) $ECHO_C" >&6
3145 if test -n "$AWK"; then
3146 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_AWK="$ac_prog"
3156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 if test -n "$AWK"; then
3166 echo "$as_me:$LINENO: result: $AWK" >&5
3167 echo "${ECHO_T}$AWK" >&6
3169 echo "$as_me:$LINENO: result: no" >&5
3170 echo "${ECHO_T}no" >&6
3173 test -n "$AWK" && break
3176 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3177 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3178 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3179 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3180 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 cat >conftest.make <<\_ACEOF
3184 @echo 'ac_maketemp="$(MAKE)"'
3186 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3187 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3188 if test -n "$ac_maketemp"; then
3189 eval ac_cv_prog_make_${ac_make}_set=yes
3191 eval ac_cv_prog_make_${ac_make}_set=no
3195 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3196 echo "$as_me:$LINENO: result: yes" >&5
3197 echo "${ECHO_T}yes" >&6
3200 echo "$as_me:$LINENO: result: no" >&5
3201 echo "${ECHO_T}no" >&6
3202 SET_MAKE="MAKE=${MAKE-make}"
3205 rm -rf .tst 2>/dev/null
3206 mkdir .tst 2>/dev/null
3207 if test -d .tst; then
3212 rmdir .tst 2>/dev/null
3214 DEPDIR="${am__leading_dot}deps"
3216 ac_config_commands="$ac_config_commands depfiles"
3219 am_make=${MAKE-make}
3220 cat > confinc << 'END'
3225 # If we don't find an include directive, just comment out the code.
3226 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3227 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3231 # First try GNU make style include.
3232 echo "include confinc" > confmf
3233 # We grep out `Entering directory' and `Leaving directory'
3234 # messages which can occur if `w' ends up in MAKEFLAGS.
3235 # In particular we don't look at `^make:' because GNU make might
3236 # be invoked under some other name (usually "gmake"), in which
3237 # case it prints its new name instead of `make'.
3238 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3243 # Now try BSD make style include.
3244 if test "$am__include" = "#"; then
3245 echo '.include "confinc"' > confmf
3246 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3247 am__include=.include
3254 echo "$as_me:$LINENO: result: $_am_result" >&5
3255 echo "${ECHO_T}$_am_result" >&6
3256 rm -f confinc confmf
3258 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3259 if test "${enable_dependency_tracking+set}" = set; then
3260 enableval="$enable_dependency_tracking"
3263 if test "x$enable_dependency_tracking" != xno; then
3264 am_depcomp="$ac_aux_dir/depcomp"
3269 if test "x$enable_dependency_tracking" != xno; then
3279 # test to see if srcdir already configured
3280 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3281 test -f $srcdir/config.status; then
3282 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3283 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3284 { (exit 1); exit 1; }; }
3287 # test whether we have cygpath
3288 if test -z "$CYGPATH_W"; then
3289 if (cygpath --version) >/dev/null 2>/dev/null; then
3290 CYGPATH_W='cygpath -w'
3297 # Define the identity of the package.
3299 VERSION='version-unused'
3302 cat >>confdefs.h <<_ACEOF
3303 #define PACKAGE "$PACKAGE"
3307 cat >>confdefs.h <<_ACEOF
3308 #define VERSION "$VERSION"
3311 # Some tools Automake needs.
3313 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3316 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3319 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3322 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3325 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3327 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3329 # Installed binaries are usually stripped using `strip' when the user
3330 # run `make install-strip'. However `strip' might not be the right
3331 # tool to use in cross-compilation environments, therefore Automake
3332 # will honor the `STRIP' environment variable to overrule this program.
3333 if test "$cross_compiling" != no; then
3334 if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3336 set dummy ${ac_tool_prefix}strip; ac_word=$2
3337 echo "$as_me:$LINENO: checking for $ac_word" >&5
3338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3339 if test "${ac_cv_prog_STRIP+set}" = set; then
3340 echo $ECHO_N "(cached) $ECHO_C" >&6
3342 if test -n "$STRIP"; then
3343 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3361 STRIP=$ac_cv_prog_STRIP
3362 if test -n "$STRIP"; then
3363 echo "$as_me:$LINENO: result: $STRIP" >&5
3364 echo "${ECHO_T}$STRIP" >&6
3366 echo "$as_me:$LINENO: result: no" >&5
3367 echo "${ECHO_T}no" >&6
3371 if test -z "$ac_cv_prog_STRIP"; then
3373 # Extract the first word of "strip", so it can be a program name with args.
3374 set dummy strip; ac_word=$2
3375 echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3377 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if test -n "$ac_ct_STRIP"; then
3381 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390 ac_cv_prog_ac_ct_STRIP="strip"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3400 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3401 if test -n "$ac_ct_STRIP"; then
3402 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3403 echo "${ECHO_T}$ac_ct_STRIP" >&6
3405 echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3411 STRIP="$ac_cv_prog_STRIP"
3415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3417 # We need awk for the "check" target. The system "awk" is bad on
3419 # Always define AMTAR for backward compatibility.
3421 AMTAR=${AMTAR-"${am_missing_run}tar"}
3423 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3428 depcc="$CC" am_compiler_list=
3430 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3431 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3432 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3436 # We make a subdir and do the tests there. Otherwise we can end up
3437 # making bogus files that we don't know about and never remove. For
3438 # instance it was reported that on HP-UX the gcc test will end up
3439 # making a dummy file named `D' -- because `-MD' means `put the output
3442 # Copy depcomp to subdir because otherwise we won't find it if we're
3443 # using a relative directory.
3444 cp "$am_depcomp" conftest.dir
3446 # We will build objects and dependencies in a subdirectory because
3447 # it helps to detect inapplicable dependency modes. For instance
3448 # both Tru64's cc and ICC support -MD to output dependencies as a
3449 # side effect of compilation, but ICC will put the dependencies in
3450 # the current directory while Tru64 will put them in the object
3454 am_cv_CC_dependencies_compiler_type=none
3455 if test "$am_compiler_list" = ""; then
3456 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3458 for depmode in $am_compiler_list; do
3459 # Setup a source with many dependencies, because some compilers
3460 # like to wrap large dependency lists on column 80 (with \), and
3461 # we should not choose a depcomp mode which is confused by this.
3463 # We need to recreate these files for each test, as the compiler may
3464 # overwrite some of them when testing with obscure command lines.
3465 # This happens at least with the AIX C compiler.
3467 for i in 1 2 3 4 5 6; do
3468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3470 # Solaris 8's {/usr,}/bin/sh.
3471 touch sub/conftst$i.h
3473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3477 # after this tag, mechanisms are not by side-effect, so they'll
3478 # only be used when explicitly requested
3479 if test "x$enable_dependency_tracking" = xyes; then
3487 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3488 # mode. It turns out that the SunPro C++ compiler does not properly
3489 # handle `-M -o', and we need to detect this.
3490 if depmode=$depmode \
3491 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3492 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3493 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3494 >/dev/null 2>conftest.err &&
3495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3496 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3498 # icc doesn't choke on unknown options, it will just issue warnings
3499 # or remarks (even with -Werror). So we grep stderr for any message
3500 # that says an option was ignored or not supported.
3501 # When given -MP, icc 7.0 and 7.1 complain thusly:
3502 # icc: Command line warning: ignoring option '-M'; no argument required
3503 # The diagnosis changed in icc 8.0:
3504 # icc: Command line remark: option '-MP' not supported
3505 if (grep 'ignoring option' conftest.err ||
3506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3507 am_cv_CC_dependencies_compiler_type=$depmode
3516 am_cv_CC_dependencies_compiler_type=none
3520 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3521 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3522 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3527 test "x$enable_dependency_tracking" != xno \
3528 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3530 am__fastdepCC_FALSE='#'
3532 am__fastdepCC_TRUE='#'
3533 am__fastdepCC_FALSE=
3537 depcc="$CXX" am_compiler_list=
3539 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3541 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545 # We make a subdir and do the tests there. Otherwise we can end up
3546 # making bogus files that we don't know about and never remove. For
3547 # instance it was reported that on HP-UX the gcc test will end up
3548 # making a dummy file named `D' -- because `-MD' means `put the output
3551 # Copy depcomp to subdir because otherwise we won't find it if we're
3552 # using a relative directory.
3553 cp "$am_depcomp" conftest.dir
3555 # We will build objects and dependencies in a subdirectory because
3556 # it helps to detect inapplicable dependency modes. For instance
3557 # both Tru64's cc and ICC support -MD to output dependencies as a
3558 # side effect of compilation, but ICC will put the dependencies in
3559 # the current directory while Tru64 will put them in the object
3563 am_cv_CXX_dependencies_compiler_type=none
3564 if test "$am_compiler_list" = ""; then
3565 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567 for depmode in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3576 for i in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579 # Solaris 8's {/usr,}/bin/sh.
3580 touch sub/conftst$i.h
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586 # after this tag, mechanisms are not by side-effect, so they'll
3587 # only be used when explicitly requested
3588 if test "x$enable_dependency_tracking" = xyes; then
3596 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3597 # mode. It turns out that the SunPro C++ compiler does not properly
3598 # handle `-M -o', and we need to detect this.
3599 if depmode=$depmode \
3600 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3601 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3602 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3603 >/dev/null 2>conftest.err &&
3604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607 # icc doesn't choke on unknown options, it will just issue warnings
3608 # or remarks (even with -Werror). So we grep stderr for any message
3609 # that says an option was ignored or not supported.
3610 # When given -MP, icc 7.0 and 7.1 complain thusly:
3611 # icc: Command line warning: ignoring option '-M'; no argument required
3612 # The diagnosis changed in icc 8.0:
3613 # icc: Command line remark: option '-MP' not supported
3614 if (grep 'ignoring option' conftest.err ||
3615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616 am_cv_CXX_dependencies_compiler_type=$depmode
3625 am_cv_CXX_dependencies_compiler_type=none
3629 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3630 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3631 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3636 test "x$enable_dependency_tracking" != xno \
3637 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3638 am__fastdepCXX_TRUE=
3639 am__fastdepCXX_FALSE='#'
3641 am__fastdepCXX_TRUE='#'
3642 am__fastdepCXX_FALSE=
3648 if test -n "$ac_tool_prefix"; then
3649 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3650 set dummy ${ac_tool_prefix}as; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_prog_AS+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 if test -n "$AS"; then
3657 ac_cv_prog_AS="$AS" # Let the user override the test.
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3666 ac_cv_prog_AS="${ac_tool_prefix}as"
3667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 if test -n "$AS"; then
3677 echo "$as_me:$LINENO: result: $AS" >&5
3678 echo "${ECHO_T}$AS" >&6
3680 echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6
3685 if test -z "$ac_cv_prog_AS"; then
3687 # Extract the first word of "as", so it can be a program name with args.
3688 set dummy as; ac_word=$2
3689 echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3691 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 if test -n "$ac_ct_AS"; then
3695 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3704 ac_cv_prog_ac_ct_AS="as"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3714 if test -n "$ac_ct_AS"; then
3715 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3716 echo "${ECHO_T}$ac_ct_AS" >&6
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3727 if test -n "$ac_tool_prefix"; then
3728 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3729 set dummy ${ac_tool_prefix}ar; ac_word=$2
3730 echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732 if test "${ac_cv_prog_AR+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3735 if test -n "$AR"; then
3736 ac_cv_prog_AR="$AR" # Let the user override the test.
3738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_AR="${ac_tool_prefix}ar"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 if test -n "$AR"; then
3756 echo "$as_me:$LINENO: result: $AR" >&5
3757 echo "${ECHO_T}$AR" >&6
3759 echo "$as_me:$LINENO: result: no" >&5
3760 echo "${ECHO_T}no" >&6
3764 if test -z "$ac_cv_prog_AR"; then
3766 # Extract the first word of "ar", so it can be a program name with args.
3767 set dummy ar; ac_word=$2
3768 echo "$as_me:$LINENO: checking for $ac_word" >&5
3769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3770 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3771 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 if test -n "$ac_ct_AR"; then
3774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_ac_ct_AR="ar"
3784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3793 if test -n "$ac_ct_AR"; then
3794 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3795 echo "${ECHO_T}$ac_ct_AR" >&6
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3806 if test -n "$ac_tool_prefix"; then
3807 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_RANLIB+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 if test -n "$RANLIB"; then
3815 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 RANLIB=$ac_cv_prog_RANLIB
3834 if test -n "$RANLIB"; then
3835 echo "$as_me:$LINENO: result: $RANLIB" >&5
3836 echo "${ECHO_T}$RANLIB" >&6
3838 echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3843 if test -z "$ac_cv_prog_RANLIB"; then
3844 ac_ct_RANLIB=$RANLIB
3845 # Extract the first word of "ranlib", so it can be a program name with args.
3846 set dummy ranlib; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 if test -n "$ac_ct_RANLIB"; then
3853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862 ac_cv_prog_ac_ct_RANLIB="ranlib"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3872 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3873 if test -n "$ac_ct_RANLIB"; then
3874 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3875 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 RANLIB=$ac_ct_RANLIB
3883 RANLIB="$ac_cv_prog_RANLIB"
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # OS/2's system install, which has a completely different semantic
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 # Account for people who put trailing slashes in PATH elements.
3913 ./ | .// | /cC/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3918 # OSF1 and SCO ODT 3.0 have their own names for install.
3919 # Don't use installbsd from OSF since it installs stuff as root
3921 for ac_prog in ginstall scoinst install; do
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3924 if test $ac_prog = install &&
3925 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3926 # AIX install. It has an incompatible calling convention.
3928 elif test $ac_prog = install &&
3929 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3930 # program-specific install script used by HP pwplus--don't use.
3933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3945 if test "${ac_cv_path_install+set}" = set; then
3946 INSTALL=$ac_cv_path_install
3948 # As a last resort, use the slow shell script. We don't cache a
3949 # path for INSTALL within a source directory, because that will
3950 # break other packages using the cache if that directory is
3951 # removed, or if the path is relative.
3952 INSTALL=$ac_install_sh
3955 echo "$as_me:$LINENO: result: $INSTALL" >&5
3956 echo "${ECHO_T}$INSTALL" >&6
3958 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3959 # It thinks the first close brace ends the variable substitution.
3960 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3967 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3968 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3969 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3970 if test "${enable_maintainer_mode+set}" = set; then
3971 enableval="$enable_maintainer_mode"
3972 USE_MAINTAINER_MODE=$enableval
3974 USE_MAINTAINER_MODE=no
3976 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3977 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3980 if test $USE_MAINTAINER_MODE = yes; then
3981 MAINTAINER_MODE_TRUE=
3982 MAINTAINER_MODE_FALSE='#'
3984 MAINTAINER_MODE_TRUE='#'
3985 MAINTAINER_MODE_FALSE=
3988 MAINT=$MAINTAINER_MODE_TRUE
3994 # configure.host sets the following important variables
3995 # libgcj_cflags - host specific C compiler flags
3996 # libgcj_cxxflags - host specific C++ compiler flags
3997 # libgcj_javaflags - host specific Java compiler flags
4003 . ${srcdir}/configure.host
4005 LIBGCJ_CFLAGS="${libgcj_cflags}"
4006 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
4007 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
4008 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
4014 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
4018 # See if the user has requested runtime debugging.
4019 LIBGCJDEBUG="disable"
4021 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
4022 if test "${enable_libgcj_debug+set}" = set; then
4023 enableval="$enable_libgcj_debug"
4024 if test "$enable_libgcj_debug" = yes; then
4026 cat >>confdefs.h <<\_ACEOF
4030 LIBGCJDEBUG="enable"
4034 # Determine which AWT peer libraries to build
4035 # Check whether --enable-java-awt or --disable-java-awt was given.
4036 if test "${enable_java_awt+set}" = set; then
4037 enableval="$enable_java_awt"
4041 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
4044 # The default toolkit to use is the first one specified.
4048 for peer in $peerlibs ; do
4051 if test "$no_x" = yes; then
4052 echo "*** xlib peers requested but no X library available" 1>&2
4056 if test -z "$TOOLKIT"; then
4057 TOOLKIT=gnu.awt.xlib.XToolkit
4062 if test "$no_x" = yes; then
4063 echo "*** xlib peers requested but no X library available" 1>&2
4067 if test -z "$TOOLKIT"; then
4068 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
4078 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
4085 if test "$use_xlib_awt" = yes; then
4095 if test "$use_gtk_awt" = yes; then
4104 # Create standard.omit based on decisions we just made.
4105 cp $srcdir/standard.omit.in standard.omit
4106 if test "$use_xlib_awt" != yes; then
4107 echo gnu/awt/xlib >> standard.omit
4108 echo gnu/gcj/xlib >> standard.omit
4110 if test "$use_gtk_awt" != yes; then
4111 echo gnu/java/awt/peer/gtk >> standard.omit
4114 if test -z "${with_multisubdir}"; then
4117 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
4122 # Which gcj do we use?
4124 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
4125 if test -n "${with_cross_host}"; then
4126 # We are being configured with a cross compiler. We can't
4127 # use ac_exeext, because that is for the target platform.
4130 case "${with_cross_host}" in
4132 cross_host_exeext=.exe
4135 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
4136 if test x"$build_noncanonical" = x"$with_cross_host"; then
4137 # Ordinary cross (host!=target and host=build)
4140 # Canadian cross (host!=target and host!=build)
4147 # We are being configured with a native or crossed-native compiler
4148 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
4149 if test x"$build" = x"$host"; then
4150 # True native build (host=target and host=build)
4153 # Crossed-native build (host=target and host!=build)
4160 case "${which_gcj}" in
4162 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
4163 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
4164 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
4167 if test "x${with_newlib}" = "xyes"; then
4168 # FIXME (comment): Why is this needed?
4170 GCJ="${target_noncanonical}-gcj"
4172 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
4174 ZIP='$(target_noncanonical)-fastjar'
4175 GCJH='$(target_noncanonical)-gcjh'
4178 GCJ="gcj -B`${PWDCMD-pwd}`/"
4179 ## In this case, gcj is found outside the build tree. However, zip is
4180 ## found in the build tree.
4181 ZIP='$(top_builddir)/$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
4189 # Create it, so that compile/link tests don't fail
4190 test -f libgcj.spec || touch libgcj.spec
4194 # Set up to configure Classpath.
4195 # FIXME: no supported way to pass args in autoconf.
4196 ac_configure_args="$ac_configure_args --disable-load-library"
4197 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
4198 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
4199 dir1=`cd $srcdir && pwd`
4201 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
4202 ac_configure_args="$ac_configure_args --disable-core-jni"
4203 ac_configure_args="$ac_configure_args --disable-examples"
4204 ac_configure_args="$ac_configure_args --with-glibj=build"
4205 if test "$use_gtk_awt" != yes; then
4206 ac_configure_args="$ac_configure_args --disable-gtk-peer"
4209 # Only use libltdl for non-newlib builds.
4210 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
4211 case $enable_ltdl_convenience in
4212 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
4213 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
4214 { (exit 1); exit 1; }; } ;;
4215 "") enable_ltdl_convenience=yes
4216 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4218 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
4219 INCLTDL='-I${top_srcdir}/''libltdl'
4224 cat >>confdefs.h <<\_ACEOF
4228 # Sigh. Libtool's macro doesn't do the right thing.
4229 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
4230 # FIXME: this is a hack.
4231 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
4232 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
4237 # Check whether --enable-shared or --disable-shared was given.
4238 if test "${enable_shared+set}" = set; then
4239 enableval="$enable_shared"
4240 p=${PACKAGE-default}
4242 yes) enable_shared=yes ;;
4243 no) enable_shared=no ;;
4246 # Look at the argument we got. We use all the common list separators.
4247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4248 for pkg in $enableval; do
4249 if test "X$pkg" = "X$p"; then
4259 # Check whether --enable-static or --disable-static was given.
4260 if test "${enable_static+set}" = set; then
4261 enableval="$enable_static"
4262 p=${PACKAGE-default}
4264 yes) enable_static=yes ;;
4265 no) enable_static=no ;;
4268 # Look at the argument we got. We use all the common list separators.
4269 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4270 for pkg in $enableval; do
4271 if test "X$pkg" = "X$p"; then
4281 # Check whether --enable-fast-install or --disable-fast-install was given.
4282 if test "${enable_fast_install+set}" = set; then
4283 enableval="$enable_fast_install"
4284 p=${PACKAGE-default}
4286 yes) enable_fast_install=yes ;;
4287 no) enable_fast_install=no ;;
4289 enable_fast_install=no
4290 # Look at the argument we got. We use all the common list separators.
4291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
4292 for pkg in $enableval; do
4293 if test "X$pkg" = "X$p"; then
4294 enable_fast_install=yes
4301 enable_fast_install=yes
4304 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4305 if test "${with_gnu_ld+set}" = set; then
4306 withval="$with_gnu_ld"
4307 test "$withval" = no || with_gnu_ld=yes
4312 if test "$GCC" = yes; then
4313 # Check if gcc -print-prog-name=ld gives a path.
4314 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
4315 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4318 # gcc leaves a trailing carriage return which upsets mingw
4319 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4321 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4324 # Accept absolute paths.
4325 [\\/]* | [A-Za-z]:[\\/]*)
4326 re_direlt='/[^/][^/]*/\.\./'
4327 # Canonicalize the path of ld
4328 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4329 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4330 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4332 test -z "$LD" && LD="$ac_prog"
4335 # If it fails, then pretend we aren't using GCC.
4339 # If it is relative, then search for the first ld in PATH.
4343 elif test "$with_gnu_ld" = yes; then
4344 echo "$as_me:$LINENO: checking for GNU ld" >&5
4345 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4347 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4348 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4350 if test "${lt_cv_path_LD+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 if test -z "$LD"; then
4354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4355 for ac_dir in $PATH; do
4356 test -z "$ac_dir" && ac_dir=.
4357 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4358 lt_cv_path_LD="$ac_dir/$ac_prog"
4359 # Check to see if the program is GNU ld. I'd rather use --version,
4360 # but apparently some GNU ld's only accept -v.
4361 # Break only if it was the GNU/non-GNU ld that we prefer.
4362 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4363 test "$with_gnu_ld" != no && break
4365 test "$with_gnu_ld" != yes && break
4371 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4376 if test -n "$LD"; then
4377 echo "$as_me:$LINENO: result: $LD" >&5
4378 echo "${ECHO_T}$LD" >&6
4380 echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6
4383 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4384 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4385 { (exit 1); exit 1; }; }
4386 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4387 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4388 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4392 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4393 lt_cv_prog_gnu_ld=yes
4395 lt_cv_prog_gnu_ld=no
4398 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4399 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4400 with_gnu_ld=$lt_cv_prog_gnu_ld
4403 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4404 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4405 if test "${lt_cv_ld_reload_flag+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4408 lt_cv_ld_reload_flag='-r'
4410 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4411 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4412 reload_flag=$lt_cv_ld_reload_flag
4413 test -n "$reload_flag" && reload_flag=" $reload_flag"
4415 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4416 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4417 if test "${lt_cv_path_NM+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 if test -n "$NM"; then
4421 # Let the user override the test.
4424 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
4425 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4426 test -z "$ac_dir" && ac_dir=.
4427 tmp_nm=$ac_dir/${ac_tool_prefix}nm
4428 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4429 # Check to see if the nm accepts a BSD-compat flag.
4430 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4431 # nm: unknown option "B" ignored
4432 # Tru64's nm complains that /dev/null is an invalid object file
4433 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4434 lt_cv_path_NM="$tmp_nm -B"
4436 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4437 lt_cv_path_NM="$tmp_nm -p"
4440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4441 continue # so that we can try to find one that supports BSD flags
4446 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4451 echo "$as_me:$LINENO: result: $NM" >&5
4452 echo "${ECHO_T}$NM" >&6
4454 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4455 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4456 if test "${lt_cv_deplibs_check_method+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 lt_cv_file_magic_cmd='$MAGIC_CMD'
4460 lt_cv_file_magic_test_file=
4461 lt_cv_deplibs_check_method='unknown'
4462 # Need to set the preceding variable on all platforms that support
4463 # interlibrary dependencies.
4464 # 'none' -- dependencies not supported.
4465 # `unknown' -- same as none, but documents that we really don't know.
4466 # 'pass_all' -- all dependencies passed with no checks.
4467 # 'test_compile' -- check by making test program.
4468 # 'file_magic [regex]' -- check by looking for files in library path
4469 # which responds to the $file_magic_cmd with a given egrep regex.
4470 # If you have `file' or equivalent on your system and you're not sure
4471 # whether `pass_all' will *always* work, you probably want this one.
4475 lt_cv_deplibs_check_method=pass_all
4479 lt_cv_deplibs_check_method=pass_all
4483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4484 lt_cv_file_magic_cmd='/usr/bin/file -L'
4485 lt_cv_file_magic_test_file=/shlib/libc.so
4488 cygwin* | mingw* |pw32*)
4489 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4490 lt_cv_file_magic_cmd='$OBJDUMP -f'
4493 darwin* | rhapsody*)
4494 # this will be overwritten by pass_all, but leave it in just in case
4495 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4496 lt_cv_file_magic_cmd='/usr/bin/file -L'
4498 rhapsody* | darwin1.012)
4499 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
4502 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4505 lt_cv_deplibs_check_method=pass_all
4508 freebsd* | kfreebsd*-gnu)
4509 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4512 # Not sure whether the presence of OpenBSD here was a mistake.
4513 # Let's accept both of them until this is cleared up.
4514 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4515 lt_cv_file_magic_cmd=/usr/bin/file
4516 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4520 lt_cv_deplibs_check_method=pass_all
4525 lt_cv_deplibs_check_method=pass_all
4531 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4532 lt_cv_file_magic_cmd=/usr/bin/file
4533 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4536 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4537 lt_cv_file_magic_cmd=/usr/bin/file
4538 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4546 # this will be overridden with pass_all, but let us keep it just in case
4547 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4551 *-32|*"-32 ") libmagic=32-bit;;
4552 *-n32|*"-n32 ") libmagic=N32;;
4553 *-64|*"-64 ") libmagic=64-bit;;
4554 *) libmagic=never-match;;
4556 # this will be overridden with pass_all, but let us keep it just in case
4557 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4560 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4561 lt_cv_deplibs_check_method=pass_all
4564 # This must be Linux ELF.
4566 lt_cv_deplibs_check_method=pass_all
4569 netbsd* | knetbsd*-gnu)
4570 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4571 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4573 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4579 lt_cv_file_magic_cmd=/usr/bin/file
4580 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4583 osf3* | osf4* | osf5*)
4584 # this will be overridden with pass_all, but let us keep it just in case
4585 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4586 lt_cv_file_magic_test_file=/shlib/libc.so
4587 lt_cv_deplibs_check_method=pass_all
4591 lt_cv_deplibs_check_method=pass_all
4595 lt_cv_deplibs_check_method=pass_all
4596 lt_cv_file_magic_test_file=/lib/libc.so
4599 sysv5uw[78]* | sysv4*uw2*)
4600 lt_cv_deplibs_check_method=pass_all
4603 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4604 case $host_vendor in
4606 lt_cv_deplibs_check_method=pass_all
4609 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]'
4610 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4617 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4618 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4619 file_magic_cmd=$lt_cv_file_magic_cmd
4620 deplibs_check_method=$lt_cv_deplibs_check_method
4625 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4627 # find the maximum length of command line arguments
4628 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4629 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4630 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 # On DJGPP, this test can blow up pretty badly due to problems in libc
4639 # (any single argument exceeding 2000 bytes causes a buffer overrun
4640 # during glob expansion). Even if it were fixed, the result of this
4641 # check would be larger than it should be.
4642 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4646 # On Win9x/ME, this test blows up -- it succeeds, but takes
4647 # about 5 minutes as the teststring grows exponentially.
4648 # Worse, since 9x/ME are not pre-emptively multitasking,
4649 # you end up with a "frozen" computer, even though with patience
4650 # the test eventually succeeds (with a max line length of 256k).
4651 # Instead, let's just punt: use the minimum linelength reported by
4652 # all of the supported platforms: 8192 (on NT/2K/XP).
4653 lt_cv_sys_max_cmd_len=8192;
4657 # On AmigaOS with pdksh, this test takes hours, literally.
4658 # So we just punt and use a minimum line length of 8192.
4659 lt_cv_sys_max_cmd_len=8192;
4662 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4663 # This has been around since 386BSD, at least. Likely further.
4664 if test -x /sbin/sysctl; then
4665 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4666 elif test -x /usr/sbin/sysctl; then
4667 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4669 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4671 # And add a safety zone
4672 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4673 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4679 if test -n "$lt_cv_sys_max_cmd_len" ; then
4680 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4681 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4683 echo "$as_me:$LINENO: result: none" >&5
4684 echo "${ECHO_T}none" >&6
4688 # Only perform the check for file, if the check method requires it
4689 case $deplibs_check_method in
4691 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4692 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4693 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4694 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4702 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4705 ac_save_MAGIC_CMD="$MAGIC_CMD"
4706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4707 ac_dummy="/usr/bin:$PATH"
4708 for ac_dir in $ac_dummy; do
4709 test -z "$ac_dir" && ac_dir=.
4710 if test -f $ac_dir/${ac_tool_prefix}file; then
4711 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4712 if test -n "$file_magic_test_file"; then
4713 case $deplibs_check_method in
4715 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4716 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4717 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4718 egrep "$file_magic_regex" > /dev/null; then
4723 *** Warning: the command libtool uses to detect shared libraries,
4724 *** $file_magic_cmd, produces output that libtool cannot recognize.
4725 *** The result is that libtool may fail to recognize shared libraries
4726 *** as such. This will affect the creation of libtool libraries that
4727 *** depend on shared libraries, but programs linked with such libtool
4728 *** libraries will work regardless of this problem. Nevertheless, you
4729 *** may want to report the problem to your system manager and/or to
4730 *** bug-libtool@gnu.org
4740 MAGIC_CMD="$ac_save_MAGIC_CMD"
4745 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4746 if test -n "$MAGIC_CMD"; then
4747 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4748 echo "${ECHO_T}$MAGIC_CMD" >&6
4750 echo "$as_me:$LINENO: result: no" >&5
4751 echo "${ECHO_T}no" >&6
4754 if test -z "$lt_cv_path_MAGIC_CMD"; then
4755 if test -n "$ac_tool_prefix"; then
4756 echo "$as_me:$LINENO: checking for file" >&5
4757 echo $ECHO_N "checking for file... $ECHO_C" >&6
4758 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4769 ac_save_MAGIC_CMD="$MAGIC_CMD"
4770 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4771 ac_dummy="/usr/bin:$PATH"
4772 for ac_dir in $ac_dummy; do
4773 test -z "$ac_dir" && ac_dir=.
4774 if test -f $ac_dir/file; then
4775 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4776 if test -n "$file_magic_test_file"; then
4777 case $deplibs_check_method in
4779 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4782 egrep "$file_magic_regex" > /dev/null; then
4787 *** Warning: the command libtool uses to detect shared libraries,
4788 *** $file_magic_cmd, produces output that libtool cannot recognize.
4789 *** The result is that libtool may fail to recognize shared libraries
4790 *** as such. This will affect the creation of libtool libraries that
4791 *** depend on shared libraries, but programs linked with such libtool
4792 *** libraries will work regardless of this problem. Nevertheless, you
4793 *** may want to report the problem to your system manager and/or to
4794 *** bug-libtool@gnu.org
4804 MAGIC_CMD="$ac_save_MAGIC_CMD"
4809 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4810 if test -n "$MAGIC_CMD"; then
4811 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4812 echo "${ECHO_T}$MAGIC_CMD" >&6
4814 echo "$as_me:$LINENO: result: no" >&5
4815 echo "${ECHO_T}no" >&6
4827 if test -n "$ac_tool_prefix"; then
4828 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4829 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4830 echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832 if test "${ac_cv_prog_RANLIB+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 if test -n "$RANLIB"; then
4836 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 RANLIB=$ac_cv_prog_RANLIB
4855 if test -n "$RANLIB"; then
4856 echo "$as_me:$LINENO: result: $RANLIB" >&5
4857 echo "${ECHO_T}$RANLIB" >&6
4859 echo "$as_me:$LINENO: result: no" >&5
4860 echo "${ECHO_T}no" >&6
4864 if test -z "$ac_cv_prog_RANLIB"; then
4865 ac_ct_RANLIB=$RANLIB
4866 # Extract the first word of "ranlib", so it can be a program name with args.
4867 set dummy ranlib; ac_word=$2
4868 echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4870 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
4873 if test -n "$ac_ct_RANLIB"; then
4874 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_prog_ac_ct_RANLIB="ranlib"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4893 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4894 if test -n "$ac_ct_RANLIB"; then
4895 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4896 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4898 echo "$as_me:$LINENO: result: no" >&5
4899 echo "${ECHO_T}no" >&6
4902 RANLIB=$ac_ct_RANLIB
4904 RANLIB="$ac_cv_prog_RANLIB"
4907 if test -n "$ac_tool_prefix"; then
4908 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4909 set dummy ${ac_tool_prefix}strip; ac_word=$2
4910 echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4912 if test "${ac_cv_prog_STRIP+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 if test -n "$STRIP"; then
4916 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 test -z "$as_dir" && as_dir=.
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 STRIP=$ac_cv_prog_STRIP
4935 if test -n "$STRIP"; then
4936 echo "$as_me:$LINENO: result: $STRIP" >&5
4937 echo "${ECHO_T}$STRIP" >&6
4939 echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6
4944 if test -z "$ac_cv_prog_STRIP"; then
4946 # Extract the first word of "strip", so it can be a program name with args.
4947 set dummy strip; ac_word=$2
4948 echo "$as_me:$LINENO: checking for $ac_word" >&5
4949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4950 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4951 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 if test -n "$ac_ct_STRIP"; then
4954 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 test -z "$as_dir" && as_dir=.
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4963 ac_cv_prog_ac_ct_STRIP="strip"
4964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4973 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4974 if test -n "$ac_ct_STRIP"; then
4975 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4976 echo "${ECHO_T}$ac_ct_STRIP" >&6
4978 echo "$as_me:$LINENO: result: no" >&5
4979 echo "${ECHO_T}no" >&6
4984 STRIP="$ac_cv_prog_STRIP"
4988 # Check for any special flags to pass to ltconfig.
4989 libtool_flags="--cache-file=$cache_file"
4990 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4991 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4992 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4993 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4994 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4997 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4998 if test "${enable_libtool_lock+set}" = set; then
4999 enableval="$enable_libtool_lock"
5002 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
5003 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
5006 # Check whether --with-pic or --without-pic was given.
5007 if test "${with_pic+set}" = set; then
5013 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
5014 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
5016 # Some flags need to be propagated to the compiler or linker for good
5020 # Find out which ABI we are using.
5021 echo '#line 5021 "configure"' > conftest.$ac_ext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>&5
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; then
5027 if test "$lt_cv_prog_gnu_ld" = yes; then
5028 case `/usr/bin/file conftest.$ac_objext` in
5030 LD="${LD-ld} -melf32bsmip"
5033 LD="${LD-ld} -melf32bmipn32"
5036 LD="${LD-ld} -melf64bmip"
5040 case `/usr/bin/file conftest.$ac_objext` in
5057 # Find out which ABI we are using.
5058 echo 'int i;' > conftest.$ac_ext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; then
5064 case "`/usr/bin/file conftest.o`" in
5076 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5077 # Find out which ABI we are using.
5078 echo 'int i;' > conftest.$ac_ext
5079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5080 (eval $ac_compile) 2>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; then
5084 case "`/usr/bin/file conftest.o`" in
5088 LD="${LD-ld} -m elf_i386"
5090 ppc64-*linux*|powerpc64-*linux*)
5091 LD="${LD-ld} -m elf32ppclinux"
5094 LD="${LD-ld} -m elf_s390"
5097 LD="${LD-ld} -m elf32_sparc"
5104 LD="${LD-ld} -m elf_x86_64"
5106 ppc*-*linux*|powerpc*-*linux*)
5107 LD="${LD-ld} -m elf64ppc"
5110 LD="${LD-ld} -m elf64_s390"
5113 LD="${LD-ld} -m elf64_sparc"
5123 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5124 SAVE_CFLAGS="$CFLAGS"
5125 CFLAGS="$CFLAGS -belf"
5126 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5127 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5128 if test "${lt_cv_cc_needs_belf+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 ac_cpp='$CPP $CPPFLAGS'
5135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139 if test x$gcc_no_link = xyes; then
5140 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5141 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5142 { (exit 1); exit 1; }; }
5144 cat >conftest.$ac_ext <<_ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5159 rm -f conftest.$ac_objext conftest$ac_exeext
5160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5161 (eval $ac_link) 2>conftest.er1
5163 grep -v '^ *+' conftest.er1 >conftest.err
5165 cat conftest.err >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -z "$ac_c_werror_flag"
5169 || test ! -s conftest.err'
5170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174 (exit $ac_status); }; } &&
5175 { ac_try='test -s conftest$ac_exeext'
5176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); }; }; then
5181 lt_cv_cc_needs_belf=yes
5183 echo "$as_me: failed program was:" >&5
5184 sed 's/^/| /' conftest.$ac_ext >&5
5186 lt_cv_cc_needs_belf=no
5188 rm -f conftest.err conftest.$ac_objext \
5189 conftest$ac_exeext conftest.$ac_ext
5191 ac_cpp='$CPP $CPPFLAGS'
5192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5197 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5198 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5199 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5200 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5201 CFLAGS="$SAVE_CFLAGS"
5209 # Save cache, so that ltconfig can load it
5210 cat >confcache <<\_ACEOF
5211 # This file is a shell script that caches the results of configure
5212 # tests run on this system so they can be shared between configure
5213 # scripts and configure runs, see configure's option --config-cache.
5214 # It is not useful on other systems. If it contains results you don't
5215 # want to keep, you may remove or edit it.
5217 # config.status only pays attention to the cache file if you give it
5218 # the --recheck option to rerun configure.
5220 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5221 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5226 # The following way of writing the cache mishandles newlines in values,
5227 # but we know of no workaround that is simple, portable, and efficient.
5228 # So, don't put newlines in cache variables' values.
5229 # Ultrix sh set writes to stderr and can't be redirected directly,
5230 # and sets the high bit in the cache file unless we assign to the vars.
5233 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5235 # `set' does not quote correctly, so add quotes (double-quote
5236 # substitution turns \\\\ into \\, and sed turns \\ into \).
5239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5242 # `set' quotes correctly as required by POSIX, so do not add quotes.
5244 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5253 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5255 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5256 if test -w $cache_file; then
5257 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5258 cat confcache >$cache_file
5260 echo "not updating unwritable cache $cache_file"
5265 # Actually configure libtool. ac_aux_dir is where install-sh is found.
5266 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
5267 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5268 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5269 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5270 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5271 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
5272 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
5273 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
5274 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
5275 echo "$as_me: error: libtool configure failed" >&2;}
5276 { (exit 1); exit 1; }; }
5278 # Reload cache, that may have been modified by ltconfig
5279 if test -r "$cache_file"; then
5280 # Some versions of bash will fail to source /dev/null (special
5281 # files actually), so we avoid doing that.
5282 if test -f "$cache_file"; then
5283 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
5284 echo "$as_me: loading cache $cache_file" >&6;}
5286 [\\/]* | ?:[\\/]* ) . $cache_file;;
5287 *) . ./$cache_file;;
5291 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
5292 echo "$as_me: creating cache $cache_file" >&6;}
5297 # This can be used to rebuild libtool when needed
5298 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
5300 # Always use our own libtool.
5301 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5303 # Redirect the config.log output again, so that the ltconfig log is not
5304 # clobbered by the next message.
5305 exec 5>>./config.log
5308 ac_cpp='$CXXCPP $CPPFLAGS'
5309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5312 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5313 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5314 if test -z "$CXXCPP"; then
5315 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 # Double quotes because CXXCPP needs to be expanded
5319 for CXXCPP in "$CXX -E" "/lib/cpp"
5322 for ac_cxx_preproc_warn_flag in '' yes
5324 # Use a header file that comes with gcc, so configuring glibc
5325 # with a fresh cross-compiler works.
5326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5327 # <limits.h> exists even on freestanding compilers.
5328 # On the NeXT, cc -E runs the code through the compiler's parser,
5329 # not just through cpp. "Syntax error" is here to catch this case.
5330 cat >conftest.$ac_ext <<_ACEOF
5333 cat confdefs.h >>conftest.$ac_ext
5334 cat >>conftest.$ac_ext <<_ACEOF
5335 /* end confdefs.h. */
5337 # include <limits.h>
5339 # include <assert.h>
5343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5346 grep -v '^ *+' conftest.er1 >conftest.err
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } >/dev/null; then
5351 if test -s conftest.err; then
5352 ac_cpp_err=$ac_cxx_preproc_warn_flag
5353 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5360 if test -z "$ac_cpp_err"; then
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 # Broken: fails on valid input.
5369 rm -f conftest.err conftest.$ac_ext
5371 # OK, works on sane cases. Now check whether non-existent headers
5372 # can be detected and how.
5373 cat >conftest.$ac_ext <<_ACEOF
5376 cat confdefs.h >>conftest.$ac_ext
5377 cat >>conftest.$ac_ext <<_ACEOF
5378 /* end confdefs.h. */
5379 #include <ac_nonexistent.h>
5381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5384 grep -v '^ *+' conftest.er1 >conftest.err
5386 cat conftest.err >&5
5387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388 (exit $ac_status); } >/dev/null; then
5389 if test -s conftest.err; then
5390 ac_cpp_err=$ac_cxx_preproc_warn_flag
5391 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5398 if test -z "$ac_cpp_err"; then
5399 # Broken: success on invalid input.
5402 echo "$as_me: failed program was:" >&5
5403 sed 's/^/| /' conftest.$ac_ext >&5
5405 # Passes both tests.
5409 rm -f conftest.err conftest.$ac_ext
5412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5413 rm -f conftest.err conftest.$ac_ext
5414 if $ac_preproc_ok; then
5419 ac_cv_prog_CXXCPP=$CXXCPP
5422 CXXCPP=$ac_cv_prog_CXXCPP
5424 ac_cv_prog_CXXCPP=$CXXCPP
5426 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5427 echo "${ECHO_T}$CXXCPP" >&6
5429 for ac_cxx_preproc_warn_flag in '' yes
5431 # Use a header file that comes with gcc, so configuring glibc
5432 # with a fresh cross-compiler works.
5433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5434 # <limits.h> exists even on freestanding compilers.
5435 # On the NeXT, cc -E runs the code through the compiler's parser,
5436 # not just through cpp. "Syntax error" is here to catch this case.
5437 cat >conftest.$ac_ext <<_ACEOF
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5444 # include <limits.h>
5446 # include <assert.h>
5450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } >/dev/null; then
5458 if test -s conftest.err; then
5459 ac_cpp_err=$ac_cxx_preproc_warn_flag
5460 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5467 if test -z "$ac_cpp_err"; then
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 # Broken: fails on valid input.
5476 rm -f conftest.err conftest.$ac_ext
5478 # OK, works on sane cases. Now check whether non-existent headers
5479 # can be detected and how.
5480 cat >conftest.$ac_ext <<_ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5486 #include <ac_nonexistent.h>
5488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null; then
5496 if test -s conftest.err; then
5497 ac_cpp_err=$ac_cxx_preproc_warn_flag
5498 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5505 if test -z "$ac_cpp_err"; then
5506 # Broken: success on invalid input.
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 # Passes both tests.
5516 rm -f conftest.err conftest.$ac_ext
5519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520 rm -f conftest.err conftest.$ac_ext
5521 if $ac_preproc_ok; then
5524 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5525 See \`config.log' for more details." >&5
5526 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5527 See \`config.log' for more details." >&2;}
5528 { (exit 1); exit 1; }; }
5532 ac_cpp='$CPP $CPPFLAGS'
5533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5539 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
5541 lt_save_CFLAGS="$CFLAGS"
5542 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
5543 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5544 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5545 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5546 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5547 deplibs_check_method="$deplibs_check_method" \
5548 file_magic_cmd="$file_magic_cmd" \
5549 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5550 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
5551 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5552 echo "$as_me: error: libtool tag configuration failed" >&2;}
5553 { (exit 1); exit 1; }; }
5555 CFLAGS="$lt_save_CFLAGS"
5557 # Redirect the config.log output again, so that the ltconfig log is not
5558 # clobbered by the next message.
5559 exec 5>>./config.log
5569 # Extract the first word of "$ac_prog", so it can be a program name with args.
5570 set dummy $ac_prog; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_prog_GCJ+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 if test -n "$GCJ"; then
5577 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_GCJ="$ac_prog"
5587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 if test -n "$GCJ"; then
5597 echo "$as_me:$LINENO: result: $GCJ" >&5
5598 echo "${ECHO_T}$GCJ" >&6
5600 echo "$as_me:$LINENO: result: no" >&5
5601 echo "${ECHO_T}no" >&6
5604 test -n "$GCJ" && break
5606 test -n "$GCJ" || GCJ="gcj"
5608 test -z "$GCJ" && { { echo "$as_me:$LINENO: error: no acceptable gcj found in \$PATH" >&5
5609 echo "$as_me: error: no acceptable gcj found in \$PATH" >&2;}
5610 { (exit 1); exit 1; }; }
5611 if test "x${GCJFLAGS-unset}" = xunset; then
5616 depcc="$GCJ" am_compiler_list='gcc3 gcc'
5618 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5619 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5620 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5623 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5624 # We make a subdir and do the tests there. Otherwise we can end up
5625 # making bogus files that we don't know about and never remove. For
5626 # instance it was reported that on HP-UX the gcc test will end up
5627 # making a dummy file named `D' -- because `-MD' means `put the output
5630 # Copy depcomp to subdir because otherwise we won't find it if we're
5631 # using a relative directory.
5632 cp "$am_depcomp" conftest.dir
5634 # We will build objects and dependencies in a subdirectory because
5635 # it helps to detect inapplicable dependency modes. For instance
5636 # both Tru64's cc and ICC support -MD to output dependencies as a
5637 # side effect of compilation, but ICC will put the dependencies in
5638 # the current directory while Tru64 will put them in the object
5642 am_cv_GCJ_dependencies_compiler_type=none
5643 if test "$am_compiler_list" = ""; then
5644 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5646 for depmode in $am_compiler_list; do
5647 # Setup a source with many dependencies, because some compilers
5648 # like to wrap large dependency lists on column 80 (with \), and
5649 # we should not choose a depcomp mode which is confused by this.
5651 # We need to recreate these files for each test, as the compiler may
5652 # overwrite some of them when testing with obscure command lines.
5653 # This happens at least with the AIX C compiler.
5655 for i in 1 2 3 4 5 6; do
5656 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5657 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5658 # Solaris 8's {/usr,}/bin/sh.
5659 touch sub/conftst$i.h
5661 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5665 # after this tag, mechanisms are not by side-effect, so they'll
5666 # only be used when explicitly requested
5667 if test "x$enable_dependency_tracking" = xyes; then
5675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5676 # mode. It turns out that the SunPro C++ compiler does not properly
5677 # handle `-M -o', and we need to detect this.
5678 if depmode=$depmode \
5679 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5680 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5681 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5682 >/dev/null 2>conftest.err &&
5683 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5684 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5685 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5686 # icc doesn't choke on unknown options, it will just issue warnings
5687 # or remarks (even with -Werror). So we grep stderr for any message
5688 # that says an option was ignored or not supported.
5689 # When given -MP, icc 7.0 and 7.1 complain thusly:
5690 # icc: Command line warning: ignoring option '-M'; no argument required
5691 # The diagnosis changed in icc 8.0:
5692 # icc: Command line remark: option '-MP' not supported
5693 if (grep 'ignoring option' conftest.err ||
5694 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5695 am_cv_GCJ_dependencies_compiler_type=$depmode
5704 am_cv_GCJ_dependencies_compiler_type=none
5708 echo "$as_me:$LINENO: result: $am_cv_GCJ_dependencies_compiler_type" >&5
5709 echo "${ECHO_T}$am_cv_GCJ_dependencies_compiler_type" >&6
5710 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
5715 test "x$enable_dependency_tracking" != xno \
5716 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
5717 am__fastdepGCJ_TRUE=
5718 am__fastdepGCJ_FALSE='#'
5720 am__fastdepGCJ_TRUE='#'
5721 am__fastdepGCJ_FALSE=
5727 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
5729 lt_save_CFLAGS="$CFLAGS"
5730 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
5731 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
5732 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
5733 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
5734 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
5735 deplibs_check_method="$deplibs_check_method" \
5736 file_magic_cmd="$file_magic_cmd" \
5737 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
5738 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
5739 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
5740 echo "$as_me: error: libtool tag configuration failed" >&2;}
5741 { (exit 1); exit 1; }; }
5743 CFLAGS="$lt_save_CFLAGS"
5745 # Redirect the config.log output again, so that the ltconfig log is not
5746 # clobbered by the next message.
5747 exec 5>>./config.log
5751 if test "x$CC" != xcc; then
5752 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5753 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
5755 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5756 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
5758 set dummy $CC; ac_cc=`echo $2 |
5759 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5760 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5778 # Make sure it works both with $CC and with simple cc.
5779 # We do the test twice because some compilers refuse to overwrite an
5780 # existing .o file with -o, though they will create one.
5781 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5782 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } &&
5787 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); };
5793 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5794 if test "x$CC" != xcc; then
5795 # Test first that cc exists at all.
5796 if { ac_try='cc -c conftest.$ac_ext >&5'
5797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); }; }; then
5802 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
5803 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } &&
5808 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); };
5817 # cc exists but doesn't like -o.
5818 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5823 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5828 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
5829 echo "$as_me:$LINENO: result: yes" >&5
5830 echo "${ECHO_T}yes" >&6
5832 echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6
5835 cat >>confdefs.h <<\_ACEOF
5836 #define NO_MINUS_C_MINUS_O 1
5841 # FIXME: we rely on the cache variable name because
5842 # there is no other way.
5844 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5845 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
5846 # Losing compiler, so override with the script.
5847 # FIXME: It is wrong to rewrite CC.
5848 # But if we don't then we get into trouble of one sort or another.
5849 # A longer-term fix would be to have automake use am__CC in this case,
5850 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5851 CC="$am_aux_dir/compile $CC"
5857 subdirs="$subdirs classpath libltdl"
5860 # The -no-testsuite modules omit the test subdir.
5863 if test -d $srcdir/testsuite; then
5865 TESTSUBDIR_FALSE='#'
5872 # Should the runtime set system properties by examining the
5873 # environment variable GCJ_PROPERTIES?
5874 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
5875 if test "${enable_getenv_properties+set}" = set; then
5876 enableval="$enable_getenv_properties"
5880 # Whether GCJ_PROPERTIES is used depends on the target.
5881 if test -z "$enable_getenv_properties"; then
5882 enable_getenv_properties=${enable_getenv_properties_default-yes}
5884 if test "$enable_getenv_properties" = no; then
5886 cat >>confdefs.h <<\_ACEOF
5887 #define DISABLE_GETENV_PROPERTIES 1
5892 # Whether we should use arguments to main()
5893 if test -z "$enable_main_args"; then
5894 enable_main_args=${enable_main_args_default-yes}
5896 if test "$enable_main_args" = no; then
5898 cat >>confdefs.h <<\_ACEOF
5899 #define DISABLE_MAIN_ARGS 1
5905 # Should we use hashtable-based synchronization?
5906 # Currently works only for Linux X86/ia64
5907 # Typically faster and more space-efficient
5908 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
5909 if test "${enable_hash_synchronization+set}" = set; then
5910 enableval="$enable_hash_synchronization"
5914 if test -z "$enable_hash_synchronization"; then
5915 enable_hash_synchronization=$enable_hash_synchronization_default
5919 # Check whether --with-java-home or --without-java-home was given.
5920 if test "${with_java_home+set}" = set; then
5921 withval="$with_java_home"
5922 JAVA_HOME="${withval}"
5928 if test ! -z "$JAVA_HOME"; then
5930 JAVA_HOME_SET_FALSE='#'
5932 JAVA_HOME_SET_TRUE='#'
5933 JAVA_HOME_SET_FALSE=
5938 # What is the native OS API for MinGW?
5940 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
5941 if test "${with_win32_nlsapi+set}" = set; then
5942 withval="$with_win32_nlsapi"
5943 case "${withval}" in
5944 ansi) with_win32_nlsapi=ansi ;;
5945 unicows) with_win32_nlsapi=unicows ;;
5946 unicode) with_win32_nlsapi=unicode ;;
5947 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
5948 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
5949 { (exit 1); exit 1; }; } ;;
5952 with_win32_nlsapi=ansi
5955 case "${with_win32_nlsapi}" in
5958 cat >>confdefs.h <<\_ACEOF
5959 #define MINGW_LIBGCJ_UNICODE 1
5965 # configure.host sets slow_pthread_self if the synchronization code should
5966 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5967 if test "${slow_pthread_self}" = "yes"; then
5969 cat >>confdefs.h <<\_ACEOF
5970 #define SLOW_PTHREAD_SELF 1
5975 # Check for gc debugging. This option is handled both here and in the GC.
5976 # Check whether --enable-gc-debug or --disable-gc-debug was given.
5977 if test "${enable_gc_debug+set}" = set; then
5978 enableval="$enable_gc_debug"
5979 if test "$enable_gc_debug" = "yes"; then
5981 cat >>confdefs.h <<\_ACEOF
5982 #define LIBGCJ_GC_DEBUG 1
5988 # See if the user has the interpreter included.
5989 # Check whether --enable-interpreter or --disable-interpreter was given.
5990 if test "${enable_interpreter+set}" = set; then
5991 enableval="$enable_interpreter"
5992 if test "$enable_interpreter" = yes; then
5993 # This can also be set in configure.host.
5994 libgcj_interpreter=yes
5995 elif test "$enable_interpreter" = no; then
5996 libgcj_interpreter=no
6000 if test "$libgcj_interpreter" = yes; then
6002 cat >>confdefs.h <<\_ACEOF
6003 #define INTERPRETER 1
6007 INTERPRETER="$libgcj_interpreter"
6010 echo "$as_me:$LINENO: checking for exception model to use" >&5
6011 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
6013 ac_cpp='$CXXCPP $CPPFLAGS'
6014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6018 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
6019 if test "${enable_sjlj_exceptions+set}" = set; then
6020 enableval="$enable_sjlj_exceptions"
6023 cat > conftest.$ac_ext << EOF
6024 #line 6024 "configure"
6033 old_CXXFLAGS="$CXXFLAGS"
6035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6036 (eval $ac_compile) 2>&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; then
6040 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
6041 enable_sjlj_exceptions=yes
6042 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
6043 enable_sjlj_exceptions=no
6046 CXXFLAGS="$old_CXXFLAGS"
6049 if test x$enable_sjlj_exceptions = xyes; then
6051 cat >>confdefs.h <<\_ACEOF
6052 #define SJLJ_EXCEPTIONS 1
6055 ac_exception_model_name=sjlj
6056 elif test x$enable_sjlj_exceptions = xno; then
6057 ac_exception_model_name="call frame"
6059 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
6060 echo "$as_me: error: unable to detect exception model" >&2;}
6061 { (exit 1); exit 1; }; }
6064 ac_cpp='$CPP $CPPFLAGS'
6065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6069 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
6070 echo "${ECHO_T}$ac_exception_model_name" >&6
6072 # If we are non using SJLJ exceptions, and this host does not have support
6073 # for unwinding from a signal handler, enable checked dereferences and divides.
6074 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
6075 CHECKREFSPEC=-fcheck-references
6076 DIVIDESPEC=-fuse-divide-subroutine
6080 # See if the user wants to disable java.net. This is the mildly
6081 # ugly way that we admit that target-side configuration sucks.
6082 # Check whether --enable-java-net or --disable-java-net was given.
6083 if test "${enable_java_net+set}" = set; then
6084 enableval="$enable_java_net"
6088 # Whether java.net is built by default can depend on the target.
6089 if test -z "$enable_java_net"; then
6090 enable_java_net=${enable_java_net_default-yes}
6092 if test "$enable_java_net" = no; then
6094 cat >>confdefs.h <<\_ACEOF
6095 #define DISABLE_JAVA_NET 1
6100 # See if the user wants to configure without libffi. Some
6101 # architectures don't support it, and default values are set in
6104 # Check whether --with-libffi or --without-libffi was given.
6105 if test "${with_libffi+set}" = set; then
6106 withval="$with_libffi"
6109 with_libffi=${with_libffi_default-yes}
6114 if test "$with_libffi" != no; then
6116 cat >>confdefs.h <<\_ACEOF
6117 #define USE_LIBFFI 1
6120 LIBFFI=../libffi/libffi_convenience.la
6121 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
6126 # See if the user wants to disable JVMPI support.
6127 # Check whether --enable-jvmpi or --disable-jvmpi was given.
6128 if test "${enable_jvmpi+set}" = set; then
6129 enableval="$enable_jvmpi"
6133 if test "$enable_jvmpi" != no; then
6135 cat >>confdefs.h <<\_ACEOF
6136 #define ENABLE_JVMPI 1
6141 # If the target is an eCos system, use the appropriate eCos
6143 # FIXME: this should not be a local option but a global target
6144 # system; at present there is no eCos target.
6145 TARGET_ECOS=${PROCESS-"no"}
6147 # Check whether --with-ecos or --without-ecos was given.
6148 if test "${with_ecos+set}" = set; then
6149 withval="$with_ecos"
6150 TARGET_ECOS="$with_ecos"
6156 PLATFORM_INNER_NAT_HDRS=
6157 case "$TARGET_ECOS" in
6164 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
6165 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
6166 LD_PROG=`$CC --print-prog-name=ld`
6167 LD_VERSION=`$LD_PROG --version`
6168 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
6169 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
6170 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
6173 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
6177 if test "x$LD_OK" != x; then
6178 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6179 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6181 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
6182 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
6183 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
6184 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
6186 cat >>confdefs.h <<\_ACEOF
6187 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
6196 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
6204 cat >>confdefs.h <<\_ACEOF
6212 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
6216 ac_cpp='$CPP $CPPFLAGS'
6217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6220 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6221 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6222 # On Suns, sometimes $CPP names a directory.
6223 if test -n "$CPP" && test -d "$CPP"; then
6226 if test -z "$CPP"; then
6227 if test "${ac_cv_prog_CPP+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 # Double quotes because CPP needs to be expanded
6231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6234 for ac_c_preproc_warn_flag in '' yes
6236 # Use a header file that comes with gcc, so configuring glibc
6237 # with a fresh cross-compiler works.
6238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6239 # <limits.h> exists even on freestanding compilers.
6240 # On the NeXT, cc -E runs the code through the compiler's parser,
6241 # not just through cpp. "Syntax error" is here to catch this case.
6242 cat >conftest.$ac_ext <<_ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6249 # include <limits.h>
6251 # include <assert.h>
6255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6258 grep -v '^ *+' conftest.er1 >conftest.err
6260 cat conftest.err >&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } >/dev/null; then
6263 if test -s conftest.err; then
6264 ac_cpp_err=$ac_c_preproc_warn_flag
6265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6272 if test -z "$ac_cpp_err"; then
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 # Broken: fails on valid input.
6281 rm -f conftest.err conftest.$ac_ext
6283 # OK, works on sane cases. Now check whether non-existent headers
6284 # can be detected and how.
6285 cat >conftest.$ac_ext <<_ACEOF
6288 cat confdefs.h >>conftest.$ac_ext
6289 cat >>conftest.$ac_ext <<_ACEOF
6290 /* end confdefs.h. */
6291 #include <ac_nonexistent.h>
6293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6296 grep -v '^ *+' conftest.er1 >conftest.err
6298 cat conftest.err >&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } >/dev/null; then
6301 if test -s conftest.err; then
6302 ac_cpp_err=$ac_c_preproc_warn_flag
6303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6310 if test -z "$ac_cpp_err"; then
6311 # Broken: success on invalid input.
6314 echo "$as_me: failed program was:" >&5
6315 sed 's/^/| /' conftest.$ac_ext >&5
6317 # Passes both tests.
6321 rm -f conftest.err conftest.$ac_ext
6324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6325 rm -f conftest.err conftest.$ac_ext
6326 if $ac_preproc_ok; then
6338 echo "$as_me:$LINENO: result: $CPP" >&5
6339 echo "${ECHO_T}$CPP" >&6
6341 for ac_c_preproc_warn_flag in '' yes
6343 # Use a header file that comes with gcc, so configuring glibc
6344 # with a fresh cross-compiler works.
6345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6346 # <limits.h> exists even on freestanding compilers.
6347 # On the NeXT, cc -E runs the code through the compiler's parser,
6348 # not just through cpp. "Syntax error" is here to catch this case.
6349 cat >conftest.$ac_ext <<_ACEOF
6352 cat confdefs.h >>conftest.$ac_ext
6353 cat >>conftest.$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6356 # include <limits.h>
6358 # include <assert.h>
6362 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6363 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6365 grep -v '^ *+' conftest.er1 >conftest.err
6367 cat conftest.err >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); } >/dev/null; then
6370 if test -s conftest.err; then
6371 ac_cpp_err=$ac_c_preproc_warn_flag
6372 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6379 if test -z "$ac_cpp_err"; then
6382 echo "$as_me: failed program was:" >&5
6383 sed 's/^/| /' conftest.$ac_ext >&5
6385 # Broken: fails on valid input.
6388 rm -f conftest.err conftest.$ac_ext
6390 # OK, works on sane cases. Now check whether non-existent headers
6391 # can be detected and how.
6392 cat >conftest.$ac_ext <<_ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 #include <ac_nonexistent.h>
6400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6403 grep -v '^ *+' conftest.er1 >conftest.err
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } >/dev/null; then
6408 if test -s conftest.err; then
6409 ac_cpp_err=$ac_c_preproc_warn_flag
6410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6417 if test -z "$ac_cpp_err"; then
6418 # Broken: success on invalid input.
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.$ac_ext >&5
6424 # Passes both tests.
6428 rm -f conftest.err conftest.$ac_ext
6431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6432 rm -f conftest.err conftest.$ac_ext
6433 if $ac_preproc_ok; then
6436 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6437 See \`config.log' for more details." >&5
6438 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6439 See \`config.log' for more details." >&2;}
6440 { (exit 1); exit 1; }; }
6444 ac_cpp='$CPP $CPPFLAGS'
6445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6450 echo "$as_me:$LINENO: checking for egrep" >&5
6451 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
6452 if test "${ac_cv_prog_egrep+set}" = set; then
6453 echo $ECHO_N "(cached) $ECHO_C" >&6
6455 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
6456 then ac_cv_prog_egrep='grep -E'
6457 else ac_cv_prog_egrep='egrep'
6460 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
6461 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
6462 EGREP=$ac_cv_prog_egrep
6465 cat >conftest.$ac_ext <<_ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6475 $EGREP "uint32_t" >/dev/null 2>&1; then
6477 cat >>confdefs.h <<\_ACEOF
6478 #define HAVE_INT32_DEFINED 1
6484 cat >conftest.$ac_ext <<_ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 #include <inttypes.h>
6493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6494 $EGREP "uint32_t" >/dev/null 2>&1; then
6496 cat >>confdefs.h <<\_ACEOF
6497 #define HAVE_INT32_DEFINED 1
6503 cat >conftest.$ac_ext <<_ACEOF
6506 cat confdefs.h >>conftest.$ac_ext
6507 cat >>conftest.$ac_ext <<_ACEOF
6508 /* end confdefs.h. */
6509 #include <sys/types.h>
6512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6513 $EGREP "u_int32_t" >/dev/null 2>&1; then
6515 cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_BSD_INT32_DEFINED 1
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <sys/config.h>
6531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6532 $EGREP "u_int32_t" >/dev/null 2>&1; then
6534 cat >>confdefs.h <<\_ACEOF
6535 #define HAVE_BSD_INT32_DEFINED 1
6544 if test "$PLATFORM" = Win32; then
6545 USING_WIN32_PLATFORM_TRUE=
6546 USING_WIN32_PLATFORM_FALSE='#'
6548 USING_WIN32_PLATFORM_TRUE='#'
6549 USING_WIN32_PLATFORM_FALSE=
6554 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
6555 USING_POSIX_PLATFORM_TRUE=
6556 USING_POSIX_PLATFORM_FALSE='#'
6558 USING_POSIX_PLATFORM_TRUE='#'
6559 USING_POSIX_PLATFORM_FALSE=
6564 *-darwin*) DARWIN_CRT=true ;;
6565 *) DARWIN_CRT=false ;;
6569 if $DARWIN_CRT; then
6570 USING_DARWIN_CRT_TRUE=
6571 USING_DARWIN_CRT_FALSE='#'
6573 USING_DARWIN_CRT_TRUE='#'
6574 USING_DARWIN_CRT_FALSE=
6578 # These may not be defined in a non-ANS conformant embedded system.
6579 # FIXME: Should these case a runtime exception in that case?
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "mktime" >/dev/null 2>&1; then
6592 cat >>confdefs.h <<\_ACEOF
6593 #define HAVE_MKTIME 1
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6609 $EGREP "localtime" >/dev/null 2>&1; then
6611 cat >>confdefs.h <<\_ACEOF
6612 #define HAVE_LOCALTIME 1
6619 # Create the subdirectory for natFile.cc, or the attempt
6620 # to create the link will fail.
6621 test -d java || mkdir java
6622 test -d java/io || mkdir java/io
6623 test -d gnu || mkdir gnu
6624 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
6627 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
6628 test -d java/lang || mkdir java/lang
6629 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
6631 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
6634 # Likewise for natInetAddress.cc and natVMNetworkInterface.cc.
6635 test -d java/net || mkdir java/net
6636 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
6638 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
6641 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
6642 test -d gnu/java || mkdir gnu/java
6643 test -d gnu/java/net || mkdir gnu/java/net
6644 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
6646 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
6649 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
6650 test -d gnu/java/nio || mkdir gnu/java/nio
6651 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
6653 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
6655 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
6656 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
6661 SYSTEMSPEC="-lgdi32 -lws2_32"
6662 if test "${with_win32_nlsapi}" = "unicows"; then
6663 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
6672 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
6676 # Check whether --with-system-zlib or --without-system-zlib was given.
6677 if test "${with_system_zlib+set}" = set; then
6678 withval="$with_system_zlib"
6686 echo "$as_me:$LINENO: checking for X" >&5
6687 echo $ECHO_N "checking for X... $ECHO_C" >&6
6690 # Check whether --with-x or --without-x was given.
6691 if test "${with_x+set}" = set; then
6695 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6696 if test "x$with_x" = xno; then
6697 # The user explicitly disabled X.
6700 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
6701 # Both variables are already set.
6704 if test "${ac_cv_have_x+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 # One or both of the vars are not set, and there is no cached value.
6708 ac_x_includes=no ac_x_libraries=no
6710 if mkdir conftest.dir; then
6712 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6713 cat >Imakefile <<'_ACEOF'
6715 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6717 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
6718 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6719 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6720 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6721 for ac_extension in a so sl; do
6722 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
6723 test -f $ac_im_libdir/libX11.$ac_extension; then
6724 ac_im_usrlibdir=$ac_im_libdir; break
6727 # Screen out bogus values from the imake configuration. They are
6728 # bogus both because they are the default anyway, and because
6729 # using them would break gcc on systems where it needs fixed includes.
6730 case $ac_im_incroot in
6732 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6734 case $ac_im_usrlibdir in
6736 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6743 # Standard set of common directories for X headers.
6744 # Check X11 before X11Rn because it is often a symlink to the current release.
6756 /usr/local/X11/include
6757 /usr/local/X11R6/include
6758 /usr/local/X11R5/include
6759 /usr/local/X11R4/include
6761 /usr/local/include/X11
6762 /usr/local/include/X11R6
6763 /usr/local/include/X11R5
6764 /usr/local/include/X11R4
6768 /usr/XFree86/include/X11
6772 /usr/unsupported/include
6774 /usr/local/x11r5/include
6775 /usr/lpp/Xamples/include
6777 /usr/openwin/include
6778 /usr/openwin/share/include'
6780 if test "$ac_x_includes" = no; then
6781 # Guess where to find include files, by looking for Intrinsic.h.
6782 # First, try using that file with no special directory specified.
6783 cat >conftest.$ac_ext <<_ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <X11/Intrinsic.h>
6791 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6794 grep -v '^ *+' conftest.er1 >conftest.err
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } >/dev/null; then
6799 if test -s conftest.err; then
6800 ac_cpp_err=$ac_c_preproc_warn_flag
6801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6808 if test -z "$ac_cpp_err"; then
6809 # We can compile using X headers with no special include directory.
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6815 for ac_dir in $ac_x_header_dirs; do
6816 if test -r "$ac_dir/X11/Intrinsic.h"; then
6817 ac_x_includes=$ac_dir
6822 rm -f conftest.err conftest.$ac_ext
6823 fi # $ac_x_includes = no
6825 if test "$ac_x_libraries" = no; then
6826 # Check for the libraries.
6827 # See if we find them without any special options.
6828 # Don't add to $LIBS permanently.
6831 if test x$gcc_no_link = xyes; then
6832 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6833 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6834 { (exit 1); exit 1; }; }
6836 cat >conftest.$ac_ext <<_ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h. */
6842 #include <X11/Intrinsic.h>
6851 rm -f conftest.$ac_objext conftest$ac_exeext
6852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6853 (eval $ac_link) 2>conftest.er1
6855 grep -v '^ *+' conftest.er1 >conftest.err
6857 cat conftest.err >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); } &&
6860 { ac_try='test -z "$ac_c_werror_flag"
6861 || test ! -s conftest.err'
6862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }; } &&
6867 { ac_try='test -s conftest$ac_exeext'
6868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); }; }; then
6874 # We can link X programs with no special library path.
6877 echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6881 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6883 # Don't even attempt the hair of trying to link an X program!
6884 for ac_extension in a so sl; do
6885 if test -r $ac_dir/libXt.$ac_extension; then
6886 ac_x_libraries=$ac_dir
6892 rm -f conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6894 fi # $ac_x_libraries = no
6896 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6897 # Didn't find X anywhere. Cache the known absence of X.
6898 ac_cv_have_x="have_x=no"
6900 # Record where we found X for the cache.
6901 ac_cv_have_x="have_x=yes \
6902 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6907 eval "$ac_cv_have_x"
6910 if test "$have_x" != yes; then
6911 echo "$as_me:$LINENO: result: $have_x" >&5
6912 echo "${ECHO_T}$have_x" >&6
6915 # If each of the values was on the command line, it overrides each guess.
6916 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6917 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6918 # Update the cache value to reflect the command line values.
6919 ac_cv_have_x="have_x=yes \
6920 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6921 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6922 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6925 if test "$no_x" = yes; then
6926 # Not all programs may use this symbol, but it does not hurt to define it.
6928 cat >>confdefs.h <<\_ACEOF
6929 #define X_DISPLAY_MISSING 1
6932 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6934 if test -n "$x_includes"; then
6935 X_CFLAGS="$X_CFLAGS -I$x_includes"
6938 # It would also be nice to do this for all -L options, not just this one.
6939 if test -n "$x_libraries"; then
6940 X_LIBS="$X_LIBS -L$x_libraries"
6941 # For Solaris; some versions of Sun CC require a space after -R and
6942 # others require no space. Words are not sufficient . . . .
6943 case `(uname -sr) 2>/dev/null` in
6945 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6946 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6947 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6948 if test x$gcc_no_link = xyes; then
6949 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6950 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6951 { (exit 1); exit 1; }; }
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6970 (eval $ac_link) 2>conftest.er1
6972 grep -v '^ *+' conftest.er1 >conftest.err
6974 cat conftest.err >&5
6975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6976 (exit $ac_status); } &&
6977 { ac_try='test -z "$ac_c_werror_flag"
6978 || test ! -s conftest.err'
6979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); }; } &&
6984 { ac_try='test -s conftest$ac_exeext'
6985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); }; }; then
6992 echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6997 rm -f conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
6999 if test $ac_R_nospace = yes; then
7000 echo "$as_me:$LINENO: result: no" >&5
7001 echo "${ECHO_T}no" >&6
7002 X_LIBS="$X_LIBS -R$x_libraries"
7004 LIBS="$ac_xsave_LIBS -R $x_libraries"
7005 if test x$gcc_no_link = xyes; then
7006 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7007 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7008 { (exit 1); exit 1; }; }
7010 cat >conftest.$ac_ext <<_ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7025 rm -f conftest.$ac_objext conftest$ac_exeext
7026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7027 (eval $ac_link) 2>conftest.er1
7029 grep -v '^ *+' conftest.er1 >conftest.err
7031 cat conftest.err >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); } &&
7034 { ac_try='test -z "$ac_c_werror_flag"
7035 || test ! -s conftest.err'
7036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); }; } &&
7041 { ac_try='test -s conftest$ac_exeext'
7042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); }; }; then
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7054 rm -f conftest.err conftest.$ac_objext \
7055 conftest$ac_exeext conftest.$ac_ext
7056 if test $ac_R_space = yes; then
7057 echo "$as_me:$LINENO: result: yes" >&5
7058 echo "${ECHO_T}yes" >&6
7059 X_LIBS="$X_LIBS -R $x_libraries"
7061 echo "$as_me:$LINENO: result: neither works" >&5
7062 echo "${ECHO_T}neither works" >&6
7069 # Check for system-dependent libraries X programs must link with.
7070 # Do this before checking for the system-independent R6 libraries
7071 # (-lICE), since we may need -lsocket or whatever for X linking.
7073 if test "$ISC" = yes; then
7074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7076 # Martyn Johnson says this is needed for Ultrix, if the X
7077 # libraries were built with DECnet support. And Karl Berry says
7078 # the Alpha needs dnet_stub (dnet does not exist).
7079 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7080 if test x$gcc_no_link = xyes; then
7081 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7082 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7083 { (exit 1); exit 1; }; }
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7092 /* Override any gcc2 internal prototype to avoid an error. */
7096 /* We use char because int might match the return type of a gcc2
7097 builtin and then its argument prototype would still apply. */
7098 char XOpenDisplay ();
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 (eval $ac_link) 2>conftest.er1
7111 grep -v '^ *+' conftest.er1 >conftest.err
7113 cat conftest.err >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); } &&
7116 { ac_try='test -z "$ac_c_werror_flag"
7117 || test ! -s conftest.err'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; } &&
7123 { ac_try='test -s conftest$ac_exeext'
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; }; then
7131 echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7135 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7136 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 ac_check_lib_save_LIBS=$LIBS
7141 if test x$gcc_no_link = xyes; then
7142 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7143 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7144 { (exit 1); exit 1; }; }
7146 cat >conftest.$ac_ext <<_ACEOF
7149 cat confdefs.h >>conftest.$ac_ext
7150 cat >>conftest.$ac_ext <<_ACEOF
7151 /* end confdefs.h. */
7153 /* Override any gcc2 internal prototype to avoid an error. */
7157 /* We use char because int might match the return type of a gcc2
7158 builtin and then its argument prototype would still apply. */
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>conftest.er1
7172 grep -v '^ *+' conftest.er1 >conftest.err
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest$ac_exeext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 ac_cv_lib_dnet_dnet_ntoa=yes
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 ac_cv_lib_dnet_dnet_ntoa=no
7197 rm -f conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7199 LIBS=$ac_check_lib_save_LIBS
7201 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7202 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7203 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7204 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7207 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7208 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7209 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7210 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7211 echo $ECHO_N "(cached) $ECHO_C" >&6
7213 ac_check_lib_save_LIBS=$LIBS
7214 LIBS="-ldnet_stub $LIBS"
7215 if test x$gcc_no_link = xyes; then
7216 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7217 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7218 { (exit 1); exit 1; }; }
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7227 /* Override any gcc2 internal prototype to avoid an error. */
7231 /* We use char because int might match the return type of a gcc2
7232 builtin and then its argument prototype would still apply. */
7242 rm -f conftest.$ac_objext conftest$ac_exeext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7244 (eval $ac_link) 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag"
7252 || test ! -s conftest.err'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; } &&
7258 { ac_try='test -s conftest$ac_exeext'
7259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 ac_cv_lib_dnet_stub_dnet_ntoa=no
7271 rm -f conftest.err conftest.$ac_objext \
7272 conftest$ac_exeext conftest.$ac_ext
7273 LIBS=$ac_check_lib_save_LIBS
7275 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7276 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7277 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7278 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7283 rm -f conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7285 LIBS="$ac_xsave_LIBS"
7287 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7288 # to get the SysV transport functions.
7289 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7291 # The nsl library prevents programs from opening the X display
7292 # on Irix 5.2, according to T.E. Dickey.
7293 # The functions gethostbyname, getservbyname, and inet_addr are
7294 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7295 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7296 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7297 if test "${ac_cv_func_gethostbyname+set}" = set; then
7298 echo $ECHO_N "(cached) $ECHO_C" >&6
7300 if test x$gcc_no_link = xyes; then
7301 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7302 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7303 { (exit 1); exit 1; }; }
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7311 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
7312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7313 #define gethostbyname innocuous_gethostbyname
7315 /* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char gethostbyname (); below.
7317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318 <limits.h> exists even on freestanding compilers. */
7321 # include <limits.h>
7323 # include <assert.h>
7326 #undef gethostbyname
7328 /* Override any gcc2 internal prototype to avoid an error. */
7333 /* We use char because int might match the return type of a gcc2
7334 builtin and then its argument prototype would still apply. */
7335 char gethostbyname ();
7336 /* The GNU C library defines this for functions which it implements
7337 to always fail with ENOSYS. Some functions are actually named
7338 something starting with __ and the normal name is an alias. */
7339 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7342 char (*f) () = gethostbyname;
7351 return f != gethostbyname;
7356 rm -f conftest.$ac_objext conftest$ac_exeext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7358 (eval $ac_link) 2>conftest.er1
7360 grep -v '^ *+' conftest.er1 >conftest.err
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -z "$ac_c_werror_flag"
7366 || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest$ac_exeext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_cv_func_gethostbyname=yes
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7383 ac_cv_func_gethostbyname=no
7385 rm -f conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
7388 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7389 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7391 if test $ac_cv_func_gethostbyname = no; then
7392 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7393 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7394 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 ac_check_lib_save_LIBS=$LIBS
7399 if test x$gcc_no_link = xyes; then
7400 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7401 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7402 { (exit 1); exit 1; }; }
7404 cat >conftest.$ac_ext <<_ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7411 /* Override any gcc2 internal prototype to avoid an error. */
7415 /* We use char because int might match the return type of a gcc2
7416 builtin and then its argument prototype would still apply. */
7417 char gethostbyname ();
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428 (eval $ac_link) 2>conftest.er1
7430 grep -v '^ *+' conftest.er1 >conftest.err
7432 cat conftest.err >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); } &&
7435 { ac_try='test -z "$ac_c_werror_flag"
7436 || test ! -s conftest.err'
7437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 (exit $ac_status); }; } &&
7442 { ac_try='test -s conftest$ac_exeext'
7443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); }; }; then
7448 ac_cv_lib_nsl_gethostbyname=yes
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.$ac_ext >&5
7453 ac_cv_lib_nsl_gethostbyname=no
7455 rm -f conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
7457 LIBS=$ac_check_lib_save_LIBS
7459 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7460 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7461 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7462 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7465 if test $ac_cv_lib_nsl_gethostbyname = no; then
7466 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7467 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7468 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7471 ac_check_lib_save_LIBS=$LIBS
7473 if test x$gcc_no_link = xyes; then
7474 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7475 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7476 { (exit 1); exit 1; }; }
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7485 /* Override any gcc2 internal prototype to avoid an error. */
7489 /* We use char because int might match the return type of a gcc2
7490 builtin and then its argument prototype would still apply. */
7491 char gethostbyname ();
7500 rm -f conftest.$ac_objext conftest$ac_exeext
7501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7502 (eval $ac_link) 2>conftest.er1
7504 grep -v '^ *+' conftest.er1 >conftest.err
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } &&
7509 { ac_try='test -z "$ac_c_werror_flag"
7510 || test ! -s conftest.err'
7511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); }; } &&
7516 { ac_try='test -s conftest$ac_exeext'
7517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521 (exit $ac_status); }; }; then
7522 ac_cv_lib_bsd_gethostbyname=yes
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7527 ac_cv_lib_bsd_gethostbyname=no
7529 rm -f conftest.err conftest.$ac_objext \
7530 conftest$ac_exeext conftest.$ac_ext
7531 LIBS=$ac_check_lib_save_LIBS
7533 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7534 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7535 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7536 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7542 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7543 # socket/setsockopt and other routines are undefined under SCO ODT
7544 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7545 # on later versions), says Simon Leinen: it contains gethostby*
7546 # variants that don't use the name server (or something). -lsocket
7547 # must be given before -lnsl if both are needed. We assume that
7548 # if connect needs -lnsl, so does gethostbyname.
7549 echo "$as_me:$LINENO: checking for connect" >&5
7550 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7551 if test "${ac_cv_func_connect+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 if test x$gcc_no_link = xyes; then
7555 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7556 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7557 { (exit 1); exit 1; }; }
7559 cat >conftest.$ac_ext <<_ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
7566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7567 #define connect innocuous_connect
7569 /* System header to define __stub macros and hopefully few prototypes,
7570 which can conflict with char connect (); below.
7571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7572 <limits.h> exists even on freestanding compilers. */
7575 # include <limits.h>
7577 # include <assert.h>
7582 /* Override any gcc2 internal prototype to avoid an error. */
7587 /* We use char because int might match the return type of a gcc2
7588 builtin and then its argument prototype would still apply. */
7590 /* The GNU C library defines this for functions which it implements
7591 to always fail with ENOSYS. Some functions are actually named
7592 something starting with __ and the normal name is an alias. */
7593 #if defined (__stub_connect) || defined (__stub___connect)
7596 char (*f) () = connect;
7605 return f != connect;
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7612 (eval $ac_link) 2>conftest.er1
7614 grep -v '^ *+' conftest.er1 >conftest.err
7616 cat conftest.err >&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -z "$ac_c_werror_flag"
7620 || test ! -s conftest.err'
7621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); }; } &&
7626 { ac_try='test -s conftest$ac_exeext'
7627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); }; }; then
7632 ac_cv_func_connect=yes
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_cv_func_connect=no
7639 rm -f conftest.err conftest.$ac_objext \
7640 conftest$ac_exeext conftest.$ac_ext
7642 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
7643 echo "${ECHO_T}$ac_cv_func_connect" >&6
7645 if test $ac_cv_func_connect = no; then
7646 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
7647 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
7648 if test "${ac_cv_lib_socket_connect+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 ac_check_lib_save_LIBS=$LIBS
7652 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
7653 if test x$gcc_no_link = xyes; then
7654 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7655 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7656 { (exit 1); exit 1; }; }
7658 cat >conftest.$ac_ext <<_ACEOF
7661 cat confdefs.h >>conftest.$ac_ext
7662 cat >>conftest.$ac_ext <<_ACEOF
7663 /* end confdefs.h. */
7665 /* Override any gcc2 internal prototype to avoid an error. */
7669 /* We use char because int might match the return type of a gcc2
7670 builtin and then its argument prototype would still apply. */
7680 rm -f conftest.$ac_objext conftest$ac_exeext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7682 (eval $ac_link) 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } &&
7689 { ac_try='test -z "$ac_c_werror_flag"
7690 || test ! -s conftest.err'
7691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; } &&
7696 { ac_try='test -s conftest$ac_exeext'
7697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); }; }; then
7702 ac_cv_lib_socket_connect=yes
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7707 ac_cv_lib_socket_connect=no
7709 rm -f conftest.err conftest.$ac_objext \
7710 conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7713 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
7714 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
7715 if test $ac_cv_lib_socket_connect = yes; then
7716 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7721 # Guillermo Gomez says -lposix is necessary on A/UX.
7722 echo "$as_me:$LINENO: checking for remove" >&5
7723 echo $ECHO_N "checking for remove... $ECHO_C" >&6
7724 if test "${ac_cv_func_remove+set}" = set; then
7725 echo $ECHO_N "(cached) $ECHO_C" >&6
7727 if test x$gcc_no_link = xyes; then
7728 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7729 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7730 { (exit 1); exit 1; }; }
7732 cat >conftest.$ac_ext <<_ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h. */
7738 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
7739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7740 #define remove innocuous_remove
7742 /* System header to define __stub macros and hopefully few prototypes,
7743 which can conflict with char remove (); below.
7744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7745 <limits.h> exists even on freestanding compilers. */
7748 # include <limits.h>
7750 # include <assert.h>
7755 /* Override any gcc2 internal prototype to avoid an error. */
7760 /* We use char because int might match the return type of a gcc2
7761 builtin and then its argument prototype would still apply. */
7763 /* The GNU C library defines this for functions which it implements
7764 to always fail with ENOSYS. Some functions are actually named
7765 something starting with __ and the normal name is an alias. */
7766 #if defined (__stub_remove) || defined (__stub___remove)
7769 char (*f) () = remove;
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7785 (eval $ac_link) 2>conftest.er1
7787 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest$ac_exeext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_cv_func_remove=yes
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 ac_cv_func_remove=no
7812 rm -f conftest.err conftest.$ac_objext \
7813 conftest$ac_exeext conftest.$ac_ext
7815 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
7816 echo "${ECHO_T}$ac_cv_func_remove" >&6
7818 if test $ac_cv_func_remove = no; then
7819 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
7820 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
7821 if test "${ac_cv_lib_posix_remove+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 ac_check_lib_save_LIBS=$LIBS
7825 LIBS="-lposix $LIBS"
7826 if test x$gcc_no_link = xyes; then
7827 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7828 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7829 { (exit 1); exit 1; }; }
7831 cat >conftest.$ac_ext <<_ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7838 /* Override any gcc2 internal prototype to avoid an error. */
7842 /* We use char because int might match the return type of a gcc2
7843 builtin and then its argument prototype would still apply. */
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855 (eval $ac_link) 2>conftest.er1
7857 grep -v '^ *+' conftest.er1 >conftest.err
7859 cat conftest.err >&5
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } &&
7862 { ac_try='test -z "$ac_c_werror_flag"
7863 || test ! -s conftest.err'
7864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; } &&
7869 { ac_try='test -s conftest$ac_exeext'
7870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874 (exit $ac_status); }; }; then
7875 ac_cv_lib_posix_remove=yes
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7880 ac_cv_lib_posix_remove=no
7882 rm -f conftest.err conftest.$ac_objext \
7883 conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7886 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7887 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7888 if test $ac_cv_lib_posix_remove = yes; then
7889 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7894 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7895 echo "$as_me:$LINENO: checking for shmat" >&5
7896 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7897 if test "${ac_cv_func_shmat+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7900 if test x$gcc_no_link = xyes; then
7901 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7902 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7903 { (exit 1); exit 1; }; }
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7913 #define shmat innocuous_shmat
7915 /* System header to define __stub macros and hopefully few prototypes,
7916 which can conflict with char shmat (); below.
7917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7918 <limits.h> exists even on freestanding compilers. */
7921 # include <limits.h>
7923 # include <assert.h>
7928 /* Override any gcc2 internal prototype to avoid an error. */
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7936 /* The GNU C library defines this for functions which it implements
7937 to always fail with ENOSYS. Some functions are actually named
7938 something starting with __ and the normal name is an alias. */
7939 #if defined (__stub_shmat) || defined (__stub___shmat)
7942 char (*f) () = shmat;
7956 rm -f conftest.$ac_objext conftest$ac_exeext
7957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7958 (eval $ac_link) 2>conftest.er1
7960 grep -v '^ *+' conftest.er1 >conftest.err
7962 cat conftest.err >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -z "$ac_c_werror_flag"
7966 || test ! -s conftest.err'
7967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); }; } &&
7972 { ac_try='test -s conftest$ac_exeext'
7973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977 (exit $ac_status); }; }; then
7978 ac_cv_func_shmat=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7985 rm -f conftest.err conftest.$ac_objext \
7986 conftest$ac_exeext conftest.$ac_ext
7988 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7989 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7991 if test $ac_cv_func_shmat = no; then
7992 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7993 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7994 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 ac_check_lib_save_LIBS=$LIBS
7999 if test x$gcc_no_link = xyes; then
8000 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8001 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8002 { (exit 1); exit 1; }; }
8004 cat >conftest.$ac_ext <<_ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8011 /* Override any gcc2 internal prototype to avoid an error. */
8015 /* We use char because int might match the return type of a gcc2
8016 builtin and then its argument prototype would still apply. */
8026 rm -f conftest.$ac_objext conftest$ac_exeext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8028 (eval $ac_link) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1 >conftest.err
8032 cat conftest.err >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try='test -z "$ac_c_werror_flag"
8036 || test ! -s conftest.err'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try='test -s conftest$ac_exeext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_lib_ipc_shmat=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 ac_cv_lib_ipc_shmat=no
8055 rm -f conftest.err conftest.$ac_objext \
8056 conftest$ac_exeext conftest.$ac_ext
8057 LIBS=$ac_check_lib_save_LIBS
8059 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8060 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8061 if test $ac_cv_lib_ipc_shmat = yes; then
8062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8068 # Check for libraries that X11R6 Xt/Xaw programs need.
8069 ac_save_LDFLAGS=$LDFLAGS
8070 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8071 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8072 # check for ICE first), but we must link in the order -lSM -lICE or
8073 # we get undefined symbols. So assume we have SM if we have ICE.
8074 # These have to be linked with before -lX11, unlike the other
8075 # libraries we check for below, so use a different variable.
8076 # John Interrante, Karl Berry
8077 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8078 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8079 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 ac_check_lib_save_LIBS=$LIBS
8083 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8084 if test x$gcc_no_link = xyes; then
8085 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8086 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8087 { (exit 1); exit 1; }; }
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8096 /* Override any gcc2 internal prototype to avoid an error. */
8100 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8102 char IceConnectionNumber ();
8106 IceConnectionNumber ();
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113 (eval $ac_link) 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag"
8121 || test ! -s conftest.err'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; } &&
8127 { ac_try='test -s conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_cv_lib_ICE_IceConnectionNumber=yes
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8138 ac_cv_lib_ICE_IceConnectionNumber=no
8140 rm -f conftest.err conftest.$ac_objext \
8141 conftest$ac_exeext conftest.$ac_ext
8142 LIBS=$ac_check_lib_save_LIBS
8144 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8145 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8146 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8147 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8150 LDFLAGS=$ac_save_LDFLAGS
8155 # determine whether to enable the cairo GTK Graphics2D backend
8156 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
8157 if test "${enable_gtk_cairo+set}" = set; then
8158 enableval="$enable_gtk_cairo"
8163 if test "x${enable_gtk_cairo}" = xyes; then
8171 if test "x${enable_gtk_cairo}" = xyes
8176 if test -z "$PKG_CONFIG"; then
8177 # Extract the first word of "pkg-config", so it can be a program name with args.
8178 set dummy pkg-config; ac_word=$2
8179 echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8181 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8196 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8203 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8207 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8209 if test -n "$PKG_CONFIG"; then
8210 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8211 echo "${ECHO_T}$PKG_CONFIG" >&6
8213 echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6
8219 if test "$PKG_CONFIG" = "no" ; then
8220 echo "*** The pkg-config script could not be found. Make sure it is"
8221 echo "*** in your path, or set the PKG_CONFIG environment variable"
8222 echo "*** to the full path to pkg-config."
8223 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8225 PKG_CONFIG_MIN_VERSION=0.9.0
8226 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8227 echo "$as_me:$LINENO: checking for cairo" >&5
8228 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
8230 if $PKG_CONFIG --exists "cairo" ; then
8231 echo "$as_me:$LINENO: result: yes" >&5
8232 echo "${ECHO_T}yes" >&6
8235 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
8236 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
8237 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
8238 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
8239 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
8241 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
8242 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
8243 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
8244 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
8245 echo "${ECHO_T}$CAIRO_LIBS" >&6
8249 ## If we have a custom action on failure, don't print errors, but
8250 ## do set a variable so people can do so.
8251 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
8252 echo $CAIRO_PKG_ERRORS
8258 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8259 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8263 if test $succeeded = yes; then
8266 { { 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
8267 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;}
8268 { (exit 1); exit 1; }; }
8274 if test -z "$PKG_CONFIG"; then
8275 # Extract the first word of "pkg-config", so it can be a program name with args.
8276 set dummy pkg-config; ac_word=$2
8277 echo "$as_me:$LINENO: checking for $ac_word" >&5
8278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8279 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8294 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8301 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8305 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8307 if test -n "$PKG_CONFIG"; then
8308 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8309 echo "${ECHO_T}$PKG_CONFIG" >&6
8311 echo "$as_me:$LINENO: result: no" >&5
8312 echo "${ECHO_T}no" >&6
8317 if test "$PKG_CONFIG" = "no" ; then
8318 echo "*** The pkg-config script could not be found. Make sure it is"
8319 echo "*** in your path, or set the PKG_CONFIG environment variable"
8320 echo "*** to the full path to pkg-config."
8321 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
8323 PKG_CONFIG_MIN_VERSION=0.9.0
8324 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8325 echo "$as_me:$LINENO: checking for pangoft2" >&5
8326 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
8328 if $PKG_CONFIG --exists "pangoft2" ; then
8329 echo "$as_me:$LINENO: result: yes" >&5
8330 echo "${ECHO_T}yes" >&6
8333 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
8334 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
8335 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
8336 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
8337 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
8339 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
8340 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
8341 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
8342 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
8343 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
8347 ## If we have a custom action on failure, don't print errors, but
8348 ## do set a variable so people can do so.
8349 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
8350 echo $PANGOFT2_PKG_ERRORS
8356 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
8357 echo "*** See http://www.freedesktop.org/software/pkgconfig"
8361 if test $succeeded = yes; then
8364 { { 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
8365 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;}
8366 { (exit 1); exit 1; }; }
8375 # FIXME: this should be _libs on some hosts.
8378 # extra LD Flags which are required for targets
8381 # For now we have to disable it on darwin[8-9] because it slows down
8382 # the linking phase. A possible bug in ld?
8383 # on Darwin -single_module speeds up loading of the dynamic libraries.
8384 extra_ldflags_libjava=-Wl,-single_module
8389 # Allow the GC to be disabled. Can be useful when debugging.
8390 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
8391 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
8392 # Check whether --enable-java-gc or --disable-java-gc was given.
8393 if test "${enable_java_gc+set}" = set; then
8394 enableval="$enable_java_gc"
8407 echo "$as_me:$LINENO: result: boehm" >&5
8408 echo "${ECHO_T}boehm" >&6
8409 GCLIBS=../boehm-gc/libgcjgc_convenience.la
8410 JC1GCSPEC='-fuse-boehm-gc'
8411 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
8412 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
8415 # The POSIX thread support needs to know this.
8417 cat >>confdefs.h <<\_ACEOF
8418 #define HAVE_BOEHM_GC 1
8423 echo "$as_me:$LINENO: result: none" >&5
8424 echo "${ECHO_T}none" >&6
8428 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
8429 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
8430 { (exit 1); exit 1; }; }
8439 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
8443 if test "$GC" = boehm; then
8445 USING_BOEHMGC_FALSE='#'
8447 USING_BOEHMGC_TRUE='#'
8448 USING_BOEHMGC_FALSE=
8453 if test "$GC" = no; then
8455 USING_NOGC_FALSE='#'
8463 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
8464 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
8465 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
8466 echo "$as_me:$LINENO: result: $THREADS" >&5
8467 echo "${ECHO_T}$THREADS" >&6
8473 posix | posix95 | pthreads)
8478 cat >>confdefs.h <<\_ACEOF
8479 #define LINUX_THREADS 1
8487 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
8488 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
8489 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
8490 { (exit 1); exit 1; }; }
8493 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
8494 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
8495 { (exit 1); exit 1; }; }
8510 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
8513 # Before FreeBSD 5, it didn't have -lpthread (or any library which
8514 # merely adds pthread_* functions) but it does have a -pthread switch
8515 # which is required at link-time to select -lc_r *instead* of -lc.
8516 THREADLDFLAGS=-pthread
8517 # Don't set THREADSPEC here as might be expected since -pthread is
8518 # not processed when found within a spec file, it must come from
8519 # the command line. For now, the user must provide the -pthread
8520 # switch to link code compiled with gcj. In future, consider adding
8521 # support for weak references to pthread_* functions ala gthr.h API.
8522 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
8525 # FreeBSD 5 implements a model much closer to other modern UNIX
8526 # which support threads. However, it still does not support
8528 THREADLDFLAGS=-pthread
8532 THREADCXXFLAGS=-pthread
8533 # boehm-gc needs some functions from librt, so link that too.
8534 THREADLIBS='-lpthread -lrt'
8535 THREADSPEC='-lpthread -lrt'
8538 THREADLIBS=-lpthread
8539 THREADSPEC=-lpthread
8542 THREADH=posix-threads.h
8543 # MIT pthreads doesn't seem to have the mutexattr functions.
8544 # But for now we don't check for it. We just assume you aren't
8545 # using MIT pthreads.
8547 cat >>confdefs.h <<\_ACEOF
8548 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8552 # If we're using the Boehm GC, then we happen to know that it
8553 # defines _REENTRANT, so we don't bother. Eww.
8554 if test "$GC" != boehm; then
8556 cat >>confdefs.h <<\_ACEOF
8557 #define _REENTRANT 1
8562 cat >>confdefs.h <<\_ACEOF
8563 #define _POSIX_PTHREAD_SEMANTICS 1
8569 THREADH=win32-threads.h
8573 THREADH=no-threads.h
8576 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
8586 if test "$THREADS" = posix; then
8587 USING_POSIX_THREADS_TRUE=
8588 USING_POSIX_THREADS_FALSE='#'
8590 USING_POSIX_THREADS_TRUE='#'
8591 USING_POSIX_THREADS_FALSE=
8596 if test "$THREADS" = win32; then
8597 USING_WIN32_THREADS_TRUE=
8598 USING_WIN32_THREADS_FALSE='#'
8600 USING_WIN32_THREADS_TRUE='#'
8601 USING_WIN32_THREADS_FALSE=
8606 if test "$THREADS" = none; then
8607 USING_NO_THREADS_TRUE=
8608 USING_NO_THREADS_FALSE='#'
8610 USING_NO_THREADS_TRUE='#'
8611 USING_NO_THREADS_FALSE=
8615 if test -d sysdep; then true; else mkdir sysdep; fi
8616 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
8618 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
8620 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
8624 # Hash synchronization is only useful with posix threads right now.
8625 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
8626 HASH_SYNC_SPEC=-fhash-synchronization
8628 cat >>confdefs.h <<\_ACEOF
8629 #define JV_HASH_SYNCHRONIZATION 1
8637 if test "$GCC" = yes; then
8646 # We're in the tree with gcc, and need to include some of its headers.
8647 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
8649 if test "x${with_newlib}" = "xyes"; then
8650 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
8651 # may not work correctly, because the compiler may not be able to
8654 # We assume newlib. This lets us hard-code the functions we know
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_MEMMOVE 1
8662 cat >>confdefs.h <<\_ACEOF
8663 #define HAVE_MEMCPY 1
8667 cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_STRERROR 1
8672 cat >>confdefs.h <<\_ACEOF
8677 cat >>confdefs.h <<\_ACEOF
8678 #define HAVE_GMTIME_R 1
8682 cat >>confdefs.h <<\_ACEOF
8683 #define HAVE_LOCALTIME_R 1
8687 cat >>confdefs.h <<\_ACEOF
8688 #define HAVE_USLEEP_DECL 1
8691 # This is only for POSIX threads.
8693 cat >>confdefs.h <<\_ACEOF
8694 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
8697 # We also assume we are using gcc, which provides alloca.
8698 cat >>confdefs.h <<\_ACEOF
8699 #define HAVE_ALLOCA 1
8703 # Assume we do not have getuid and friends.
8705 cat >>confdefs.h <<\_ACEOF
8743 for ac_func in strerror ioctl select fstat open fsync sleep opendir \
8744 gmtime_r localtime_r readdir_r getpwuid_r getcwd \
8745 access stat mkdir rename rmdir unlink realpath utime chmod \
8746 nl_langinfo setlocale \
8747 inet_pton uname inet_ntoa \
8748 fork execvp pipe sigaction ftruncate
8750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8751 echo "$as_me:$LINENO: checking for $ac_func" >&5
8752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8753 if eval "test \"\${$as_ac_var+set}\" = set"; then
8754 echo $ECHO_N "(cached) $ECHO_C" >&6
8756 if test x$gcc_no_link = xyes; then
8757 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8758 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8759 { (exit 1); exit 1; }; }
8761 cat >conftest.$ac_ext <<_ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8769 #define $ac_func innocuous_$ac_func
8771 /* System header to define __stub macros and hopefully few prototypes,
8772 which can conflict with char $ac_func (); below.
8773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774 <limits.h> exists even on freestanding compilers. */
8777 # include <limits.h>
8779 # include <assert.h>
8784 /* Override any gcc2 internal prototype to avoid an error. */
8789 /* We use char because int might match the return type of a gcc2
8790 builtin and then its argument prototype would still apply. */
8792 /* The GNU C library defines this for functions which it implements
8793 to always fail with ENOSYS. Some functions are actually named
8794 something starting with __ and the normal name is an alias. */
8795 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8798 char (*f) () = $ac_func;
8807 return f != $ac_func;
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>conftest.er1
8816 grep -v '^ *+' conftest.er1 >conftest.err
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } &&
8821 { ac_try='test -z "$ac_c_werror_flag"
8822 || test ! -s conftest.err'
8823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827 (exit $ac_status); }; } &&
8828 { ac_try='test -s conftest$ac_exeext'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; }; then
8834 eval "$as_ac_var=yes"
8836 echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 eval "$as_ac_var=no"
8841 rm -f conftest.err conftest.$ac_objext \
8842 conftest$ac_exeext conftest.$ac_ext
8844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8846 if test `eval echo '${'$as_ac_var'}'` = yes; then
8847 cat >>confdefs.h <<_ACEOF
8848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8856 for ac_func in inet_aton inet_addr
8858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8859 echo "$as_me:$LINENO: checking for $ac_func" >&5
8860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8861 if eval "test \"\${$as_ac_var+set}\" = set"; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 if test x$gcc_no_link = xyes; then
8865 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8866 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8867 { (exit 1); exit 1; }; }
8869 cat >conftest.$ac_ext <<_ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8877 #define $ac_func innocuous_$ac_func
8879 /* System header to define __stub macros and hopefully few prototypes,
8880 which can conflict with char $ac_func (); below.
8881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8882 <limits.h> exists even on freestanding compilers. */
8885 # include <limits.h>
8887 # include <assert.h>
8892 /* Override any gcc2 internal prototype to avoid an error. */
8897 /* We use char because int might match the return type of a gcc2
8898 builtin and then its argument prototype would still apply. */
8900 /* The GNU C library defines this for functions which it implements
8901 to always fail with ENOSYS. Some functions are actually named
8902 something starting with __ and the normal name is an alias. */
8903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8906 char (*f) () = $ac_func;
8915 return f != $ac_func;
8920 rm -f conftest.$ac_objext conftest$ac_exeext
8921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8922 (eval $ac_link) 2>conftest.er1
8924 grep -v '^ *+' conftest.er1 >conftest.err
8926 cat conftest.err >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } &&
8929 { ac_try='test -z "$ac_c_werror_flag"
8930 || test ! -s conftest.err'
8931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); }; } &&
8936 { ac_try='test -s conftest$ac_exeext'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; }; then
8942 eval "$as_ac_var=yes"
8944 echo "$as_me: failed program was:" >&5
8945 sed 's/^/| /' conftest.$ac_ext >&5
8947 eval "$as_ac_var=no"
8949 rm -f conftest.err conftest.$ac_objext \
8950 conftest$ac_exeext conftest.$ac_ext
8952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8954 if test `eval echo '${'$as_ac_var'}'` = yes; then
8955 cat >>confdefs.h <<_ACEOF
8956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8962 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8963 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8964 if test "${ac_cv_header_stdc+set}" = set; then
8965 echo $ECHO_N "(cached) $ECHO_C" >&6
8967 cat >conftest.$ac_ext <<_ACEOF
8970 cat confdefs.h >>conftest.$ac_ext
8971 cat >>conftest.$ac_ext <<_ACEOF
8972 /* end confdefs.h. */
8986 rm -f conftest.$ac_objext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8988 (eval $ac_compile) 2>conftest.er1
8990 grep -v '^ *+' conftest.er1 >conftest.err
8992 cat conftest.err >&5
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } &&
8995 { ac_try='test -z "$ac_c_werror_flag"
8996 || test ! -s conftest.err'
8997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); }; } &&
9002 { ac_try='test -s conftest.$ac_objext'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; }; then
9008 ac_cv_header_stdc=yes
9010 echo "$as_me: failed program was:" >&5
9011 sed 's/^/| /' conftest.$ac_ext >&5
9013 ac_cv_header_stdc=no
9015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9017 if test $ac_cv_header_stdc = yes; then
9018 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9019 cat >conftest.$ac_ext <<_ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9029 $EGREP "memchr" >/dev/null 2>&1; then
9032 ac_cv_header_stdc=no
9038 if test $ac_cv_header_stdc = yes; then
9039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9040 cat >conftest.$ac_ext <<_ACEOF
9043 cat confdefs.h >>conftest.$ac_ext
9044 cat >>conftest.$ac_ext <<_ACEOF
9045 /* end confdefs.h. */
9049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9050 $EGREP "free" >/dev/null 2>&1; then
9053 ac_cv_header_stdc=no
9059 if test $ac_cv_header_stdc = yes; then
9060 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9061 if test "$cross_compiling" = yes; then
9064 cat >conftest.$ac_ext <<_ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9071 #if ((' ' & 0x0FF) == 0x020)
9072 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9073 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9075 # define ISLOWER(c) \
9076 (('a' <= (c) && (c) <= 'i') \
9077 || ('j' <= (c) && (c) <= 'r') \
9078 || ('s' <= (c) && (c) <= 'z'))
9079 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9082 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9087 for (i = 0; i < 256; i++)
9088 if (XOR (islower (i), ISLOWER (i))
9089 || toupper (i) != TOUPPER (i))
9094 rm -f conftest$ac_exeext
9095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9096 (eval $ac_link) 2>&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9107 echo "$as_me: program exited with status $ac_status" >&5
9108 echo "$as_me: failed program was:" >&5
9109 sed 's/^/| /' conftest.$ac_ext >&5
9112 ac_cv_header_stdc=no
9114 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9118 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9119 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9120 if test $ac_cv_header_stdc = yes; then
9122 cat >>confdefs.h <<\_ACEOF
9123 #define STDC_HEADERS 1
9128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9138 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9139 inttypes.h stdint.h unistd.h
9141 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9142 echo "$as_me:$LINENO: checking for $ac_header" >&5
9143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 cat >conftest.$ac_ext <<_ACEOF
9150 cat confdefs.h >>conftest.$ac_ext
9151 cat >>conftest.$ac_ext <<_ACEOF
9152 /* end confdefs.h. */
9153 $ac_includes_default
9155 #include <$ac_header>
9157 rm -f conftest.$ac_objext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9159 (eval $ac_compile) 2>conftest.er1
9161 grep -v '^ *+' conftest.er1 >conftest.err
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag"
9167 || test ! -s conftest.err'
9168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); }; } &&
9173 { ac_try='test -s conftest.$ac_objext'
9174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); }; }; then
9179 eval "$as_ac_Header=yes"
9181 echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 eval "$as_ac_Header=no"
9186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9191 cat >>confdefs.h <<_ACEOF
9192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9203 for ac_header in execinfo.h unistd.h dlfcn.h
9205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9207 echo "$as_me:$LINENO: checking for $ac_header" >&5
9208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9215 # Is the header compilable?
9216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9218 cat >conftest.$ac_ext <<_ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h. */
9224 $ac_includes_default
9225 #include <$ac_header>
9227 rm -f conftest.$ac_objext
9228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9229 (eval $ac_compile) 2>conftest.er1
9231 grep -v '^ *+' conftest.er1 >conftest.err
9233 cat conftest.err >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); } &&
9236 { ac_try='test -z "$ac_c_werror_flag"
9237 || test ! -s conftest.err'
9238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); }; } &&
9243 { ac_try='test -s conftest.$ac_objext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 ac_header_compiler=yes
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_header_compiler=no
9256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9257 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9258 echo "${ECHO_T}$ac_header_compiler" >&6
9260 # Is the header present?
9261 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9262 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 #include <$ac_header>
9271 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9272 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9274 grep -v '^ *+' conftest.er1 >conftest.err
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } >/dev/null; then
9279 if test -s conftest.err; then
9280 ac_cpp_err=$ac_c_preproc_warn_flag
9281 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9288 if test -z "$ac_cpp_err"; then
9289 ac_header_preproc=yes
9291 echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9294 ac_header_preproc=no
9296 rm -f conftest.err conftest.$ac_ext
9297 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9298 echo "${ECHO_T}$ac_header_preproc" >&6
9300 # So? What about this header?
9301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9303 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9304 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9307 ac_header_preproc=yes
9310 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9311 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9313 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9315 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9317 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9321 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9324 ## ---------------------------------- ##
9325 ## Report this to the libjava lists. ##
9326 ## ---------------------------------- ##
9329 sed "s/^/$as_me: WARNING: /" >&2
9332 echo "$as_me:$LINENO: checking for $ac_header" >&5
9333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 eval "$as_ac_Header=\$ac_header_preproc"
9339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9344 cat >>confdefs.h <<_ACEOF
9345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9352 echo "$as_me:$LINENO: checking for backtrace" >&5
9353 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9354 if test "${ac_cv_func_backtrace+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 if test x$gcc_no_link = xyes; then
9358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9360 { (exit 1); exit 1; }; }
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
9369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9370 #define backtrace innocuous_backtrace
9372 /* System header to define __stub macros and hopefully few prototypes,
9373 which can conflict with char backtrace (); below.
9374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9375 <limits.h> exists even on freestanding compilers. */
9378 # include <limits.h>
9380 # include <assert.h>
9385 /* Override any gcc2 internal prototype to avoid an error. */
9390 /* We use char because int might match the return type of a gcc2
9391 builtin and then its argument prototype would still apply. */
9393 /* The GNU C library defines this for functions which it implements
9394 to always fail with ENOSYS. Some functions are actually named
9395 something starting with __ and the normal name is an alias. */
9396 #if defined (__stub_backtrace) || defined (__stub___backtrace)
9399 char (*f) () = backtrace;
9408 return f != backtrace;
9413 rm -f conftest.$ac_objext conftest$ac_exeext
9414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9415 (eval $ac_link) 2>conftest.er1
9417 grep -v '^ *+' conftest.er1 >conftest.err
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try='test -z "$ac_c_werror_flag"
9423 || test ! -s conftest.err'
9424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try='test -s conftest$ac_exeext'
9430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434 (exit $ac_status); }; }; then
9435 ac_cv_func_backtrace=yes
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_cv_func_backtrace=no
9442 rm -f conftest.err conftest.$ac_objext \
9443 conftest$ac_exeext conftest.$ac_ext
9445 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9446 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9447 if test $ac_cv_func_backtrace = yes; then
9451 # Has broken backtrace()
9454 # Has broken backtrace(), but we supply our own.
9455 if test -d sysdep; then true; else mkdir -p sysdep; fi
9456 supply_backtrace=yes
9458 cat >>confdefs.h <<\_ACEOF
9459 #define HAVE_BACKTRACE 1
9465 cat >>confdefs.h <<\_ACEOF
9466 #define HAVE_BACKTRACE 1
9476 # Has backtrace() defined in libgcj itself
9478 cat >>confdefs.h <<\_ACEOF
9479 #define HAVE_BACKTRACE 1
9488 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9489 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9490 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9491 echo $ECHO_N "(cached) $ECHO_C" >&6
9493 ac_check_lib_save_LIBS=$LIBS
9495 if test x$gcc_no_link = xyes; then
9496 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9497 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9498 { (exit 1); exit 1; }; }
9500 cat >conftest.$ac_ext <<_ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9507 /* Override any gcc2 internal prototype to avoid an error. */
9511 /* We use char because int might match the return type of a gcc2
9512 builtin and then its argument prototype would still apply. */
9522 rm -f conftest.$ac_objext conftest$ac_exeext
9523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9524 (eval $ac_link) 2>conftest.er1
9526 grep -v '^ *+' conftest.er1 >conftest.err
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } &&
9531 { ac_try='test -z "$ac_c_werror_flag"
9532 || test ! -s conftest.err'
9533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); }; } &&
9538 { ac_try='test -s conftest$ac_exeext'
9539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); }; }; then
9544 ac_cv_lib_dl_dladdr=yes
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_cv_lib_dl_dladdr=no
9551 rm -f conftest.err conftest.$ac_objext \
9552 conftest$ac_exeext conftest.$ac_ext
9553 LIBS=$ac_check_lib_save_LIBS
9555 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9556 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9557 if test $ac_cv_lib_dl_dladdr = yes; then
9559 if test "x${disable_dladdr}" = "xyes"; then
9564 cat >>confdefs.h <<\_ACEOF
9565 #define HAVE_DLADDR 1
9572 if test x"$build" = x"$host"; then
9573 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9574 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9575 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 test "$cross_compiling" = yes &&
9579 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9580 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9581 { (exit 1); exit 1; }; }
9582 if test -r "/proc/self/exe"; then
9583 ac_cv_file__proc_self_exe=yes
9585 ac_cv_file__proc_self_exe=no
9588 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9589 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9590 if test $ac_cv_file__proc_self_exe = yes; then
9592 cat >>confdefs.h <<_ACEOF
9593 #define HAVE__PROC_SELF_EXE 1
9598 cat >>confdefs.h <<\_ACEOF
9599 #define HAVE_PROC_SELF_EXE 1
9608 cat >>confdefs.h <<\_ACEOF
9609 #define HAVE_PROC_SELF_EXE 1
9617 if test "X$prefix" = "XNONE"; then
9618 acl_final_prefix="$ac_default_prefix"
9620 acl_final_prefix="$prefix"
9622 if test "X$exec_prefix" = "XNONE"; then
9623 acl_final_exec_prefix='${prefix}'
9625 acl_final_exec_prefix="$exec_prefix"
9627 acl_save_prefix="$prefix"
9628 prefix="$acl_final_prefix"
9629 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9630 prefix="$acl_save_prefix"
9633 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9634 if test "${with_gnu_ld+set}" = set; then
9635 withval="$with_gnu_ld"
9636 test "$withval" = no || with_gnu_ld=yes
9640 # Prepare PATH_SEPARATOR.
9641 # The user is always right.
9642 if test "${PATH_SEPARATOR+set}" != set; then
9643 echo "#! /bin/sh" >conf$$.sh
9644 echo "exit 0" >>conf$$.sh
9646 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9654 if test "$GCC" = yes; then
9655 # Check if gcc -print-prog-name=ld gives a path.
9656 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9657 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
9660 # gcc leaves a trailing carriage return which upsets mingw
9661 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9663 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9666 # Accept absolute paths.
9667 [\\/]* | [A-Za-z]:[\\/]*)
9668 re_direlt='/[^/][^/]*/\.\./'
9669 # Canonicalize the path of ld
9670 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9671 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9672 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9674 test -z "$LD" && LD="$ac_prog"
9677 # If it fails, then pretend we aren't using GCC.
9681 # If it is relative, then search for the first ld in PATH.
9685 elif test "$with_gnu_ld" = yes; then
9686 echo "$as_me:$LINENO: checking for GNU ld" >&5
9687 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9689 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9690 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9692 if test "${acl_cv_path_LD+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 if test -z "$LD"; then
9696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9697 for ac_dir in $PATH; do
9698 test -z "$ac_dir" && ac_dir=.
9699 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9700 acl_cv_path_LD="$ac_dir/$ac_prog"
9701 # Check to see if the program is GNU ld. I'd rather use --version,
9702 # but apparently some GNU ld's only accept -v.
9703 # Break only if it was the GNU/non-GNU ld that we prefer.
9704 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
9705 test "$with_gnu_ld" != no && break
9707 test "$with_gnu_ld" != yes && break
9713 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9717 LD="$acl_cv_path_LD"
9718 if test -n "$LD"; then
9719 echo "$as_me:$LINENO: result: $LD" >&5
9720 echo "${ECHO_T}$LD" >&6
9722 echo "$as_me:$LINENO: result: no" >&5
9723 echo "${ECHO_T}no" >&6
9725 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9726 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9727 { (exit 1); exit 1; }; }
9728 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9729 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9730 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9734 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
9735 acl_cv_prog_gnu_ld=yes
9737 acl_cv_prog_gnu_ld=no
9740 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9741 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
9742 with_gnu_ld=$acl_cv_prog_gnu_ld
9746 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9747 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
9748 if test "${acl_cv_rpath+set}" = set; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9753 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9759 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9760 echo "${ECHO_T}$acl_cv_rpath" >&6
9762 libext="$acl_cv_libext"
9763 shlibext="$acl_cv_shlibext"
9764 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9765 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9766 hardcode_direct="$acl_cv_hardcode_direct"
9767 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9768 # Check whether --enable-rpath or --disable-rpath was given.
9769 if test "${enable_rpath+set}" = set; then
9770 enableval="$enable_rpath"
9784 acl_save_prefix="$prefix"
9785 prefix="$acl_final_prefix"
9786 acl_save_exec_prefix="$exec_prefix"
9787 exec_prefix="$acl_final_exec_prefix"
9789 eval additional_includedir=\"$includedir\"
9790 eval additional_libdir=\"$libdir\"
9792 exec_prefix="$acl_save_exec_prefix"
9793 prefix="$acl_save_prefix"
9796 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9797 if test "${with_libiconv_prefix+set}" = set; then
9798 withval="$with_libiconv_prefix"
9800 if test "X$withval" = "Xno"; then
9803 if test "X$withval" = "X"; then
9805 acl_save_prefix="$prefix"
9806 prefix="$acl_final_prefix"
9807 acl_save_exec_prefix="$exec_prefix"
9808 exec_prefix="$acl_final_exec_prefix"
9810 eval additional_includedir=\"$includedir\"
9811 eval additional_libdir=\"$libdir\"
9813 exec_prefix="$acl_save_exec_prefix"
9814 prefix="$acl_save_prefix"
9817 additional_includedir="$withval/include"
9818 additional_libdir="$withval/lib"
9828 names_already_handled=
9829 names_next_round='iconv '
9830 while test -n "$names_next_round"; do
9831 names_this_round="$names_next_round"
9833 for name in $names_this_round; do
9835 for n in $names_already_handled; do
9836 if test "$n" = "$name"; then
9841 if test -z "$already_handled"; then
9842 names_already_handled="$names_already_handled $name"
9843 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9844 eval value=\"\$HAVE_LIB$uppername\"
9845 if test -n "$value"; then
9846 if test "$value" = yes; then
9847 eval value=\"\$LIB$uppername\"
9848 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9849 eval value=\"\$LTLIB$uppername\"
9850 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9859 if test $use_additional = yes; then
9860 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9861 found_dir="$additional_libdir"
9862 found_so="$additional_libdir/lib$name.$shlibext"
9863 if test -f "$additional_libdir/lib$name.la"; then
9864 found_la="$additional_libdir/lib$name.la"
9867 if test -f "$additional_libdir/lib$name.$libext"; then
9868 found_dir="$additional_libdir"
9869 found_a="$additional_libdir/lib$name.$libext"
9870 if test -f "$additional_libdir/lib$name.la"; then
9871 found_la="$additional_libdir/lib$name.la"
9876 if test "X$found_dir" = "X"; then
9877 for x in $LDFLAGS $LTLIBICONV; do
9879 acl_save_prefix="$prefix"
9880 prefix="$acl_final_prefix"
9881 acl_save_exec_prefix="$exec_prefix"
9882 exec_prefix="$acl_final_exec_prefix"
9884 exec_prefix="$acl_save_exec_prefix"
9885 prefix="$acl_save_prefix"
9889 dir=`echo "X$x" | sed -e 's/^X-L//'`
9890 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9892 found_so="$dir/lib$name.$shlibext"
9893 if test -f "$dir/lib$name.la"; then
9894 found_la="$dir/lib$name.la"
9897 if test -f "$dir/lib$name.$libext"; then
9899 found_a="$dir/lib$name.$libext"
9900 if test -f "$dir/lib$name.la"; then
9901 found_la="$dir/lib$name.la"
9907 if test "X$found_dir" != "X"; then
9912 if test "X$found_dir" != "X"; then
9913 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9914 if test "X$found_so" != "X"; then
9915 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9916 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9919 for x in $ltrpathdirs; do
9920 if test "X$x" = "X$found_dir"; then
9925 if test -z "$haveit"; then
9926 ltrpathdirs="$ltrpathdirs $found_dir"
9928 if test "$hardcode_direct" = yes; then
9929 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9931 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9932 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9934 for x in $rpathdirs; do
9935 if test "X$x" = "X$found_dir"; then
9940 if test -z "$haveit"; then
9941 rpathdirs="$rpathdirs $found_dir"
9945 for x in $LDFLAGS $LIBICONV; do
9947 acl_save_prefix="$prefix"
9948 prefix="$acl_final_prefix"
9949 acl_save_exec_prefix="$exec_prefix"
9950 exec_prefix="$acl_final_exec_prefix"
9952 exec_prefix="$acl_save_exec_prefix"
9953 prefix="$acl_save_prefix"
9955 if test "X$x" = "X-L$found_dir"; then
9960 if test -z "$haveit"; then
9961 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9963 if test "$hardcode_minus_L" != no; then
9964 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9966 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9972 if test "X$found_a" != "X"; then
9973 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9975 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9978 additional_includedir=
9979 case "$found_dir" in
9981 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9982 additional_includedir="$basedir/include"
9985 if test "X$additional_includedir" != "X"; then
9986 if test "X$additional_includedir" != "X/usr/include"; then
9988 if test "X$additional_includedir" = "X/usr/local/include"; then
9989 if test -n "$GCC"; then
9991 linux*) haveit=yes;;
9995 if test -z "$haveit"; then
9996 for x in $CPPFLAGS $INCICONV; do
9998 acl_save_prefix="$prefix"
9999 prefix="$acl_final_prefix"
10000 acl_save_exec_prefix="$exec_prefix"
10001 exec_prefix="$acl_final_exec_prefix"
10003 exec_prefix="$acl_save_exec_prefix"
10004 prefix="$acl_save_prefix"
10006 if test "X$x" = "X-I$additional_includedir"; then
10011 if test -z "$haveit"; then
10012 if test -d "$additional_includedir"; then
10013 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
10019 if test -n "$found_la"; then
10020 save_libdir="$libdir"
10021 case "$found_la" in
10022 */* | *\\*) . "$found_la" ;;
10023 *) . "./$found_la" ;;
10025 libdir="$save_libdir"
10026 for dep in $dependency_libs; do
10029 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10030 if test "X$additional_libdir" != "X/usr/lib"; then
10032 if test "X$additional_libdir" = "X/usr/local/lib"; then
10033 if test -n "$GCC"; then
10035 linux*) haveit=yes;;
10039 if test -z "$haveit"; then
10041 for x in $LDFLAGS $LIBICONV; do
10043 acl_save_prefix="$prefix"
10044 prefix="$acl_final_prefix"
10045 acl_save_exec_prefix="$exec_prefix"
10046 exec_prefix="$acl_final_exec_prefix"
10048 exec_prefix="$acl_save_exec_prefix"
10049 prefix="$acl_save_prefix"
10051 if test "X$x" = "X-L$additional_libdir"; then
10056 if test -z "$haveit"; then
10057 if test -d "$additional_libdir"; then
10058 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10062 for x in $LDFLAGS $LTLIBICONV; 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-L$additional_libdir"; then
10077 if test -z "$haveit"; then
10078 if test -d "$additional_libdir"; then
10079 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10086 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10087 if test "$enable_rpath" != no; then
10089 for x in $rpathdirs; do
10090 if test "X$x" = "X$dir"; then
10095 if test -z "$haveit"; then
10096 rpathdirs="$rpathdirs $dir"
10099 for x in $ltrpathdirs; do
10100 if test "X$x" = "X$dir"; then
10105 if test -z "$haveit"; then
10106 ltrpathdirs="$ltrpathdirs $dir"
10111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10114 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10117 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10118 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10124 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10125 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10131 if test "X$rpathdirs" != "X"; then
10132 if test -n "$hardcode_libdir_separator"; then
10134 for found_dir in $rpathdirs; do
10135 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10137 acl_save_libdir="$libdir"
10139 eval flag=\"$hardcode_libdir_flag_spec\"
10140 libdir="$acl_save_libdir"
10141 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10143 for found_dir in $rpathdirs; do
10144 acl_save_libdir="$libdir"
10145 libdir="$found_dir"
10146 eval flag=\"$hardcode_libdir_flag_spec\"
10147 libdir="$acl_save_libdir"
10148 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10152 if test "X$ltrpathdirs" != "X"; then
10153 for found_dir in $ltrpathdirs; do
10154 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10164 am_save_CPPFLAGS="$CPPFLAGS"
10166 for element in $INCICONV; do
10168 for x in $CPPFLAGS; do
10170 acl_save_prefix="$prefix"
10171 prefix="$acl_final_prefix"
10172 acl_save_exec_prefix="$exec_prefix"
10173 exec_prefix="$acl_final_exec_prefix"
10175 exec_prefix="$acl_save_exec_prefix"
10176 prefix="$acl_save_prefix"
10178 if test "X$x" = "X$element"; then
10183 if test -z "$haveit"; then
10184 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10189 echo "$as_me:$LINENO: checking for iconv" >&5
10190 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10191 if test "${am_cv_func_iconv+set}" = set; then
10192 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 am_cv_func_iconv="no, consider installing GNU libiconv"
10197 if test x$gcc_no_link = xyes; then
10198 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10200 { (exit 1); exit 1; }; }
10202 cat >conftest.$ac_ext <<_ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 #include <stdlib.h>
10213 iconv_t cd = iconv_open("","");
10214 iconv(cd,NULL,NULL,NULL,NULL);
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222 (eval $ac_link) 2>conftest.er1
10224 grep -v '^ *+' conftest.er1 >conftest.err
10226 cat conftest.err >&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } &&
10229 { ac_try='test -z "$ac_c_werror_flag"
10230 || test ! -s conftest.err'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; } &&
10236 { ac_try='test -s conftest$ac_exeext'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 am_cv_func_iconv=yes
10244 echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10248 rm -f conftest.err conftest.$ac_objext \
10249 conftest$ac_exeext conftest.$ac_ext
10250 if test "$am_cv_func_iconv" != yes; then
10251 am_save_LIBS="$LIBS"
10252 LIBS="$LIBS $LIBICONV"
10253 if test x$gcc_no_link = xyes; then
10254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10256 { (exit 1); exit 1; }; }
10258 cat >conftest.$ac_ext <<_ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */
10264 #include <stdlib.h>
10269 iconv_t cd = iconv_open("","");
10270 iconv(cd,NULL,NULL,NULL,NULL);
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10278 (eval $ac_link) 2>conftest.er1
10280 grep -v '^ *+' conftest.er1 >conftest.err
10282 cat conftest.err >&5
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); } &&
10285 { ac_try='test -z "$ac_c_werror_flag"
10286 || test ! -s conftest.err'
10287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10288 (eval $ac_try) 2>&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); }; } &&
10292 { ac_try='test -s conftest$ac_exeext'
10293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10294 (eval $ac_try) 2>&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); }; }; then
10298 am_cv_lib_iconv=yes
10299 am_cv_func_iconv=yes
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10305 rm -f conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 LIBS="$am_save_LIBS"
10311 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10312 echo "${ECHO_T}$am_cv_func_iconv" >&6
10313 if test "$am_cv_func_iconv" = yes; then
10315 cat >>confdefs.h <<\_ACEOF
10316 #define HAVE_ICONV 1
10320 if test "$am_cv_lib_iconv" = yes; then
10321 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10322 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
10323 echo "$as_me:$LINENO: result: $LIBICONV" >&5
10324 echo "${ECHO_T}$LIBICONV" >&6
10326 CPPFLAGS="$am_save_CPPFLAGS"
10333 if test "$am_cv_func_iconv" = yes; then
10334 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10335 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10336 if test "${am_cv_proto_iconv+set}" = set; then
10337 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 cat >conftest.$ac_ext <<_ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10347 #include <stdlib.h>
10353 #if defined(__STDC__) || defined(__cplusplus)
10354 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10367 rm -f conftest.$ac_objext
10368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10369 (eval $ac_compile) 2>conftest.er1
10371 grep -v '^ *+' conftest.er1 >conftest.err
10373 cat conftest.err >&5
10374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375 (exit $ac_status); } &&
10376 { ac_try='test -z "$ac_c_werror_flag"
10377 || test ! -s conftest.err'
10378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10379 (eval $ac_try) 2>&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }; } &&
10383 { ac_try='test -s conftest.$ac_objext'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; }; then
10389 am_cv_proto_iconv_arg1=""
10391 echo "$as_me: failed program was:" >&5
10392 sed 's/^/| /' conftest.$ac_ext >&5
10394 am_cv_proto_iconv_arg1="const"
10396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10397 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);"
10400 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10401 echo "$as_me:$LINENO: result: ${ac_t:-
10402 }$am_cv_proto_iconv" >&5
10403 echo "${ECHO_T}${ac_t:-
10404 }$am_cv_proto_iconv" >&6
10406 cat >>confdefs.h <<_ACEOF
10407 #define ICONV_CONST $am_cv_proto_iconv_arg1
10413 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10414 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
10415 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10416 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 if test x$gcc_no_link = xyes; then
10419 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10420 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10421 { (exit 1); exit 1; }; }
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <locale.h>
10438 rm -f conftest.$ac_objext conftest$ac_exeext
10439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10440 (eval $ac_link) 2>conftest.er1
10442 grep -v '^ *+' conftest.er1 >conftest.err
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } &&
10447 { ac_try='test -z "$ac_c_werror_flag"
10448 || test ! -s conftest.err'
10449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10450 (eval $ac_try) 2>&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; } &&
10454 { ac_try='test -s conftest$ac_exeext'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; }; then
10460 am_cv_val_LC_MESSAGES=yes
10462 echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10465 am_cv_val_LC_MESSAGES=no
10467 rm -f conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10470 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10471 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
10472 if test $am_cv_val_LC_MESSAGES = yes; then
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_LC_MESSAGES 1
10480 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10481 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10482 if test "${ac_cv_struct_tm+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 cat >conftest.$ac_ext <<_ACEOF
10488 cat confdefs.h >>conftest.$ac_ext
10489 cat >>conftest.$ac_ext <<_ACEOF
10490 /* end confdefs.h. */
10491 #include <sys/types.h>
10497 struct tm *tp; tp->tm_sec;
10502 rm -f conftest.$ac_objext
10503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10504 (eval $ac_compile) 2>conftest.er1
10506 grep -v '^ *+' conftest.er1 >conftest.err
10508 cat conftest.err >&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } &&
10511 { ac_try='test -z "$ac_c_werror_flag"
10512 || 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_struct_tm=time.h
10526 echo "$as_me: failed program was:" >&5
10527 sed 's/^/| /' conftest.$ac_ext >&5
10529 ac_cv_struct_tm=sys/time.h
10531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10533 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10534 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10535 if test $ac_cv_struct_tm = sys/time.h; then
10537 cat >>confdefs.h <<\_ACEOF
10538 #define TM_IN_SYS_TIME 1
10543 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10544 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10545 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h. */
10554 #include <sys/types.h>
10555 #include <$ac_cv_struct_tm>
10561 static struct tm ac_aggr;
10562 if (ac_aggr.tm_zone)
10568 rm -f conftest.$ac_objext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10570 (eval $ac_compile) 2>conftest.er1
10572 grep -v '^ *+' conftest.er1 >conftest.err
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try='test -z "$ac_c_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try='test -s conftest.$ac_objext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_cv_member_struct_tm_tm_zone=yes
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.$ac_ext >&5
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 #include <sys/types.h>
10602 #include <$ac_cv_struct_tm>
10608 static struct tm ac_aggr;
10609 if (sizeof ac_aggr.tm_zone)
10615 rm -f conftest.$ac_objext
10616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10617 (eval $ac_compile) 2>conftest.er1
10619 grep -v '^ *+' conftest.er1 >conftest.err
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } &&
10624 { ac_try='test -z "$ac_c_werror_flag"
10625 || test ! -s conftest.err'
10626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10627 (eval $ac_try) 2>&5
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest.$ac_objext'
10632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10633 (eval $ac_try) 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; }; then
10637 ac_cv_member_struct_tm_tm_zone=yes
10639 echo "$as_me: failed program was:" >&5
10640 sed 's/^/| /' conftest.$ac_ext >&5
10642 ac_cv_member_struct_tm_tm_zone=no
10644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10648 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10649 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10650 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10652 cat >>confdefs.h <<_ACEOF
10653 #define HAVE_STRUCT_TM_TM_ZONE 1
10659 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10661 cat >>confdefs.h <<\_ACEOF
10662 #define HAVE_TM_ZONE 1
10666 echo "$as_me:$LINENO: checking for tzname" >&5
10667 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10668 if test "${ac_cv_var_tzname+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 if test x$gcc_no_link = xyes; then
10672 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10673 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10674 { (exit 1); exit 1; }; }
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10683 #ifndef tzname /* For SGI. */
10684 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10695 rm -f conftest.$ac_objext conftest$ac_exeext
10696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10697 (eval $ac_link) 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
10704 { ac_try='test -z "$ac_c_werror_flag"
10705 || test ! -s conftest.err'
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; } &&
10711 { ac_try='test -s conftest$ac_exeext'
10712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10713 (eval $ac_try) 2>&5
10715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716 (exit $ac_status); }; }; then
10717 ac_cv_var_tzname=yes
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10722 ac_cv_var_tzname=no
10724 rm -f conftest.err conftest.$ac_objext \
10725 conftest$ac_exeext conftest.$ac_ext
10727 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10728 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10729 if test $ac_cv_var_tzname = yes; then
10731 cat >>confdefs.h <<\_ACEOF
10732 #define HAVE_TZNAME 1
10741 for ac_func in gethostbyname_r
10743 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10744 echo "$as_me:$LINENO: checking for $ac_func" >&5
10745 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10746 if eval "test \"\${$as_ac_var+set}\" = set"; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 if test x$gcc_no_link = xyes; then
10750 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10751 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10752 { (exit 1); exit 1; }; }
10754 cat >conftest.$ac_ext <<_ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h. */
10760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10762 #define $ac_func innocuous_$ac_func
10764 /* System header to define __stub macros and hopefully few prototypes,
10765 which can conflict with char $ac_func (); below.
10766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10767 <limits.h> exists even on freestanding compilers. */
10770 # include <limits.h>
10772 # include <assert.h>
10777 /* Override any gcc2 internal prototype to avoid an error. */
10782 /* We use char because int might match the return type of a gcc2
10783 builtin and then its argument prototype would still apply. */
10785 /* The GNU C library defines this for functions which it implements
10786 to always fail with ENOSYS. Some functions are actually named
10787 something starting with __ and the normal name is an alias. */
10788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10791 char (*f) () = $ac_func;
10800 return f != $ac_func;
10805 rm -f conftest.$ac_objext conftest$ac_exeext
10806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10807 (eval $ac_link) 2>conftest.er1
10809 grep -v '^ *+' conftest.er1 >conftest.err
10811 cat conftest.err >&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -z "$ac_c_werror_flag"
10815 || test ! -s conftest.err'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 eval "$as_ac_var=yes"
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 eval "$as_ac_var=no"
10834 rm -f conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10839 if test `eval echo '${'$as_ac_var'}'` = yes; then
10840 cat >>confdefs.h <<_ACEOF
10841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10845 cat >>confdefs.h <<\_ACEOF
10846 #define HAVE_GETHOSTBYNAME_R 1
10849 # There are two different kinds of gethostbyname_r.
10850 # We look for the one that returns `int'.
10851 # Hopefully this check is robust enough.
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10862 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10865 cat >>confdefs.h <<\_ACEOF
10866 #define GETHOSTBYNAME_R_RETURNS_INT 1
10873 case " $GCINCS " in
10874 *" -D_REENTRANT "*) ;;
10876 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10877 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10878 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10882 ac_cpp='$CXXCPP $CPPFLAGS'
10883 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10884 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10885 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10887 cat >conftest.$ac_ext <<_ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */
10897 gethostbyname_r("", 0, 0);
10902 rm -f conftest.$ac_objext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904 (eval $ac_compile) 2>conftest.er1
10906 grep -v '^ *+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_cxx_werror_flag"
10912 || test ! -s conftest.err'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 libjava_cv_gethostbyname_r_needs_reentrant=no
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 CPPFLAGS_SAVE="$CPPFLAGS"
10930 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10931 cat >conftest.$ac_ext <<_ACEOF
10934 cat confdefs.h >>conftest.$ac_ext
10935 cat >>conftest.$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10941 gethostbyname_r("", 0, 0);
10946 rm -f conftest.$ac_objext
10947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10948 (eval $ac_compile) 2>conftest.er1
10950 grep -v '^ *+' conftest.er1 >conftest.err
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } &&
10955 { ac_try='test -z "$ac_cxx_werror_flag"
10956 || test ! -s conftest.err'
10957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10958 (eval $ac_try) 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try='test -s conftest.$ac_objext'
10963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10964 (eval $ac_try) 2>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; }; then
10968 libjava_cv_gethostbyname_r_needs_reentrant=yes
10970 echo "$as_me: failed program was:" >&5
10971 sed 's/^/| /' conftest.$ac_ext >&5
10973 libjava_cv_gethostbyname_r_needs_reentrant=fail
10975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10976 CPPFLAGS="$CPPFLAGS_SAVE"
10979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10981 ac_cpp='$CPP $CPPFLAGS'
10982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10988 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10989 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10990 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10992 cat >>confdefs.h <<\_ACEOF
10993 #define _REENTRANT 1
11000 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
11001 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
11002 if test "${libjava_cv_struct_hostent_data+set}" = set; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 cat >conftest.$ac_ext <<_ACEOF
11008 cat confdefs.h >>conftest.$ac_ext
11009 cat >>conftest.$ac_ext <<_ACEOF
11010 /* end confdefs.h. */
11012 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
11013 # define _REENTRANT 1
11019 struct hostent_data data;
11024 rm -f conftest.$ac_objext
11025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11026 (eval $ac_compile) 2>conftest.er1
11028 grep -v '^ *+' conftest.er1 >conftest.err
11030 cat conftest.err >&5
11031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032 (exit $ac_status); } &&
11033 { ac_try='test -z "$ac_c_werror_flag"
11034 || test ! -s conftest.err'
11035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11036 (eval $ac_try) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try='test -s conftest.$ac_objext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 libjava_cv_struct_hostent_data=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 libjava_cv_struct_hostent_data=no
11053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11055 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
11056 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
11057 if test "x$libjava_cv_struct_hostent_data" = xyes; then
11059 cat >>confdefs.h <<\_ACEOF
11060 #define HAVE_STRUCT_HOSTENT_DATA 1
11069 # FIXME: libjava source code expects to find a prototype for
11070 # gethostbyaddr_r in netdb.h. The outer check ensures that
11071 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
11072 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
11073 # linkage check is enough, yet C++ code requires proper prototypes.)
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11084 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
11087 for ac_func in gethostbyaddr_r
11089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11090 echo "$as_me:$LINENO: checking for $ac_func" >&5
11091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11092 if eval "test \"\${$as_ac_var+set}\" = set"; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 if test x$gcc_no_link = xyes; then
11096 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11097 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11098 { (exit 1); exit 1; }; }
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11108 #define $ac_func innocuous_$ac_func
11110 /* System header to define __stub macros and hopefully few prototypes,
11111 which can conflict with char $ac_func (); below.
11112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11113 <limits.h> exists even on freestanding compilers. */
11116 # include <limits.h>
11118 # include <assert.h>
11123 /* Override any gcc2 internal prototype to avoid an error. */
11128 /* We use char because int might match the return type of a gcc2
11129 builtin and then its argument prototype would still apply. */
11131 /* The GNU C library defines this for functions which it implements
11132 to always fail with ENOSYS. Some functions are actually named
11133 something starting with __ and the normal name is an alias. */
11134 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11137 char (*f) () = $ac_func;
11146 return f != $ac_func;
11151 rm -f conftest.$ac_objext conftest$ac_exeext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11153 (eval $ac_link) 2>conftest.er1
11155 grep -v '^ *+' conftest.er1 >conftest.err
11157 cat conftest.err >&5
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); } &&
11160 { ac_try='test -z "$ac_c_werror_flag"
11161 || test ! -s conftest.err'
11162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163 (eval $ac_try) 2>&5
11165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166 (exit $ac_status); }; } &&
11167 { ac_try='test -s conftest$ac_exeext'
11168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169 (eval $ac_try) 2>&5
11171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172 (exit $ac_status); }; }; then
11173 eval "$as_ac_var=yes"
11175 echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11178 eval "$as_ac_var=no"
11180 rm -f conftest.err conftest.$ac_objext \
11181 conftest$ac_exeext conftest.$ac_ext
11183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11184 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11185 if test `eval echo '${'$as_ac_var'}'` = yes; then
11186 cat >>confdefs.h <<_ACEOF
11187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11191 cat >>confdefs.h <<\_ACEOF
11192 #define HAVE_GETHOSTBYADDR_R 1
11195 # There are two different kinds of gethostbyaddr_r.
11196 # We look for the one that returns `int'.
11197 # Hopefully this check is robust enough.
11198 cat >conftest.$ac_ext <<_ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11208 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
11211 cat >>confdefs.h <<\_ACEOF
11212 #define GETHOSTBYADDR_R_RETURNS_INT 1
11226 for ac_func in gethostname
11228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11229 echo "$as_me:$LINENO: checking for $ac_func" >&5
11230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11231 if eval "test \"\${$as_ac_var+set}\" = set"; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 if test x$gcc_no_link = xyes; then
11235 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11236 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11237 { (exit 1); exit 1; }; }
11239 cat >conftest.$ac_ext <<_ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11247 #define $ac_func innocuous_$ac_func
11249 /* System header to define __stub macros and hopefully few prototypes,
11250 which can conflict with char $ac_func (); below.
11251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11252 <limits.h> exists even on freestanding compilers. */
11255 # include <limits.h>
11257 # include <assert.h>
11262 /* Override any gcc2 internal prototype to avoid an error. */
11267 /* We use char because int might match the return type of a gcc2
11268 builtin and then its argument prototype would still apply. */
11270 /* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11276 char (*f) () = $ac_func;
11285 return f != $ac_func;
11290 rm -f conftest.$ac_objext conftest$ac_exeext
11291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11292 (eval $ac_link) 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag"
11300 || test ! -s conftest.err'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; } &&
11306 { ac_try='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 eval "$as_ac_var=yes"
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 eval "$as_ac_var=no"
11319 rm -f conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11323 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11324 if test `eval echo '${'$as_ac_var'}'` = yes; then
11325 cat >>confdefs.h <<_ACEOF
11326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11330 cat >>confdefs.h <<\_ACEOF
11331 #define HAVE_GETHOSTNAME 1
11334 cat >conftest.$ac_ext <<_ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #include <unistd.h>
11343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11344 $EGREP "gethostname" >/dev/null 2>&1; then
11347 cat >>confdefs.h <<\_ACEOF
11348 #define HAVE_GETHOSTNAME_DECL 1
11359 for ac_func in usleep
11361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11362 echo "$as_me:$LINENO: checking for $ac_func" >&5
11363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11364 if eval "test \"\${$as_ac_var+set}\" = set"; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 if test x$gcc_no_link = xyes; then
11368 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11369 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11370 { (exit 1); exit 1; }; }
11372 cat >conftest.$ac_ext <<_ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11380 #define $ac_func innocuous_$ac_func
11382 /* System header to define __stub macros and hopefully few prototypes,
11383 which can conflict with char $ac_func (); below.
11384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11385 <limits.h> exists even on freestanding compilers. */
11388 # include <limits.h>
11390 # include <assert.h>
11395 /* Override any gcc2 internal prototype to avoid an error. */
11400 /* We use char because int might match the return type of a gcc2
11401 builtin and then its argument prototype would still apply. */
11403 /* The GNU C library defines this for functions which it implements
11404 to always fail with ENOSYS. Some functions are actually named
11405 something starting with __ and the normal name is an alias. */
11406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11409 char (*f) () = $ac_func;
11418 return f != $ac_func;
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11425 (eval $ac_link) 2>conftest.er1
11427 grep -v '^ *+' conftest.er1 >conftest.err
11429 cat conftest.err >&5
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
11432 { ac_try='test -z "$ac_c_werror_flag"
11433 || test ! -s conftest.err'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest$ac_exeext'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; }; then
11445 eval "$as_ac_var=yes"
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 eval "$as_ac_var=no"
11452 rm -f conftest.err conftest.$ac_objext \
11453 conftest$ac_exeext conftest.$ac_ext
11455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11457 if test `eval echo '${'$as_ac_var'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11462 cat >conftest.$ac_ext <<_ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 #include <unistd.h>
11471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11472 $EGREP "usleep" >/dev/null 2>&1; then
11475 cat >>confdefs.h <<\_ACEOF
11476 #define HAVE_USLEEP_DECL 1
11486 # Look for these functions in the thread library, but only bother
11487 # if using POSIX threads.
11488 if test "$THREADS" = posix; then
11490 LIBS="$LIBS $THREADLIBS"
11491 # Some POSIX thread systems don't have pthread_mutexattr_settype.
11495 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
11497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11498 echo "$as_me:$LINENO: checking for $ac_func" >&5
11499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11500 if eval "test \"\${$as_ac_var+set}\" = set"; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 if test x$gcc_no_link = xyes; then
11504 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11505 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11506 { (exit 1); exit 1; }; }
11508 cat >conftest.$ac_ext <<_ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11516 #define $ac_func innocuous_$ac_func
11518 /* System header to define __stub macros and hopefully few prototypes,
11519 which can conflict with char $ac_func (); below.
11520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11521 <limits.h> exists even on freestanding compilers. */
11524 # include <limits.h>
11526 # include <assert.h>
11531 /* Override any gcc2 internal prototype to avoid an error. */
11536 /* We use char because int might match the return type of a gcc2
11537 builtin and then its argument prototype would still apply. */
11539 /* The GNU C library defines this for functions which it implements
11540 to always fail with ENOSYS. Some functions are actually named
11541 something starting with __ and the normal name is an alias. */
11542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11545 char (*f) () = $ac_func;
11554 return f != $ac_func;
11559 rm -f conftest.$ac_objext conftest$ac_exeext
11560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11561 (eval $ac_link) 2>conftest.er1
11563 grep -v '^ *+' conftest.er1 >conftest.err
11565 cat conftest.err >&5
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
11568 { ac_try='test -z "$ac_c_werror_flag"
11569 || test ! -s conftest.err'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; } &&
11575 { ac_try='test -s conftest$ac_exeext'
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 eval "$as_ac_var=yes"
11583 echo "$as_me: failed program was:" >&5
11584 sed 's/^/| /' conftest.$ac_ext >&5
11586 eval "$as_ac_var=no"
11588 rm -f conftest.err conftest.$ac_objext \
11589 conftest$ac_exeext conftest.$ac_ext
11591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11593 if test `eval echo '${'$as_ac_var'}'` = yes; then
11594 cat >>confdefs.h <<_ACEOF
11595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11602 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
11603 # Solaris 7 the name librt is preferred.
11605 for ac_func in sched_yield
11607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11608 echo "$as_me:$LINENO: checking for $ac_func" >&5
11609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11610 if eval "test \"\${$as_ac_var+set}\" = set"; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
11613 if test x$gcc_no_link = xyes; then
11614 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11615 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11616 { (exit 1); exit 1; }; }
11618 cat >conftest.$ac_ext <<_ACEOF
11621 cat confdefs.h >>conftest.$ac_ext
11622 cat >>conftest.$ac_ext <<_ACEOF
11623 /* end confdefs.h. */
11624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11626 #define $ac_func innocuous_$ac_func
11628 /* System header to define __stub macros and hopefully few prototypes,
11629 which can conflict with char $ac_func (); below.
11630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11631 <limits.h> exists even on freestanding compilers. */
11634 # include <limits.h>
11636 # include <assert.h>
11641 /* Override any gcc2 internal prototype to avoid an error. */
11646 /* We use char because int might match the return type of a gcc2
11647 builtin and then its argument prototype would still apply. */
11649 /* The GNU C library defines this for functions which it implements
11650 to always fail with ENOSYS. Some functions are actually named
11651 something starting with __ and the normal name is an alias. */
11652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11655 char (*f) () = $ac_func;
11664 return f != $ac_func;
11669 rm -f conftest.$ac_objext conftest$ac_exeext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11671 (eval $ac_link) 2>conftest.er1
11673 grep -v '^ *+' conftest.er1 >conftest.err
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag"
11679 || test ! -s conftest.err'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest$ac_exeext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 eval "$as_ac_var=yes"
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 eval "$as_ac_var=no"
11698 rm -f conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11703 if test `eval echo '${'$as_ac_var'}'` = yes; then
11704 cat >>confdefs.h <<_ACEOF
11705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11710 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
11711 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
11712 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 ac_check_lib_save_LIBS=$LIBS
11717 if test x$gcc_no_link = xyes; then
11718 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11719 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11720 { (exit 1); exit 1; }; }
11722 cat >conftest.$ac_ext <<_ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11729 /* Override any gcc2 internal prototype to avoid an error. */
11733 /* We use char because int might match the return type of a gcc2
11734 builtin and then its argument prototype would still apply. */
11735 char sched_yield ();
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746 (eval $ac_link) 2>conftest.er1
11748 grep -v '^ *+' conftest.er1 >conftest.err
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try='test -s conftest$ac_exeext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_lib_rt_sched_yield=yes
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_cv_lib_rt_sched_yield=no
11773 rm -f conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11777 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
11778 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
11779 if test $ac_cv_lib_rt_sched_yield = yes; then
11781 cat >>confdefs.h <<\_ACEOF
11782 #define HAVE_SCHED_YIELD 1
11785 THREADLIBS="$THREADLIBS -lrt"
11786 THREADSPEC="$THREADSPEC -lrt"
11789 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
11790 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
11791 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 ac_check_lib_save_LIBS=$LIBS
11795 LIBS="-lposix4 $LIBS"
11796 if test x$gcc_no_link = xyes; then
11797 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11798 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11799 { (exit 1); exit 1; }; }
11801 cat >conftest.$ac_ext <<_ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11808 /* Override any gcc2 internal prototype to avoid an error. */
11812 /* We use char because int might match the return type of a gcc2
11813 builtin and then its argument prototype would still apply. */
11814 char sched_yield ();
11823 rm -f conftest.$ac_objext conftest$ac_exeext
11824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11825 (eval $ac_link) 2>conftest.er1
11827 grep -v '^ *+' conftest.er1 >conftest.err
11829 cat conftest.err >&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } &&
11832 { ac_try='test -z "$ac_c_werror_flag"
11833 || test ! -s conftest.err'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; } &&
11839 { ac_try='test -s conftest$ac_exeext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 ac_cv_lib_posix4_sched_yield=yes
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_cv_lib_posix4_sched_yield=no
11852 rm -f conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854 LIBS=$ac_check_lib_save_LIBS
11856 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11857 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11858 if test $ac_cv_lib_posix4_sched_yield = yes; then
11860 cat >>confdefs.h <<\_ACEOF
11861 #define HAVE_SCHED_YIELD 1
11864 THREADLIBS="$THREADLIBS -lposix4"
11865 THREADSPEC="$THREADSPEC -lposix4"
11875 # We can save a little space at runtime if the mutex has m_count
11876 # or __m_count. This is a nice hack for Linux.
11877 cat >conftest.$ac_ext <<_ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11883 #include <pthread.h>
11888 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11894 rm -f conftest.$ac_objext
11895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11896 (eval $ac_compile) 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } &&
11903 { ac_try='test -z "$ac_c_werror_flag"
11904 || test ! -s conftest.err'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; } &&
11910 { ac_try='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11917 cat >>confdefs.h <<\_ACEOF
11918 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11926 cat >conftest.$ac_ext <<_ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 #include <pthread.h>
11937 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11943 rm -f conftest.$ac_objext
11944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11945 (eval $ac_compile) 2>conftest.er1
11947 grep -v '^ *+' conftest.er1 >conftest.err
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
11952 { ac_try='test -z "$ac_c_werror_flag"
11953 || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest.$ac_objext'
11960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11966 cat >>confdefs.h <<\_ACEOF
11967 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11971 echo "$as_me: failed program was:" >&5
11972 sed 's/^/| /' conftest.$ac_ext >&5
11975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11980 # We require a way to get the time.
11985 for ac_func in gettimeofday time ftime
11987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11988 echo "$as_me:$LINENO: checking for $ac_func" >&5
11989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11990 if eval "test \"\${$as_ac_var+set}\" = set"; then
11991 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 if test x$gcc_no_link = xyes; then
11994 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11995 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11996 { (exit 1); exit 1; }; }
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12006 #define $ac_func innocuous_$ac_func
12008 /* System header to define __stub macros and hopefully few prototypes,
12009 which can conflict with char $ac_func (); below.
12010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12011 <limits.h> exists even on freestanding compilers. */
12014 # include <limits.h>
12016 # include <assert.h>
12021 /* Override any gcc2 internal prototype to avoid an error. */
12026 /* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
12029 /* The GNU C library defines this for functions which it implements
12030 to always fail with ENOSYS. Some functions are actually named
12031 something starting with __ and the normal name is an alias. */
12032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12035 char (*f) () = $ac_func;
12044 return f != $ac_func;
12049 rm -f conftest.$ac_objext conftest$ac_exeext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12051 (eval $ac_link) 2>conftest.er1
12053 grep -v '^ *+' conftest.er1 >conftest.err
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -z "$ac_c_werror_flag"
12059 || test ! -s conftest.err'
12060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12061 (eval $ac_try) 2>&5
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); }; } &&
12065 { ac_try='test -s conftest$ac_exeext'
12066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12067 (eval $ac_try) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); }; }; then
12071 eval "$as_ac_var=yes"
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 eval "$as_ac_var=no"
12078 rm -f conftest.err conftest.$ac_objext \
12079 conftest$ac_exeext conftest.$ac_ext
12081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12083 if test `eval echo '${'$as_ac_var'}'` = yes; then
12084 cat >>confdefs.h <<_ACEOF
12085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12091 if test "$time_found" = no; then
12092 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
12093 echo "$as_me: error: no function found to get the time" >&2;}
12094 { (exit 1); exit 1; }; }
12098 for ac_func in memmove
12100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12101 echo "$as_me:$LINENO: checking for $ac_func" >&5
12102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12103 if eval "test \"\${$as_ac_var+set}\" = set"; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 if test x$gcc_no_link = xyes; then
12107 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12108 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12109 { (exit 1); exit 1; }; }
12111 cat >conftest.$ac_ext <<_ACEOF
12114 cat confdefs.h >>conftest.$ac_ext
12115 cat >>conftest.$ac_ext <<_ACEOF
12116 /* end confdefs.h. */
12117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12119 #define $ac_func innocuous_$ac_func
12121 /* System header to define __stub macros and hopefully few prototypes,
12122 which can conflict with char $ac_func (); below.
12123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12124 <limits.h> exists even on freestanding compilers. */
12127 # include <limits.h>
12129 # include <assert.h>
12134 /* Override any gcc2 internal prototype to avoid an error. */
12139 /* We use char because int might match the return type of a gcc2
12140 builtin and then its argument prototype would still apply. */
12142 /* The GNU C library defines this for functions which it implements
12143 to always fail with ENOSYS. Some functions are actually named
12144 something starting with __ and the normal name is an alias. */
12145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12148 char (*f) () = $ac_func;
12157 return f != $ac_func;
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164 (eval $ac_link) 2>conftest.er1
12166 grep -v '^ *+' conftest.er1 >conftest.err
12168 cat conftest.err >&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); } &&
12171 { ac_try='test -z "$ac_c_werror_flag"
12172 || test ! -s conftest.err'
12173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12174 (eval $ac_try) 2>&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177 (exit $ac_status); }; } &&
12178 { ac_try='test -s conftest$ac_exeext'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; }; then
12184 eval "$as_ac_var=yes"
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12189 eval "$as_ac_var=no"
12191 rm -f conftest.err conftest.$ac_objext \
12192 conftest$ac_exeext conftest.$ac_ext
12194 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12195 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12196 if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12205 # We require memcpy.
12208 for ac_func in memcpy
12210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12211 echo "$as_me:$LINENO: checking for $ac_func" >&5
12212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12213 if eval "test \"\${$as_ac_var+set}\" = set"; then
12214 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 if test x$gcc_no_link = xyes; then
12217 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12218 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12219 { (exit 1); exit 1; }; }
12221 cat >conftest.$ac_ext <<_ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h. */
12227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12229 #define $ac_func innocuous_$ac_func
12231 /* System header to define __stub macros and hopefully few prototypes,
12232 which can conflict with char $ac_func (); below.
12233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12234 <limits.h> exists even on freestanding compilers. */
12237 # include <limits.h>
12239 # include <assert.h>
12244 /* Override any gcc2 internal prototype to avoid an error. */
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12252 /* The GNU C library defines this for functions which it implements
12253 to always fail with ENOSYS. Some functions are actually named
12254 something starting with __ and the normal name is an alias. */
12255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12258 char (*f) () = $ac_func;
12267 return f != $ac_func;
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274 (eval $ac_link) 2>conftest.er1
12276 grep -v '^ *+' conftest.er1 >conftest.err
12278 cat conftest.err >&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); } &&
12281 { ac_try='test -z "$ac_c_werror_flag"
12282 || test ! -s conftest.err'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; } &&
12288 { ac_try='test -s conftest$ac_exeext'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; }; then
12294 eval "$as_ac_var=yes"
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 eval "$as_ac_var=no"
12301 rm -f conftest.err conftest.$ac_objext \
12302 conftest$ac_exeext conftest.$ac_ext
12304 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12305 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12306 if test `eval echo '${'$as_ac_var'}'` = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12314 if test "$memcpy_found" = no; then
12315 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
12316 echo "$as_me: error: memcpy is required" >&2;}
12317 { (exit 1); exit 1; }; }
12320 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12321 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12322 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 ac_check_lib_save_LIBS=$LIBS
12327 if test x$gcc_no_link = xyes; then
12328 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12329 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12330 { (exit 1); exit 1; }; }
12332 cat >conftest.$ac_ext <<_ACEOF
12335 cat confdefs.h >>conftest.$ac_ext
12336 cat >>conftest.$ac_ext <<_ACEOF
12337 /* end confdefs.h. */
12339 /* Override any gcc2 internal prototype to avoid an error. */
12343 /* We use char because int might match the return type of a gcc2
12344 builtin and then its argument prototype would still apply. */
12354 rm -f conftest.$ac_objext conftest$ac_exeext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12356 (eval $ac_link) 2>conftest.er1
12358 grep -v '^ *+' conftest.er1 >conftest.err
12360 cat conftest.err >&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); } &&
12363 { ac_try='test -z "$ac_c_werror_flag"
12364 || test ! -s conftest.err'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; } &&
12370 { ac_try='test -s conftest$ac_exeext'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; }; then
12376 ac_cv_lib_dl_dlopen=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 ac_cv_lib_dl_dlopen=no
12383 rm -f conftest.err conftest.$ac_objext \
12384 conftest$ac_exeext conftest.$ac_ext
12385 LIBS=$ac_check_lib_save_LIBS
12387 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12388 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12389 if test $ac_cv_lib_dl_dlopen = yes; then
12392 cat >>confdefs.h <<\_ACEOF
12393 #define HAVE_DLOPEN 1
12399 # Some library-finding code we stole from Tcl.
12400 #--------------------------------------------------------------------
12401 # Check for the existence of the -lsocket and -lnsl libraries.
12402 # The order here is important, so that they end up in the right
12403 # order in the command line generated by make. Here are some
12404 # special considerations:
12405 # 1. Use "connect" and "accept" to check for -lsocket, and
12406 # "gethostbyname" to check for -lnsl.
12407 # 2. Use each function name only once: can't redo a check because
12408 # autoconf caches the results of the last check and won't redo it.
12409 # 3. Use -lnsl and -lsocket only if they supply procedures that
12410 # aren't already present in the normal libraries. This is because
12411 # IRIX 5.2 has libraries, but they aren't needed and they're
12412 # bogus: they goof up name resolution if used.
12413 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
12414 # To get around this problem, check for both libraries together
12415 # if -lsocket doesn't work by itself.
12416 #--------------------------------------------------------------------
12418 echo "$as_me:$LINENO: checking for socket libraries" >&5
12419 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
12420 if test "${gcj_cv_lib_sockets+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 gcj_cv_lib_sockets=
12425 unset ac_cv_func_connect
12426 echo "$as_me:$LINENO: checking for connect" >&5
12427 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12428 if test "${ac_cv_func_connect+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 if test x$gcc_no_link = xyes; then
12432 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12433 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12434 { (exit 1); exit 1; }; }
12436 cat >conftest.$ac_ext <<_ACEOF
12439 cat confdefs.h >>conftest.$ac_ext
12440 cat >>conftest.$ac_ext <<_ACEOF
12441 /* end confdefs.h. */
12442 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12444 #define connect innocuous_connect
12446 /* System header to define __stub macros and hopefully few prototypes,
12447 which can conflict with char connect (); below.
12448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12449 <limits.h> exists even on freestanding compilers. */
12452 # include <limits.h>
12454 # include <assert.h>
12459 /* Override any gcc2 internal prototype to avoid an error. */
12464 /* We use char because int might match the return type of a gcc2
12465 builtin and then its argument prototype would still apply. */
12467 /* The GNU C library defines this for functions which it implements
12468 to always fail with ENOSYS. Some functions are actually named
12469 something starting with __ and the normal name is an alias. */
12470 #if defined (__stub_connect) || defined (__stub___connect)
12473 char (*f) () = connect;
12482 return f != connect;
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12489 (eval $ac_link) 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } &&
12496 { ac_try='test -z "$ac_c_werror_flag"
12497 || test ! -s conftest.err'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; } &&
12503 { ac_try='test -s conftest$ac_exeext'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12509 ac_cv_func_connect=yes
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12514 ac_cv_func_connect=no
12516 rm -f conftest.err conftest.$ac_objext \
12517 conftest$ac_exeext conftest.$ac_ext
12519 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12520 echo "${ECHO_T}$ac_cv_func_connect" >&6
12521 if test $ac_cv_func_connect = yes; then
12527 if test "$gcj_checkSocket" = 1; then
12528 unset ac_cv_func_connect
12529 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
12530 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
12531 if test "${ac_cv_lib_socket_main+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12534 ac_check_lib_save_LIBS=$LIBS
12535 LIBS="-lsocket $LIBS"
12536 if test x$gcc_no_link = xyes; then
12537 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12538 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12539 { (exit 1); exit 1; }; }
12541 cat >conftest.$ac_ext <<_ACEOF
12544 cat confdefs.h >>conftest.$ac_ext
12545 cat >>conftest.$ac_ext <<_ACEOF
12546 /* end confdefs.h. */
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12559 (eval $ac_link) 2>conftest.er1
12561 grep -v '^ *+' conftest.er1 >conftest.err
12563 cat conftest.err >&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); } &&
12566 { ac_try='test -z "$ac_c_werror_flag"
12567 || test ! -s conftest.err'
12568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12569 (eval $ac_try) 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try='test -s conftest$ac_exeext'
12574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12575 (eval $ac_try) 2>&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 ac_cv_lib_socket_main=yes
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12584 ac_cv_lib_socket_main=no
12586 rm -f conftest.err conftest.$ac_objext \
12587 conftest$ac_exeext conftest.$ac_ext
12588 LIBS=$ac_check_lib_save_LIBS
12590 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
12591 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
12592 if test $ac_cv_lib_socket_main = yes; then
12593 gcj_cv_lib_sockets="-lsocket"
12599 if test "$gcj_checkBoth" = 1; then
12601 LIBS="$LIBS -lsocket -lnsl"
12602 unset ac_cv_func_accept
12603 echo "$as_me:$LINENO: checking for accept" >&5
12604 echo $ECHO_N "checking for accept... $ECHO_C" >&6
12605 if test "${ac_cv_func_accept+set}" = set; then
12606 echo $ECHO_N "(cached) $ECHO_C" >&6
12608 if test x$gcc_no_link = xyes; then
12609 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12610 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12611 { (exit 1); exit 1; }; }
12613 cat >conftest.$ac_ext <<_ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h. */
12619 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
12620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12621 #define accept innocuous_accept
12623 /* System header to define __stub macros and hopefully few prototypes,
12624 which can conflict with char accept (); below.
12625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12626 <limits.h> exists even on freestanding compilers. */
12629 # include <limits.h>
12631 # include <assert.h>
12636 /* Override any gcc2 internal prototype to avoid an error. */
12641 /* We use char because int might match the return type of a gcc2
12642 builtin and then its argument prototype would still apply. */
12644 /* The GNU C library defines this for functions which it implements
12645 to always fail with ENOSYS. Some functions are actually named
12646 something starting with __ and the normal name is an alias. */
12647 #if defined (__stub_accept) || defined (__stub___accept)
12650 char (*f) () = accept;
12659 return f != accept;
12664 rm -f conftest.$ac_objext conftest$ac_exeext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12666 (eval $ac_link) 2>conftest.er1
12668 grep -v '^ *+' conftest.er1 >conftest.err
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
12673 { ac_try='test -z "$ac_c_werror_flag"
12674 || test ! -s conftest.err'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12686 ac_cv_func_accept=yes
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 ac_cv_func_accept=no
12693 rm -f conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12696 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
12697 echo "${ECHO_T}$ac_cv_func_accept" >&6
12698 if test $ac_cv_func_accept = yes; then
12700 gcj_cv_lib_sockets="-lsocket -lnsl"
12703 unset ac_cv_func_accept
12706 unset ac_cv_func_gethostbyname
12708 LIBS="$LIBS $gcj_cv_lib_sockets"
12709 echo "$as_me:$LINENO: checking for gethostbyname" >&5
12710 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12711 if test "${ac_cv_func_gethostbyname+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12714 if test x$gcc_no_link = xyes; then
12715 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12716 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12717 { (exit 1); exit 1; }; }
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12727 #define gethostbyname innocuous_gethostbyname
12729 /* System header to define __stub macros and hopefully few prototypes,
12730 which can conflict with char gethostbyname (); below.
12731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12732 <limits.h> exists even on freestanding compilers. */
12735 # include <limits.h>
12737 # include <assert.h>
12740 #undef gethostbyname
12742 /* Override any gcc2 internal prototype to avoid an error. */
12747 /* We use char because int might match the return type of a gcc2
12748 builtin and then its argument prototype would still apply. */
12749 char gethostbyname ();
12750 /* The GNU C library defines this for functions which it implements
12751 to always fail with ENOSYS. Some functions are actually named
12752 something starting with __ and the normal name is an alias. */
12753 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12756 char (*f) () = gethostbyname;
12765 return f != gethostbyname;
12770 rm -f conftest.$ac_objext conftest$ac_exeext
12771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12772 (eval $ac_link) 2>conftest.er1
12774 grep -v '^ *+' conftest.er1 >conftest.err
12776 cat conftest.err >&5
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); } &&
12779 { ac_try='test -z "$ac_c_werror_flag"
12780 || test ! -s conftest.err'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; } &&
12786 { ac_try='test -s conftest$ac_exeext'
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; }; then
12792 ac_cv_func_gethostbyname=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 ac_cv_func_gethostbyname=no
12799 rm -f conftest.err conftest.$ac_objext \
12800 conftest$ac_exeext conftest.$ac_ext
12802 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12803 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12804 if test $ac_cv_func_gethostbyname = yes; then
12807 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
12808 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
12809 if test "${ac_cv_lib_nsl_main+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 ac_check_lib_save_LIBS=$LIBS
12814 if test x$gcc_no_link = xyes; then
12815 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12817 { (exit 1); exit 1; }; }
12819 cat >conftest.$ac_ext <<_ACEOF
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12835 rm -f conftest.$ac_objext conftest$ac_exeext
12836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12837 (eval $ac_link) 2>conftest.er1
12839 grep -v '^ *+' conftest.er1 >conftest.err
12841 cat conftest.err >&5
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); } &&
12844 { ac_try='test -z "$ac_c_werror_flag"
12845 || test ! -s conftest.err'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; } &&
12851 { ac_try='test -s conftest$ac_exeext'
12852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12853 (eval $ac_try) 2>&5
12855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12856 (exit $ac_status); }; }; then
12857 ac_cv_lib_nsl_main=yes
12859 echo "$as_me: failed program was:" >&5
12860 sed 's/^/| /' conftest.$ac_ext >&5
12862 ac_cv_lib_nsl_main=no
12864 rm -f conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12866 LIBS=$ac_check_lib_save_LIBS
12868 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12869 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12870 if test $ac_cv_lib_nsl_main = yes; then
12871 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12876 unset ac_cv_func_gethostbyname
12880 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12881 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12882 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12884 if test "$with_system_zlib" = yes; then
12885 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12886 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12887 if test "${ac_cv_lib_z_deflate+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 ac_check_lib_save_LIBS=$LIBS
12892 if test x$gcc_no_link = xyes; then
12893 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12895 { (exit 1); exit 1; }; }
12897 cat >conftest.$ac_ext <<_ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h. */
12904 /* Override any gcc2 internal prototype to avoid an error. */
12908 /* We use char because int might match the return type of a gcc2
12909 builtin and then its argument prototype would still apply. */
12919 rm -f conftest.$ac_objext conftest$ac_exeext
12920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12921 (eval $ac_link) 2>conftest.er1
12923 grep -v '^ *+' conftest.er1 >conftest.err
12925 cat conftest.err >&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } &&
12928 { ac_try='test -z "$ac_c_werror_flag"
12929 || test ! -s conftest.err'
12930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12931 (eval $ac_try) 2>&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); }; } &&
12935 { ac_try='test -s conftest$ac_exeext'
12936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12937 (eval $ac_try) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); }; }; then
12941 ac_cv_lib_z_deflate=yes
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12946 ac_cv_lib_z_deflate=no
12948 rm -f conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12952 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12953 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12954 if test $ac_cv_lib_z_deflate = yes; then
12962 # Test for Gtk stuff, if asked for.
12963 if test "$use_gtk_awt" = yes; then
12967 if test -z "$PKG_CONFIG"; then
12968 # Extract the first word of "pkg-config", so it can be a program name with args.
12969 set dummy pkg-config; ac_word=$2
12970 echo "$as_me:$LINENO: checking for $ac_word" >&5
12971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12972 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 case $PKG_CONFIG in
12977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
12986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12987 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12994 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12998 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13000 if test -n "$PKG_CONFIG"; then
13001 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13002 echo "${ECHO_T}$PKG_CONFIG" >&6
13004 echo "$as_me:$LINENO: result: no" >&5
13005 echo "${ECHO_T}no" >&6
13010 if test "$PKG_CONFIG" = "no" ; then
13011 echo "*** The pkg-config script could not be found. Make sure it is"
13012 echo "*** in your path, or set the PKG_CONFIG environment variable"
13013 echo "*** to the full path to pkg-config."
13014 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13016 PKG_CONFIG_MIN_VERSION=0.9.0
13017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13018 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
13019 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
13021 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
13022 echo "$as_me:$LINENO: result: yes" >&5
13023 echo "${ECHO_T}yes" >&6
13026 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
13027 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
13028 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
13029 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
13030 echo "${ECHO_T}$GTK_CFLAGS" >&6
13032 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
13033 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
13034 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
13035 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
13036 echo "${ECHO_T}$GTK_LIBS" >&6
13040 ## If we have a custom action on failure, don't print errors, but
13041 ## do set a variable so people can do so.
13042 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
13043 echo $GTK_PKG_ERRORS
13049 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13050 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13054 if test $succeeded = yes; then
13057 { { 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
13058 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;}
13059 { (exit 1); exit 1; }; }
13068 if test -z "$PKG_CONFIG"; then
13069 # Extract the first word of "pkg-config", so it can be a program name with args.
13070 set dummy pkg-config; ac_word=$2
13071 echo "$as_me:$LINENO: checking for $ac_word" >&5
13072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13073 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 case $PKG_CONFIG in
13078 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13082 for as_dir in $PATH
13085 test -z "$as_dir" && as_dir=.
13086 for ac_exec_ext in '' $ac_executable_extensions; do
13087 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13088 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13095 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13099 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13101 if test -n "$PKG_CONFIG"; then
13102 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13103 echo "${ECHO_T}$PKG_CONFIG" >&6
13105 echo "$as_me:$LINENO: result: no" >&5
13106 echo "${ECHO_T}no" >&6
13111 if test "$PKG_CONFIG" = "no" ; then
13112 echo "*** The pkg-config script could not be found. Make sure it is"
13113 echo "*** in your path, or set the PKG_CONFIG environment variable"
13114 echo "*** to the full path to pkg-config."
13115 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13117 PKG_CONFIG_MIN_VERSION=0.9.0
13118 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13119 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
13120 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
13122 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
13123 echo "$as_me:$LINENO: result: yes" >&5
13124 echo "${ECHO_T}yes" >&6
13127 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
13128 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
13129 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13130 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
13131 echo "${ECHO_T}$GLIB_CFLAGS" >&6
13133 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
13134 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
13135 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13136 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
13137 echo "${ECHO_T}$GLIB_LIBS" >&6
13141 ## If we have a custom action on failure, don't print errors, but
13142 ## do set a variable so people can do so.
13143 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
13144 echo $GLIB_PKG_ERRORS
13150 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13151 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13155 if test $succeeded = yes; then
13158 { { 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
13159 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;}
13160 { (exit 1); exit 1; }; }
13169 if test -z "$PKG_CONFIG"; then
13170 # Extract the first word of "pkg-config", so it can be a program name with args.
13171 set dummy pkg-config; ac_word=$2
13172 echo "$as_me:$LINENO: checking for $ac_word" >&5
13173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13174 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 case $PKG_CONFIG in
13179 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13183 for as_dir in $PATH
13186 test -z "$as_dir" && as_dir=.
13187 for ac_exec_ext in '' $ac_executable_extensions; do
13188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13189 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13200 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13202 if test -n "$PKG_CONFIG"; then
13203 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13204 echo "${ECHO_T}$PKG_CONFIG" >&6
13206 echo "$as_me:$LINENO: result: no" >&5
13207 echo "${ECHO_T}no" >&6
13212 if test "$PKG_CONFIG" = "no" ; then
13213 echo "*** The pkg-config script could not be found. Make sure it is"
13214 echo "*** in your path, or set the PKG_CONFIG environment variable"
13215 echo "*** to the full path to pkg-config."
13216 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13218 PKG_CONFIG_MIN_VERSION=0.9.0
13219 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13220 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
13221 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
13223 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
13224 echo "$as_me:$LINENO: result: yes" >&5
13225 echo "${ECHO_T}yes" >&6
13228 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
13229 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
13230 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
13231 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
13232 echo "${ECHO_T}$LIBART_CFLAGS" >&6
13234 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
13235 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
13236 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
13237 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
13238 echo "${ECHO_T}$LIBART_LIBS" >&6
13242 ## If we have a custom action on failure, don't print errors, but
13243 ## do set a variable so people can do so.
13244 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
13245 echo $LIBART_PKG_ERRORS
13251 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13252 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13256 if test $succeeded = yes; then
13259 { { 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
13260 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;}
13261 { (exit 1); exit 1; }; }
13267 # We require the XTest Extension to support java.awt.Robot.
13268 echo "$as_me:$LINENO: checking for XTestQueryExtension in -lXtst" >&5
13269 echo $ECHO_N "checking for XTestQueryExtension in -lXtst... $ECHO_C" >&6
13270 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13273 ac_check_lib_save_LIBS=$LIBS
13274 LIBS="-lXtst ${X_LIBS} $LIBS"
13275 if test x$gcc_no_link = xyes; then
13276 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13277 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13278 { (exit 1); exit 1; }; }
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13287 /* Override any gcc2 internal prototype to avoid an error. */
13291 /* We use char because int might match the return type of a gcc2
13292 builtin and then its argument prototype would still apply. */
13293 char XTestQueryExtension ();
13297 XTestQueryExtension ();
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13304 (eval $ac_link) 2>conftest.er1
13306 grep -v '^ *+' conftest.er1 >conftest.err
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } &&
13311 { ac_try='test -z "$ac_c_werror_flag"
13312 || test ! -s conftest.err'
13313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13314 (eval $ac_try) 2>&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); }; } &&
13318 { ac_try='test -s conftest$ac_exeext'
13319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13320 (eval $ac_try) 2>&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); }; }; then
13324 ac_cv_lib_Xtst_XTestQueryExtension=yes
13326 echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13329 ac_cv_lib_Xtst_XTestQueryExtension=no
13331 rm -f conftest.err conftest.$ac_objext \
13332 conftest$ac_exeext conftest.$ac_ext
13333 LIBS=$ac_check_lib_save_LIBS
13335 echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
13336 echo "${ECHO_T}$ac_cv_lib_Xtst_XTestQueryExtension" >&6
13337 if test $ac_cv_lib_Xtst_XTestQueryExtension = yes; then
13340 { { echo "$as_me:$LINENO: error: libXtst not found, required by java.awt.Robot" >&5
13341 echo "$as_me: error: libXtst not found, required by java.awt.Robot" >&2;}
13342 { (exit 1); exit 1; }; }
13347 # On Solaris, and maybe other architectures, the Boehm collector
13349 if test "$GC" = boehm; then
13350 echo "$as_me:$LINENO: checking for main in -ldl" >&5
13351 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
13352 if test "${ac_cv_lib_dl_main+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 ac_check_lib_save_LIBS=$LIBS
13357 if test x$gcc_no_link = xyes; then
13358 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13359 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13360 { (exit 1); exit 1; }; }
13362 cat >conftest.$ac_ext <<_ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13378 rm -f conftest.$ac_objext conftest$ac_exeext
13379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13380 (eval $ac_link) 2>conftest.er1
13382 grep -v '^ *+' conftest.er1 >conftest.err
13384 cat conftest.err >&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); } &&
13387 { ac_try='test -z "$ac_c_werror_flag"
13388 || test ! -s conftest.err'
13389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13390 (eval $ac_try) 2>&5
13392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13393 (exit $ac_status); }; } &&
13394 { ac_try='test -s conftest$ac_exeext'
13395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13396 (eval $ac_try) 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_lib_dl_main=yes
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ac_cv_lib_dl_main=no
13407 rm -f conftest.err conftest.$ac_objext \
13408 conftest$ac_exeext conftest.$ac_ext
13409 LIBS=$ac_check_lib_save_LIBS
13411 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
13412 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
13413 if test $ac_cv_lib_dl_main = yes; then
13414 SYSTEMSPEC="$SYSTEMSPEC -ldl"
13421 if test "$supply_backtrace" = yes; then
13422 SUPPLY_BACKTRACE_TRUE=
13423 SUPPLY_BACKTRACE_FALSE='#'
13425 SUPPLY_BACKTRACE_TRUE='#'
13426 SUPPLY_BACKTRACE_FALSE=
13430 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
13432 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
13433 *) CLASSPATH_SEPARATOR=':' ;;
13437 # We must search the source tree for java.lang, since we still don't
13438 # have libgcj.jar nor java/lang/*.class
13439 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
13440 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
13442 # Since some classes depend on this one, we need its source available
13443 # before we can do any GCJ compilation test :-(
13444 if test ! -f gnu/classpath/Configuration.java; then
13445 test -d gnu || mkdir gnu
13446 test -d gnu/classpath || mkdir gnu/classpath
13447 # Note that it is not crucial that all the values here be correct.
13448 sed -e "s,@prefix@,$prefix," \
13449 -e "s,@VERSION@,$VERSION," \
13450 -e "s,@LIBDEBUG@,false," \
13451 -e "s,@INIT_LOAD_LIBRARY@,false," \
13452 -e "s,@@,$LIBGCJDEBUG," \
13453 -e "s,@default_toolkit@,$TOOLKIT," \
13454 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
13455 -e "s,@GTK_CAIRO_ENABLED@,false," \
13456 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
13457 > gnu/classpath/Configuration.java
13458 # We do not want to redirect the output of the grep below to /dev/null,
13459 # but we add /dev/null to the input list so that grep will print the
13460 # filename of Configuration.java in case it finds any matches.
13461 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
13462 { { echo "$as_me:$LINENO: error: configure.ac is missing the substitutions above" >&5
13463 echo "$as_me: error: configure.ac is missing the substitutions above" >&2;}
13464 { (exit 1); exit 1; }; }
13468 if test -n "$ac_tool_prefix"; then
13469 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
13470 set dummy ${ac_tool_prefix}gcj; ac_word=$2
13471 echo "$as_me:$LINENO: checking for $ac_word" >&5
13472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13473 if test "${ac_cv_prog_GCJ+set}" = set; then
13474 echo $ECHO_N "(cached) $ECHO_C" >&6
13476 if test -n "$GCJ"; then
13477 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
13479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13480 for as_dir in $PATH
13483 test -z "$as_dir" && as_dir=.
13484 for ac_exec_ext in '' $ac_executable_extensions; do
13485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13486 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
13487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13495 GCJ=$ac_cv_prog_GCJ
13496 if test -n "$GCJ"; then
13497 echo "$as_me:$LINENO: result: $GCJ" >&5
13498 echo "${ECHO_T}$GCJ" >&6
13500 echo "$as_me:$LINENO: result: no" >&5
13501 echo "${ECHO_T}no" >&6
13505 if test -z "$ac_cv_prog_GCJ"; then
13507 # Extract the first word of "gcj", so it can be a program name with args.
13508 set dummy gcj; ac_word=$2
13509 echo "$as_me:$LINENO: checking for $ac_word" >&5
13510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13511 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
13512 echo $ECHO_N "(cached) $ECHO_C" >&6
13514 if test -n "$ac_ct_GCJ"; then
13515 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
13517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13518 for as_dir in $PATH
13521 test -z "$as_dir" && as_dir=.
13522 for ac_exec_ext in '' $ac_executable_extensions; do
13523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13524 ac_cv_prog_ac_ct_GCJ="gcj"
13525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13531 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
13534 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
13535 if test -n "$ac_ct_GCJ"; then
13536 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
13537 echo "${ECHO_T}$ac_ct_GCJ" >&6
13539 echo "$as_me:$LINENO: result: no" >&5
13540 echo "${ECHO_T}no" >&6
13545 GCJ="$ac_cv_prog_GCJ"
13548 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
13554 rm -f gnu/classpath/Configuration.java
13556 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
13558 echo "$as_me:$LINENO: checking for void *" >&5
13559 echo $ECHO_N "checking for void *... $ECHO_C" >&6
13560 if test "${ac_cv_type_void_p+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 cat >conftest.$ac_ext <<_ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 $ac_includes_default
13575 if (sizeof (void *))
13581 rm -f conftest.$ac_objext
13582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13583 (eval $ac_compile) 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } &&
13590 { ac_try='test -z "$ac_c_werror_flag"
13591 || test ! -s conftest.err'
13592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; } &&
13597 { ac_try='test -s conftest.$ac_objext'
13598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13599 (eval $ac_try) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; }; then
13603 ac_cv_type_void_p=yes
13605 echo "$as_me: failed program was:" >&5
13606 sed 's/^/| /' conftest.$ac_ext >&5
13608 ac_cv_type_void_p=no
13610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13612 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
13613 echo "${ECHO_T}$ac_cv_type_void_p" >&6
13615 echo "$as_me:$LINENO: checking size of void *" >&5
13616 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
13617 if test "${ac_cv_sizeof_void_p+set}" = set; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13620 if test "$ac_cv_type_void_p" = yes; then
13621 # The cast to unsigned long works around a bug in the HP C Compiler
13622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13624 # This bug is HP SR number 8606223364.
13625 if test "$cross_compiling" = yes; then
13626 # Depending upon the size, compute the lo and hi bounds.
13627 cat >conftest.$ac_ext <<_ACEOF
13630 cat confdefs.h >>conftest.$ac_ext
13631 cat >>conftest.$ac_ext <<_ACEOF
13632 /* end confdefs.h. */
13633 $ac_includes_default
13637 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13668 cat >conftest.$ac_ext <<_ACEOF
13671 cat confdefs.h >>conftest.$ac_ext
13672 cat >>conftest.$ac_ext <<_ACEOF
13673 /* end confdefs.h. */
13674 $ac_includes_default
13678 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13685 rm -f conftest.$ac_objext
13686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13687 (eval $ac_compile) 2>conftest.er1
13689 grep -v '^ *+' conftest.er1 >conftest.err
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } &&
13694 { ac_try='test -z "$ac_c_werror_flag"
13695 || test ! -s conftest.err'
13696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; } &&
13701 { ac_try='test -s conftest.$ac_objext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_hi=$ac_mid; break
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_lo=`expr $ac_mid + 1`
13713 if test $ac_lo -le $ac_mid; then
13717 ac_mid=`expr 2 '*' $ac_mid + 1`
13719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13725 cat >conftest.$ac_ext <<_ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h. */
13731 $ac_includes_default
13735 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
13742 rm -f conftest.$ac_objext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13744 (eval $ac_compile) 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_c_werror_flag"
13752 || test ! -s conftest.err'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest.$ac_objext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13766 cat >conftest.$ac_ext <<_ACEOF
13769 cat confdefs.h >>conftest.$ac_ext
13770 cat >>conftest.$ac_ext <<_ACEOF
13771 /* end confdefs.h. */
13772 $ac_includes_default
13776 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
13783 rm -f conftest.$ac_objext
13784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13785 (eval $ac_compile) 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
13792 { ac_try='test -z "$ac_c_werror_flag"
13793 || test ! -s conftest.err'
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; } &&
13799 { ac_try='test -s conftest.$ac_objext'
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 ac_lo=$ac_mid; break
13807 echo "$as_me: failed program was:" >&5
13808 sed 's/^/| /' conftest.$ac_ext >&5
13810 ac_hi=`expr '(' $ac_mid ')' - 1`
13811 if test $ac_mid -le $ac_hi; then
13815 ac_mid=`expr 2 '*' $ac_mid`
13817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13828 # Binary search between lo and hi bounds.
13829 while test "x$ac_lo" != "x$ac_hi"; do
13830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13831 cat >conftest.$ac_ext <<_ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 $ac_includes_default
13841 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
13848 rm -f conftest.$ac_objext
13849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13850 (eval $ac_compile) 2>conftest.er1
13852 grep -v '^ *+' conftest.er1 >conftest.err
13854 cat conftest.err >&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); } &&
13857 { ac_try='test -z "$ac_c_werror_flag"
13858 || test ! -s conftest.err'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; } &&
13864 { ac_try='test -s conftest.$ac_objext'
13865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13866 (eval $ac_try) 2>&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); }; }; then
13872 echo "$as_me: failed program was:" >&5
13873 sed 's/^/| /' conftest.$ac_ext >&5
13875 ac_lo=`expr '(' $ac_mid ')' + 1`
13877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13880 ?*) ac_cv_sizeof_void_p=$ac_lo;;
13881 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13882 See \`config.log' for more details." >&5
13883 echo "$as_me: error: cannot compute sizeof (void *), 77
13884 See \`config.log' for more details." >&2;}
13885 { (exit 1); exit 1; }; } ;;
13888 if test "$cross_compiling" = yes; then
13889 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13890 See \`config.log' for more details." >&5
13891 echo "$as_me: error: cannot run test program while cross compiling
13892 See \`config.log' for more details." >&2;}
13893 { (exit 1); exit 1; }; }
13895 cat >conftest.$ac_ext <<_ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h. */
13901 $ac_includes_default
13902 long longval () { return (long) (sizeof (void *)); }
13903 unsigned long ulongval () { return (long) (sizeof (void *)); }
13905 #include <stdlib.h>
13910 FILE *f = fopen ("conftest.val", "w");
13913 if (((long) (sizeof (void *))) < 0)
13915 long i = longval ();
13916 if (i != ((long) (sizeof (void *))))
13918 fprintf (f, "%ld\n", i);
13922 unsigned long i = ulongval ();
13923 if (i != ((long) (sizeof (void *))))
13925 fprintf (f, "%lu\n", i);
13927 exit (ferror (f) || fclose (f) != 0);
13933 rm -f conftest$ac_exeext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935 (eval $ac_link) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13940 (eval $ac_try) 2>&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); }; }; then
13944 ac_cv_sizeof_void_p=`cat conftest.val`
13946 echo "$as_me: program exited with status $ac_status" >&5
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ( exit $ac_status )
13951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
13952 See \`config.log' for more details." >&5
13953 echo "$as_me: error: cannot compute sizeof (void *), 77
13954 See \`config.log' for more details." >&2;}
13955 { (exit 1); exit 1; }; }
13957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13962 ac_cv_sizeof_void_p=0
13965 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
13966 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
13967 cat >>confdefs.h <<_ACEOF
13968 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
13973 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13974 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13975 if test "${ac_cv_c_bigendian+set}" = set; then
13976 echo $ECHO_N "(cached) $ECHO_C" >&6
13978 # See if sys/param.h defines the BYTE_ORDER macro.
13979 cat >conftest.$ac_ext <<_ACEOF
13982 cat confdefs.h >>conftest.$ac_ext
13983 cat >>conftest.$ac_ext <<_ACEOF
13984 /* end confdefs.h. */
13985 #include <sys/types.h>
13986 #include <sys/param.h>
13991 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13992 bogus endian macros
13999 rm -f conftest.$ac_objext
14000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14001 (eval $ac_compile) 2>conftest.er1
14003 grep -v '^ *+' conftest.er1 >conftest.err
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } &&
14008 { ac_try='test -z "$ac_c_werror_flag"
14009 || test ! -s conftest.err'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; } &&
14015 { ac_try='test -s conftest.$ac_objext'
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; }; then
14021 # It does; now see whether it defined to BIG_ENDIAN or not.
14022 cat >conftest.$ac_ext <<_ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 #include <sys/types.h>
14029 #include <sys/param.h>
14034 #if BYTE_ORDER != BIG_ENDIAN
14042 rm -f conftest.$ac_objext
14043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14044 (eval $ac_compile) 2>conftest.er1
14046 grep -v '^ *+' conftest.er1 >conftest.err
14048 cat conftest.err >&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -z "$ac_c_werror_flag"
14052 || test ! -s conftest.err'
14053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14054 (eval $ac_try) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); }; } &&
14058 { ac_try='test -s conftest.$ac_objext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_cv_c_bigendian=yes
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_cv_c_bigendian=no
14071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 # It does not; compile a test program.
14077 if test "$cross_compiling" = yes; then
14078 # try to guess the endianness by grepping values into an object file
14079 ac_cv_c_bigendian=unknown
14080 cat >conftest.$ac_ext <<_ACEOF
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14086 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14087 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14088 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14089 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14090 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14091 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14095 _ascii (); _ebcdic ();
14100 rm -f conftest.$ac_objext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14102 (eval $ac_compile) 2>conftest.er1
14104 grep -v '^ *+' conftest.er1 >conftest.err
14106 cat conftest.err >&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); } &&
14109 { ac_try='test -z "$ac_c_werror_flag"
14110 || test ! -s conftest.err'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest.$ac_objext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14123 ac_cv_c_bigendian=yes
14125 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14126 if test "$ac_cv_c_bigendian" = unknown; then
14127 ac_cv_c_bigendian=no
14129 # finding both strings is unlikely to happen, but who knows?
14130 ac_cv_c_bigendian=unknown
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14140 cat >conftest.$ac_ext <<_ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14149 /* Are we little or big endian? From Harbison&Steele. */
14153 char c[sizeof (long)];
14156 exit (u.c[sizeof (long) - 1] == 1);
14159 rm -f conftest$ac_exeext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14161 (eval $ac_link) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14166 (eval $ac_try) 2>&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); }; }; then
14170 ac_cv_c_bigendian=no
14172 echo "$as_me: program exited with status $ac_status" >&5
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14176 ( exit $ac_status )
14177 ac_cv_c_bigendian=yes
14179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14184 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14185 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14186 case $ac_cv_c_bigendian in
14189 cat >>confdefs.h <<\_ACEOF
14190 #define WORDS_BIGENDIAN 1
14196 { { echo "$as_me:$LINENO: error: unknown endianness
14197 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14198 echo "$as_me: error: unknown endianness
14199 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14200 { (exit 1); exit 1; }; } ;;
14208 if test -z "$ZLIBSPEC"; then
14209 # Use zlib from the GCC tree.
14210 ZINCS='-I$(top_srcdir)/../zlib'
14211 ZLIBS=../zlib/libzgcj_convenience.la
14214 SYS_ZLIBS="$ZLIBSPEC"
14227 if test "$NATIVE" = yes; then
14237 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
14238 NEEDS_DATA_START_TRUE=
14239 NEEDS_DATA_START_FALSE='#'
14241 NEEDS_DATA_START_TRUE='#'
14242 NEEDS_DATA_START_FALSE=
14247 # Process the option "--enable-version-specific-runtime-libs"
14248 # Calculate toolexeclibdir
14249 case ${version_specific_libs} in
14251 # Need the gcc compiler version to know where to install libraries
14252 # and header files if --enable-version-specific-runtime-libs option
14254 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
14255 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
14256 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
14257 toolexeclibdir=$toolexecmainlibdir
14260 if test -n "$with_cross_host" &&
14261 test x"$with_cross_host" != x"no"; then
14262 # Install a library built with a cross compiler in tooldir, not libdir.
14263 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
14264 toolexecmainlibdir='$(toolexecdir)/lib'
14266 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
14267 toolexecmainlibdir='$(libdir)'
14269 multi_os_directory=`$CC -print-multi-os-directory`
14270 case $multi_os_directory in
14271 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
14272 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
14280 # Determine gcj version number.
14281 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
14282 GCJVERSION=$gcjversion
14285 cat >>confdefs.h <<_ACEOF
14286 #define GCJVERSION "$GCJVERSION"
14291 cat >>confdefs.h <<\_ACEOF
14292 #define JV_VERSION "1.4.2"
14296 cat >>confdefs.h <<\_ACEOF
14297 #define JV_API_VERSION "1.4"
14302 case "${with_gxx_include_dir}" in
14304 { { echo "$as_me:$LINENO: error: --with-gxx-include-dir=[dir] requires a directory" >&5
14305 echo "$as_me: error: --with-gxx-include-dir=[dir] requires a directory" >&2;}
14306 { (exit 1); exit 1; }; }
14309 case "${enable_version_specific_runtime_libs}" in
14310 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
14312 libstdcxx_incdir='c++/$(gcc_version)'
14313 gxx_include_dir='$(prefix)/include/$(libstdcxx_incdir)' ;;
14315 *) gxx_include_dir=${with_gxx_include_dir} ;;
14321 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
14322 # On that system, sys/ioctl.h will not include sys/filio.h unless
14323 # BSD_COMP is defined; just including sys/filio.h is simpler.
14324 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
14325 # for now. If you change this, you also must update natFile.cc.
14346 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
14347 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
14348 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
14349 pwd.h sys/config.h stdint.h langinfo.h locale.h \
14352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14354 echo "$as_me:$LINENO: checking for $ac_header" >&5
14355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14362 # Is the header compilable?
14363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14365 cat >conftest.$ac_ext <<_ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 $ac_includes_default
14372 #include <$ac_header>
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14378 grep -v '^ *+' conftest.er1 >conftest.err
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14396 ac_header_compiler=yes
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 ac_header_compiler=no
14403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14405 echo "${ECHO_T}$ac_header_compiler" >&6
14407 # Is the header present?
14408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14410 cat >conftest.$ac_ext <<_ACEOF
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <$ac_header>
14418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14421 grep -v '^ *+' conftest.er1 >conftest.err
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } >/dev/null; then
14426 if test -s conftest.err; then
14427 ac_cpp_err=$ac_c_preproc_warn_flag
14428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14435 if test -z "$ac_cpp_err"; then
14436 ac_header_preproc=yes
14438 echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14441 ac_header_preproc=no
14443 rm -f conftest.err conftest.$ac_ext
14444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14445 echo "${ECHO_T}$ac_header_preproc" >&6
14447 # So? What about this header?
14448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14454 ac_header_preproc=yes
14457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14471 ## ---------------------------------- ##
14472 ## Report this to the libjava lists. ##
14473 ## ---------------------------------- ##
14476 sed "s/^/$as_me: WARNING: /" >&2
14479 echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 eval "$as_ac_Header=\$ac_header_preproc"
14486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14491 cat >>confdefs.h <<_ACEOF
14492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14500 for ac_header in inttypes.h
14502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14504 echo "$as_me:$LINENO: checking for $ac_header" >&5
14505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14512 # Is the header compilable?
14513 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14515 cat >conftest.$ac_ext <<_ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h. */
14521 $ac_includes_default
14522 #include <$ac_header>
14524 rm -f conftest.$ac_objext
14525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14526 (eval $ac_compile) 2>conftest.er1
14528 grep -v '^ *+' conftest.er1 >conftest.err
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } &&
14533 { ac_try='test -z "$ac_c_werror_flag"
14534 || test ! -s conftest.err'
14535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14536 (eval $ac_try) 2>&5
14538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14539 (exit $ac_status); }; } &&
14540 { ac_try='test -s conftest.$ac_objext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_header_compiler=yes
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 ac_header_compiler=no
14553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14555 echo "${ECHO_T}$ac_header_compiler" >&6
14557 # Is the header present?
14558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14560 cat >conftest.$ac_ext <<_ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14566 #include <$ac_header>
14568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14571 grep -v '^ *+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } >/dev/null; then
14576 if test -s conftest.err; then
14577 ac_cpp_err=$ac_c_preproc_warn_flag
14578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14585 if test -z "$ac_cpp_err"; then
14586 ac_header_preproc=yes
14588 echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14591 ac_header_preproc=no
14593 rm -f conftest.err conftest.$ac_ext
14594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14595 echo "${ECHO_T}$ac_header_preproc" >&6
14597 # So? What about this header?
14598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14604 ac_header_preproc=yes
14607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14621 ## ---------------------------------- ##
14622 ## Report this to the libjava lists. ##
14623 ## ---------------------------------- ##
14626 sed "s/^/$as_me: WARNING: /" >&2
14629 echo "$as_me:$LINENO: checking for $ac_header" >&5
14630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 eval "$as_ac_Header=\$ac_header_preproc"
14636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14641 cat >>confdefs.h <<_ACEOF
14642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14646 cat >>confdefs.h <<\_ACEOF
14647 #define HAVE_INTTYPES_H 1
14651 cat >>confdefs.h <<\_ACEOF
14652 #define JV_HAVE_INTTYPES_H 1
14660 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14661 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
14662 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 cat >conftest.$ac_ext <<_ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14671 #include <sys/types.h>
14672 #include <sys/wait.h>
14673 #ifndef WEXITSTATUS
14674 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14677 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14685 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14690 rm -f conftest.$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692 (eval $ac_compile) 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } &&
14699 { ac_try='test -z "$ac_c_werror_flag"
14700 || test ! -s conftest.err'
14701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14702 (eval $ac_try) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); }; } &&
14706 { ac_try='test -s conftest.$ac_objext'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_header_sys_wait_h=yes
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ac_cv_header_sys_wait_h=no
14719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14721 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14722 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14723 if test $ac_cv_header_sys_wait_h = yes; then
14725 cat >>confdefs.h <<\_ACEOF
14726 #define HAVE_SYS_WAIT_H 1
14732 echo "$as_me:$LINENO: checking for ssize_t" >&5
14733 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14734 if test "${ac_cv_type_ssize_t+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 cat >conftest.$ac_ext <<_ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 $ac_includes_default
14749 if (sizeof (ssize_t))
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"
14765 || test ! -s conftest.err'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; } &&
14771 { ac_try='test -s conftest.$ac_objext'
14772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14773 (eval $ac_try) 2>&5
14775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14776 (exit $ac_status); }; }; then
14777 ac_cv_type_ssize_t=yes
14779 echo "$as_me: failed program was:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_cv_type_ssize_t=no
14784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14786 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14787 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14788 if test $ac_cv_type_ssize_t = yes; then
14792 cat >>confdefs.h <<_ACEOF
14793 #define ssize_t int
14799 echo "$as_me:$LINENO: checking for in_addr_t" >&5
14800 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
14801 cat >conftest.$ac_ext <<_ACEOF
14804 cat confdefs.h >>conftest.$ac_ext
14805 cat >>conftest.$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 #include <sys/types.h>
14809 #include <stdlib.h>
14810 #include <stddef.h>
14812 #if HAVE_NETINET_IN_H
14813 #include <netinet/in.h>
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825 (eval $ac_compile) 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"
14833 || test ! -s conftest.err'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14846 cat >>confdefs.h <<\_ACEOF
14847 #define HAVE_IN_ADDR_T 1
14850 echo "$as_me:$LINENO: result: yes" >&5
14851 echo "${ECHO_T}yes" >&6
14853 echo "$as_me: failed program was:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 echo "$as_me:$LINENO: result: no" >&5
14857 echo "${ECHO_T}no" >&6
14859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14861 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
14862 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 #include <netinet/in.h>
14873 struct ip_mreq mreq;
14878 rm -f conftest.$ac_objext
14879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14880 (eval $ac_compile) 2>conftest.er1
14882 grep -v '^ *+' conftest.er1 >conftest.err
14884 cat conftest.err >&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); } &&
14887 { ac_try='test -z "$ac_c_werror_flag"
14888 || test ! -s conftest.err'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; } &&
14894 { ac_try='test -s conftest.$ac_objext'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; }; then
14901 cat >>confdefs.h <<\_ACEOF
14902 #define HAVE_STRUCT_IP_MREQ 1
14905 echo "$as_me:$LINENO: result: yes" >&5
14906 echo "${ECHO_T}yes" >&6
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 echo "$as_me:$LINENO: result: no" >&5
14912 echo "${ECHO_T}no" >&6
14914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14916 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
14917 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
14918 cat >conftest.$ac_ext <<_ACEOF
14921 cat confdefs.h >>conftest.$ac_ext
14922 cat >>conftest.$ac_ext <<_ACEOF
14923 /* end confdefs.h. */
14924 #include <netinet/in.h>
14928 struct ipv6_mreq mreq6;
14933 rm -f conftest.$ac_objext
14934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>conftest.er1
14937 grep -v '^ *+' conftest.er1 >conftest.err
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
14942 { ac_try='test -z "$ac_c_werror_flag"
14943 || test ! -s conftest.err'
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try='test -s conftest.$ac_objext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14956 cat >>confdefs.h <<\_ACEOF
14957 #define HAVE_STRUCT_IPV6_MREQ 1
14960 echo "$as_me:$LINENO: result: yes" >&5
14961 echo "${ECHO_T}yes" >&6
14963 echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14966 echo "$as_me:$LINENO: result: no" >&5
14967 echo "${ECHO_T}no" >&6
14969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14971 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
14972 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
14973 cat >conftest.$ac_ext <<_ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h. */
14979 #include <netinet/in.h>
14983 struct sockaddr_in6 addr6;
14988 rm -f conftest.$ac_objext
14989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14990 (eval $ac_compile) 2>conftest.er1
14992 grep -v '^ *+' conftest.er1 >conftest.err
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try='test -z "$ac_c_werror_flag"
14998 || test ! -s conftest.err'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; } &&
15004 { ac_try='test -s conftest.$ac_objext'
15005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15006 (eval $ac_try) 2>&5
15008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15009 (exit $ac_status); }; }; then
15011 cat >>confdefs.h <<\_ACEOF
15012 #define HAVE_INET6 1
15015 echo "$as_me:$LINENO: result: yes" >&5
15016 echo "${ECHO_T}yes" >&6
15018 echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15021 echo "$as_me:$LINENO: result: no" >&5
15022 echo "${ECHO_T}no" >&6
15024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15026 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
15027 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
15028 cat >conftest.$ac_ext <<_ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034 #define _POSIX_PII_SOCKET
15035 #include <sys/types.h>
15036 #include <sys/socket.h>
15045 rm -f conftest.$ac_objext
15046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15047 (eval $ac_compile) 2>conftest.er1
15049 grep -v '^ *+' conftest.er1 >conftest.err
15051 cat conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 (exit $ac_status); } &&
15054 { ac_try='test -z "$ac_c_werror_flag"
15055 || test ! -s conftest.err'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; } &&
15061 { ac_try='test -s conftest.$ac_objext'
15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15063 (eval $ac_try) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); }; }; then
15068 cat >>confdefs.h <<\_ACEOF
15069 #define HAVE_SOCKLEN_T 1
15072 echo "$as_me:$LINENO: result: yes" >&5
15073 echo "${ECHO_T}yes" >&6
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 echo "$as_me:$LINENO: result: no" >&5
15079 echo "${ECHO_T}no" >&6
15081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15083 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
15084 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
15085 cat >conftest.$ac_ext <<_ACEOF
15088 cat confdefs.h >>conftest.$ac_ext
15089 cat >>conftest.$ac_ext <<_ACEOF
15090 /* end confdefs.h. */
15095 struct tm tim; tim.tm_gmtoff = 0;
15100 rm -f conftest.$ac_objext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>conftest.er1
15104 grep -v '^ *+' conftest.er1 >conftest.err
15106 cat conftest.err >&5
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
15109 { ac_try='test -z "$ac_c_werror_flag"
15110 || test ! -s conftest.err'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; } &&
15116 { ac_try='test -s conftest.$ac_objext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15123 cat >>confdefs.h <<\_ACEOF
15124 #define STRUCT_TM_HAS_GMTOFF 1
15127 echo "$as_me:$LINENO: result: yes" >&5
15128 echo "${ECHO_T}yes" >&6
15130 echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 echo "$as_me:$LINENO: result: no" >&5
15134 echo "${ECHO_T}no" >&6
15135 echo "$as_me:$LINENO: checking for global timezone variable" >&5
15136 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
15137 cat >conftest.$ac_ext <<_ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15147 void i(){long z2 = 2*timezone;}
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); } &&
15161 { ac_try='test -z "$ac_c_werror_flag"
15162 || test ! -s conftest.err'
15163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164 (eval $ac_try) 2>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); }; } &&
15168 { ac_try='test -s conftest.$ac_objext'
15169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170 (eval $ac_try) 2>&5
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); }; }; then
15175 cat >>confdefs.h <<\_ACEOF
15176 #define HAVE_TIMEZONE 1
15179 echo "$as_me:$LINENO: result: yes" >&5
15180 echo "${ECHO_T}yes" >&6
15182 echo "$as_me: failed program was:" >&5
15183 sed 's/^/| /' conftest.$ac_ext >&5
15185 echo "$as_me:$LINENO: result: no" >&5
15186 echo "${ECHO_T}no" >&6
15187 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
15188 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
15189 cat >conftest.$ac_ext <<_ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15199 long z2 = _timezone;
15204 rm -f conftest.$ac_objext
15205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15206 (eval $ac_compile) 2>conftest.er1
15208 grep -v '^ *+' conftest.er1 >conftest.err
15210 cat conftest.err >&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -z "$ac_c_werror_flag"
15214 || test ! -s conftest.err'
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); }; } &&
15220 { ac_try='test -s conftest.$ac_objext'
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15227 cat >>confdefs.h <<\_ACEOF
15228 #define HAVE_UNDERSCORE_TIMEZONE 1
15231 echo "$as_me:$LINENO: result: yes" >&5
15232 echo "${ECHO_T}yes" >&6
15234 echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15237 echo "$as_me:$LINENO: result: no" >&5
15238 echo "${ECHO_T}no" >&6
15240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15246 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15247 # for constant arguments. Useless!
15248 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15249 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15250 if test "${ac_cv_working_alloca_h+set}" = set; then
15251 echo $ECHO_N "(cached) $ECHO_C" >&6
15253 if test x$gcc_no_link = xyes; then
15254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15256 { (exit 1); exit 1; }; }
15258 cat >conftest.$ac_ext <<_ACEOF
15261 cat confdefs.h >>conftest.$ac_ext
15262 cat >>conftest.$ac_ext <<_ACEOF
15263 /* end confdefs.h. */
15264 #include <alloca.h>
15268 char *p = (char *) alloca (2 * sizeof (int));
15273 rm -f conftest.$ac_objext conftest$ac_exeext
15274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15275 (eval $ac_link) 2>conftest.er1
15277 grep -v '^ *+' conftest.er1 >conftest.err
15279 cat conftest.err >&5
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
15282 { ac_try='test -z "$ac_c_werror_flag"
15283 || test ! -s conftest.err'
15284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15285 (eval $ac_try) 2>&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); }; } &&
15289 { ac_try='test -s conftest$ac_exeext'
15290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15291 (eval $ac_try) 2>&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); }; }; then
15295 ac_cv_working_alloca_h=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_cv_working_alloca_h=no
15302 rm -f conftest.err conftest.$ac_objext \
15303 conftest$ac_exeext conftest.$ac_ext
15305 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15306 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15307 if test $ac_cv_working_alloca_h = yes; then
15309 cat >>confdefs.h <<\_ACEOF
15310 #define HAVE_ALLOCA_H 1
15315 echo "$as_me:$LINENO: checking for alloca" >&5
15316 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15317 if test "${ac_cv_func_alloca_works+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 if test x$gcc_no_link = xyes; then
15321 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15322 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15323 { (exit 1); exit 1; }; }
15325 cat >conftest.$ac_ext <<_ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h. */
15332 # define alloca __builtin_alloca
15335 # include <malloc.h>
15336 # define alloca _alloca
15339 # include <alloca.h>
15344 # ifndef alloca /* predefined by HP cc +Olibcalls */
15355 char *p = (char *) alloca (1);
15360 rm -f conftest.$ac_objext conftest$ac_exeext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15362 (eval $ac_link) 2>conftest.er1
15364 grep -v '^ *+' conftest.er1 >conftest.err
15366 cat conftest.err >&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -z "$ac_c_werror_flag"
15370 || test ! -s conftest.err'
15371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15372 (eval $ac_try) 2>&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); }; } &&
15376 { ac_try='test -s conftest$ac_exeext'
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; }; then
15382 ac_cv_func_alloca_works=yes
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_cv_func_alloca_works=no
15389 rm -f conftest.err conftest.$ac_objext \
15390 conftest$ac_exeext conftest.$ac_ext
15392 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15393 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15395 if test $ac_cv_func_alloca_works = yes; then
15397 cat >>confdefs.h <<\_ACEOF
15398 #define HAVE_ALLOCA 1
15402 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15403 # that cause trouble. Some versions do not even contain alloca or
15404 # contain a buggy version. If you still want to use their alloca,
15405 # use ar to extract alloca.o from them instead of compiling alloca.c.
15407 ALLOCA=alloca.$ac_objext
15409 cat >>confdefs.h <<\_ACEOF
15414 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15415 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15416 if test "${ac_cv_os_cray+set}" = set; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15419 cat >conftest.$ac_ext <<_ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 #if defined(CRAY) && ! defined(CRAY2)
15432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15433 $EGREP "webecray" >/dev/null 2>&1; then
15441 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15442 echo "${ECHO_T}$ac_cv_os_cray" >&6
15443 if test $ac_cv_os_cray = yes; then
15444 for ac_func in _getb67 GETB67 getb67; do
15445 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15446 echo "$as_me:$LINENO: checking for $ac_func" >&5
15447 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15448 if eval "test \"\${$as_ac_var+set}\" = set"; then
15449 echo $ECHO_N "(cached) $ECHO_C" >&6
15451 if test x$gcc_no_link = xyes; then
15452 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15453 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15454 { (exit 1); exit 1; }; }
15456 cat >conftest.$ac_ext <<_ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15464 #define $ac_func innocuous_$ac_func
15466 /* System header to define __stub macros and hopefully few prototypes,
15467 which can conflict with char $ac_func (); below.
15468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15469 <limits.h> exists even on freestanding compilers. */
15472 # include <limits.h>
15474 # include <assert.h>
15479 /* Override any gcc2 internal prototype to avoid an error. */
15484 /* We use char because int might match the return type of a gcc2
15485 builtin and then its argument prototype would still apply. */
15487 /* The GNU C library defines this for functions which it implements
15488 to always fail with ENOSYS. Some functions are actually named
15489 something starting with __ and the normal name is an alias. */
15490 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15493 char (*f) () = $ac_func;
15502 return f != $ac_func;
15507 rm -f conftest.$ac_objext conftest$ac_exeext
15508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15509 (eval $ac_link) 2>conftest.er1
15511 grep -v '^ *+' conftest.er1 >conftest.err
15513 cat conftest.err >&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); } &&
15516 { ac_try='test -z "$ac_c_werror_flag"
15517 || test ! -s conftest.err'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; } &&
15523 { ac_try='test -s conftest$ac_exeext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 eval "$as_ac_var=yes"
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 eval "$as_ac_var=no"
15536 rm -f conftest.err conftest.$ac_objext \
15537 conftest$ac_exeext conftest.$ac_ext
15539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15540 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15541 if test `eval echo '${'$as_ac_var'}'` = yes; then
15543 cat >>confdefs.h <<_ACEOF
15544 #define CRAY_STACKSEG_END $ac_func
15553 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15554 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15555 if test "${ac_cv_c_stack_direction+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 if test "$cross_compiling" = yes; then
15559 ac_cv_c_stack_direction=0
15561 cat >conftest.$ac_ext <<_ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15568 find_stack_direction ()
15570 static char *addr = 0;
15575 return find_stack_direction ();
15578 return (&dummy > addr) ? 1 : -1;
15584 exit (find_stack_direction () < 0);
15587 rm -f conftest$ac_exeext
15588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15589 (eval $ac_link) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_cv_c_stack_direction=1
15600 echo "$as_me: program exited with status $ac_status" >&5
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ( exit $ac_status )
15605 ac_cv_c_stack_direction=-1
15607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15610 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15611 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
15613 cat >>confdefs.h <<_ACEOF
15614 #define STACK_DIRECTION $ac_cv_c_stack_direction
15620 if test x$gcc_no_link = xyes; then
15621 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
15622 ac_cv_func_mmap_fixed_mapped=no
15625 if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
15628 for ac_header in stdlib.h unistd.h
15630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15632 echo "$as_me:$LINENO: checking for $ac_header" >&5
15633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15634 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15637 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15638 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15640 # Is the header compilable?
15641 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15642 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15643 cat >conftest.$ac_ext <<_ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h. */
15649 $ac_includes_default
15650 #include <$ac_header>
15652 rm -f conftest.$ac_objext
15653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15654 (eval $ac_compile) 2>conftest.er1
15656 grep -v '^ *+' conftest.er1 >conftest.err
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } &&
15661 { ac_try='test -z "$ac_c_werror_flag"
15662 || test ! -s conftest.err'
15663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15664 (eval $ac_try) 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; } &&
15668 { ac_try='test -s conftest.$ac_objext'
15669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15670 (eval $ac_try) 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_header_compiler=yes
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 ac_header_compiler=no
15681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15682 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15683 echo "${ECHO_T}$ac_header_compiler" >&6
15685 # Is the header present?
15686 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15688 cat >conftest.$ac_ext <<_ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 #include <$ac_header>
15696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15699 grep -v '^ *+' conftest.er1 >conftest.err
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } >/dev/null; then
15704 if test -s conftest.err; then
15705 ac_cpp_err=$ac_c_preproc_warn_flag
15706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15713 if test -z "$ac_cpp_err"; then
15714 ac_header_preproc=yes
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ac_header_preproc=no
15721 rm -f conftest.err conftest.$ac_ext
15722 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15723 echo "${ECHO_T}$ac_header_preproc" >&6
15725 # So? What about this header?
15726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15732 ac_header_preproc=yes
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15749 ## ---------------------------------- ##
15750 ## Report this to the libjava lists. ##
15751 ## ---------------------------------- ##
15754 sed "s/^/$as_me: WARNING: /" >&2
15757 echo "$as_me:$LINENO: checking for $ac_header" >&5
15758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15759 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15762 eval "$as_ac_Header=\$ac_header_preproc"
15764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15778 for ac_func in getpagesize
15780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15781 echo "$as_me:$LINENO: checking for $ac_func" >&5
15782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15783 if eval "test \"\${$as_ac_var+set}\" = set"; then
15784 echo $ECHO_N "(cached) $ECHO_C" >&6
15786 if test x$gcc_no_link = xyes; then
15787 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
15788 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
15789 { (exit 1); exit 1; }; }
15791 cat >conftest.$ac_ext <<_ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15797 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15799 #define $ac_func innocuous_$ac_func
15801 /* System header to define __stub macros and hopefully few prototypes,
15802 which can conflict with char $ac_func (); below.
15803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15804 <limits.h> exists even on freestanding compilers. */
15807 # include <limits.h>
15809 # include <assert.h>
15814 /* Override any gcc2 internal prototype to avoid an error. */
15819 /* We use char because int might match the return type of a gcc2
15820 builtin and then its argument prototype would still apply. */
15822 /* The GNU C library defines this for functions which it implements
15823 to always fail with ENOSYS. Some functions are actually named
15824 something starting with __ and the normal name is an alias. */
15825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15828 char (*f) () = $ac_func;
15837 return f != $ac_func;
15842 rm -f conftest.$ac_objext conftest$ac_exeext
15843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15844 (eval $ac_link) 2>conftest.er1
15846 grep -v '^ *+' conftest.er1 >conftest.err
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } &&
15851 { ac_try='test -z "$ac_c_werror_flag"
15852 || test ! -s conftest.err'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try='test -s conftest$ac_exeext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 eval "$as_ac_var=yes"
15866 echo "$as_me: failed program was:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 eval "$as_ac_var=no"
15871 rm -f conftest.err conftest.$ac_objext \
15872 conftest$ac_exeext conftest.$ac_ext
15874 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15875 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15876 if test `eval echo '${'$as_ac_var'}'` = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15884 echo "$as_me:$LINENO: checking for working mmap" >&5
15885 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15886 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15887 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 if test "$cross_compiling" = yes; then
15890 ac_cv_func_mmap_fixed_mapped=no
15892 cat >conftest.$ac_ext <<_ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15898 $ac_includes_default
15899 /* malloc might have been renamed as rpl_malloc. */
15902 /* Thanks to Mike Haertel and Jim Avera for this test.
15903 Here is a matrix of mmap possibilities:
15904 mmap private not fixed
15905 mmap private fixed at somewhere currently unmapped
15906 mmap private fixed at somewhere already mapped
15907 mmap shared not fixed
15908 mmap shared fixed at somewhere currently unmapped
15909 mmap shared fixed at somewhere already mapped
15910 For private mappings, we should verify that changes cannot be read()
15911 back from the file, nor mmap's back from the file at a different
15912 address. (There have been systems where private was not correctly
15913 implemented like the infamous i386 svr4.0, and systems where the
15914 VM page cache was not coherent with the file system buffer cache
15915 like early versions of FreeBSD and possibly contemporary NetBSD.)
15916 For shared mappings, we should conversely verify that changes get
15917 propagated back to all the places they're supposed to be.
15919 Grep wants private fixed already mapped.
15920 The main things grep needs to know about mmap are:
15921 * does it exist and is it safe to write into the mmap'd area
15922 * how to use it (BSD variants) */
15925 #include <sys/mman.h>
15927 #if !STDC_HEADERS && !HAVE_STDLIB_H
15931 /* This mess was copied from the GNU getpagesize.h. */
15932 #if !HAVE_GETPAGESIZE
15933 /* Assume that all systems that can run configure have sys/param.h. */
15934 # if !HAVE_SYS_PARAM_H
15935 # define HAVE_SYS_PARAM_H 1
15938 # ifdef _SC_PAGESIZE
15939 # define getpagesize() sysconf(_SC_PAGESIZE)
15940 # else /* no _SC_PAGESIZE */
15941 # if HAVE_SYS_PARAM_H
15942 # include <sys/param.h>
15943 # ifdef EXEC_PAGESIZE
15944 # define getpagesize() EXEC_PAGESIZE
15945 # else /* no EXEC_PAGESIZE */
15947 # define getpagesize() NBPG * CLSIZE
15950 # endif /* no CLSIZE */
15951 # else /* no NBPG */
15953 # define getpagesize() NBPC
15954 # else /* no NBPC */
15956 # define getpagesize() PAGESIZE
15957 # endif /* PAGESIZE */
15958 # endif /* no NBPC */
15959 # endif /* no NBPG */
15960 # endif /* no EXEC_PAGESIZE */
15961 # else /* no HAVE_SYS_PARAM_H */
15962 # define getpagesize() 8192 /* punt totally */
15963 # endif /* no HAVE_SYS_PARAM_H */
15964 # endif /* no _SC_PAGESIZE */
15966 #endif /* no HAVE_GETPAGESIZE */
15971 char *data, *data2, *data3;
15975 pagesize = getpagesize ();
15977 /* First, make a file with some known garbage in it. */
15978 data = (char *) malloc (pagesize);
15981 for (i = 0; i < pagesize; ++i)
15982 *(data + i) = rand ();
15984 fd = creat ("conftest.mmap", 0600);
15987 if (write (fd, data, pagesize) != pagesize)
15991 /* Next, try to mmap the file at a fixed address which already has
15992 something else allocated at it. If we can, also make sure that
15993 we see the same garbage. */
15994 fd = open ("conftest.mmap", O_RDWR);
15997 data2 = (char *) malloc (2 * pagesize);
16000 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
16001 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16002 MAP_PRIVATE | MAP_FIXED, fd, 0L))
16004 for (i = 0; i < pagesize; ++i)
16005 if (*(data + i) != *(data2 + i))
16008 /* Finally, make sure that changes to the mapped area do not
16009 percolate back to the file as seen by read(). (This is a bug on
16010 some variants of i386 svr4.0.) */
16011 for (i = 0; i < pagesize; ++i)
16012 *(data2 + i) = *(data2 + i) + 1;
16013 data3 = (char *) malloc (pagesize);
16016 if (read (fd, data3, pagesize) != pagesize)
16018 for (i = 0; i < pagesize; ++i)
16019 if (*(data + i) != *(data3 + i))
16025 rm -f conftest$ac_exeext
16026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16027 (eval $ac_link) 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; }; then
16036 ac_cv_func_mmap_fixed_mapped=yes
16038 echo "$as_me: program exited with status $ac_status" >&5
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.$ac_ext >&5
16042 ( exit $ac_status )
16043 ac_cv_func_mmap_fixed_mapped=no
16045 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16048 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16049 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
16050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
16052 cat >>confdefs.h <<\_ACEOF
16053 #define HAVE_MMAP 1
16057 rm -f conftest.mmap
16061 for ac_prog in perl
16063 # Extract the first word of "$ac_prog", so it can be a program name with args.
16064 set dummy $ac_prog; ac_word=$2
16065 echo "$as_me:$LINENO: checking for $ac_word" >&5
16066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16067 if test "${ac_cv_prog_PERL+set}" = set; then
16068 echo $ECHO_N "(cached) $ECHO_C" >&6
16070 if test -n "$PERL"; then
16071 ac_cv_prog_PERL="$PERL" # Let the user override the test.
16073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16074 for as_dir in $PATH
16077 test -z "$as_dir" && as_dir=.
16078 for ac_exec_ext in '' $ac_executable_extensions; do
16079 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16080 ac_cv_prog_PERL="$ac_prog"
16081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16089 PERL=$ac_cv_prog_PERL
16090 if test -n "$PERL"; then
16091 echo "$as_me:$LINENO: result: $PERL" >&5
16092 echo "${ECHO_T}$PERL" >&6
16094 echo "$as_me:$LINENO: result: no" >&5
16095 echo "${ECHO_T}no" >&6
16098 test -n "$PERL" && break
16100 test -n "$PERL" || PERL="false"
16104 SIGNAL_HANDLER_AUX=
16108 SIGNAL_HANDLER=include/i386-signal.h
16110 sparc*-sun-solaris*)
16111 SIGNAL_HANDLER=include/sparc-signal.h
16114 # SYSDEP_SOURCES=sysdep/ia64.c
16115 # test -d sysdep || mkdir sysdep
16118 SIGNAL_HANDLER=include/pa-signal.h
16121 SIGNAL_HANDLER=include/dwarf2-signal.h
16124 SIGNAL_HANDLER=include/powerpc-signal.h
16127 SIGNAL_HANDLER=include/dwarf2-signal.h
16130 SIGNAL_HANDLER=include/s390-signal.h
16133 SIGNAL_HANDLER=include/x86_64-signal.h
16134 SIGNAL_HANDLER_AUX=include/i386-signal.h
16137 SIGNAL_HANDLER=include/dwarf2-signal.h
16140 SIGNAL_HANDLER=include/sh-signal.h
16143 SIGNAL_HANDLER=include/win32-signal.h
16146 SIGNAL_HANDLER=include/mips-signal.h
16149 SIGNAL_HANDLER=include/darwin-signal.h
16152 SIGNAL_HANDLER=include/default-signal.h
16156 # If we're using sjlj exceptions, forget what we just learned.
16157 if test "$enable_sjlj_exceptions" = yes; then
16158 SIGNAL_HANDLER=include/default-signal.h
16159 SIGNAL_HANDLER_AUX=
16164 if test -z "$SIGNAL_HANDLER_AUX"; then
16165 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
16168 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
16171 if test "${multilib}" = "yes"; then
16172 multilib_arg="--enable-multilib"
16179 here=`${PWDCMD-pwd}`
16182 # We get this from the environment.
16185 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile"
16188 ac_config_commands="$ac_config_commands default"
16191 cat >confcache <<\_ACEOF
16192 # This file is a shell script that caches the results of configure
16193 # tests run on this system so they can be shared between configure
16194 # scripts and configure runs, see configure's option --config-cache.
16195 # It is not useful on other systems. If it contains results you don't
16196 # want to keep, you may remove or edit it.
16198 # config.status only pays attention to the cache file if you give it
16199 # the --recheck option to rerun configure.
16201 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16202 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16203 # following values.
16207 # The following way of writing the cache mishandles newlines in values,
16208 # but we know of no workaround that is simple, portable, and efficient.
16209 # So, don't put newlines in cache variables' values.
16210 # Ultrix sh set writes to stderr and can't be redirected directly,
16211 # and sets the high bit in the cache file unless we assign to the vars.
16214 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16216 # `set' does not quote correctly, so add quotes (double-quote
16217 # substitution turns \\\\ into \\, and sed turns \\ into \).
16220 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16223 # `set' quotes correctly as required by POSIX, so do not add quotes.
16225 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16234 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16236 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16237 if test -w $cache_file; then
16238 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16239 cat confcache >$cache_file
16241 echo "not updating unwritable cache $cache_file"
16246 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16247 # Let make expand exec_prefix.
16248 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16250 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16251 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16252 # trailing colons and then remove the whole line if VPATH becomes empty
16253 # (actually we leave an empty line to preserve line numbers).
16254 if test "x$srcdir" = x.; then
16255 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16256 s/:*\$(srcdir):*/:/;
16257 s/:*\${srcdir}:*/:/;
16259 s/^\([^=]*=[ ]*\):*/\1/;
16265 DEFS=-DHAVE_CONFIG_H
16269 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16270 # 1. Remove the extension, and $U if already installed.
16271 ac_i=`echo "$ac_i" |
16272 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16274 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16275 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16277 LIBOBJS=$ac_libobjs
16279 LTLIBOBJS=$ac_ltlibobjs
16282 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16283 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16284 Usually this means the macro was only invoked conditionally." >&5
16285 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16286 Usually this means the macro was only invoked conditionally." >&2;}
16287 { (exit 1); exit 1; }; }
16289 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16290 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16291 Usually this means the macro was only invoked conditionally." >&5
16292 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16293 Usually this means the macro was only invoked conditionally." >&2;}
16294 { (exit 1); exit 1; }; }
16296 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16297 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
16298 Usually this means the macro was only invoked conditionally." >&5
16299 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
16300 Usually this means the macro was only invoked conditionally." >&2;}
16301 { (exit 1); exit 1; }; }
16303 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16304 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
16305 Usually this means the macro was only invoked conditionally." >&5
16306 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
16307 Usually this means the macro was only invoked conditionally." >&2;}
16308 { (exit 1); exit 1; }; }
16310 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
16311 { { echo "$as_me:$LINENO: error: conditional \"XLIB_AWT\" was never defined.
16312 Usually this means the macro was only invoked conditionally." >&5
16313 echo "$as_me: error: conditional \"XLIB_AWT\" was never defined.
16314 Usually this means the macro was only invoked conditionally." >&2;}
16315 { (exit 1); exit 1; }; }
16317 if test -z "${GTK_AWT_TRUE}" && test -z "${GTK_AWT_FALSE}"; then
16318 { { echo "$as_me:$LINENO: error: conditional \"GTK_AWT\" was never defined.
16319 Usually this means the macro was only invoked conditionally." >&5
16320 echo "$as_me: error: conditional \"GTK_AWT\" was never defined.
16321 Usually this means the macro was only invoked conditionally." >&2;}
16322 { (exit 1); exit 1; }; }
16324 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
16325 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepGCJ\" was never defined.
16326 Usually this means the macro was only invoked conditionally." >&5
16327 echo "$as_me: error: conditional \"am__fastdepGCJ\" was never defined.
16328 Usually this means the macro was only invoked conditionally." >&2;}
16329 { (exit 1); exit 1; }; }
16331 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16332 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
16333 Usually this means the macro was only invoked conditionally." >&5
16334 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
16335 Usually this means the macro was only invoked conditionally." >&2;}
16336 { (exit 1); exit 1; }; }
16338 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
16339 { { echo "$as_me:$LINENO: error: conditional \"JAVA_HOME_SET\" was never defined.
16340 Usually this means the macro was only invoked conditionally." >&5
16341 echo "$as_me: error: conditional \"JAVA_HOME_SET\" was never defined.
16342 Usually this means the macro was only invoked conditionally." >&2;}
16343 { (exit 1); exit 1; }; }
16345 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
16346 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16347 Usually this means the macro was only invoked conditionally." >&5
16348 echo "$as_me: error: conditional \"USING_WIN32_PLATFORM\" was never defined.
16349 Usually this means the macro was only invoked conditionally." >&2;}
16350 { (exit 1); exit 1; }; }
16352 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
16353 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16354 Usually this means the macro was only invoked conditionally." >&5
16355 echo "$as_me: error: conditional \"USING_POSIX_PLATFORM\" was never defined.
16356 Usually this means the macro was only invoked conditionally." >&2;}
16357 { (exit 1); exit 1; }; }
16359 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
16360 { { echo "$as_me:$LINENO: error: conditional \"USING_DARWIN_CRT\" was never defined.
16361 Usually this means the macro was only invoked conditionally." >&5
16362 echo "$as_me: error: conditional \"USING_DARWIN_CRT\" was never defined.
16363 Usually this means the macro was only invoked conditionally." >&2;}
16364 { (exit 1); exit 1; }; }
16366 if test -z "${GTK_CAIRO_TRUE}" && test -z "${GTK_CAIRO_FALSE}"; then
16367 { { echo "$as_me:$LINENO: error: conditional \"GTK_CAIRO\" was never defined.
16368 Usually this means the macro was only invoked conditionally." >&5
16369 echo "$as_me: error: conditional \"GTK_CAIRO\" was never defined.
16370 Usually this means the macro was only invoked conditionally." >&2;}
16371 { (exit 1); exit 1; }; }
16373 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
16374 { { echo "$as_me:$LINENO: error: conditional \"USING_BOEHMGC\" was never defined.
16375 Usually this means the macro was only invoked conditionally." >&5
16376 echo "$as_me: error: conditional \"USING_BOEHMGC\" was never defined.
16377 Usually this means the macro was only invoked conditionally." >&2;}
16378 { (exit 1); exit 1; }; }
16380 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
16381 { { echo "$as_me:$LINENO: error: conditional \"USING_NOGC\" was never defined.
16382 Usually this means the macro was only invoked conditionally." >&5
16383 echo "$as_me: error: conditional \"USING_NOGC\" was never defined.
16384 Usually this means the macro was only invoked conditionally." >&2;}
16385 { (exit 1); exit 1; }; }
16387 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
16388 { { echo "$as_me:$LINENO: error: conditional \"USING_POSIX_THREADS\" was never defined.
16389 Usually this means the macro was only invoked conditionally." >&5
16390 echo "$as_me: error: conditional \"USING_POSIX_THREADS\" was never defined.
16391 Usually this means the macro was only invoked conditionally." >&2;}
16392 { (exit 1); exit 1; }; }
16394 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
16395 { { echo "$as_me:$LINENO: error: conditional \"USING_WIN32_THREADS\" was never defined.
16396 Usually this means the macro was only invoked conditionally." >&5
16397 echo "$as_me: error: conditional \"USING_WIN32_THREADS\" was never defined.
16398 Usually this means the macro was only invoked conditionally." >&2;}
16399 { (exit 1); exit 1; }; }
16401 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
16402 { { echo "$as_me:$LINENO: error: conditional \"USING_NO_THREADS\" was never defined.
16403 Usually this means the macro was only invoked conditionally." >&5
16404 echo "$as_me: error: conditional \"USING_NO_THREADS\" was never defined.
16405 Usually this means the macro was only invoked conditionally." >&2;}
16406 { (exit 1); exit 1; }; }
16408 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
16409 { { echo "$as_me:$LINENO: error: conditional \"USING_GCC\" was never defined.
16410 Usually this means the macro was only invoked conditionally." >&5
16411 echo "$as_me: error: conditional \"USING_GCC\" was never defined.
16412 Usually this means the macro was only invoked conditionally." >&2;}
16413 { (exit 1); exit 1; }; }
16415 if test -z "${SUPPLY_BACKTRACE_TRUE}" && test -z "${SUPPLY_BACKTRACE_FALSE}"; then
16416 { { echo "$as_me:$LINENO: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16417 Usually this means the macro was only invoked conditionally." >&5
16418 echo "$as_me: error: conditional \"SUPPLY_BACKTRACE\" was never defined.
16419 Usually this means the macro was only invoked conditionally." >&2;}
16420 { (exit 1); exit 1; }; }
16422 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
16423 { { echo "$as_me:$LINENO: error: conditional \"NATIVE\" was never defined.
16424 Usually this means the macro was only invoked conditionally." >&5
16425 echo "$as_me: error: conditional \"NATIVE\" was never defined.
16426 Usually this means the macro was only invoked conditionally." >&2;}
16427 { (exit 1); exit 1; }; }
16429 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
16430 { { echo "$as_me:$LINENO: error: conditional \"NEEDS_DATA_START\" was never defined.
16431 Usually this means the macro was only invoked conditionally." >&5
16432 echo "$as_me: error: conditional \"NEEDS_DATA_START\" was never defined.
16433 Usually this means the macro was only invoked conditionally." >&2;}
16434 { (exit 1); exit 1; }; }
16437 : ${CONFIG_STATUS=./config.status}
16438 ac_clean_files_save=$ac_clean_files
16439 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16440 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16441 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16442 cat >$CONFIG_STATUS <<_ACEOF
16444 # Generated by $as_me.
16445 # Run this file to recreate the current configuration.
16446 # Compiler output produced by configure, useful for debugging
16447 # configure, is in config.log if it exists.
16450 ac_cs_recheck=false
16452 SHELL=\${CONFIG_SHELL-$SHELL}
16455 cat >>$CONFIG_STATUS <<\_ACEOF
16456 ## --------------------- ##
16457 ## M4sh Initialization. ##
16458 ## --------------------- ##
16460 # Be Bourne compatible
16461 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16464 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16465 # is contrary to our usage. Disable this feature.
16466 alias -g '${1+"$@"}'='"$@"'
16467 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16470 DUALCASE=1; export DUALCASE # for MKS sh
16472 # Support unset when possible.
16473 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16480 # Work around bugs in pre-3.0 UWIN ksh.
16481 $as_unset ENV MAIL MAILPATH
16488 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16489 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16490 LC_TELEPHONE LC_TIME
16492 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16493 eval $as_var=C; export $as_var
16499 # Required to use basename.
16500 if expr a : '\(a\)' >/dev/null 2>&1; then
16506 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16507 as_basename=basename
16513 # Name of the executable.
16514 as_me=`$as_basename "$0" ||
16515 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16516 X"$0" : 'X\(//\)$' \| \
16517 X"$0" : 'X\(/\)$' \| \
16518 . : '\(.\)' 2>/dev/null ||
16520 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16521 /^X\/\(\/\/\)$/{ s//\1/; q; }
16522 /^X\/\(\/\).*/{ s//\1/; q; }
16526 # PATH needs CR, and LINENO needs CR and PATH.
16527 # Avoid depending upon Character Ranges.
16528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16531 as_cr_digits='0123456789'
16532 as_cr_alnum=$as_cr_Letters$as_cr_digits
16534 # The user is always right.
16535 if test "${PATH_SEPARATOR+set}" != set; then
16536 echo "#! /bin/sh" >conf$$.sh
16537 echo "exit 0" >>conf$$.sh
16539 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16548 as_lineno_1=$LINENO
16549 as_lineno_2=$LINENO
16550 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16551 test "x$as_lineno_1" != "x$as_lineno_2" &&
16552 test "x$as_lineno_3" = "x$as_lineno_2" || {
16553 # Find who we are. Look in the path if we contain no path at all
16556 *[\\/]* ) as_myself=$0 ;;
16557 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16558 for as_dir in $PATH
16561 test -z "$as_dir" && as_dir=.
16562 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16567 # We did not find ourselves, most probably we were run as `sh COMMAND'
16568 # in which case we are not to be found in the path.
16569 if test "x$as_myself" = x; then
16572 if test ! -f "$as_myself"; then
16573 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16574 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16575 { (exit 1); exit 1; }; }
16577 case $CONFIG_SHELL in
16579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16580 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16583 test -z "$as_dir" && as_dir=.
16584 for as_base in sh bash ksh sh5; do
16587 if ("$as_dir/$as_base" -c '
16588 as_lineno_1=$LINENO
16589 as_lineno_2=$LINENO
16590 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16591 test "x$as_lineno_1" != "x$as_lineno_2" &&
16592 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16593 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16594 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
16595 CONFIG_SHELL=$as_dir/$as_base
16596 export CONFIG_SHELL
16597 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16606 # uniformly replaced by the line number. The first 'sed' inserts a
16607 # line-number line before each line; the second 'sed' does the real
16608 # work. The second script uses 'N' to pair each line-number line
16609 # with the numbered line, and appends trailing '-' during
16610 # substitution so that $LINENO is not a special case at line end.
16611 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16612 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16613 sed '=' <$as_myself |
16618 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16621 s,^['$as_cr_digits']*\n,,
16622 ' >$as_me.lineno &&
16623 chmod +x $as_me.lineno ||
16624 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16625 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16626 { (exit 1); exit 1; }; }
16628 # Don't try to exec as it changes $[0], causing all sort of problems
16629 # (the dirname of $[0] is not the place where we might find the
16630 # original and so on. Autoconf is especially sensible to this).
16632 # Exit status is that of the last command.
16637 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16638 *c*,-n*) ECHO_N= ECHO_C='
16640 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16641 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16644 if expr a : '\(a\)' >/dev/null 2>&1; then
16650 rm -f conf$$ conf$$.exe conf$$.file
16652 if ln -s conf$$.file conf$$ 2>/dev/null; then
16653 # We could just check for DJGPP; but this test a) works b) is more generic
16654 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16655 if test -f conf$$.exe; then
16656 # Don't use ln at all; we don't have any links
16661 elif ln conf$$.file conf$$ 2>/dev/null; then
16666 rm -f conf$$ conf$$.exe conf$$.file
16668 if mkdir -p . 2>/dev/null; then
16671 test -d ./-p && rmdir ./-p
16675 as_executable_p="test -f"
16677 # Sed expression to map a string onto a valid CPP name.
16678 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16680 # Sed expression to map a string onto a valid variable name.
16681 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16685 # We need space, tab and new line, in precisely that order.
16695 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16696 # report actual input values of CONFIG_FILES etc. instead of their
16697 # values after options handling. Logging --version etc. is OK.
16701 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16702 ## Running $as_me. ##
16707 This file was extended by libjava $as_me version-unused, which was
16708 generated by GNU Autoconf 2.59. Invocation command line was
16710 CONFIG_FILES = $CONFIG_FILES
16711 CONFIG_HEADERS = $CONFIG_HEADERS
16712 CONFIG_LINKS = $CONFIG_LINKS
16713 CONFIG_COMMANDS = $CONFIG_COMMANDS
16717 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16721 # Files that config.status was made for.
16722 if test -n "$ac_config_files"; then
16723 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16726 if test -n "$ac_config_headers"; then
16727 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16730 if test -n "$ac_config_links"; then
16731 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16734 if test -n "$ac_config_commands"; then
16735 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16738 cat >>$CONFIG_STATUS <<\_ACEOF
16741 \`$as_me' instantiates files from templates according to the
16742 current configuration.
16744 Usage: $0 [OPTIONS] [FILE]...
16746 -h, --help print this help, then exit
16747 -V, --version print version number, then exit
16748 -q, --quiet do not print progress messages
16749 -d, --debug don't remove temporary files
16750 --recheck update $as_me by reconfiguring in the same conditions
16751 --file=FILE[:TEMPLATE]
16752 instantiate the configuration file FILE
16753 --header=FILE[:TEMPLATE]
16754 instantiate the configuration header FILE
16756 Configuration files:
16759 Configuration headers:
16762 Configuration links:
16765 Configuration commands:
16768 Report bugs to <bug-autoconf@gnu.org>."
16771 cat >>$CONFIG_STATUS <<_ACEOF
16773 libjava config.status version-unused
16774 configured by $0, generated by GNU Autoconf 2.59,
16775 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16777 Copyright (C) 2003 Free Software Foundation, Inc.
16778 This config.status script is free software; the Free Software Foundation
16779 gives unlimited permission to copy, distribute and modify it."
16784 cat >>$CONFIG_STATUS <<\_ACEOF
16785 # If no file are specified by the user, then we need to provide default
16786 # value. By we need to know if files were specified by the user.
16792 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16793 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16801 *) # This is not an option, so the user has probably given explicit
16804 ac_need_defaults=false;;
16808 # Handling of the options.
16810 cat >>$CONFIG_STATUS <<\_ACEOF
16811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16813 --version | --vers* | -V )
16814 echo "$ac_cs_version"; exit 0 ;;
16816 # Conflict between --help and --header
16817 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16818 Try \`$0 --help' for more information." >&5
16819 echo "$as_me: error: ambiguous option: $1
16820 Try \`$0 --help' for more information." >&2;}
16821 { (exit 1); exit 1; }; };;
16822 --help | --hel | -h )
16823 echo "$ac_cs_usage"; exit 0 ;;
16824 --debug | --d* | -d )
16826 --file | --fil | --fi | --f )
16828 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16829 ac_need_defaults=false;;
16830 --header | --heade | --head | --hea )
16832 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16833 ac_need_defaults=false;;
16834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16838 # This is an error.
16839 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16840 Try \`$0 --help' for more information." >&5
16841 echo "$as_me: error: unrecognized option: $1
16842 Try \`$0 --help' for more information." >&2;}
16843 { (exit 1); exit 1; }; } ;;
16845 *) ac_config_targets="$ac_config_targets $1" ;;
16851 ac_configure_extra_args=
16853 if $ac_cs_silent; then
16855 ac_configure_extra_args="$ac_configure_extra_args --silent"
16859 cat >>$CONFIG_STATUS <<_ACEOF
16860 if \$ac_cs_recheck; then
16861 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16862 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16867 cat >>$CONFIG_STATUS <<_ACEOF
16869 # INIT-COMMANDS section.
16872 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16876 with_multisubdir=${with_multisubdir}
16877 ac_configure_args="${multilib_arg} ${ac_configure_args}"
16878 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
16879 libgcj_basedir=${libgcj_basedir}
16882 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
16889 cat >>$CONFIG_STATUS <<\_ACEOF
16890 for ac_config_target in $ac_config_targets
16892 case "$ac_config_target" in
16893 # Handling of arguments.
16894 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16895 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
16896 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
16897 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
16898 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
16899 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16900 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16901 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
16902 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
16903 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
16904 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
16905 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
16906 "java/net/natVMNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
16907 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
16908 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
16909 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
16910 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
16911 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
16912 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
16913 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
16914 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
16915 "sysdep/backtrace.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
16916 "sysdep/descriptor.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
16917 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
16918 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
16919 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16920 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16921 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
16922 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
16923 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16924 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16925 { (exit 1); exit 1; }; };;
16929 # If the user did not use the arguments to specify the items to instantiate,
16930 # then the envvar interface is used. Set only those that are not.
16931 # We use the long form for the default assignment because of an extremely
16932 # bizarre bug on SunOS 4.1.3.
16933 if $ac_need_defaults; then
16934 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16935 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16936 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16937 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16940 # Have a temporary directory for convenience. Make it in the build tree
16941 # simply because there is no reason to put it here, and in addition,
16942 # creating and moving files from /tmp can sometimes cause problems.
16943 # Create a temporary directory, and hook for its removal unless debugging.
16946 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16947 trap '{ (exit 1); exit 1; }' 1 2 13 15
16950 # Create a (secure) tmp directory for tmp files.
16953 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16954 test -n "$tmp" && test -d "$tmp"
16957 tmp=./confstat$$-$RANDOM
16958 (umask 077 && mkdir $tmp)
16961 echo "$me: cannot create a temporary directory in ." >&2
16962 { (exit 1); exit 1; }
16967 cat >>$CONFIG_STATUS <<_ACEOF
16970 # CONFIG_FILES section.
16973 # No need to generate the scripts if there are no CONFIG_FILES.
16974 # This happens for instance when ./config.status config.h
16975 if test -n "\$CONFIG_FILES"; then
16976 # Protect against being on the right side of a sed subst in config.status.
16977 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16978 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16979 s,@SHELL@,$SHELL,;t t
16980 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16981 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16982 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16983 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16984 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16985 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16986 s,@exec_prefix@,$exec_prefix,;t t
16987 s,@prefix@,$prefix,;t t
16988 s,@program_transform_name@,$program_transform_name,;t t
16989 s,@bindir@,$bindir,;t t
16990 s,@sbindir@,$sbindir,;t t
16991 s,@libexecdir@,$libexecdir,;t t
16992 s,@datadir@,$datadir,;t t
16993 s,@sysconfdir@,$sysconfdir,;t t
16994 s,@sharedstatedir@,$sharedstatedir,;t t
16995 s,@localstatedir@,$localstatedir,;t t
16996 s,@libdir@,$libdir,;t t
16997 s,@includedir@,$includedir,;t t
16998 s,@oldincludedir@,$oldincludedir,;t t
16999 s,@infodir@,$infodir,;t t
17000 s,@mandir@,$mandir,;t t
17001 s,@build_alias@,$build_alias,;t t
17002 s,@host_alias@,$host_alias,;t t
17003 s,@target_alias@,$target_alias,;t t
17004 s,@DEFS@,$DEFS,;t t
17005 s,@ECHO_C@,$ECHO_C,;t t
17006 s,@ECHO_N@,$ECHO_N,;t t
17007 s,@ECHO_T@,$ECHO_T,;t t
17008 s,@LIBS@,$LIBS,;t t
17009 s,@build@,$build,;t t
17010 s,@build_cpu@,$build_cpu,;t t
17011 s,@build_vendor@,$build_vendor,;t t
17012 s,@build_os@,$build_os,;t t
17013 s,@build_subdir@,$build_subdir,;t t
17014 s,@host_subdir@,$host_subdir,;t t
17015 s,@target_subdir@,$target_subdir,;t t
17016 s,@libgcj_basedir@,$libgcj_basedir,;t t
17017 s,@host@,$host,;t t
17018 s,@host_cpu@,$host_cpu,;t t
17019 s,@host_vendor@,$host_vendor,;t t
17020 s,@host_os@,$host_os,;t t
17021 s,@target@,$target,;t t
17022 s,@target_cpu@,$target_cpu,;t t
17023 s,@target_vendor@,$target_vendor,;t t
17024 s,@target_os@,$target_os,;t t
17025 s,@target_noncanonical@,$target_noncanonical,;t t
17026 s,@LN_S@,$LN_S,;t t
17027 s,@mkinstalldirs@,$mkinstalldirs,;t t
17029 s,@ac_ct_CC@,$ac_ct_CC,;t t
17030 s,@EXEEXT@,$EXEEXT,;t t
17031 s,@OBJEXT@,$OBJEXT,;t t
17033 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
17034 s,@CFLAGS@,$CFLAGS,;t t
17035 s,@CXXFLAGS@,$CXXFLAGS,;t t
17036 s,@LDFLAGS@,$LDFLAGS,;t t
17037 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17038 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17039 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17040 s,@CYGPATH_W@,$CYGPATH_W,;t t
17041 s,@PACKAGE@,$PACKAGE,;t t
17042 s,@VERSION@,$VERSION,;t t
17043 s,@ACLOCAL@,$ACLOCAL,;t t
17044 s,@AUTOCONF@,$AUTOCONF,;t t
17045 s,@AUTOMAKE@,$AUTOMAKE,;t t
17046 s,@AUTOHEADER@,$AUTOHEADER,;t t
17047 s,@MAKEINFO@,$MAKEINFO,;t t
17048 s,@install_sh@,$install_sh,;t t
17049 s,@STRIP@,$STRIP,;t t
17050 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17051 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17052 s,@mkdir_p@,$mkdir_p,;t t
17054 s,@SET_MAKE@,$SET_MAKE,;t t
17055 s,@am__leading_dot@,$am__leading_dot,;t t
17056 s,@AMTAR@,$AMTAR,;t t
17057 s,@am__tar@,$am__tar,;t t
17058 s,@am__untar@,$am__untar,;t t
17059 s,@DEPDIR@,$DEPDIR,;t t
17060 s,@am__include@,$am__include,;t t
17061 s,@am__quote@,$am__quote,;t t
17062 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17063 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17064 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17065 s,@CCDEPMODE@,$CCDEPMODE,;t t
17066 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17067 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17068 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
17069 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
17070 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
17072 s,@ac_ct_AS@,$ac_ct_AS,;t t
17074 s,@ac_ct_AR@,$ac_ct_AR,;t t
17075 s,@RANLIB@,$RANLIB,;t t
17076 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17077 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
17078 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
17079 s,@MAINT@,$MAINT,;t t
17080 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
17081 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
17082 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
17083 s,@LIBGCJ_LD_SYMBOLIC@,$LIBGCJ_LD_SYMBOLIC,;t t
17084 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
17085 s,@TOOLKIT@,$TOOLKIT,;t t
17086 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
17087 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
17088 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
17089 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
17090 s,@GCJH@,$GCJH,;t t
17092 s,@INCLTDL@,$INCLTDL,;t t
17093 s,@LIBLTDL@,$LIBLTDL,;t t
17094 s,@DIRLTDL@,$DIRLTDL,;t t
17095 s,@LIBTOOL@,$LIBTOOL,;t t
17096 s,@CXXCPP@,$CXXCPP,;t t
17097 s,@CPPFLAGS@,$CPPFLAGS,;t t
17099 s,@GCJFLAGS@,$GCJFLAGS,;t t
17100 s,@GCJDEPMODE@,$GCJDEPMODE,;t t
17101 s,@am__fastdepGCJ_TRUE@,$am__fastdepGCJ_TRUE,;t t
17102 s,@am__fastdepGCJ_FALSE@,$am__fastdepGCJ_FALSE,;t t
17103 s,@subdirs@,$subdirs,;t t
17104 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
17105 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
17106 s,@JAVA_HOME_SET_TRUE@,$JAVA_HOME_SET_TRUE,;t t
17107 s,@JAVA_HOME_SET_FALSE@,$JAVA_HOME_SET_FALSE,;t t
17108 s,@JAVA_HOME@,$JAVA_HOME,;t t
17109 s,@INTERPRETER@,$INTERPRETER,;t t
17110 s,@LIBFFI@,$LIBFFI,;t t
17111 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
17112 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
17114 s,@EGREP@,$EGREP,;t t
17115 s,@USING_WIN32_PLATFORM_TRUE@,$USING_WIN32_PLATFORM_TRUE,;t t
17116 s,@USING_WIN32_PLATFORM_FALSE@,$USING_WIN32_PLATFORM_FALSE,;t t
17117 s,@USING_POSIX_PLATFORM_TRUE@,$USING_POSIX_PLATFORM_TRUE,;t t
17118 s,@USING_POSIX_PLATFORM_FALSE@,$USING_POSIX_PLATFORM_FALSE,;t t
17119 s,@USING_DARWIN_CRT_TRUE@,$USING_DARWIN_CRT_TRUE,;t t
17120 s,@USING_DARWIN_CRT_FALSE@,$USING_DARWIN_CRT_FALSE,;t t
17121 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
17122 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
17123 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
17124 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
17125 s,@X_CFLAGS@,$X_CFLAGS,;t t
17126 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17127 s,@X_LIBS@,$X_LIBS,;t t
17128 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17129 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
17130 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
17131 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
17132 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
17133 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
17134 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
17135 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
17136 s,@extra_ldflags_libjava@,$extra_ldflags_libjava,;t t
17137 s,@GCLIBS@,$GCLIBS,;t t
17138 s,@GCINCS@,$GCINCS,;t t
17139 s,@GCDEPS@,$GCDEPS,;t t
17140 s,@GCSPEC@,$GCSPEC,;t t
17141 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
17142 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
17143 s,@USING_BOEHMGC_TRUE@,$USING_BOEHMGC_TRUE,;t t
17144 s,@USING_BOEHMGC_FALSE@,$USING_BOEHMGC_FALSE,;t t
17145 s,@USING_NOGC_TRUE@,$USING_NOGC_TRUE,;t t
17146 s,@USING_NOGC_FALSE@,$USING_NOGC_FALSE,;t t
17147 s,@THREADLIBS@,$THREADLIBS,;t t
17148 s,@THREADINCS@,$THREADINCS,;t t
17149 s,@THREADDEPS@,$THREADDEPS,;t t
17150 s,@THREADSPEC@,$THREADSPEC,;t t
17151 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
17152 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
17153 s,@USING_POSIX_THREADS_TRUE@,$USING_POSIX_THREADS_TRUE,;t t
17154 s,@USING_POSIX_THREADS_FALSE@,$USING_POSIX_THREADS_FALSE,;t t
17155 s,@USING_WIN32_THREADS_TRUE@,$USING_WIN32_THREADS_TRUE,;t t
17156 s,@USING_WIN32_THREADS_FALSE@,$USING_WIN32_THREADS_FALSE,;t t
17157 s,@USING_NO_THREADS_TRUE@,$USING_NO_THREADS_TRUE,;t t
17158 s,@USING_NO_THREADS_FALSE@,$USING_NO_THREADS_FALSE,;t t
17159 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
17160 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
17161 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
17162 s,@LIBICONV@,$LIBICONV,;t t
17163 s,@LTLIBICONV@,$LTLIBICONV,;t t
17164 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
17165 s,@GTK_LIBS@,$GTK_LIBS,;t t
17166 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
17167 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
17168 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
17169 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
17170 s,@SUPPLY_BACKTRACE_TRUE@,$SUPPLY_BACKTRACE_TRUE,;t t
17171 s,@SUPPLY_BACKTRACE_FALSE@,$SUPPLY_BACKTRACE_FALSE,;t t
17172 s,@CLASSPATH_SEPARATOR@,$CLASSPATH_SEPARATOR,;t t
17173 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
17174 s,@ZLIBS@,$ZLIBS,;t t
17175 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
17176 s,@ZINCS@,$ZINCS,;t t
17177 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
17178 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
17179 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
17180 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
17181 s,@IEEESPEC@,$IEEESPEC,;t t
17182 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
17183 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
17184 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
17185 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
17186 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
17187 s,@toolexecdir@,$toolexecdir,;t t
17188 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
17189 s,@toolexeclibdir@,$toolexeclibdir,;t t
17190 s,@GCJVERSION@,$GCJVERSION,;t t
17191 s,@gxx_include_dir@,$gxx_include_dir,;t t
17192 s,@libstdcxx_incdir@,$libstdcxx_incdir,;t t
17193 s,@ALLOCA@,$ALLOCA,;t t
17194 s,@PERL@,$PERL,;t t
17195 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
17196 s,@here@,$here,;t t
17197 s,@LIBOBJS@,$LIBOBJS,;t t
17198 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17203 cat >>$CONFIG_STATUS <<\_ACEOF
17204 # Split the substitutions into bite-sized pieces for seds with
17205 # small command number limits, like on Digital OSF/1 and HP-UX.
17206 ac_max_sed_lines=48
17207 ac_sed_frag=1 # Number of current file.
17208 ac_beg=1 # First line for current file.
17209 ac_end=$ac_max_sed_lines # Line after last line for current file.
17212 while $ac_more_lines; do
17213 if test $ac_beg -gt 1; then
17214 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17216 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17218 if test ! -s $tmp/subs.frag; then
17219 ac_more_lines=false
17221 # The purpose of the label and of the branching condition is to
17222 # speed up the sed processing (if there are no `@' at all, there
17223 # is no need to browse any of the substitutions).
17224 # These are the two extra sed commands mentioned above.
17226 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17227 if test -z "$ac_sed_cmds"; then
17228 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17230 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17232 ac_sed_frag=`expr $ac_sed_frag + 1`
17234 ac_end=`expr $ac_end + $ac_max_sed_lines`
17237 if test -z "$ac_sed_cmds"; then
17240 fi # test -n "$CONFIG_FILES"
17243 cat >>$CONFIG_STATUS <<\_ACEOF
17244 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17245 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17247 - | *:- | *:-:* ) # input from stdin
17249 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17250 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17251 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17252 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17253 * ) ac_file_in=$ac_file.in ;;
17256 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17257 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17259 X"$ac_file" : 'X\(//\)[^/]' \| \
17260 X"$ac_file" : 'X\(//\)$' \| \
17261 X"$ac_file" : 'X\(/\)' \| \
17262 . : '\(.\)' 2>/dev/null ||
17264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17266 /^X\(\/\/\)$/{ s//\1/; q; }
17267 /^X\(\/\).*/{ s//\1/; q; }
17269 { if $as_mkdir_p; then
17274 while test ! -d "$as_dir"; do
17275 as_dirs="$as_dir $as_dirs"
17276 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17277 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17278 X"$as_dir" : 'X\(//\)[^/]' \| \
17279 X"$as_dir" : 'X\(//\)$' \| \
17280 X"$as_dir" : 'X\(/\)' \| \
17281 . : '\(.\)' 2>/dev/null ||
17283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17284 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17285 /^X\(\/\/\)$/{ s//\1/; q; }
17286 /^X\(\/\).*/{ s//\1/; q; }
17289 test ! -n "$as_dirs" || mkdir $as_dirs
17290 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17291 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17292 { (exit 1); exit 1; }; }; }
17296 if test "$ac_dir" != .; then
17297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17298 # A "../" for each directory in $ac_dir_suffix.
17299 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17301 ac_dir_suffix= ac_top_builddir=
17305 .) # No --srcdir option. We are building in place.
17307 if test -z "$ac_top_builddir"; then
17310 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17312 [\\/]* | ?:[\\/]* ) # Absolute path.
17313 ac_srcdir=$srcdir$ac_dir_suffix;
17314 ac_top_srcdir=$srcdir ;;
17315 *) # Relative path.
17316 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17317 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17320 # Do not use `cd foo && pwd` to compute absolute paths, because
17321 # the directories may not exist.
17323 .) ac_abs_builddir="$ac_dir";;
17326 .) ac_abs_builddir=`pwd`;;
17327 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17328 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17331 case $ac_abs_builddir in
17332 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17334 case ${ac_top_builddir}. in
17335 .) ac_abs_top_builddir=$ac_abs_builddir;;
17336 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17337 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17340 case $ac_abs_builddir in
17341 .) ac_abs_srcdir=$ac_srcdir;;
17344 .) ac_abs_srcdir=$ac_abs_builddir;;
17345 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17346 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17349 case $ac_abs_builddir in
17350 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17352 case $ac_top_srcdir in
17353 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17354 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17355 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17361 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17362 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17365 if test x"$ac_file" != x-; then
17366 { echo "$as_me:$LINENO: creating $ac_file" >&5
17367 echo "$as_me: creating $ac_file" >&6;}
17370 # Let's still pretend it is `configure' which instantiates (i.e., don't
17371 # use $as_me), people would be surprised to read:
17372 # /* config.h. Generated by config.status. */
17373 if test x"$ac_file" = x-; then
17376 configure_input="$ac_file. "
17378 configure_input=$configure_input"Generated from `echo $ac_file_in |
17379 sed 's,.*/,,'` by configure."
17381 # First look for the input files in the build tree, otherwise in the
17383 ac_file_inputs=`IFS=:
17384 for f in $ac_file_in; do
17386 -) echo $tmp/stdin ;;
17388 # Absolute (can't be DOS-style, as IFS=:)
17389 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17390 echo "$as_me: error: cannot find input file: $f" >&2;}
17391 { (exit 1); exit 1; }; }
17394 if test -f "$f"; then
17397 elif test -f "$srcdir/$f"; then
17402 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17403 echo "$as_me: error: cannot find input file: $f" >&2;}
17404 { (exit 1); exit 1; }; }
17407 done` || { (exit 1); exit 1; }
17409 cat >>$CONFIG_STATUS <<_ACEOF
17413 cat >>$CONFIG_STATUS <<\_ACEOF
17415 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17416 s,@configure_input@,$configure_input,;t t
17417 s,@srcdir@,$ac_srcdir,;t t
17418 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17419 s,@top_srcdir@,$ac_top_srcdir,;t t
17420 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17421 s,@builddir@,$ac_builddir,;t t
17422 s,@abs_builddir@,$ac_abs_builddir,;t t
17423 s,@top_builddir@,$ac_top_builddir,;t t
17424 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17425 s,@INSTALL@,$ac_INSTALL,;t t
17426 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17428 if test x"$ac_file" != x-; then
17429 mv $tmp/out $ac_file
17437 cat >>$CONFIG_STATUS <<\_ACEOF
17440 # CONFIG_HEADER section.
17443 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17444 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17446 # ac_d sets the value in "#define NAME VALUE" lines.
17447 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17448 ac_dB='[ ].*$,\1#\2'
17451 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17452 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17453 ac_uB='$,\1#\2define\3'
17457 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17458 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17460 - | *:- | *:-:* ) # input from stdin
17462 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17463 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17464 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17466 * ) ac_file_in=$ac_file.in ;;
17469 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17470 echo "$as_me: creating $ac_file" >&6;}
17472 # First look for the input files in the build tree, otherwise in the
17474 ac_file_inputs=`IFS=:
17475 for f in $ac_file_in; do
17477 -) echo $tmp/stdin ;;
17479 # Absolute (can't be DOS-style, as IFS=:)
17480 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17481 echo "$as_me: error: cannot find input file: $f" >&2;}
17482 { (exit 1); exit 1; }; }
17483 # Do quote $f, to prevent DOS paths from being IFS'd.
17486 if test -f "$f"; then
17489 elif test -f "$srcdir/$f"; then
17494 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17495 echo "$as_me: error: cannot find input file: $f" >&2;}
17496 { (exit 1); exit 1; }; }
17499 done` || { (exit 1); exit 1; }
17500 # Remove the trailing spaces.
17501 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17505 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17506 # `conftest.undefs', that substitutes the proper values into
17507 # config.h.in to produce config.h. The first handles `#define'
17508 # templates, and the second `#undef' templates.
17509 # And first: Protect against being on the right side of a sed subst in
17510 # config.status. Protect against being in an unquoted here document
17511 # in config.status.
17512 rm -f conftest.defines conftest.undefs
17513 # Using a here document instead of a string reduces the quoting nightmare.
17514 # Putting comments in sed scripts is not portable.
17516 # `end' is used to avoid that the second main sed command (meant for
17517 # 0-ary CPP macros) applies to n-ary macro definitions.
17518 # See the Autoconf documentation for `clear'.
17519 cat >confdef2sed.sed <<\_ACEOF
17524 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17526 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17529 # If some macros were called several times there might be several times
17530 # the same #defines, which is useless. Nevertheless, we may not want to
17531 # sort them, since we want the *last* AC-DEFINE to be honored.
17532 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17533 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17534 rm -f confdef2sed.sed
17536 # This sed command replaces #undef with comments. This is necessary, for
17537 # example, in the case of _POSIX_SOURCE, which is predefined and required
17538 # on some systems where configure will not decide to define it.
17539 cat >>conftest.undefs <<\_ACEOF
17540 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17543 # Break up conftest.defines because some shells have a limit on the size
17544 # of here documents, and old seds have small limits too (100 cmds).
17545 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17546 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17547 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17548 echo ' :' >>$CONFIG_STATUS
17549 rm -f conftest.tail
17550 while grep . conftest.defines >/dev/null
17552 # Write a limited-size here document to $tmp/defines.sed.
17553 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17554 # Speed up: don't consider the non `#define' lines.
17555 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17556 # Work around the forget-to-reset-the-flag bug.
17557 echo 't clr' >>$CONFIG_STATUS
17558 echo ': clr' >>$CONFIG_STATUS
17559 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17561 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17563 mv $tmp/out $tmp/in
17565 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17566 rm -f conftest.defines
17567 mv conftest.tail conftest.defines
17569 rm -f conftest.defines
17570 echo ' fi # grep' >>$CONFIG_STATUS
17571 echo >>$CONFIG_STATUS
17573 # Break up conftest.undefs because some shells have a limit on the size
17574 # of here documents, and old seds have small limits too (100 cmds).
17575 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17576 rm -f conftest.tail
17577 while grep . conftest.undefs >/dev/null
17579 # Write a limited-size here document to $tmp/undefs.sed.
17580 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17581 # Speed up: don't consider the non `#undef'
17582 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17583 # Work around the forget-to-reset-the-flag bug.
17584 echo 't clr' >>$CONFIG_STATUS
17585 echo ': clr' >>$CONFIG_STATUS
17586 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17588 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17590 mv $tmp/out $tmp/in
17592 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17593 rm -f conftest.undefs
17594 mv conftest.tail conftest.undefs
17596 rm -f conftest.undefs
17598 cat >>$CONFIG_STATUS <<\_ACEOF
17599 # Let's still pretend it is `configure' which instantiates (i.e., don't
17600 # use $as_me), people would be surprised to read:
17601 # /* config.h. Generated by config.status. */
17602 if test x"$ac_file" = x-; then
17603 echo "/* Generated by configure. */" >$tmp/config.h
17605 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17607 cat $tmp/in >>$tmp/config.h
17609 if test x"$ac_file" != x-; then
17610 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17611 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17612 echo "$as_me: $ac_file is unchanged" >&6;}
17614 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17616 X"$ac_file" : 'X\(//\)[^/]' \| \
17617 X"$ac_file" : 'X\(//\)$' \| \
17618 X"$ac_file" : 'X\(/\)' \| \
17619 . : '\(.\)' 2>/dev/null ||
17621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17622 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17623 /^X\(\/\/\)$/{ s//\1/; q; }
17624 /^X\(\/\).*/{ s//\1/; q; }
17626 { if $as_mkdir_p; then
17631 while test ! -d "$as_dir"; do
17632 as_dirs="$as_dir $as_dirs"
17633 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17634 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17635 X"$as_dir" : 'X\(//\)[^/]' \| \
17636 X"$as_dir" : 'X\(//\)$' \| \
17637 X"$as_dir" : 'X\(/\)' \| \
17638 . : '\(.\)' 2>/dev/null ||
17640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17641 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17642 /^X\(\/\/\)$/{ s//\1/; q; }
17643 /^X\(\/\).*/{ s//\1/; q; }
17646 test ! -n "$as_dirs" || mkdir $as_dirs
17647 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17648 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17649 { (exit 1); exit 1; }; }; }
17652 mv $tmp/config.h $ac_file
17656 rm -f $tmp/config.h
17658 # Compute $ac_file's index in $config_headers.
17660 for _am_header in $config_headers :; do
17661 case $_am_header in
17662 $ac_file | $ac_file:* )
17665 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17668 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
17669 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17670 X$ac_file : 'X\(//\)[^/]' \| \
17671 X$ac_file : 'X\(//\)$' \| \
17672 X$ac_file : 'X\(/\)' \| \
17673 . : '\(.\)' 2>/dev/null ||
17675 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17676 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17677 /^X\(\/\/\)$/{ s//\1/; q; }
17678 /^X\(\/\).*/{ s//\1/; q; }
17679 s/.*/./; q'`/stamp-h$_am_stamp_count
17682 cat >>$CONFIG_STATUS <<\_ACEOF
17685 # CONFIG_LINKS section.
17688 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
17689 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17690 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17692 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
17693 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
17695 if test ! -r $srcdir/$ac_source; then
17696 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
17697 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
17698 { (exit 1); exit 1; }; }
17702 # Make relative symlinks.
17703 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
17704 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17705 X"$ac_dest" : 'X\(//\)[^/]' \| \
17706 X"$ac_dest" : 'X\(//\)$' \| \
17707 X"$ac_dest" : 'X\(/\)' \| \
17708 . : '\(.\)' 2>/dev/null ||
17710 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17711 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17712 /^X\(\/\/\)$/{ s//\1/; q; }
17713 /^X\(\/\).*/{ s//\1/; q; }
17715 { if $as_mkdir_p; then
17716 mkdir -p "$ac_dest_dir"
17718 as_dir="$ac_dest_dir"
17720 while test ! -d "$as_dir"; do
17721 as_dirs="$as_dir $as_dirs"
17722 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17723 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17724 X"$as_dir" : 'X\(//\)[^/]' \| \
17725 X"$as_dir" : 'X\(//\)$' \| \
17726 X"$as_dir" : 'X\(/\)' \| \
17727 . : '\(.\)' 2>/dev/null ||
17729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17731 /^X\(\/\/\)$/{ s//\1/; q; }
17732 /^X\(\/\).*/{ s//\1/; q; }
17735 test ! -n "$as_dirs" || mkdir $as_dirs
17736 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
17737 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
17738 { (exit 1); exit 1; }; }; }
17742 if test "$ac_dest_dir" != .; then
17743 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
17744 # A "../" for each directory in $ac_dir_suffix.
17745 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17747 ac_dir_suffix= ac_top_builddir=
17751 .) # No --srcdir option. We are building in place.
17753 if test -z "$ac_top_builddir"; then
17756 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17758 [\\/]* | ?:[\\/]* ) # Absolute path.
17759 ac_srcdir=$srcdir$ac_dir_suffix;
17760 ac_top_srcdir=$srcdir ;;
17761 *) # Relative path.
17762 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17763 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17766 # Do not use `cd foo && pwd` to compute absolute paths, because
17767 # the directories may not exist.
17769 .) ac_abs_builddir="$ac_dest_dir";;
17771 case "$ac_dest_dir" in
17772 .) ac_abs_builddir=`pwd`;;
17773 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
17774 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
17777 case $ac_abs_builddir in
17778 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17780 case ${ac_top_builddir}. in
17781 .) ac_abs_top_builddir=$ac_abs_builddir;;
17782 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17783 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17786 case $ac_abs_builddir in
17787 .) ac_abs_srcdir=$ac_srcdir;;
17790 .) ac_abs_srcdir=$ac_abs_builddir;;
17791 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17792 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17795 case $ac_abs_builddir in
17796 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17798 case $ac_top_srcdir in
17799 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17800 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17801 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17807 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
17808 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
17811 # Try a symlink, then a hard link, then a copy.
17812 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
17813 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
17814 cp -p $srcdir/$ac_source $ac_dest ||
17815 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
17816 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
17817 { (exit 1); exit 1; }; }
17820 cat >>$CONFIG_STATUS <<\_ACEOF
17823 # CONFIG_COMMANDS section.
17825 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17826 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17827 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17828 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17829 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17830 X"$ac_dest" : 'X\(//\)[^/]' \| \
17831 X"$ac_dest" : 'X\(//\)$' \| \
17832 X"$ac_dest" : 'X\(/\)' \| \
17833 . : '\(.\)' 2>/dev/null ||
17835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17837 /^X\(\/\/\)$/{ s//\1/; q; }
17838 /^X\(\/\).*/{ s//\1/; q; }
17840 { if $as_mkdir_p; then
17845 while test ! -d "$as_dir"; do
17846 as_dirs="$as_dir $as_dirs"
17847 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17848 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17849 X"$as_dir" : 'X\(//\)[^/]' \| \
17850 X"$as_dir" : 'X\(//\)$' \| \
17851 X"$as_dir" : 'X\(/\)' \| \
17852 . : '\(.\)' 2>/dev/null ||
17854 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17855 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17856 /^X\(\/\/\)$/{ s//\1/; q; }
17857 /^X\(\/\).*/{ s//\1/; q; }
17860 test ! -n "$as_dirs" || mkdir $as_dirs
17861 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17862 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17863 { (exit 1); exit 1; }; }; }
17867 if test "$ac_dir" != .; then
17868 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17869 # A "../" for each directory in $ac_dir_suffix.
17870 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17872 ac_dir_suffix= ac_top_builddir=
17876 .) # No --srcdir option. We are building in place.
17878 if test -z "$ac_top_builddir"; then
17881 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17883 [\\/]* | ?:[\\/]* ) # Absolute path.
17884 ac_srcdir=$srcdir$ac_dir_suffix;
17885 ac_top_srcdir=$srcdir ;;
17886 *) # Relative path.
17887 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17888 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17891 # Do not use `cd foo && pwd` to compute absolute paths, because
17892 # the directories may not exist.
17894 .) ac_abs_builddir="$ac_dir";;
17897 .) ac_abs_builddir=`pwd`;;
17898 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
17899 *) ac_abs_builddir=`pwd`/"$ac_dir";;
17902 case $ac_abs_builddir in
17903 .) ac_abs_top_builddir=${ac_top_builddir}.;;
17905 case ${ac_top_builddir}. in
17906 .) ac_abs_top_builddir=$ac_abs_builddir;;
17907 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
17908 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
17911 case $ac_abs_builddir in
17912 .) ac_abs_srcdir=$ac_srcdir;;
17915 .) ac_abs_srcdir=$ac_abs_builddir;;
17916 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
17917 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
17920 case $ac_abs_builddir in
17921 .) ac_abs_top_srcdir=$ac_top_srcdir;;
17923 case $ac_top_srcdir in
17924 .) ac_abs_top_srcdir=$ac_abs_builddir;;
17925 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
17926 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
17931 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17932 echo "$as_me: executing $ac_dest commands" >&6;}
17934 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17935 # Strip MF so we end up with the name of the file.
17936 mf=`echo "$mf" | sed -e 's/:.*$//'`
17937 # Check whether this is an Automake generated Makefile or not.
17938 # We used to match only the files named `Makefile.in', but
17939 # some people rename them; so instead we look at the file content.
17940 # Grep'ing the first line is not enough: some people post-process
17941 # each Makefile.in and add a new line on top of each file to say so.
17942 # So let's grep whole file.
17943 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17944 dirpart=`(dirname "$mf") 2>/dev/null ||
17945 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17946 X"$mf" : 'X\(//\)[^/]' \| \
17947 X"$mf" : 'X\(//\)$' \| \
17948 X"$mf" : 'X\(/\)' \| \
17949 . : '\(.\)' 2>/dev/null ||
17951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17952 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17953 /^X\(\/\/\)$/{ s//\1/; q; }
17954 /^X\(\/\).*/{ s//\1/; q; }
17959 # Extract the definition of DEPDIR, am__include, and am__quote
17960 # from the Makefile without running `make'.
17961 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17962 test -z "$DEPDIR" && continue
17963 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17964 test -z "am__include" && continue
17965 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17966 # When using ansi2knr, U may be empty or an underscore; expand it
17967 U=`sed -n 's/^U = //p' < "$mf"`
17968 # Find all dependency output files, they are included files with
17969 # $(DEPDIR) in their names. We invoke sed twice because it is the
17970 # simplest approach to changing $(DEPDIR) to its actual value in the
17972 for file in `sed -n "
17973 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17974 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17975 # Make sure the directory exists.
17976 test -f "$dirpart/$file" && continue
17977 fdir=`(dirname "$file") 2>/dev/null ||
17978 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17979 X"$file" : 'X\(//\)[^/]' \| \
17980 X"$file" : 'X\(//\)$' \| \
17981 X"$file" : 'X\(/\)' \| \
17982 . : '\(.\)' 2>/dev/null ||
17984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17985 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17986 /^X\(\/\/\)$/{ s//\1/; q; }
17987 /^X\(\/\).*/{ s//\1/; q; }
17989 { if $as_mkdir_p; then
17990 mkdir -p $dirpart/$fdir
17992 as_dir=$dirpart/$fdir
17994 while test ! -d "$as_dir"; do
17995 as_dirs="$as_dir $as_dirs"
17996 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17997 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17998 X"$as_dir" : 'X\(//\)[^/]' \| \
17999 X"$as_dir" : 'X\(//\)$' \| \
18000 X"$as_dir" : 'X\(/\)' \| \
18001 . : '\(.\)' 2>/dev/null ||
18003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18005 /^X\(\/\/\)$/{ s//\1/; q; }
18006 /^X\(\/\).*/{ s//\1/; q; }
18009 test ! -n "$as_dirs" || mkdir $as_dirs
18010 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18011 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18012 { (exit 1); exit 1; }; }; }
18014 # echo "creating $dirpart/$file"
18015 echo '# dummy' > "$dirpart/$file"
18019 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
18020 case " $CONFIG_FILES " in
18022 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
18023 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
18026 for ac_multi_file in $CONFIG_FILES; do
18027 case $ac_multi_file in
18029 grep "^MULTI[^ ]* =" Makefile >> "$ac_multi_file" ;;
18037 cat >>$CONFIG_STATUS <<\_ACEOF
18039 { (exit 0); exit 0; }
18041 chmod +x $CONFIG_STATUS
18042 ac_clean_files=$ac_clean_files_save
18045 # configure is writing to config.log, and then calls config.status.
18046 # config.status does its own redirection, appending to config.log.
18047 # Unfortunately, on DOS this fails, as config.log is still kept open
18048 # by configure, so config.status won't be able to write to it; its
18049 # output is simply discarded. So we exec the FD to /dev/null,
18050 # effectively closing config.log, so it can be properly (re)opened and
18051 # appended to by config.status. When coming back to configure, we
18052 # need to make the FD available again.
18053 if test "$no_create" != yes; then
18055 ac_config_status_args=
18056 test "$silent" = yes &&
18057 ac_config_status_args="$ac_config_status_args --quiet"
18059 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18061 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18062 # would make configure fail if this is the last instruction.
18063 $ac_cs_success || { (exit 1); exit 1; }
18067 # CONFIG_SUBDIRS section.
18069 if test "$no_recursion" != yes; then
18071 # Remove --cache-file and --srcdir arguments so they do not pile up.
18072 ac_sub_configure_args=
18074 for ac_arg in $ac_configure_args; do
18075 if test -n "$ac_prev"; then
18080 -cache-file | --cache-file | --cache-fil | --cache-fi \
18081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18082 ac_prev=cache_file ;;
18083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
18087 --config-cache | -C)
18089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
18095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
18097 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18101 # Always prepend --prefix to ensure using the same prefix
18102 # in subdir configurations.
18103 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
18106 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
18108 # Do not complain, so a configure script can configure whichever
18109 # parts of a large source tree are present.
18110 test -d $srcdir/$ac_dir || continue
18112 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
18113 echo "$as_me: configuring in $ac_dir" >&6;}
18114 { if $as_mkdir_p; then
18119 while test ! -d "$as_dir"; do
18120 as_dirs="$as_dir $as_dirs"
18121 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18122 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18123 X"$as_dir" : 'X\(//\)[^/]' \| \
18124 X"$as_dir" : 'X\(//\)$' \| \
18125 X"$as_dir" : 'X\(/\)' \| \
18126 . : '\(.\)' 2>/dev/null ||
18128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18130 /^X\(\/\/\)$/{ s//\1/; q; }
18131 /^X\(\/\).*/{ s//\1/; q; }
18134 test ! -n "$as_dirs" || mkdir $as_dirs
18135 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18136 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18137 { (exit 1); exit 1; }; }; }
18141 if test "$ac_dir" != .; then
18142 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18143 # A "../" for each directory in $ac_dir_suffix.
18144 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18146 ac_dir_suffix= ac_top_builddir=
18150 .) # No --srcdir option. We are building in place.
18152 if test -z "$ac_top_builddir"; then
18155 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18157 [\\/]* | ?:[\\/]* ) # Absolute path.
18158 ac_srcdir=$srcdir$ac_dir_suffix;
18159 ac_top_srcdir=$srcdir ;;
18160 *) # Relative path.
18161 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18162 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18165 # Do not use `cd foo && pwd` to compute absolute paths, because
18166 # the directories may not exist.
18168 .) ac_abs_builddir="$ac_dir";;
18171 .) ac_abs_builddir=`pwd`;;
18172 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18173 *) ac_abs_builddir=`pwd`/"$ac_dir";;
18176 case $ac_abs_builddir in
18177 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18179 case ${ac_top_builddir}. in
18180 .) ac_abs_top_builddir=$ac_abs_builddir;;
18181 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18182 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18185 case $ac_abs_builddir in
18186 .) ac_abs_srcdir=$ac_srcdir;;
18189 .) ac_abs_srcdir=$ac_abs_builddir;;
18190 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18191 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18194 case $ac_abs_builddir in
18195 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18197 case $ac_top_srcdir in
18198 .) ac_abs_top_srcdir=$ac_abs_builddir;;
18199 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18200 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18207 # Check for guested configure; otherwise get Cygnus style configure.
18208 if test -f $ac_srcdir/configure.gnu; then
18209 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
18210 elif test -f $ac_srcdir/configure; then
18211 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
18212 elif test -f $ac_srcdir/configure.in; then
18213 ac_sub_configure=$ac_configure
18215 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
18216 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
18220 # The recursion is here.
18221 if test -n "$ac_sub_configure"; then
18222 # Make the cache file name correct relative to the subdirectory.
18223 case $cache_file in
18224 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
18225 *) # Relative path.
18226 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
18229 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
18230 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
18231 # The eval makes quoting arguments work.
18232 eval $ac_sub_configure $ac_sub_configure_args \
18233 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
18234 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
18235 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
18236 { (exit 1); exit 1; }; }