2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
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.
274 ac_unique_file="java/lang/System.java"
275 ac_subdirs_all="$ac_subdirs_all $DIRLTDL"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS libgcj_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os target_noncanonical LN_S mkinstalldirs CC ac_ct_CC EXEEXT OBJEXT CXX ac_ct_CXX CFLAGS CXXFLAGS LDFLAGS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE 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 INCLTDL LIBLTDL DIRLTDL STRIP ac_ct_STRIP LIBTOOL CXXCPP CPPFLAGS subdirs COMPPATH TESTSUBDIR_TRUE TESTSUBDIR_FALSE ONESTEP_TRUE ONESTEP_FALSE LIBGCJDEBUG INTERPRETER LIBFFI LIBFFIINCS EXTRA_CC_FILES PLATFORMOBJS PLATFORM_INNER_NAT_HDRS CPP EGREP SYSTEMSPEC LIBGCJTESTSPEC ZLIBSPEC ZLIBTESTSPEC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS TOOLKIT XLIB_AWT_TRUE XLIB_AWT_FALSE GTK_AWT_TRUE GTK_AWT_FALSE GTK_CAIRO_TRUE GTK_CAIRO_FALSE PKG_CONFIG CAIRO_CFLAGS CAIRO_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS GCLIBS GCINCS GCDEPS GCOBJS GCSPEC JC1GCSPEC GCTESTSPEC THREADLIBS THREADINCS THREADDEPS THREADOBJS THREADSPEC THREADLDFLAGS THREADCXXFLAGS HASH_SYNC_SPEC USING_GCC_TRUE USING_GCC_FALSE tool_include_dir gcc_version LIBICONV GTK_CFLAGS GTK_LIBS GLIB_CFLAGS GLIB_LIBS LIBART_CFLAGS LIBART_LIBS GCJH ZIP GCJ ac_ct_GCJ GCJFLAGS ZLIBS SYS_ZLIBS ZINCS DIVIDESPEC CHECKREFSPEC EXCEPTIONSPEC IEEESPEC NATIVE_TRUE NATIVE_FALSE NEEDS_DATA_START_TRUE NEEDS_DATA_START_FALSE GCC_UNWIND_INCLUDE toolexecdir toolexecmainlibdir toolexeclibdir GCJVERSION ALLOCA PERL BACKTRACESPEC SYSDEP_SOURCES here LIBOBJS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CXXCPP_set=${CXXCPP+set}
755 ac_env_CXXCPP_value=$CXXCPP
756 ac_cv_env_CXXCPP_set=${CXXCPP+set}
757 ac_cv_env_CXXCPP_value=$CXXCPP
758 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
759 ac_env_CPPFLAGS_value=$CPPFLAGS
760 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
761 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
768 # Report the --help message.
770 if test "$ac_init_help" = "long"; then
771 # Omit some internal or obsolete options to make the list less imposing.
772 # This message is too long to be a string in the A/UX 3.1 sh.
774 \`configure' configures this package 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
848 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
849 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
850 --enable-version-specific-runtime-libs
851 specify that runtime libraries should be installed
852 in a compiler-specific directory
853 --enable-multilib build many library versions (default)
854 --enable-maintainer-mode enable make rules and dependencies not useful
855 (and sometimes confusing) to the casual installer
856 --enable-shared=PKGS build shared libraries default=yes
857 --enable-static=PKGS build static libraries default=yes
858 --enable-fast-install=PKGS optimize for fast installation default=yes
859 --disable-libtool-lock avoid locking (might break parallel builds)
860 --disable-getenv-properties
861 don't set system properties from GCJ_PROPERTIES
862 --enable-hash-synchronization
863 use global hash table for monitor locks
864 --enable-libgcj-multifile
865 allow compilation of several files at once
867 --enable-libgcj-debug enable runtime debugging code
868 --enable-interpreter enable interpreter
869 --enable-sjlj-exceptions
870 force use of builtin_setjmp for exceptions
871 --disable-java-net disable java.net
872 --disable-jvmpi disable JVMPI support
873 --enable-java-awt list of AWT peer implementations to be built
874 --enable-gtk-cairo build the cairo Graphics2D implementation on GTK
875 --enable-java-gc=TYPE choose garbage collector (default is boehm)
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-target-subdir=SUBDIR
881 configure in a subdirectory
882 --with-cross-host=HOST configure with a cross compiler from HOST
883 --with-newlib configure with newlib
884 --with-gnu-ld assume the C compiler uses GNU ld default=no
885 --with-pic try to use only PIC/non-PIC objects default=use both
886 --with-win32-nlsapi=ansi or unicows or unicode
887 native MinGW libgcj Win32 OS API (default is ansi)
888 --without-libffi don't use libffi
889 --with-ecos enable runtime eCos target support
890 --with-system-zlib use installed libz
891 --with-x use the X Window System
892 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
901 CXX C++ compiler command
902 CXXFLAGS C++ compiler flags
903 CXXCPP C++ preprocessor
906 Use these variables to override the choices made by `configure' or to help
907 it to find libraries and programs with nonstandard names/locations.
912 if test "$ac_init_help" = "recursive"; then
913 # If there are subdirs, report their specific --help.
915 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
916 test -d $ac_dir || continue
919 if test "$ac_dir" != .; then
920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
921 # A "../" for each directory in $ac_dir_suffix.
922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924 ac_dir_suffix= ac_top_builddir=
928 .) # No --srcdir option. We are building in place.
930 if test -z "$ac_top_builddir"; then
933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 [\\/]* | ?:[\\/]* ) # Absolute path.
936 ac_srcdir=$srcdir$ac_dir_suffix;
937 ac_top_srcdir=$srcdir ;;
939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
943 # Do not use `cd foo && pwd` to compute absolute paths, because
944 # the directories may not exist.
946 .) ac_abs_builddir="$ac_dir";;
949 .) ac_abs_builddir=`pwd`;;
950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
954 case $ac_abs_builddir in
955 .) ac_abs_top_builddir=${ac_top_builddir}.;;
957 case ${ac_top_builddir}. in
958 .) ac_abs_top_builddir=$ac_abs_builddir;;
959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
963 case $ac_abs_builddir in
964 .) ac_abs_srcdir=$ac_srcdir;;
967 .) ac_abs_srcdir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
972 case $ac_abs_builddir in
973 .) ac_abs_top_srcdir=$ac_top_srcdir;;
975 case $ac_top_srcdir in
976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
983 # Check for guested configure; otherwise get Cygnus style configure.
984 if test -f $ac_srcdir/configure.gnu; then
986 $SHELL $ac_srcdir/configure.gnu --help=recursive
987 elif test -f $ac_srcdir/configure; then
989 $SHELL $ac_srcdir/configure --help=recursive
990 elif test -f $ac_srcdir/configure.ac ||
991 test -f $ac_srcdir/configure.in; then
995 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1001 test -n "$ac_init_help" && exit 0
1002 if $ac_init_version; then
1005 Copyright (C) 2003 Free Software Foundation, Inc.
1006 This configure script is free software; the Free Software Foundation
1007 gives unlimited permission to copy, distribute and modify it.
1013 This file contains any messages produced by compilers while
1014 running configure, to aid debugging if configure makes a mistake.
1016 It was created by $as_me, which was
1017 generated by GNU Autoconf 2.59. Invocation command line was
1028 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1029 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1030 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1031 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1032 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1035 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1038 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1039 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1040 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1041 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1042 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1043 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1051 test -z "$as_dir" && as_dir=.
1052 echo "PATH: $as_dir"
1067 # Keep a trace of the command line.
1068 # Strip out --no-create and --no-recursion so they do not pile up.
1069 # Strip out --silent because we don't want to record it for future runs.
1070 # Also quote any args containing shell meta-characters.
1071 # Make two passes to allow for proper duplicate-argument suppression.
1076 ac_must_keep_next=false
1082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1086 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1087 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1090 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1093 if test $ac_must_keep_next = true; then
1094 ac_must_keep_next=false # Got value, back to normal.
1097 *=* | --config-cache | -C | -disable-* | --disable-* \
1098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1100 | -with-* | --with-* | -without-* | --without-* | --x)
1101 case "$ac_configure_args0 " in
1102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1105 -* ) ac_must_keep_next=true ;;
1108 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1109 # Get rid of the leading space.
1115 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1116 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118 # When interrupted or exit'd, cleanup temporary files, and complete
1119 # config.log. We remove comments because anyway the quotes in there
1120 # would cause problems or look ugly.
1121 # WARNING: Be sure not to use single quotes in there, as some shells,
1122 # such as our DU 5.0 friend, will then `close' the trap.
1123 trap 'exit_status=$?
1124 # Save into config.log some information that might help in debugging.
1129 ## ---------------- ##
1130 ## Cache variables. ##
1131 ## ---------------- ##
1134 # The following way of writing the cache mishandles newlines in values,
1137 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1140 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1145 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152 ## ----------------- ##
1153 ## Output variables. ##
1154 ## ----------------- ##
1157 for ac_var in $ac_subst_vars
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1164 if test -n "$ac_subst_files"; then
1171 for ac_var in $ac_subst_files
1173 eval ac_val=$`echo $ac_var`
1174 echo "$ac_var='"'"'$ac_val'"'"'"
1179 if test -s confdefs.h; then
1186 sed "/^$/d" confdefs.h | sort
1189 test "$ac_signal" != 0 &&
1190 echo "$as_me: caught signal $ac_signal"
1191 echo "$as_me: exit $exit_status"
1193 rm -f core *.core &&
1194 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1197 for ac_signal in 1 2 13 15; do
1198 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1202 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1203 rm -rf conftest* confdefs.h
1204 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1207 # Predefined preprocessor variables.
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_NAME "$PACKAGE_NAME"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_STRING "$PACKAGE_STRING"
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1234 # Let the site file select an alternate cache file if it wants to.
1235 # Prefer explicitly selected file to automatically selected ones.
1236 if test -z "$CONFIG_SITE"; then
1237 if test "x$prefix" != xNONE; then
1238 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1243 for ac_site_file in $CONFIG_SITE; do
1244 if test -r "$ac_site_file"; then
1245 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1246 echo "$as_me: loading site script $ac_site_file" >&6;}
1247 sed 's/^/| /' "$ac_site_file" >&5
1252 if test -r "$cache_file"; then
1253 # Some versions of bash will fail to source /dev/null (special
1254 # files actually), so we avoid doing that.
1255 if test -f "$cache_file"; then
1256 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1257 echo "$as_me: loading cache $cache_file" >&6;}
1259 [\\/]* | ?:[\\/]* ) . $cache_file;;
1260 *) . ./$cache_file;;
1264 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1265 echo "$as_me: creating cache $cache_file" >&6;}
1269 # Check that the precious variables saved in the cache have kept the same
1271 ac_cache_corrupted=false
1272 for ac_var in `(set) 2>&1 |
1273 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1275 eval ac_new_set=\$ac_env_${ac_var}_set
1276 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1277 eval ac_new_val="\$ac_env_${ac_var}_value"
1278 case $ac_old_set,$ac_new_set in
1280 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1281 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1282 ac_cache_corrupted=: ;;
1284 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1285 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1286 ac_cache_corrupted=: ;;
1289 if test "x$ac_old_val" != "x$ac_new_val"; then
1290 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1291 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1292 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1293 echo "$as_me: former value: $ac_old_val" >&2;}
1294 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1295 echo "$as_me: current value: $ac_new_val" >&2;}
1296 ac_cache_corrupted=:
1299 # Pass precious variables to config.status.
1300 if test "$ac_new_set" = set; then
1302 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1303 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1304 *) ac_arg=$ac_var=$ac_new_val ;;
1306 case " $ac_configure_args " in
1307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1308 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1312 if $ac_cache_corrupted; then
1313 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1314 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1315 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1316 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1317 { (exit 1); exit 1; }; }
1321 ac_cpp='$CPP $CPPFLAGS'
1322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345 # We use these options to decide which functions to include.
1347 # Check whether --with-target-subdir or --without-target-subdir was given.
1348 if test "${with_target_subdir+set}" = set; then
1349 withval="$with_target_subdir"
1353 # We may get other options which we don't document:
1354 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1356 # When building with srcdir == objdir, links to the source files will
1357 # be created in directories within the target_subdir. We have to
1358 # adjust toplevel_srcdir accordingly, so that configure finds
1359 # install-sh and other auxiliary files that live in the top-level
1361 if test "${srcdir}" = "."; then
1362 if test -z "${with_target_subdir}"; then
1365 if test "${with_target_subdir}" != "."; then
1366 toprel="${with_multisrctop}../.."
1368 toprel="${with_multisrctop}.."
1375 libgcj_basedir=$srcdir/$toprel/./libjava
1379 for ac_dir in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel; do
1380 if test -f $ac_dir/install-sh; then
1382 ac_install_sh="$ac_aux_dir/install-sh -c"
1384 elif test -f $ac_dir/install.sh; then
1386 ac_install_sh="$ac_aux_dir/install.sh -c"
1388 elif test -f $ac_dir/shtool; then
1390 ac_install_sh="$ac_aux_dir/shtool install -c"
1394 if test -z "$ac_aux_dir"; then
1395 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&5
1396 echo "$as_me: error: cannot find install-sh or install.sh in ${srcdir}/$toprel $srcdir/${srcdir}/$toprel" >&2;}
1397 { (exit 1); exit 1; }; }
1399 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1400 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1401 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1404 # This overrides the previous occurrence for automake, but not for
1405 # autoconf, which is exactly what we want.
1407 for ac_dir in .. $srcdir/..; do
1408 if test -f $ac_dir/install-sh; then
1410 ac_install_sh="$ac_aux_dir/install-sh -c"
1412 elif test -f $ac_dir/install.sh; then
1414 ac_install_sh="$ac_aux_dir/install.sh -c"
1416 elif test -f $ac_dir/shtool; then
1418 ac_install_sh="$ac_aux_dir/shtool install -c"
1422 if test -z "$ac_aux_dir"; then
1423 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1424 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1425 { (exit 1); exit 1; }; }
1427 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1428 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1429 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1433 # Make sure we can run config.sub.
1434 $ac_config_sub sun4 >/dev/null 2>&1 ||
1435 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1436 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1437 { (exit 1); exit 1; }; }
1439 echo "$as_me:$LINENO: checking build system type" >&5
1440 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1441 if test "${ac_cv_build+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 ac_cv_build_alias=$build_alias
1445 test -z "$ac_cv_build_alias" &&
1446 ac_cv_build_alias=`$ac_config_guess`
1447 test -z "$ac_cv_build_alias" &&
1448 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1449 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1450 { (exit 1); exit 1; }; }
1451 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1453 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1454 { (exit 1); exit 1; }; }
1457 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1458 echo "${ECHO_T}$ac_cv_build" >&6
1460 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1461 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1462 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1465 echo "$as_me:$LINENO: checking host system type" >&5
1466 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1467 if test "${ac_cv_host+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1470 ac_cv_host_alias=$host_alias
1471 test -z "$ac_cv_host_alias" &&
1472 ac_cv_host_alias=$ac_cv_build_alias
1473 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1475 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1476 { (exit 1); exit 1; }; }
1479 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1480 echo "${ECHO_T}$ac_cv_host" >&6
1482 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1483 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1484 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1487 echo "$as_me:$LINENO: checking target system type" >&5
1488 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1489 if test "${ac_cv_target+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 ac_cv_target_alias=$target_alias
1493 test "x$ac_cv_target_alias" = "x" &&
1494 ac_cv_target_alias=$ac_cv_host_alias
1495 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1496 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1497 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1498 { (exit 1); exit 1; }; }
1501 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1502 echo "${ECHO_T}$ac_cv_target" >&6
1503 target=$ac_cv_target
1504 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1505 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1506 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1509 # The aliases save the names the user supplied, while $host etc.
1510 # will get canonicalized.
1511 test -n "$target_alias" &&
1512 test "$program_prefix$program_suffix$program_transform_name" = \
1514 program_prefix=${target_alias}-
1515 case ${build_alias} in
1516 "") build_noncanonical=${build} ;;
1517 *) build_noncanonical=${build_alias} ;;
1520 case ${host_alias} in
1521 "") host_noncanonical=${build_noncanonical} ;;
1522 *) host_noncanonical=${host_alias} ;;
1525 case ${target_alias} in
1526 "") target_noncanonical=${host_noncanonical} ;;
1527 *) target_noncanonical=${target_alias} ;;
1533 # This works around the fact that libtool configuration may change LD
1534 # for this particular configuration, but some shells, instead of
1535 # keeping the changes in LD private, export them just because LD is
1537 ORIGINAL_LD_FOR_MULTILIBS=$LD
1539 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1540 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1542 if test "$LN_S" = "ln -s"; then
1543 echo "$as_me:$LINENO: result: yes" >&5
1544 echo "${ECHO_T}yes" >&6
1546 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1547 echo "${ECHO_T}no, using $LN_S" >&6
1551 # This works around an automake problem.
1552 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
1556 # Check whether --with-cross-host or --without-cross-host was given.
1557 if test "${with_cross_host+set}" = set; then
1558 withval="$with_cross_host"
1563 # Check whether --with-newlib or --without-newlib was given.
1564 if test "${with_newlib+set}" = set; then
1565 withval="$with_newlib"
1569 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given.
1570 if test "${enable_version_specific_runtime_libs+set}" = set; then
1571 enableval="$enable_version_specific_runtime_libs"
1572 case "$enableval" in
1573 yes) version_specific_libs=yes ;;
1574 no) version_specific_libs=no ;;
1575 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific libs" >&5
1576 echo "$as_me: error: Unknown argument to enable/disable version-specific libs" >&2;}
1577 { (exit 1); exit 1; }; };;
1580 version_specific_libs=no
1584 # Default to --enable-multilib
1585 # Check whether --enable-multilib or --disable-multilib was given.
1586 if test "${enable_multilib+set}" = set; then
1587 enableval="$enable_multilib"
1588 case "${enableval}" in
1589 yes) multilib=yes ;;
1591 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1592 echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1593 { (exit 1); exit 1; }; } ;;
1598 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
1601 # (1) We use an abnormal CXX (without library references), so we
1602 # must cache it under a different name.
1603 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
1604 # the non-multilib-adjusted value will be used in multilibs.
1605 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
1606 # (4) As another side effect, automake doesn't automatically include them
1608 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
1609 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
1610 # used in later tests. This may not be necessary in libjava; I don't know.
1614 save_CXXFLAGS="$CXXFLAGS"
1615 CXXFLAGS="$CXXFLAGS -fno-builtin"
1617 ac_cpp='$CPP $CPPFLAGS'
1618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1621 if test -n "$ac_tool_prefix"; then
1622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1623 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1624 echo "$as_me:$LINENO: checking for $ac_word" >&5
1625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1626 if test "${ac_cv_prog_CC+set}" = set; then
1627 echo $ECHO_N "(cached) $ECHO_C" >&6
1629 if test -n "$CC"; then
1630 ac_cv_prog_CC="$CC" # Let the user override the test.
1632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1636 test -z "$as_dir" && as_dir=.
1637 for ac_exec_ext in '' $ac_executable_extensions; do
1638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1639 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1649 if test -n "$CC"; then
1650 echo "$as_me:$LINENO: result: $CC" >&5
1651 echo "${ECHO_T}$CC" >&6
1653 echo "$as_me:$LINENO: result: no" >&5
1654 echo "${ECHO_T}no" >&6
1658 if test -z "$ac_cv_prog_CC"; then
1660 # Extract the first word of "gcc", so it can be a program name with args.
1661 set dummy gcc; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1667 if test -n "$ac_ct_CC"; then
1668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_ac_ct_CC="gcc"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1687 if test -n "$ac_ct_CC"; then
1688 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689 echo "${ECHO_T}$ac_ct_CC" >&6
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1700 if test -z "$CC"; then
1701 if test -n "$ac_tool_prefix"; then
1702 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1703 set dummy ${ac_tool_prefix}cc; ac_word=$2
1704 echo "$as_me:$LINENO: checking for $ac_word" >&5
1705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1706 if test "${ac_cv_prog_CC+set}" = set; then
1707 echo $ECHO_N "(cached) $ECHO_C" >&6
1709 if test -n "$CC"; then
1710 ac_cv_prog_CC="$CC" # Let the user override the test.
1712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1716 test -z "$as_dir" && as_dir=.
1717 for ac_exec_ext in '' $ac_executable_extensions; do
1718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1719 ac_cv_prog_CC="${ac_tool_prefix}cc"
1720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$ac_cv_prog_CC"; then
1740 # Extract the first word of "cc", so it can be a program name with args.
1741 set dummy cc; ac_word=$2
1742 echo "$as_me:$LINENO: checking for $ac_word" >&5
1743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1744 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1747 if test -n "$ac_ct_CC"; then
1748 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1754 test -z "$as_dir" && as_dir=.
1755 for ac_exec_ext in '' $ac_executable_extensions; do
1756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1757 ac_cv_prog_ac_ct_CC="cc"
1758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1767 if test -n "$ac_ct_CC"; then
1768 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1769 echo "${ECHO_T}$ac_ct_CC" >&6
1771 echo "$as_me:$LINENO: result: no" >&5
1772 echo "${ECHO_T}no" >&6
1781 if test -z "$CC"; then
1782 # Extract the first word of "cc", so it can be a program name with args.
1783 set dummy cc; ac_word=$2
1784 echo "$as_me:$LINENO: checking for $ac_word" >&5
1785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1786 if test "${ac_cv_prog_CC+set}" = set; then
1787 echo $ECHO_N "(cached) $ECHO_C" >&6
1789 if test -n "$CC"; then
1790 ac_cv_prog_CC="$CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1801 ac_prog_rejected=yes
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 if test $ac_prog_rejected = yes; then
1812 # We found a bogon in the path, so make sure we never use it.
1813 set dummy $ac_cv_prog_CC
1815 if test $# != 0; then
1816 # We chose a different compiler from the bogus one.
1817 # However, it has the same basename, so the bogon will be chosen
1818 # first if we set CC to just the basename; use the full file name.
1820 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1826 if test -n "$CC"; then
1827 echo "$as_me:$LINENO: result: $CC" >&5
1828 echo "${ECHO_T}$CC" >&6
1830 echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1835 if test -z "$CC"; then
1836 if test -n "$ac_tool_prefix"; then
1839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 if test -n "$CC"; then
1847 ac_cv_prog_CC="$CC" # Let the user override the test.
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1866 if test -n "$CC"; then
1867 echo "$as_me:$LINENO: result: $CC" >&5
1868 echo "${ECHO_T}$CC" >&6
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1874 test -n "$CC" && break
1877 if test -z "$CC"; then
1881 # Extract the first word of "$ac_prog", so it can be a program name with args.
1882 set dummy $ac_prog; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$ac_ct_CC"; then
1889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_ac_ct_CC="$ac_prog"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1908 if test -n "$ac_ct_CC"; then
1909 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1910 echo "${ECHO_T}$ac_ct_CC" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1916 test -n "$ac_ct_CC" && break
1925 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1926 See \`config.log' for more details." >&5
1927 echo "$as_me: error: no acceptable C compiler found in \$PATH
1928 See \`config.log' for more details." >&2;}
1929 { (exit 1); exit 1; }; }
1931 # Provide some information about the compiler.
1932 echo "$as_me:$LINENO:" \
1933 "checking for C compiler version" >&5
1934 ac_compiler=`set X $ac_compile; echo $2`
1935 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1936 (eval $ac_compiler --version </dev/null >&5) 2>&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }
1940 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1941 (eval $ac_compiler -v </dev/null >&5) 2>&5
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }
1945 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1946 (eval $ac_compiler -V </dev/null >&5) 2>&5
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }
1951 cat >conftest.$ac_ext <<_ACEOF
1954 cat confdefs.h >>conftest.$ac_ext
1955 cat >>conftest.$ac_ext <<_ACEOF
1956 /* end confdefs.h. */
1967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1968 (eval $ac_link) 2>&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; then
1977 if test x$gcc_no_link = xyes; then
1978 # Setting cross_compile will disable run tests; it will
1979 # also disable AC_CHECK_FILE but that's generally
1980 # correct if we can't link.
1984 cat >conftest.$ac_ext <<_ACEOF
1987 cat confdefs.h >>conftest.$ac_ext
1988 cat >>conftest.$ac_ext <<_ACEOF
1989 /* end confdefs.h. */
1999 ac_clean_files_save=$ac_clean_files
2000 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2001 # Try to create an executable without -o first, disregard a.out.
2002 # It will help us diagnose broken compilers, and finding out an intuition
2004 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2005 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2006 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2007 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2008 (eval $ac_link_default) 2>&5
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; then
2012 # Find the output, starting from the most likely. This scheme is
2013 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2016 # Be careful to initialize this variable, since it used to be cached.
2017 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2019 # b.out is created by i960 compilers.
2020 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2022 test -f "$ac_file" || continue
2024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2027 # This is the source file.
2030 # We found the default executable, but exeext='' is most
2034 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2035 # FIXME: I believe we export ac_cv_exeext for Libtool,
2036 # but it would be cool to find out if it's true. Does anybody
2037 # maintain Libtool? --akim.
2045 echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2048 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2049 See \`config.log' for more details." >&5
2050 echo "$as_me: error: C compiler cannot create executables
2051 See \`config.log' for more details." >&2;}
2052 { (exit 77); exit 77; }; }
2055 ac_exeext=$ac_cv_exeext
2056 echo "$as_me:$LINENO: result: $ac_file" >&5
2057 echo "${ECHO_T}$ac_file" >&6
2059 # Check the compiler produces executables we can run. If not, either
2060 # the compiler is broken, or we cross compile.
2061 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2062 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2063 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2064 # If not cross compiling, check that we can run a simple program.
2065 if test "$cross_compiling" != yes; then
2066 if { ac_try='./$ac_file'
2067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071 (exit $ac_status); }; }; then
2074 if test "$cross_compiling" = maybe; then
2077 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2078 If you meant to cross compile, use \`--host'.
2079 See \`config.log' for more details." >&5
2080 echo "$as_me: error: cannot run C compiled programs.
2081 If you meant to cross compile, use \`--host'.
2082 See \`config.log' for more details." >&2;}
2083 { (exit 1); exit 1; }; }
2087 echo "$as_me:$LINENO: result: yes" >&5
2088 echo "${ECHO_T}yes" >&6
2090 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2091 ac_clean_files=$ac_clean_files_save
2092 # Check the compiler produces executables we can run. If not, either
2093 # the compiler is broken, or we cross compile.
2094 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2095 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2096 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2097 echo "${ECHO_T}$cross_compiling" >&6
2099 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2100 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2102 (eval $ac_link) 2>&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; then
2106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2107 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2108 # work properly (i.e., refer to `conftest.exe'), while it won't with
2110 for ac_file in conftest.exe conftest conftest.*; do
2111 test -f "$ac_file" || continue
2113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2121 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2122 See \`config.log' for more details." >&5
2123 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2124 See \`config.log' for more details." >&2;}
2125 { (exit 1); exit 1; }; }
2128 rm -f conftest$ac_cv_exeext
2129 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2130 echo "${ECHO_T}$ac_cv_exeext" >&6
2132 rm -f conftest.$ac_ext
2133 EXEEXT=$ac_cv_exeext
2136 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2137 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2138 if test "${ac_cv_objext+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 cat >conftest.$ac_ext <<_ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2156 rm -f conftest.o conftest.obj
2157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2158 (eval $ac_compile) 2>&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2165 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2170 echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2173 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2174 See \`config.log' for more details." >&5
2175 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2176 See \`config.log' for more details." >&2;}
2177 { (exit 1); exit 1; }; }
2180 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2182 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2183 echo "${ECHO_T}$ac_cv_objext" >&6
2184 OBJEXT=$ac_cv_objext
2186 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2187 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2188 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 cat >conftest.$ac_ext <<_ACEOF
2194 cat confdefs.h >>conftest.$ac_ext
2195 cat >>conftest.$ac_ext <<_ACEOF
2196 /* end confdefs.h. */
2209 rm -f conftest.$ac_objext
2210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2211 (eval $ac_compile) 2>conftest.er1
2213 grep -v '^ *+' conftest.er1 >conftest.err
2215 cat conftest.err >&5
2216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217 (exit $ac_status); } &&
2218 { ac_try='test -z "$ac_c_werror_flag"
2219 || test ! -s conftest.err'
2220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2224 (exit $ac_status); }; } &&
2225 { ac_try='test -s conftest.$ac_objext'
2226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2233 echo "$as_me: failed program was:" >&5
2234 sed 's/^/| /' conftest.$ac_ext >&5
2238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2239 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2242 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2243 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2244 GCC=`test $ac_compiler_gnu = yes && echo yes`
2245 ac_test_CFLAGS=${CFLAGS+set}
2246 ac_save_CFLAGS=$CFLAGS
2248 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2249 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2250 if test "${ac_cv_prog_cc_g+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2253 cat >conftest.$ac_ext <<_ACEOF
2256 cat confdefs.h >>conftest.$ac_ext
2257 cat >>conftest.$ac_ext <<_ACEOF
2258 /* end confdefs.h. */
2268 rm -f conftest.$ac_objext
2269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>conftest.er1
2272 grep -v '^ *+' conftest.er1 >conftest.err
2274 cat conftest.err >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); } &&
2277 { ac_try='test -z "$ac_c_werror_flag"
2278 || test ! -s conftest.err'
2279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2301 if test "$ac_test_CFLAGS" = set; then
2302 CFLAGS=$ac_save_CFLAGS
2303 elif test $ac_cv_prog_cc_g = yes; then
2304 if test "$GCC" = yes; then
2310 if test "$GCC" = yes; then
2316 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2317 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2318 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 ac_cv_prog_cc_stdc=no
2323 cat >conftest.$ac_ext <<_ACEOF
2326 cat confdefs.h >>conftest.$ac_ext
2327 cat >>conftest.$ac_ext <<_ACEOF
2328 /* end confdefs.h. */
2331 #include <sys/types.h>
2332 #include <sys/stat.h>
2333 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2334 struct buf { int x; };
2335 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2336 static char *e (p, i)
2342 static char *f (char * (*g) (char **, int), char **p, ...)
2347 s = g (p, va_arg (v,int));
2352 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2353 function prototypes and stuff, but not '\xHH' hex character constants.
2354 These don't provoke an error unfortunately, instead are silently treated
2355 as 'x'. The following induces an error, until -std1 is added to get
2356 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2357 array size at least. It's necessary to write '\x00'==0 to get something
2358 that's true only with -std1. */
2359 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2361 int test (int i, double x);
2362 struct s1 {int (*f) (int a);};
2363 struct s2 {int (*f) (double a);};
2364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2370 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2375 # Don't try gcc -ansi; that turns off useful extensions and
2376 # breaks some systems' header files.
2377 # AIX -qlanglvl=ansi
2378 # Ultrix and OSF/1 -std1
2379 # HP-UX 10.20 and later -Ae
2380 # HP-UX older versions -Aa -D_HPUX_SOURCE
2381 # SVR4 -Xc -D__EXTENSIONS__
2382 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2384 CC="$ac_save_CC $ac_arg"
2385 rm -f conftest.$ac_objext
2386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2387 (eval $ac_compile) 2>conftest.er1
2389 grep -v '^ *+' conftest.er1 >conftest.err
2391 cat conftest.err >&5
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -z "$ac_c_werror_flag"
2395 || test ! -s conftest.err'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2407 ac_cv_prog_cc_stdc=$ac_arg
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2414 rm -f conftest.err conftest.$ac_objext
2416 rm -f conftest.$ac_ext conftest.$ac_objext
2421 case "x$ac_cv_prog_cc_stdc" in
2423 echo "$as_me:$LINENO: result: none needed" >&5
2424 echo "${ECHO_T}none needed" >&6 ;;
2426 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2427 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2428 CC="$CC $ac_cv_prog_cc_stdc" ;;
2431 # Some people use a C++ compiler to compile C. Since we use `exit',
2432 # in C++ we need to declare it. In case someone uses the same compiler
2433 # for both compiling C and C++ we need to have the C++ compiler decide
2434 # the declaration of exit, since it's the most demanding environment.
2435 cat >conftest.$ac_ext <<_ACEOF
2440 rm -f conftest.$ac_objext
2441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2442 (eval $ac_compile) 2>conftest.er1
2444 grep -v '^ *+' conftest.er1 >conftest.err
2446 cat conftest.err >&5
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
2449 { ac_try='test -z "$ac_c_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest.$ac_objext'
2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 for ac_declaration in \
2464 'extern "C" void std::exit (int) throw (); using std::exit;' \
2465 'extern "C" void std::exit (int); using std::exit;' \
2466 'extern "C" void exit (int) throw ();' \
2467 'extern "C" void exit (int);' \
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } &&
2495 { ac_try='test -z "$ac_c_werror_flag"
2496 || test ! -s conftest.err'
2497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2515 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2516 cat >conftest.$ac_ext <<_ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h. */
2531 rm -f conftest.$ac_objext
2532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2533 (eval $ac_compile) 2>conftest.er1
2535 grep -v '^ *+' conftest.er1 >conftest.err
2537 cat conftest.err >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); } &&
2540 { ac_try='test -z "$ac_c_werror_flag"
2541 || test ! -s conftest.err'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581 ac_cpp='$CXXCPP $CPPFLAGS'
2582 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2583 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2584 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2592 if test "${glibcxx_cv_prog_CXX+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$CXX"; then
2596 glibcxx_cv_prog_CXX="$CXX" # Let the user override the test.
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2605 glibcxx_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2614 CXX=$glibcxx_cv_prog_CXX
2615 if test -n "$CXX"; then
2616 echo "$as_me:$LINENO: result: $CXX" >&5
2617 echo "${ECHO_T}$CXX" >&6
2619 echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6
2623 test -n "$CXX" && break
2626 if test -z "$CXX"; then
2628 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2631 set dummy $ac_prog; ac_word=$2
2632 echo "$as_me:$LINENO: checking for $ac_word" >&5
2633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2634 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 if test -n "$ac_ct_CXX"; then
2638 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2647 ac_cv_prog_ac_ct_CXX="$ac_prog"
2648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2657 if test -n "$ac_ct_CXX"; then
2658 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2659 echo "${ECHO_T}$ac_ct_CXX" >&6
2661 echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6
2665 test -n "$ac_ct_CXX" && break
2667 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2673 # Provide some information about the compiler.
2674 echo "$as_me:$LINENO:" \
2675 "checking for C++ compiler version" >&5
2676 ac_compiler=`set X $ac_compile; echo $2`
2677 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2678 (eval $ac_compiler --version </dev/null >&5) 2>&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2683 (eval $ac_compiler -v </dev/null >&5) 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }
2687 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2688 (eval $ac_compiler -V </dev/null >&5) 2>&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }
2693 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2694 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2695 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 cat >conftest.$ac_ext <<_ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>conftest.er1
2720 grep -v '^ *+' conftest.er1 >conftest.err
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try='test -z "$ac_cxx_werror_flag"
2726 || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2749 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2750 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2751 GXX=`test $ac_compiler_gnu = yes && echo yes`
2752 ac_test_CXXFLAGS=${CXXFLAGS+set}
2753 ac_save_CXXFLAGS=$CXXFLAGS
2755 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2756 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2757 if test "${ac_cv_prog_cxx_g+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 cat >conftest.$ac_ext <<_ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 rm -f conftest.$ac_objext
2776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2777 (eval $ac_compile) 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } &&
2784 { ac_try='test -z "$ac_cxx_werror_flag"
2785 || test ! -s conftest.err'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } &&
2791 { ac_try='test -s conftest.$ac_objext'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; }; then
2797 ac_cv_prog_cxx_g=yes
2799 echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2807 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2808 if test "$ac_test_CXXFLAGS" = set; then
2809 CXXFLAGS=$ac_save_CXXFLAGS
2810 elif test $ac_cv_prog_cxx_g = yes; then
2811 if test "$GXX" = yes; then
2817 if test "$GXX" = yes; then
2823 for ac_declaration in \
2825 'extern "C" void std::exit (int) throw (); using std::exit;' \
2826 'extern "C" void std::exit (int); using std::exit;' \
2827 'extern "C" void exit (int) throw ();' \
2828 'extern "C" void exit (int);' \
2831 cat >conftest.$ac_ext <<_ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2847 rm -f conftest.$ac_objext
2848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2849 (eval $ac_compile) 2>conftest.er1
2851 grep -v '^ *+' conftest.er1 >conftest.err
2853 cat conftest.err >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); } &&
2856 { ac_try='test -z "$ac_cxx_werror_flag"
2857 || test ! -s conftest.err'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2877 cat >conftest.$ac_ext <<_ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2892 rm -f conftest.$ac_objext
2893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2894 (eval $ac_compile) 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } &&
2901 { ac_try='test -z "$ac_cxx_werror_flag"
2902 || test ! -s conftest.err'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; } &&
2908 { ac_try='test -s conftest.$ac_objext'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; }; then
2916 echo "$as_me: failed program was:" >&5
2917 sed 's/^/| /' conftest.$ac_ext >&5
2920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2923 if test -n "$ac_declaration"; then
2924 echo '#ifdef __cplusplus' >>confdefs.h
2925 echo $ac_declaration >>confdefs.h
2926 echo '#endif' >>confdefs.h
2930 ac_cpp='$CPP $CPPFLAGS'
2931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935 CXXFLAGS="$save_CXXFLAGS"
2941 # version is pulled out to make it a bit easier to change using sed.
2943 # Still use "libjava" here to placate dejagnu.
2944 # Find a good install program. We prefer a C program (faster),
2945 # so one script is as good as another. But avoid the broken or
2946 # incompatible versions:
2947 # SysV /etc/install, /usr/sbin/install
2948 # SunOS /usr/etc/install
2949 # IRIX /sbin/install
2951 # AmigaOS /C/install, which installs bootblocks on floppy discs
2952 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2953 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2954 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2955 # OS/2's system install, which has a completely different semantic
2956 # ./install, which can be erroneously created by make from ./install.sh.
2957 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2958 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2959 if test -z "$INSTALL"; then
2960 if test "${ac_cv_path_install+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir=.
2968 # Account for people who put trailing slashes in PATH elements.
2970 ./ | .// | /cC/* | \
2971 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2972 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2975 # OSF1 and SCO ODT 3.0 have their own names for install.
2976 # Don't use installbsd from OSF since it installs stuff as root
2978 for ac_prog in ginstall scoinst install; do
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2981 if test $ac_prog = install &&
2982 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2983 # AIX install. It has an incompatible calling convention.
2985 elif test $ac_prog = install &&
2986 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2987 # program-specific install script used by HP pwplus--don't use.
2990 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3002 if test "${ac_cv_path_install+set}" = set; then
3003 INSTALL=$ac_cv_path_install
3005 # As a last resort, use the slow shell script. We don't cache a
3006 # path for INSTALL within a source directory, because that will
3007 # break other packages using the cache if that directory is
3008 # removed, or if the path is relative.
3009 INSTALL=$ac_install_sh
3012 echo "$as_me:$LINENO: result: $INSTALL" >&5
3013 echo "${ECHO_T}$INSTALL" >&6
3015 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3016 # It thinks the first close brace ends the variable substitution.
3017 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3019 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3021 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3023 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3024 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3027 echo timestamp > conftestfile
3028 # Do `set' in a subshell so we don't clobber the current shell's
3029 # arguments. Must try -L first in case configure is actually a
3030 # symlink; some systems play weird games with the mod time of symlinks
3031 # (eg FreeBSD returns the mod time of the symlink's containing
3034 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
3035 if test "$*" = "X"; then
3037 set X `ls -t $srcdir/configure conftestfile`
3039 if test "$*" != "X $srcdir/configure conftestfile" \
3040 && test "$*" != "X conftestfile $srcdir/configure"; then
3042 # If neither matched, then we have a broken ls. This can happen
3043 # if, for instance, CONFIG_SHELL is bash and it inherits a
3044 # broken ls alias from the environment. This has actually
3045 # happened. Such a system could not be considered "sane".
3046 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3047 alias in your environment" >&5
3048 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3049 alias in your environment" >&2;}
3050 { (exit 1); exit 1; }; }
3053 test "$2" = conftestfile
3059 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3060 Check your system clock" >&5
3061 echo "$as_me: error: newly created file is older than distributed files!
3062 Check your system clock" >&2;}
3063 { (exit 1); exit 1; }; }
3066 echo "$as_me:$LINENO: result: yes" >&5
3067 echo "${ECHO_T}yes" >&6
3068 test "$program_prefix" != NONE &&
3069 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3070 # Use a double $ so make ignores it.
3071 test "$program_suffix" != NONE &&
3072 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3073 # Double any \ or $. echo might interpret backslashes.
3074 # By default was `s,x,x', remove it if useless.
3075 cat <<\_ACEOF >conftest.sed
3076 s/[\\$]/&&/g;s/;s,x,x,$//
3078 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3081 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3082 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3083 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3084 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3085 echo $ECHO_N "(cached) $ECHO_C" >&6
3087 cat >conftest.make <<\_ACEOF
3089 @echo 'ac_maketemp="$(MAKE)"'
3091 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3092 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3093 if test -n "$ac_maketemp"; then
3094 eval ac_cv_prog_make_${ac_make}_set=yes
3096 eval ac_cv_prog_make_${ac_make}_set=no
3100 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3101 echo "$as_me:$LINENO: result: yes" >&5
3102 echo "${ECHO_T}yes" >&6
3105 echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6
3107 SET_MAKE="MAKE=${MAKE-make}"
3115 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
3116 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3117 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3118 { (exit 1); exit 1; }; }
3121 cat >>confdefs.h <<_ACEOF
3122 #define PACKAGE "$PACKAGE"
3126 cat >>confdefs.h <<_ACEOF
3127 #define VERSION "$VERSION"
3132 missing_dir=`cd $ac_aux_dir && pwd`
3133 echo "$as_me:$LINENO: checking for working aclocal" >&5
3134 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
3135 # Run test in a subshell; some versions of sh will print an error if
3136 # an executable is not found, even if stderr is redirected.
3137 # Redirect stdin to placate older versions of autoconf. Sigh.
3138 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
3140 echo "$as_me:$LINENO: result: found" >&5
3141 echo "${ECHO_T}found" >&6
3143 ACLOCAL="$missing_dir/missing aclocal"
3144 echo "$as_me:$LINENO: result: missing" >&5
3145 echo "${ECHO_T}missing" >&6
3148 echo "$as_me:$LINENO: checking for working autoconf" >&5
3149 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
3150 # Run test in a subshell; some versions of sh will print an error if
3151 # an executable is not found, even if stderr is redirected.
3152 # Redirect stdin to placate older versions of autoconf. Sigh.
3153 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
3155 echo "$as_me:$LINENO: result: found" >&5
3156 echo "${ECHO_T}found" >&6
3158 AUTOCONF="$missing_dir/missing autoconf"
3159 echo "$as_me:$LINENO: result: missing" >&5
3160 echo "${ECHO_T}missing" >&6
3163 echo "$as_me:$LINENO: checking for working automake" >&5
3164 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
3165 # Run test in a subshell; some versions of sh will print an error if
3166 # an executable is not found, even if stderr is redirected.
3167 # Redirect stdin to placate older versions of autoconf. Sigh.
3168 if (automake --version) < /dev/null > /dev/null 2>&1; then
3170 echo "$as_me:$LINENO: result: found" >&5
3171 echo "${ECHO_T}found" >&6
3173 AUTOMAKE="$missing_dir/missing automake"
3174 echo "$as_me:$LINENO: result: missing" >&5
3175 echo "${ECHO_T}missing" >&6
3178 echo "$as_me:$LINENO: checking for working autoheader" >&5
3179 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
3180 # Run test in a subshell; some versions of sh will print an error if
3181 # an executable is not found, even if stderr is redirected.
3182 # Redirect stdin to placate older versions of autoconf. Sigh.
3183 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
3184 AUTOHEADER=autoheader
3185 echo "$as_me:$LINENO: result: found" >&5
3186 echo "${ECHO_T}found" >&6
3188 AUTOHEADER="$missing_dir/missing autoheader"
3189 echo "$as_me:$LINENO: result: missing" >&5
3190 echo "${ECHO_T}missing" >&6
3193 echo "$as_me:$LINENO: checking for working makeinfo" >&5
3194 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
3195 # Run test in a subshell; some versions of sh will print an error if
3196 # an executable is not found, even if stderr is redirected.
3197 # Redirect stdin to placate older versions of autoconf. Sigh.
3198 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
3200 echo "$as_me:$LINENO: result: found" >&5
3201 echo "${ECHO_T}found" >&6
3203 MAKEINFO="$missing_dir/missing makeinfo"
3204 echo "$as_me:$LINENO: result: missing" >&5
3205 echo "${ECHO_T}missing" >&6
3210 if test -n "$ac_tool_prefix"; then
3211 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}as; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_prog_AS+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 if test -n "$AS"; then
3219 ac_cv_prog_AS="$AS" # Let the user override the test.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 for ac_exec_ext in '' $ac_executable_extensions; do
3227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3228 ac_cv_prog_AS="${ac_tool_prefix}as"
3229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 if test -n "$AS"; then
3239 echo "$as_me:$LINENO: result: $AS" >&5
3240 echo "${ECHO_T}$AS" >&6
3242 echo "$as_me:$LINENO: result: no" >&5
3243 echo "${ECHO_T}no" >&6
3247 if test -z "$ac_cv_prog_AS"; then
3249 # Extract the first word of "as", so it can be a program name with args.
3250 set dummy as; ac_word=$2
3251 echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 if test -n "$ac_ct_AS"; then
3257 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_ac_ct_AS="as"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 ac_ct_AS=$ac_cv_prog_ac_ct_AS
3276 if test -n "$ac_ct_AS"; then
3277 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
3278 echo "${ECHO_T}$ac_ct_AS" >&6
3280 echo "$as_me:$LINENO: result: no" >&5
3281 echo "${ECHO_T}no" >&6
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3291 set dummy ${ac_tool_prefix}ar; ac_word=$2
3292 echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3294 if test "${ac_cv_prog_AR+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 if test -n "$AR"; then
3298 ac_cv_prog_AR="$AR" # Let the user override the test.
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_AR="${ac_tool_prefix}ar"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 if test -n "$AR"; then
3318 echo "$as_me:$LINENO: result: $AR" >&5
3319 echo "${ECHO_T}$AR" >&6
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3326 if test -z "$ac_cv_prog_AR"; then
3328 # Extract the first word of "ar", so it can be a program name with args.
3329 set dummy ar; ac_word=$2
3330 echo "$as_me:$LINENO: checking for $ac_word" >&5
3331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3332 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 if test -n "$ac_ct_AR"; then
3336 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 test -z "$as_dir" && as_dir=.
3343 for ac_exec_ext in '' $ac_executable_extensions; do
3344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3345 ac_cv_prog_ac_ct_AR="ar"
3346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3355 if test -n "$ac_ct_AR"; then
3356 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3357 echo "${ECHO_T}$ac_ct_AR" >&6
3359 echo "$as_me:$LINENO: result: no" >&5
3360 echo "${ECHO_T}no" >&6
3368 if test -n "$ac_tool_prefix"; then
3369 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3371 echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373 if test "${ac_cv_prog_RANLIB+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 if test -n "$RANLIB"; then
3377 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 test -z "$as_dir" && as_dir=.
3384 for ac_exec_ext in '' $ac_executable_extensions; do
3385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3386 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 RANLIB=$ac_cv_prog_RANLIB
3396 if test -n "$RANLIB"; then
3397 echo "$as_me:$LINENO: result: $RANLIB" >&5
3398 echo "${ECHO_T}$RANLIB" >&6
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3405 if test -z "$ac_cv_prog_RANLIB"; then
3406 ac_ct_RANLIB=$RANLIB
3407 # Extract the first word of "ranlib", so it can be a program name with args.
3408 set dummy ranlib; ac_word=$2
3409 echo "$as_me:$LINENO: checking for $ac_word" >&5
3410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 if test -n "$ac_ct_RANLIB"; then
3415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 test -z "$as_dir" && as_dir=.
3422 for ac_exec_ext in '' $ac_executable_extensions; do
3423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3424 ac_cv_prog_ac_ct_RANLIB="ranlib"
3425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3435 if test -n "$ac_ct_RANLIB"; then
3436 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3437 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3439 echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6
3443 RANLIB=$ac_ct_RANLIB
3445 RANLIB="$ac_cv_prog_RANLIB"
3449 # Find a good install program. We prefer a C program (faster),
3450 # so one script is as good as another. But avoid the broken or
3451 # incompatible versions:
3452 # SysV /etc/install, /usr/sbin/install
3453 # SunOS /usr/etc/install
3454 # IRIX /sbin/install
3456 # AmigaOS /C/install, which installs bootblocks on floppy discs
3457 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3458 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3459 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3460 # OS/2's system install, which has a completely different semantic
3461 # ./install, which can be erroneously created by make from ./install.sh.
3462 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3463 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3464 if test -z "$INSTALL"; then
3465 if test "${ac_cv_path_install+set}" = set; then
3466 echo $ECHO_N "(cached) $ECHO_C" >&6
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 test -z "$as_dir" && as_dir=.
3473 # Account for people who put trailing slashes in PATH elements.
3475 ./ | .// | /cC/* | \
3476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3477 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3480 # OSF1 and SCO ODT 3.0 have their own names for install.
3481 # Don't use installbsd from OSF since it installs stuff as root
3483 for ac_prog in ginstall scoinst install; do
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3486 if test $ac_prog = install &&
3487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3488 # AIX install. It has an incompatible calling convention.
3490 elif test $ac_prog = install &&
3491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3492 # program-specific install script used by HP pwplus--don't use.
3495 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3507 if test "${ac_cv_path_install+set}" = set; then
3508 INSTALL=$ac_cv_path_install
3510 # As a last resort, use the slow shell script. We don't cache a
3511 # path for INSTALL within a source directory, because that will
3512 # break other packages using the cache if that directory is
3513 # removed, or if the path is relative.
3514 INSTALL=$ac_install_sh
3517 echo "$as_me:$LINENO: result: $INSTALL" >&5
3518 echo "${ECHO_T}$INSTALL" >&6
3520 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3521 # It thinks the first close brace ends the variable substitution.
3522 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3524 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3526 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3529 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3530 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3531 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3532 if test "${enable_maintainer_mode+set}" = set; then
3533 enableval="$enable_maintainer_mode"
3534 USE_MAINTAINER_MODE=$enableval
3536 USE_MAINTAINER_MODE=no
3538 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3539 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3542 if test $USE_MAINTAINER_MODE = yes; then
3543 MAINTAINER_MODE_TRUE=
3544 MAINTAINER_MODE_FALSE='#'
3546 MAINTAINER_MODE_TRUE='#'
3547 MAINTAINER_MODE_FALSE=
3549 MAINT=$MAINTAINER_MODE_TRUE
3555 # configure.host sets the following important variables
3556 # libgcj_cflags - host specific C compiler flags
3557 # libgcj_cxxflags - host specific C++ compiler flags
3558 # libgcj_javaflags - host specific Java compiler flags
3564 . ${srcdir}/configure.host
3566 LIBGCJ_CFLAGS="${libgcj_cflags}"
3567 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
3568 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
3574 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
3576 ac_config_commands="$ac_config_commands default-1"
3579 # Only use libltdl for non-newlib builds.
3580 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
3581 case $enable_ltdl_convenience in
3582 no) { { echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
3583 echo "$as_me: error: this package needs a convenience libltdl" >&2;}
3584 { (exit 1); exit 1; }; } ;;
3585 "") enable_ltdl_convenience=yes
3586 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3588 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
3589 INCLTDL='-I${top_srcdir}/''libltdl'
3594 cat >>confdefs.h <<\_ACEOF
3598 # Sigh. Libtool's macro doesn't do the right thing.
3599 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
3600 # FIXME: this is a hack.
3601 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
3602 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
3607 # Check whether --enable-shared or --disable-shared was given.
3608 if test "${enable_shared+set}" = set; then
3609 enableval="$enable_shared"
3610 p=${PACKAGE-default}
3612 yes) enable_shared=yes ;;
3613 no) enable_shared=no ;;
3616 # Look at the argument we got. We use all the common list separators.
3617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3618 for pkg in $enableval; do
3619 if test "X$pkg" = "X$p"; then
3629 # Check whether --enable-static or --disable-static was given.
3630 if test "${enable_static+set}" = set; then
3631 enableval="$enable_static"
3632 p=${PACKAGE-default}
3634 yes) enable_static=yes ;;
3635 no) enable_static=no ;;
3638 # Look at the argument we got. We use all the common list separators.
3639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3640 for pkg in $enableval; do
3641 if test "X$pkg" = "X$p"; then
3651 # Check whether --enable-fast-install or --disable-fast-install was given.
3652 if test "${enable_fast_install+set}" = set; then
3653 enableval="$enable_fast_install"
3654 p=${PACKAGE-default}
3656 yes) enable_fast_install=yes ;;
3657 no) enable_fast_install=no ;;
3659 enable_fast_install=no
3660 # Look at the argument we got. We use all the common list separators.
3661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3662 for pkg in $enableval; do
3663 if test "X$pkg" = "X$p"; then
3664 enable_fast_install=yes
3671 enable_fast_install=yes
3674 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3675 if test "${with_gnu_ld+set}" = set; then
3676 withval="$with_gnu_ld"
3677 test "$withval" = no || with_gnu_ld=yes
3682 if test "$GCC" = yes; then
3683 # Check if gcc -print-prog-name=ld gives a path.
3684 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3685 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3688 # gcc leaves a trailing carriage return which upsets mingw
3689 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3691 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3694 # Accept absolute paths.
3695 [\\/]* | [A-Za-z]:[\\/]*)
3696 re_direlt='/[^/][^/]*/\.\./'
3697 # Canonicalize the path of ld
3698 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3699 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3700 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3702 test -z "$LD" && LD="$ac_prog"
3705 # If it fails, then pretend we aren't using GCC.
3709 # If it is relative, then search for the first ld in PATH.
3713 elif test "$with_gnu_ld" = yes; then
3714 echo "$as_me:$LINENO: checking for GNU ld" >&5
3715 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3717 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3718 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3720 if test "${lt_cv_path_LD+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 if test -z "$LD"; then
3724 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3725 for ac_dir in $PATH; do
3726 test -z "$ac_dir" && ac_dir=.
3727 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3728 lt_cv_path_LD="$ac_dir/$ac_prog"
3729 # Check to see if the program is GNU ld. I'd rather use --version,
3730 # but apparently some GNU ld's only accept -v.
3731 # Break only if it was the GNU/non-GNU ld that we prefer.
3732 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3733 test "$with_gnu_ld" != no && break
3735 test "$with_gnu_ld" != yes && break
3741 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3746 if test -n "$LD"; then
3747 echo "$as_me:$LINENO: result: $LD" >&5
3748 echo "${ECHO_T}$LD" >&6
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3753 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3754 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3755 { (exit 1); exit 1; }; }
3756 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3757 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3758 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3759 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3762 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3763 lt_cv_prog_gnu_ld=yes
3765 lt_cv_prog_gnu_ld=no
3768 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3769 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3770 with_gnu_ld=$lt_cv_prog_gnu_ld
3773 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3774 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3775 if test "${lt_cv_ld_reload_flag+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 lt_cv_ld_reload_flag='-r'
3780 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3781 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3782 reload_flag=$lt_cv_ld_reload_flag
3783 test -n "$reload_flag" && reload_flag=" $reload_flag"
3785 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3786 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3787 if test "${lt_cv_path_NM+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 if test -n "$NM"; then
3791 # Let the user override the test.
3794 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3795 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3796 test -z "$ac_dir" && ac_dir=.
3797 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3798 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3799 # Check to see if the nm accepts a BSD-compat flag.
3800 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3801 # nm: unknown option "B" ignored
3802 # Tru64's nm complains that /dev/null is an invalid object file
3803 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3804 lt_cv_path_NM="$tmp_nm -B"
3806 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3807 lt_cv_path_NM="$tmp_nm -p"
3810 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3811 continue # so that we can try to find one that supports BSD flags
3816 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3821 echo "$as_me:$LINENO: result: $NM" >&5
3822 echo "${ECHO_T}$NM" >&6
3824 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3825 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3826 if test "${lt_cv_deplibs_check_method+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 lt_cv_file_magic_cmd='$MAGIC_CMD'
3830 lt_cv_file_magic_test_file=
3831 lt_cv_deplibs_check_method='unknown'
3832 # Need to set the preceding variable on all platforms that support
3833 # interlibrary dependencies.
3834 # 'none' -- dependencies not supported.
3835 # `unknown' -- same as none, but documents that we really don't know.
3836 # 'pass_all' -- all dependencies passed with no checks.
3837 # 'test_compile' -- check by making test program.
3838 # 'file_magic [regex]' -- check by looking for files in library path
3839 # which responds to the $file_magic_cmd with a given egrep regex.
3840 # If you have `file' or equivalent on your system and you're not sure
3841 # whether `pass_all' will *always* work, you probably want this one.
3845 lt_cv_deplibs_check_method=pass_all
3849 lt_cv_deplibs_check_method=pass_all
3853 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3854 lt_cv_file_magic_cmd='/usr/bin/file -L'
3855 lt_cv_file_magic_test_file=/shlib/libc.so
3858 cygwin* | mingw* |pw32*)
3859 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3860 lt_cv_file_magic_cmd='$OBJDUMP -f'
3863 darwin* | rhapsody*)
3864 # this will be overwritten by pass_all, but leave it in just in case
3865 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3866 lt_cv_file_magic_cmd='/usr/bin/file -L'
3868 rhapsody* | darwin1.012)
3869 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3872 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3875 lt_cv_deplibs_check_method=pass_all
3878 freebsd* | kfreebsd*-gnu)
3879 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3882 # Not sure whether the presence of OpenBSD here was a mistake.
3883 # Let's accept both of them until this is cleared up.
3884 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3885 lt_cv_file_magic_cmd=/usr/bin/file
3886 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3890 lt_cv_deplibs_check_method=pass_all
3895 lt_cv_deplibs_check_method=pass_all
3901 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3902 lt_cv_file_magic_cmd=/usr/bin/file
3903 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3906 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3907 lt_cv_file_magic_cmd=/usr/bin/file
3908 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3916 # this will be overridden with pass_all, but let us keep it just in case
3917 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3921 *-32|*"-32 ") libmagic=32-bit;;
3922 *-n32|*"-n32 ") libmagic=N32;;
3923 *-64|*"-64 ") libmagic=64-bit;;
3924 *) libmagic=never-match;;
3926 # this will be overridden with pass_all, but let us keep it just in case
3927 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3930 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3931 lt_cv_deplibs_check_method=pass_all
3934 # This must be Linux ELF.
3937 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
3938 lt_cv_deplibs_check_method=pass_all ;;
3940 # glibc up to 2.1.1 does not perform some relocations on ARM
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3943 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3946 netbsd* | knetbsd*-gnu)
3947 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3948 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3950 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3955 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3956 lt_cv_file_magic_cmd=/usr/bin/file
3957 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3960 osf3* | osf4* | osf5*)
3961 # this will be overridden with pass_all, but let us keep it just in case
3962 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3963 lt_cv_file_magic_test_file=/shlib/libc.so
3964 lt_cv_deplibs_check_method=pass_all
3968 lt_cv_deplibs_check_method=pass_all
3972 lt_cv_deplibs_check_method=pass_all
3973 lt_cv_file_magic_test_file=/lib/libc.so
3976 sysv5uw[78]* | sysv4*uw2*)
3977 lt_cv_deplibs_check_method=pass_all
3980 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3981 case $host_vendor in
3983 lt_cv_deplibs_check_method=pass_all
3986 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]'
3987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3994 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3995 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3996 file_magic_cmd=$lt_cv_file_magic_cmd
3997 deplibs_check_method=$lt_cv_deplibs_check_method
4002 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4004 # Only perform the check for file, if the check method requires it
4005 case $deplibs_check_method in
4007 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4008 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4009 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4010 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4015 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4021 ac_save_MAGIC_CMD="$MAGIC_CMD"
4022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4023 ac_dummy="/usr/bin:$PATH"
4024 for ac_dir in $ac_dummy; do
4025 test -z "$ac_dir" && ac_dir=.
4026 if test -f $ac_dir/${ac_tool_prefix}file; then
4027 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4028 if test -n "$file_magic_test_file"; then
4029 case $deplibs_check_method in
4031 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4032 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4033 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4034 egrep "$file_magic_regex" > /dev/null; then
4039 *** Warning: the command libtool uses to detect shared libraries,
4040 *** $file_magic_cmd, produces output that libtool cannot recognize.
4041 *** The result is that libtool may fail to recognize shared libraries
4042 *** as such. This will affect the creation of libtool libraries that
4043 *** depend on shared libraries, but programs linked with such libtool
4044 *** libraries will work regardless of this problem. Nevertheless, you
4045 *** may want to report the problem to your system manager and/or to
4046 *** bug-libtool@gnu.org
4056 MAGIC_CMD="$ac_save_MAGIC_CMD"
4061 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4062 if test -n "$MAGIC_CMD"; then
4063 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4064 echo "${ECHO_T}$MAGIC_CMD" >&6
4066 echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4070 if test -z "$lt_cv_path_MAGIC_CMD"; then
4071 if test -n "$ac_tool_prefix"; then
4072 echo "$as_me:$LINENO: checking for file" >&5
4073 echo $ECHO_N "checking for file... $ECHO_C" >&6
4074 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4082 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4085 ac_save_MAGIC_CMD="$MAGIC_CMD"
4086 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4087 ac_dummy="/usr/bin:$PATH"
4088 for ac_dir in $ac_dummy; do
4089 test -z "$ac_dir" && ac_dir=.
4090 if test -f $ac_dir/file; then
4091 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4092 if test -n "$file_magic_test_file"; then
4093 case $deplibs_check_method in
4095 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4096 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4097 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4098 egrep "$file_magic_regex" > /dev/null; then
4103 *** Warning: the command libtool uses to detect shared libraries,
4104 *** $file_magic_cmd, produces output that libtool cannot recognize.
4105 *** The result is that libtool may fail to recognize shared libraries
4106 *** as such. This will affect the creation of libtool libraries that
4107 *** depend on shared libraries, but programs linked with such libtool
4108 *** libraries will work regardless of this problem. Nevertheless, you
4109 *** may want to report the problem to your system manager and/or to
4110 *** bug-libtool@gnu.org
4120 MAGIC_CMD="$ac_save_MAGIC_CMD"
4125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4126 if test -n "$MAGIC_CMD"; then
4127 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4128 echo "${ECHO_T}$MAGIC_CMD" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4143 if test -n "$ac_tool_prefix"; then
4144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_RANLIB+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 if test -n "$RANLIB"; then
4152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 RANLIB=$ac_cv_prog_RANLIB
4171 if test -n "$RANLIB"; then
4172 echo "$as_me:$LINENO: result: $RANLIB" >&5
4173 echo "${ECHO_T}$RANLIB" >&6
4175 echo "$as_me:$LINENO: result: no" >&5
4176 echo "${ECHO_T}no" >&6
4180 if test -z "$ac_cv_prog_RANLIB"; then
4181 ac_ct_RANLIB=$RANLIB
4182 # Extract the first word of "ranlib", so it can be a program name with args.
4183 set dummy ranlib; ac_word=$2
4184 echo "$as_me:$LINENO: checking for $ac_word" >&5
4185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4186 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 if test -n "$ac_ct_RANLIB"; then
4190 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4199 ac_cv_prog_ac_ct_RANLIB="ranlib"
4200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4209 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4210 if test -n "$ac_ct_RANLIB"; then
4211 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4212 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4214 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4218 RANLIB=$ac_ct_RANLIB
4220 RANLIB="$ac_cv_prog_RANLIB"
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4225 set dummy ${ac_tool_prefix}strip; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_STRIP+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$STRIP"; then
4232 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 STRIP=$ac_cv_prog_STRIP
4251 if test -n "$STRIP"; then
4252 echo "$as_me:$LINENO: result: $STRIP" >&5
4253 echo "${ECHO_T}$STRIP" >&6
4255 echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6
4260 if test -z "$ac_cv_prog_STRIP"; then
4262 # Extract the first word of "strip", so it can be a program name with args.
4263 set dummy strip; ac_word=$2
4264 echo "$as_me:$LINENO: checking for $ac_word" >&5
4265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4266 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 if test -n "$ac_ct_STRIP"; then
4270 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4279 ac_cv_prog_ac_ct_STRIP="strip"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4290 if test -n "$ac_ct_STRIP"; then
4291 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4292 echo "${ECHO_T}$ac_ct_STRIP" >&6
4294 echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6
4300 STRIP="$ac_cv_prog_STRIP"
4304 # Check for any special flags to pass to ltconfig.
4305 libtool_flags="--cache-file=$cache_file"
4306 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
4307 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
4308 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
4309 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
4310 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
4313 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4314 if test "${enable_libtool_lock+set}" = set; then
4315 enableval="$enable_libtool_lock"
4318 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
4319 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
4322 # Check whether --with-pic or --without-pic was given.
4323 if test "${with_pic+set}" = set; then
4329 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
4330 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
4332 # Some flags need to be propagated to the compiler or linker for good
4336 # Find out which ABI we are using.
4337 echo '#line 4337 "configure"' > conftest.$ac_ext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; then
4343 if test "$lt_cv_prog_gnu_ld" = yes; then
4344 case `/usr/bin/file conftest.$ac_objext` in
4346 LD="${LD-ld} -melf32bsmip"
4349 LD="${LD-ld} -melf32bmipn32"
4352 LD="${LD-ld} -melf64bmip"
4356 case `/usr/bin/file conftest.$ac_objext` in
4373 # Find out which ABI we are using.
4374 echo 'int i;' > conftest.$ac_ext
4375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; then
4380 case "`/usr/bin/file conftest.o`" in
4392 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4393 # Find out which ABI we are using.
4394 echo 'int i;' > conftest.$ac_ext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396 (eval $ac_compile) 2>&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; then
4400 case "`/usr/bin/file conftest.o`" in
4404 LD="${LD-ld} -m elf_i386"
4406 ppc64-*linux*|powerpc64-*linux*)
4407 LD="${LD-ld} -m elf32ppclinux"
4410 LD="${LD-ld} -m elf_s390"
4413 LD="${LD-ld} -m elf32_sparc"
4420 LD="${LD-ld} -m elf_x86_64"
4422 ppc*-*linux*|powerpc*-*linux*)
4423 LD="${LD-ld} -m elf64ppc"
4426 LD="${LD-ld} -m elf64_s390"
4429 LD="${LD-ld} -m elf64_sparc"
4439 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4440 SAVE_CFLAGS="$CFLAGS"
4441 CFLAGS="$CFLAGS -belf"
4442 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4443 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4444 if test "${lt_cv_cc_needs_belf+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 ac_cpp='$CPP $CPPFLAGS'
4451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455 if test x$gcc_no_link = xyes; then
4456 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4457 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4458 { (exit 1); exit 1; }; }
4460 cat >conftest.$ac_ext <<_ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4477 (eval $ac_link) 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } &&
4484 { ac_try='test -z "$ac_c_werror_flag"
4485 || test ! -s conftest.err'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; } &&
4491 { ac_try='test -s conftest$ac_exeext'
4492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496 (exit $ac_status); }; }; then
4497 lt_cv_cc_needs_belf=yes
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 lt_cv_cc_needs_belf=no
4504 rm -f conftest.err conftest.$ac_objext \
4505 conftest$ac_exeext conftest.$ac_ext
4507 ac_cpp='$CPP $CPPFLAGS'
4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4514 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4515 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4516 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4517 CFLAGS="$SAVE_CFLAGS"
4525 # Save cache, so that ltconfig can load it
4526 cat >confcache <<\_ACEOF
4527 # This file is a shell script that caches the results of configure
4528 # tests run on this system so they can be shared between configure
4529 # scripts and configure runs, see configure's option --config-cache.
4530 # It is not useful on other systems. If it contains results you don't
4531 # want to keep, you may remove or edit it.
4533 # config.status only pays attention to the cache file if you give it
4534 # the --recheck option to rerun configure.
4536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4542 # The following way of writing the cache mishandles newlines in values,
4543 # but we know of no workaround that is simple, portable, and efficient.
4544 # So, don't put newlines in cache variables' values.
4545 # Ultrix sh set writes to stderr and can't be redirected directly,
4546 # and sets the high bit in the cache file unless we assign to the vars.
4549 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4551 # `set' does not quote correctly, so add quotes (double-quote
4552 # substitution turns \\\\ into \\, and sed turns \\ into \).
4555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4558 # `set' quotes correctly as required by POSIX, so do not add quotes.
4560 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4567 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4569 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4571 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4572 if test -w $cache_file; then
4573 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4574 cat confcache >$cache_file
4576 echo "not updating unwritable cache $cache_file"
4581 # Actually configure libtool. ac_aux_dir is where install-sh is found.
4582 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4583 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4584 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4585 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4586 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4587 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4588 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4589 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4590 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4591 echo "$as_me: error: libtool configure failed" >&2;}
4592 { (exit 1); exit 1; }; }
4594 # Reload cache, that may have been modified by ltconfig
4595 if test -r "$cache_file"; then
4596 # Some versions of bash will fail to source /dev/null (special
4597 # files actually), so we avoid doing that.
4598 if test -f "$cache_file"; then
4599 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4600 echo "$as_me: loading cache $cache_file" >&6;}
4602 [\\/]* | ?:[\\/]* ) . $cache_file;;
4603 *) . ./$cache_file;;
4607 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4608 echo "$as_me: creating cache $cache_file" >&6;}
4613 # This can be used to rebuild libtool when needed
4614 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4616 # Always use our own libtool.
4617 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4619 # Redirect the config.log output again, so that the ltconfig log is not
4620 # clobbered by the next message.
4621 exec 5>>./config.log
4624 ac_cpp='$CXXCPP $CPPFLAGS'
4625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4628 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4629 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4630 if test -z "$CXXCPP"; then
4631 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 # Double quotes because CXXCPP needs to be expanded
4635 for CXXCPP in "$CXX -E" "/lib/cpp"
4638 for ac_cxx_preproc_warn_flag in '' yes
4640 # Use a header file that comes with gcc, so configuring glibc
4641 # with a fresh cross-compiler works.
4642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4643 # <limits.h> exists even on freestanding compilers.
4644 # On the NeXT, cc -E runs the code through the compiler's parser,
4645 # not just through cpp. "Syntax error" is here to catch this case.
4646 cat >conftest.$ac_ext <<_ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4653 # include <limits.h>
4655 # include <assert.h>
4659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4662 grep -v '^ *+' conftest.er1 >conftest.err
4664 cat conftest.err >&5
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } >/dev/null; then
4667 if test -s conftest.err; then
4668 ac_cpp_err=$ac_cxx_preproc_warn_flag
4669 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4676 if test -z "$ac_cpp_err"; then
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 # Broken: fails on valid input.
4685 rm -f conftest.err conftest.$ac_ext
4687 # OK, works on sane cases. Now check whether non-existent headers
4688 # can be detected and how.
4689 cat >conftest.$ac_ext <<_ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <ac_nonexistent.h>
4697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4700 grep -v '^ *+' conftest.er1 >conftest.err
4702 cat conftest.err >&5
4703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704 (exit $ac_status); } >/dev/null; then
4705 if test -s conftest.err; then
4706 ac_cpp_err=$ac_cxx_preproc_warn_flag
4707 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4714 if test -z "$ac_cpp_err"; then
4715 # Broken: success on invalid input.
4718 echo "$as_me: failed program was:" >&5
4719 sed 's/^/| /' conftest.$ac_ext >&5
4721 # Passes both tests.
4725 rm -f conftest.err conftest.$ac_ext
4728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4729 rm -f conftest.err conftest.$ac_ext
4730 if $ac_preproc_ok; then
4735 ac_cv_prog_CXXCPP=$CXXCPP
4738 CXXCPP=$ac_cv_prog_CXXCPP
4740 ac_cv_prog_CXXCPP=$CXXCPP
4742 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4743 echo "${ECHO_T}$CXXCPP" >&6
4745 for ac_cxx_preproc_warn_flag in '' yes
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4760 # include <limits.h>
4762 # include <assert.h>
4766 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4769 grep -v '^ *+' conftest.er1 >conftest.err
4771 cat conftest.err >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); } >/dev/null; then
4774 if test -s conftest.err; then
4775 ac_cpp_err=$ac_cxx_preproc_warn_flag
4776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4783 if test -z "$ac_cpp_err"; then
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.$ac_ext >&5
4789 # Broken: fails on valid input.
4792 rm -f conftest.err conftest.$ac_ext
4794 # OK, works on sane cases. Now check whether non-existent headers
4795 # can be detected and how.
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 #include <ac_nonexistent.h>
4804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4807 grep -v '^ *+' conftest.er1 >conftest.err
4809 cat conftest.err >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); } >/dev/null; then
4812 if test -s conftest.err; then
4813 ac_cpp_err=$ac_cxx_preproc_warn_flag
4814 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4821 if test -z "$ac_cpp_err"; then
4822 # Broken: success on invalid input.
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4828 # Passes both tests.
4832 rm -f conftest.err conftest.$ac_ext
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.err conftest.$ac_ext
4837 if $ac_preproc_ok; then
4840 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4841 See \`config.log' for more details." >&5
4842 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4843 See \`config.log' for more details." >&2;}
4844 { (exit 1); exit 1; }; }
4848 ac_cpp='$CPP $CPPFLAGS'
4849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
4857 lt_save_CFLAGS="$CFLAGS"
4858 AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
4859 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4860 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4861 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4862 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4863 deplibs_check_method="$deplibs_check_method" \
4864 file_magic_cmd="$file_magic_cmd" \
4865 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
4866 --build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
4867 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
4868 echo "$as_me: error: libtool tag configuration failed" >&2;}
4869 { (exit 1); exit 1; }; }
4871 CFLAGS="$lt_save_CFLAGS"
4873 # Redirect the config.log output again, so that the ltconfig log is not
4874 # clobbered by the next message.
4875 exec 5>>./config.log
4884 subdirs="$subdirs $DIRLTDL"
4887 if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
4894 # The -no-testsuite modules omit the test subdir.
4897 if test -d $srcdir/testsuite; then
4899 TESTSUBDIR_FALSE='#'
4905 # Should the runtime set system properties by examining the
4906 # environment variable GCJ_PROPERTIES?
4907 # Check whether --enable-getenv-properties or --disable-getenv-properties was given.
4908 if test "${enable_getenv_properties+set}" = set; then
4909 enableval="$enable_getenv_properties"
4913 # Whether GCJ_PROPERTIES is used depends on the target.
4914 if test -z "$enable_getenv_properties"; then
4915 enable_getenv_properties=${enable_getenv_properties_default-yes}
4917 if test "$enable_getenv_properties" = no; then
4919 cat >>confdefs.h <<\_ACEOF
4920 #define DISABLE_GETENV_PROPERTIES 1
4925 # Whether we should use arguments to main()
4926 if test -z "$enable_main_args"; then
4927 enable_main_args=${enable_main_args_default-yes}
4929 if test "$enable_main_args" = no; then
4931 cat >>confdefs.h <<\_ACEOF
4932 #define DISABLE_MAIN_ARGS 1
4938 # Should we use hashtable-based synchronization?
4939 # Currently works only for Linux X86/ia64
4940 # Typically faster and more space-efficient
4941 # Check whether --enable-hash-synchronization or --disable-hash-synchronization was given.
4942 if test "${enable_hash_synchronization+set}" = set; then
4943 enableval="$enable_hash_synchronization"
4947 if test -z "$enable_hash_synchronization"; then
4948 enable_hash_synchronization=$enable_hash_synchronization_default
4951 # Do we allow intermodule optimizations (i.e. compiling many files at once)?
4952 # Check whether --enable-libgcj-multifile or --disable-libgcj-multifile was given.
4953 if test "${enable_libgcj_multifile+set}" = set; then
4954 enableval="$enable_libgcj_multifile"
4955 case "${enableval}" in
4956 yes) enable_libgcj_multifile=yes ;;
4957 no) enable_libgcj_multifile=no ;;
4958 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-libgcj-multifile" >&5
4959 echo "$as_me: error: bad value ${enableval} for --enable-libgcj-multifile" >&2;}
4960 { (exit 1); exit 1; }; } ;;
4963 enable_libgcj_multifile=no
4967 if test "$enable_libgcj_multifile" = yes; then
4975 # What is the native OS API for MinGW?
4977 # Check whether --with-win32-nlsapi or --without-win32-nlsapi was given.
4978 if test "${with_win32_nlsapi+set}" = set; then
4979 withval="$with_win32_nlsapi"
4980 case "${withval}" in
4981 ansi) with_win32_nlsapi=ansi ;;
4982 unicows) with_win32_nlsapi=unicows ;;
4983 unicode) with_win32_nlsapi=unicode ;;
4984 *) { { echo "$as_me:$LINENO: error: Bad value ${withval} for --with-win32-nlsapi." >&5
4985 echo "$as_me: error: Bad value ${withval} for --with-win32-nlsapi." >&2;}
4986 { (exit 1); exit 1; }; } ;;
4989 with_win32_nlsapi=ansi
4992 case "${with_win32_nlsapi}" in
4995 cat >>confdefs.h <<\_ACEOF
4996 #define MINGW_LIBGCJ_UNICODE 1
5002 # configure.host sets slow_pthread_self if the synchronization code should
5003 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
5004 if test "${slow_pthread_self}" = "yes"; then
5006 cat >>confdefs.h <<\_ACEOF
5007 #define SLOW_PTHREAD_SELF 1
5013 # See if the user has requested runtime debugging.
5016 # Check whether --enable-libgcj-debug or --disable-libgcj-debug was given.
5017 if test "${enable_libgcj_debug+set}" = set; then
5018 enableval="$enable_libgcj_debug"
5019 if test "$enable_libgcj_debug" = yes; then
5021 cat >>confdefs.h <<\_ACEOF
5029 # See if the user has the interpreter included.
5030 # Check whether --enable-interpreter or --disable-interpreter was given.
5031 if test "${enable_interpreter+set}" = set; then
5032 enableval="$enable_interpreter"
5033 if test "$enable_interpreter" = yes; then
5034 # This can also be set in configure.host.
5035 libgcj_interpreter=yes
5036 elif test "$enable_interpreter" = no; then
5037 libgcj_interpreter=no
5041 if test "$libgcj_interpreter" = yes; then
5043 cat >>confdefs.h <<\_ACEOF
5044 #define INTERPRETER 1
5048 INTERPRETER="$libgcj_interpreter"
5051 echo "$as_me:$LINENO: checking for exception model to use" >&5
5052 echo $ECHO_N "checking for exception model to use... $ECHO_C" >&6
5056 ac_cpp='$CXXCPP $CPPFLAGS'
5057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5061 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.
5062 if test "${enable_sjlj_exceptions+set}" = set; then
5063 enableval="$enable_sjlj_exceptions"
5066 cat > conftest.$ac_ext << EOF
5067 #line 5067 "configure"
5076 old_CXXFLAGS="$CXXFLAGS"
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>&5
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; then
5083 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
5084 enable_sjlj_exceptions=yes
5085 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
5086 enable_sjlj_exceptions=no
5089 CXXFLAGS="$old_CXXFLAGS"
5092 if test x$enable_sjlj_exceptions = xyes; then
5094 cat >>confdefs.h <<\_ACEOF
5095 #define SJLJ_EXCEPTIONS 1
5098 ac_exception_model_name=sjlj
5099 elif test x$enable_sjlj_exceptions = xno; then
5100 ac_exception_model_name="call frame"
5102 { { echo "$as_me:$LINENO: error: unable to detect exception model" >&5
5103 echo "$as_me: error: unable to detect exception model" >&2;}
5104 { (exit 1); exit 1; }; }
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5112 echo "$as_me:$LINENO: result: $ac_exception_model_name" >&5
5113 echo "${ECHO_T}$ac_exception_model_name" >&6
5115 # If we are non using SJLJ exceptions, and this host does not have support
5116 # for unwinding from a signal handler, enable checked dereferences and divides.
5117 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
5118 CHECKREFSPEC=-fcheck-references
5119 DIVIDESPEC=-fuse-divide-subroutine
5123 # See if the user wants to disable java.net. This is the mildly
5124 # ugly way that we admit that target-side configuration sucks.
5125 # Check whether --enable-java-net or --disable-java-net was given.
5126 if test "${enable_java_net+set}" = set; then
5127 enableval="$enable_java_net"
5131 # Whether java.net is built by default can depend on the target.
5132 if test -z "$enable_java_net"; then
5133 enable_java_net=${enable_java_net_default-yes}
5135 if test "$enable_java_net" = no; then
5137 cat >>confdefs.h <<\_ACEOF
5138 #define DISABLE_JAVA_NET 1
5143 # See if the user wants to configure without libffi. Some
5144 # architectures don't support it, and default values are set in
5147 # Check whether --with-libffi or --without-libffi was given.
5148 if test "${with_libffi+set}" = set; then
5149 withval="$with_libffi"
5152 with_libffi=${with_libffi_default-yes}
5157 if test "$with_libffi" != no; then
5159 cat >>confdefs.h <<\_ACEOF
5160 #define USE_LIBFFI 1
5163 LIBFFI=../libffi/libffi_convenience.la
5164 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
5169 # See if the user wants to disable JVMPI support.
5170 # Check whether --enable-jvmpi or --disable-jvmpi was given.
5171 if test "${enable_jvmpi+set}" = set; then
5172 enableval="$enable_jvmpi"
5176 if test "$enable_jvmpi" != no; then
5178 cat >>confdefs.h <<\_ACEOF
5179 #define ENABLE_JVMPI 1
5184 # If the target is an eCos system, use the appropriate eCos
5186 # FIXME: this should not be a local option but a global target
5187 # system; at present there is no eCos target.
5188 TARGET_ECOS=${PROCESS-"no"}
5190 # Check whether --with-ecos or --without-ecos was given.
5191 if test "${with_ecos+set}" = set; then
5192 withval="$with_ecos"
5193 TARGET_ECOS="$with_ecos"
5201 PLATFORM_INNER_NAT_HDRS=
5202 case "$TARGET_ECOS" in
5207 PLATFORMOBJS=win32.lo
5210 echo "$as_me:$LINENO: checking whether 'ld' is at least 2.13" >&5
5211 echo $ECHO_N "checking whether 'ld' is at least 2.13... $ECHO_C" >&6
5212 LD_PROG=`$CC --print-prog-name=ld`
5213 LD_VERSION=`$LD_PROG --version`
5214 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
5215 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
5216 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
5219 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
5223 if test "x$LD_OK" != x; then
5224 echo "$as_me:$LINENO: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5225 echo "${ECHO_T}yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5227 echo "$as_me:$LINENO: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
5228 echo "${ECHO_T}no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6
5229 { echo "$as_me:$LINENO: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
5230 echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
5232 cat >>confdefs.h <<\_ACEOF
5233 #define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1
5241 PLATFORMOBJS=posix.lo
5243 PLATFORM_INNER_NAT_HDRS='java/lang/ConcreteProcess$$ProcessManager.h'
5251 cat >>confdefs.h <<\_ACEOF
5255 PLATFORMOBJS=posix.lo
5261 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
5265 ac_cpp='$CPP $CPPFLAGS'
5266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5271 # On Suns, sometimes $CPP names a directory.
5272 if test -n "$CPP" && test -d "$CPP"; then
5275 if test -z "$CPP"; then
5276 if test "${ac_cv_prog_CPP+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 # Double quotes because CPP needs to be expanded
5280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5283 for ac_c_preproc_warn_flag in '' yes
5285 # Use a header file that comes with gcc, so configuring glibc
5286 # with a fresh cross-compiler works.
5287 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5288 # <limits.h> exists even on freestanding compilers.
5289 # On the NeXT, cc -E runs the code through the compiler's parser,
5290 # not just through cpp. "Syntax error" is here to catch this case.
5291 cat >conftest.$ac_ext <<_ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5298 # include <limits.h>
5300 # include <assert.h>
5304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5307 grep -v '^ *+' conftest.er1 >conftest.err
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } >/dev/null; then
5312 if test -s conftest.err; then
5313 ac_cpp_err=$ac_c_preproc_warn_flag
5314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5321 if test -z "$ac_cpp_err"; then
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5327 # Broken: fails on valid input.
5330 rm -f conftest.err conftest.$ac_ext
5332 # OK, works on sane cases. Now check whether non-existent headers
5333 # can be detected and how.
5334 cat >conftest.$ac_ext <<_ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <ac_nonexistent.h>
5342 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5345 grep -v '^ *+' conftest.er1 >conftest.err
5347 cat conftest.err >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } >/dev/null; then
5350 if test -s conftest.err; then
5351 ac_cpp_err=$ac_c_preproc_warn_flag
5352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5359 if test -z "$ac_cpp_err"; then
5360 # Broken: success on invalid input.
5363 echo "$as_me: failed program was:" >&5
5364 sed 's/^/| /' conftest.$ac_ext >&5
5366 # Passes both tests.
5370 rm -f conftest.err conftest.$ac_ext
5373 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5374 rm -f conftest.err conftest.$ac_ext
5375 if $ac_preproc_ok; then
5387 echo "$as_me:$LINENO: result: $CPP" >&5
5388 echo "${ECHO_T}$CPP" >&6
5390 for ac_c_preproc_warn_flag in '' yes
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5405 # include <limits.h>
5407 # include <assert.h>
5411 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5412 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5414 grep -v '^ *+' conftest.er1 >conftest.err
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } >/dev/null; then
5419 if test -s conftest.err; then
5420 ac_cpp_err=$ac_c_preproc_warn_flag
5421 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5428 if test -z "$ac_cpp_err"; then
5431 echo "$as_me: failed program was:" >&5
5432 sed 's/^/| /' conftest.$ac_ext >&5
5434 # Broken: fails on valid input.
5437 rm -f conftest.err conftest.$ac_ext
5439 # OK, works on sane cases. Now check whether non-existent headers
5440 # can be detected and how.
5441 cat >conftest.$ac_ext <<_ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5447 #include <ac_nonexistent.h>
5449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5452 grep -v '^ *+' conftest.er1 >conftest.err
5454 cat conftest.err >&5
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); } >/dev/null; then
5457 if test -s conftest.err; then
5458 ac_cpp_err=$ac_c_preproc_warn_flag
5459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5466 if test -z "$ac_cpp_err"; then
5467 # Broken: success on invalid input.
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 # Passes both tests.
5477 rm -f conftest.err conftest.$ac_ext
5480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5481 rm -f conftest.err conftest.$ac_ext
5482 if $ac_preproc_ok; then
5485 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5486 See \`config.log' for more details." >&5
5487 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5488 See \`config.log' for more details." >&2;}
5489 { (exit 1); exit 1; }; }
5493 ac_cpp='$CPP $CPPFLAGS'
5494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5499 echo "$as_me:$LINENO: checking for egrep" >&5
5500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5501 if test "${ac_cv_prog_egrep+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5505 then ac_cv_prog_egrep='grep -E'
5506 else ac_cv_prog_egrep='egrep'
5509 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5510 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5511 EGREP=$ac_cv_prog_egrep
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5524 $EGREP "uint32_t" >/dev/null 2>&1; then
5526 cat >>confdefs.h <<\_ACEOF
5527 #define HAVE_INT32_DEFINED 1
5533 cat >conftest.$ac_ext <<_ACEOF
5536 cat confdefs.h >>conftest.$ac_ext
5537 cat >>conftest.$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5539 #include <inttypes.h>
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "uint32_t" >/dev/null 2>&1; then
5545 cat >>confdefs.h <<\_ACEOF
5546 #define HAVE_INT32_DEFINED 1
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <sys/types.h>
5561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5562 $EGREP "u_int32_t" >/dev/null 2>&1; then
5564 cat >>confdefs.h <<\_ACEOF
5565 #define HAVE_BSD_INT32_DEFINED 1
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 #include <sys/config.h>
5580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5581 $EGREP "u_int32_t" >/dev/null 2>&1; then
5583 cat >>confdefs.h <<\_ACEOF
5584 #define HAVE_BSD_INT32_DEFINED 1
5592 # These may not be defined in a non-ANS conformant embedded system.
5593 # FIXME: Should these case a runtime exception in that case?
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5604 $EGREP "mktime" >/dev/null 2>&1; then
5606 cat >>confdefs.h <<\_ACEOF
5607 #define HAVE_MKTIME 1
5613 cat >conftest.$ac_ext <<_ACEOF
5616 cat confdefs.h >>conftest.$ac_ext
5617 cat >>conftest.$ac_ext <<_ACEOF
5618 /* end confdefs.h. */
5622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5623 $EGREP "localtime" >/dev/null 2>&1; then
5625 cat >>confdefs.h <<\_ACEOF
5626 #define HAVE_LOCALTIME 1
5633 # Create the subdirectory for natFile.cc, or the attempt
5634 # to create the link will fail.
5635 test -d java || mkdir java
5636 test -d java/io || mkdir java/io
5637 test -d gnu || mkdir gnu
5638 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
5641 # Likewise for ConcreteProcess.java and natConcreteProcess.cc.
5642 test -d java/lang || mkdir java/lang
5643 ac_config_links="$ac_config_links java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java"
5645 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
5648 # Likewise for natInetAddress.cc and natNetworkInterface.cc.
5649 test -d java/net || mkdir java/net
5650 ac_config_links="$ac_config_links java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc"
5652 ac_config_links="$ac_config_links java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc"
5655 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
5656 test -d gnu/java || mkdir gnu/java
5657 test -d gnu/java/net || mkdir gnu/java/net
5658 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
5660 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
5663 # Likewise for natPipeImpl.cc and natSelectorImpl.cc.
5664 test -d gnu/java/nio || mkdir gnu/java/nio
5665 ac_config_links="$ac_config_links gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc"
5667 ac_config_links="$ac_config_links gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc"
5669 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
5670 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
5675 SYSTEMSPEC="-lgdi32 -lws2_32"
5676 if test "${with_win32_nlsapi}" = "unicows"; then
5677 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
5686 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
5690 # Check whether --with-system-zlib or --without-system-zlib was given.
5691 if test "${with_system_zlib+set}" = set; then
5692 withval="$with_system_zlib"
5700 echo "$as_me:$LINENO: checking for X" >&5
5701 echo $ECHO_N "checking for X... $ECHO_C" >&6
5704 # Check whether --with-x or --without-x was given.
5705 if test "${with_x+set}" = set; then
5709 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5710 if test "x$with_x" = xno; then
5711 # The user explicitly disabled X.
5714 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5715 # Both variables are already set.
5718 if test "${ac_cv_have_x+set}" = set; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 # One or both of the vars are not set, and there is no cached value.
5722 ac_x_includes=no ac_x_libraries=no
5724 if mkdir conftest.dir; then
5726 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5727 cat >Imakefile <<'_ACEOF'
5729 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5731 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5732 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5733 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5734 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5735 for ac_extension in a so sl; do
5736 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5737 test -f $ac_im_libdir/libX11.$ac_extension; then
5738 ac_im_usrlibdir=$ac_im_libdir; break
5741 # Screen out bogus values from the imake configuration. They are
5742 # bogus both because they are the default anyway, and because
5743 # using them would break gcc on systems where it needs fixed includes.
5744 case $ac_im_incroot in
5746 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5748 case $ac_im_usrlibdir in
5750 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5757 # Standard set of common directories for X headers.
5758 # Check X11 before X11Rn because it is often a symlink to the current release.
5770 /usr/local/X11/include
5771 /usr/local/X11R6/include
5772 /usr/local/X11R5/include
5773 /usr/local/X11R4/include
5775 /usr/local/include/X11
5776 /usr/local/include/X11R6
5777 /usr/local/include/X11R5
5778 /usr/local/include/X11R4
5782 /usr/XFree86/include/X11
5786 /usr/unsupported/include
5788 /usr/local/x11r5/include
5789 /usr/lpp/Xamples/include
5791 /usr/openwin/include
5792 /usr/openwin/share/include'
5794 if test "$ac_x_includes" = no; then
5795 # Guess where to find include files, by looking for Intrinsic.h.
5796 # First, try using that file with no special directory specified.
5797 cat >conftest.$ac_ext <<_ACEOF
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <X11/Intrinsic.h>
5805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } >/dev/null; then
5813 if test -s conftest.err; then
5814 ac_cpp_err=$ac_c_preproc_warn_flag
5815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5822 if test -z "$ac_cpp_err"; then
5823 # We can compile using X headers with no special include directory.
5826 echo "$as_me: failed program was:" >&5
5827 sed 's/^/| /' conftest.$ac_ext >&5
5829 for ac_dir in $ac_x_header_dirs; do
5830 if test -r "$ac_dir/X11/Intrinsic.h"; then
5831 ac_x_includes=$ac_dir
5836 rm -f conftest.err conftest.$ac_ext
5837 fi # $ac_x_includes = no
5839 if test "$ac_x_libraries" = no; then
5840 # Check for the libraries.
5841 # See if we find them without any special options.
5842 # Don't add to $LIBS permanently.
5845 if test x$gcc_no_link = xyes; then
5846 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5847 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5848 { (exit 1); exit 1; }; }
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #include <X11/Intrinsic.h>
5865 rm -f conftest.$ac_objext conftest$ac_exeext
5866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5867 (eval $ac_link) 2>conftest.er1
5869 grep -v '^ *+' conftest.er1 >conftest.err
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } &&
5874 { ac_try='test -z "$ac_c_werror_flag"
5875 || test ! -s conftest.err'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; } &&
5881 { ac_try='test -s conftest$ac_exeext'
5882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886 (exit $ac_status); }; }; then
5888 # We can link X programs with no special library path.
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5895 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5897 # Don't even attempt the hair of trying to link an X program!
5898 for ac_extension in a so sl; do
5899 if test -r $ac_dir/libXt.$ac_extension; then
5900 ac_x_libraries=$ac_dir
5906 rm -f conftest.err conftest.$ac_objext \
5907 conftest$ac_exeext conftest.$ac_ext
5908 fi # $ac_x_libraries = no
5910 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
5911 # Didn't find X anywhere. Cache the known absence of X.
5912 ac_cv_have_x="have_x=no"
5914 # Record where we found X for the cache.
5915 ac_cv_have_x="have_x=yes \
5916 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
5921 eval "$ac_cv_have_x"
5924 if test "$have_x" != yes; then
5925 echo "$as_me:$LINENO: result: $have_x" >&5
5926 echo "${ECHO_T}$have_x" >&6
5929 # If each of the values was on the command line, it overrides each guess.
5930 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5931 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5932 # Update the cache value to reflect the command line values.
5933 ac_cv_have_x="have_x=yes \
5934 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5935 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
5936 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
5939 if test "$no_x" = yes; then
5940 # Not all programs may use this symbol, but it does not hurt to define it.
5942 cat >>confdefs.h <<\_ACEOF
5943 #define X_DISPLAY_MISSING 1
5946 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5948 if test -n "$x_includes"; then
5949 X_CFLAGS="$X_CFLAGS -I$x_includes"
5952 # It would also be nice to do this for all -L options, not just this one.
5953 if test -n "$x_libraries"; then
5954 X_LIBS="$X_LIBS -L$x_libraries"
5955 # For Solaris; some versions of Sun CC require a space after -R and
5956 # others require no space. Words are not sufficient . . . .
5957 case `(uname -sr) 2>/dev/null` in
5959 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
5960 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
5961 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5962 if test x$gcc_no_link = xyes; then
5963 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5964 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5965 { (exit 1); exit 1; }; }
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5982 rm -f conftest.$ac_objext conftest$ac_exeext
5983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5984 (eval $ac_link) 2>conftest.er1
5986 grep -v '^ *+' conftest.er1 >conftest.err
5988 cat conftest.err >&5
5989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } &&
5991 { ac_try='test -z "$ac_c_werror_flag"
5992 || test ! -s conftest.err'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; } &&
5998 { ac_try='test -s conftest$ac_exeext'
5999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6011 rm -f conftest.err conftest.$ac_objext \
6012 conftest$ac_exeext conftest.$ac_ext
6013 if test $ac_R_nospace = yes; then
6014 echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6
6016 X_LIBS="$X_LIBS -R$x_libraries"
6018 LIBS="$ac_xsave_LIBS -R $x_libraries"
6019 if test x$gcc_no_link = xyes; then
6020 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6021 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6022 { (exit 1); exit 1; }; }
6024 cat >conftest.$ac_ext <<_ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h. */
6039 rm -f conftest.$ac_objext conftest$ac_exeext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6041 (eval $ac_link) 2>conftest.er1
6043 grep -v '^ *+' conftest.er1 >conftest.err
6045 cat conftest.err >&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -z "$ac_c_werror_flag"
6049 || test ! -s conftest.err'
6050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }; } &&
6055 { ac_try='test -s conftest$ac_exeext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6068 rm -f conftest.err conftest.$ac_objext \
6069 conftest$ac_exeext conftest.$ac_ext
6070 if test $ac_R_space = yes; then
6071 echo "$as_me:$LINENO: result: yes" >&5
6072 echo "${ECHO_T}yes" >&6
6073 X_LIBS="$X_LIBS -R $x_libraries"
6075 echo "$as_me:$LINENO: result: neither works" >&5
6076 echo "${ECHO_T}neither works" >&6
6083 # Check for system-dependent libraries X programs must link with.
6084 # Do this before checking for the system-independent R6 libraries
6085 # (-lICE), since we may need -lsocket or whatever for X linking.
6087 if test "$ISC" = yes; then
6088 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6090 # Martyn Johnson says this is needed for Ultrix, if the X
6091 # libraries were built with DECnet support. And Karl Berry says
6092 # the Alpha needs dnet_stub (dnet does not exist).
6093 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6094 if test x$gcc_no_link = xyes; then
6095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6097 { (exit 1); exit 1; }; }
6099 cat >conftest.$ac_ext <<_ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6106 /* Override any gcc2 internal prototype to avoid an error. */
6110 /* We use char because int might match the return type of a gcc2
6111 builtin and then its argument prototype would still apply. */
6112 char XOpenDisplay ();
6121 rm -f conftest.$ac_objext conftest$ac_exeext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6123 (eval $ac_link) 2>conftest.er1
6125 grep -v '^ *+' conftest.er1 >conftest.err
6127 cat conftest.err >&5
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } &&
6130 { ac_try='test -z "$ac_c_werror_flag"
6131 || test ! -s conftest.err'
6132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); }; } &&
6137 { ac_try='test -s conftest$ac_exeext'
6138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6145 echo "$as_me: failed program was:" >&5
6146 sed 's/^/| /' conftest.$ac_ext >&5
6148 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6149 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6150 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 ac_check_lib_save_LIBS=$LIBS
6155 if test x$gcc_no_link = xyes; then
6156 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6157 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6158 { (exit 1); exit 1; }; }
6160 cat >conftest.$ac_ext <<_ACEOF
6163 cat confdefs.h >>conftest.$ac_ext
6164 cat >>conftest.$ac_ext <<_ACEOF
6165 /* end confdefs.h. */
6167 /* Override any gcc2 internal prototype to avoid an error. */
6171 /* We use char because int might match the return type of a gcc2
6172 builtin and then its argument prototype would still apply. */
6182 rm -f conftest.$ac_objext conftest$ac_exeext
6183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6184 (eval $ac_link) 2>conftest.er1
6186 grep -v '^ *+' conftest.er1 >conftest.err
6188 cat conftest.err >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } &&
6191 { ac_try='test -z "$ac_c_werror_flag"
6192 || test ! -s conftest.err'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; } &&
6198 { ac_try='test -s conftest$ac_exeext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_lib_dnet_dnet_ntoa=yes
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6209 ac_cv_lib_dnet_dnet_ntoa=no
6211 rm -f conftest.err conftest.$ac_objext \
6212 conftest$ac_exeext conftest.$ac_ext
6213 LIBS=$ac_check_lib_save_LIBS
6215 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6216 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6217 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6218 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6221 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6222 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6223 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6224 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 ac_check_lib_save_LIBS=$LIBS
6228 LIBS="-ldnet_stub $LIBS"
6229 if test x$gcc_no_link = xyes; then
6230 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6231 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6232 { (exit 1); exit 1; }; }
6234 cat >conftest.$ac_ext <<_ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6241 /* Override any gcc2 internal prototype to avoid an error. */
6245 /* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */
6256 rm -f conftest.$ac_objext conftest$ac_exeext
6257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6258 (eval $ac_link) 2>conftest.er1
6260 grep -v '^ *+' conftest.er1 >conftest.err
6262 cat conftest.err >&5
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } &&
6265 { ac_try='test -z "$ac_c_werror_flag"
6266 || test ! -s conftest.err'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; } &&
6272 { ac_try='test -s conftest$ac_exeext'
6273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); }; }; then
6278 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6283 ac_cv_lib_dnet_stub_dnet_ntoa=no
6285 rm -f conftest.err conftest.$ac_objext \
6286 conftest$ac_exeext conftest.$ac_ext
6287 LIBS=$ac_check_lib_save_LIBS
6289 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6290 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6291 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6292 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6297 rm -f conftest.err conftest.$ac_objext \
6298 conftest$ac_exeext conftest.$ac_ext
6299 LIBS="$ac_xsave_LIBS"
6301 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6302 # to get the SysV transport functions.
6303 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6305 # The nsl library prevents programs from opening the X display
6306 # on Irix 5.2, according to T.E. Dickey.
6307 # The functions gethostbyname, getservbyname, and inet_addr are
6308 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6309 echo "$as_me:$LINENO: checking for gethostbyname" >&5
6310 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6311 if test "${ac_cv_func_gethostbyname+set}" = set; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 if test x$gcc_no_link = xyes; then
6315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6317 { (exit 1); exit 1; }; }
6319 cat >conftest.$ac_ext <<_ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6327 #define gethostbyname innocuous_gethostbyname
6329 /* System header to define __stub macros and hopefully few prototypes,
6330 which can conflict with char gethostbyname (); below.
6331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6332 <limits.h> exists even on freestanding compilers. */
6335 # include <limits.h>
6337 # include <assert.h>
6340 #undef gethostbyname
6342 /* Override any gcc2 internal prototype to avoid an error. */
6347 /* We use char because int might match the return type of a gcc2
6348 builtin and then its argument prototype would still apply. */
6349 char gethostbyname ();
6350 /* The GNU C library defines this for functions which it implements
6351 to always fail with ENOSYS. Some functions are actually named
6352 something starting with __ and the normal name is an alias. */
6353 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6356 char (*f) () = gethostbyname;
6365 return f != gethostbyname;
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6372 (eval $ac_link) 2>conftest.er1
6374 grep -v '^ *+' conftest.er1 >conftest.err
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6378 (exit $ac_status); } &&
6379 { ac_try='test -z "$ac_c_werror_flag"
6380 || test ! -s conftest.err'
6381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; } &&
6386 { ac_try='test -s conftest$ac_exeext'
6387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); }; }; then
6392 ac_cv_func_gethostbyname=yes
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 ac_cv_func_gethostbyname=no
6399 rm -f conftest.err conftest.$ac_objext \
6400 conftest$ac_exeext conftest.$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6403 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6405 if test $ac_cv_func_gethostbyname = no; then
6406 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6407 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6408 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6411 ac_check_lib_save_LIBS=$LIBS
6413 if test x$gcc_no_link = xyes; then
6414 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6415 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6416 { (exit 1); exit 1; }; }
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6425 /* Override any gcc2 internal prototype to avoid an error. */
6429 /* We use char because int might match the return type of a gcc2
6430 builtin and then its argument prototype would still apply. */
6431 char gethostbyname ();
6440 rm -f conftest.$ac_objext conftest$ac_exeext
6441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6442 (eval $ac_link) 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -z "$ac_c_werror_flag"
6450 || test ! -s conftest.err'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; } &&
6456 { ac_try='test -s conftest$ac_exeext'
6457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); }; }; then
6462 ac_cv_lib_nsl_gethostbyname=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 ac_cv_lib_nsl_gethostbyname=no
6469 rm -f conftest.err conftest.$ac_objext \
6470 conftest$ac_exeext conftest.$ac_ext
6471 LIBS=$ac_check_lib_save_LIBS
6473 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6474 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6475 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6476 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6479 if test $ac_cv_lib_nsl_gethostbyname = no; then
6480 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6481 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6482 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 ac_check_lib_save_LIBS=$LIBS
6487 if test x$gcc_no_link = xyes; then
6488 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6489 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6490 { (exit 1); exit 1; }; }
6492 cat >conftest.$ac_ext <<_ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6499 /* Override any gcc2 internal prototype to avoid an error. */
6503 /* We use char because int might match the return type of a gcc2
6504 builtin and then its argument prototype would still apply. */
6505 char gethostbyname ();
6514 rm -f conftest.$ac_objext conftest$ac_exeext
6515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6516 (eval $ac_link) 2>conftest.er1
6518 grep -v '^ *+' conftest.er1 >conftest.err
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } &&
6523 { ac_try='test -z "$ac_c_werror_flag"
6524 || test ! -s conftest.err'
6525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest$ac_exeext'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; }; then
6536 ac_cv_lib_bsd_gethostbyname=yes
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 ac_cv_lib_bsd_gethostbyname=no
6543 rm -f conftest.err conftest.$ac_objext \
6544 conftest$ac_exeext conftest.$ac_ext
6545 LIBS=$ac_check_lib_save_LIBS
6547 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6548 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6549 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6550 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6556 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6557 # socket/setsockopt and other routines are undefined under SCO ODT
6558 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6559 # on later versions), says Simon Leinen: it contains gethostby*
6560 # variants that don't use the name server (or something). -lsocket
6561 # must be given before -lnsl if both are needed. We assume that
6562 # if connect needs -lnsl, so does gethostbyname.
6563 echo "$as_me:$LINENO: checking for connect" >&5
6564 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6565 if test "${ac_cv_func_connect+set}" = set; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 if test x$gcc_no_link = xyes; then
6569 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6570 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6571 { (exit 1); exit 1; }; }
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6581 #define connect innocuous_connect
6583 /* System header to define __stub macros and hopefully few prototypes,
6584 which can conflict with char connect (); below.
6585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6586 <limits.h> exists even on freestanding compilers. */
6589 # include <limits.h>
6591 # include <assert.h>
6596 /* Override any gcc2 internal prototype to avoid an error. */
6601 /* We use char because int might match the return type of a gcc2
6602 builtin and then its argument prototype would still apply. */
6604 /* The GNU C library defines this for functions which it implements
6605 to always fail with ENOSYS. Some functions are actually named
6606 something starting with __ and the normal name is an alias. */
6607 #if defined (__stub_connect) || defined (__stub___connect)
6610 char (*f) () = connect;
6619 return f != connect;
6624 rm -f conftest.$ac_objext conftest$ac_exeext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6626 (eval $ac_link) 2>conftest.er1
6628 grep -v '^ *+' conftest.er1 >conftest.err
6630 cat conftest.err >&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try='test -z "$ac_c_werror_flag"
6634 || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try='test -s conftest$ac_exeext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_func_connect=yes
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6651 ac_cv_func_connect=no
6653 rm -f conftest.err conftest.$ac_objext \
6654 conftest$ac_exeext conftest.$ac_ext
6656 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6657 echo "${ECHO_T}$ac_cv_func_connect" >&6
6659 if test $ac_cv_func_connect = no; then
6660 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6661 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6662 if test "${ac_cv_lib_socket_connect+set}" = set; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 ac_check_lib_save_LIBS=$LIBS
6666 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6667 if test x$gcc_no_link = xyes; then
6668 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6669 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6670 { (exit 1); exit 1; }; }
6672 cat >conftest.$ac_ext <<_ACEOF
6675 cat confdefs.h >>conftest.$ac_ext
6676 cat >>conftest.$ac_ext <<_ACEOF
6677 /* end confdefs.h. */
6679 /* Override any gcc2 internal prototype to avoid an error. */
6683 /* We use char because int might match the return type of a gcc2
6684 builtin and then its argument prototype would still apply. */
6694 rm -f conftest.$ac_objext conftest$ac_exeext
6695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6696 (eval $ac_link) 2>conftest.er1
6698 grep -v '^ *+' conftest.er1 >conftest.err
6700 cat conftest.err >&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } &&
6703 { ac_try='test -z "$ac_c_werror_flag"
6704 || test ! -s conftest.err'
6705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); }; } &&
6710 { ac_try='test -s conftest$ac_exeext'
6711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); }; }; then
6716 ac_cv_lib_socket_connect=yes
6718 echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_cv_lib_socket_connect=no
6723 rm -f conftest.err conftest.$ac_objext \
6724 conftest$ac_exeext conftest.$ac_ext
6725 LIBS=$ac_check_lib_save_LIBS
6727 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6728 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6729 if test $ac_cv_lib_socket_connect = yes; then
6730 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6735 # Guillermo Gomez says -lposix is necessary on A/UX.
6736 echo "$as_me:$LINENO: checking for remove" >&5
6737 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6738 if test "${ac_cv_func_remove+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6741 if test x$gcc_no_link = xyes; then
6742 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6743 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6744 { (exit 1); exit 1; }; }
6746 cat >conftest.$ac_ext <<_ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6752 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6754 #define remove innocuous_remove
6756 /* System header to define __stub macros and hopefully few prototypes,
6757 which can conflict with char remove (); below.
6758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6759 <limits.h> exists even on freestanding compilers. */
6762 # include <limits.h>
6764 # include <assert.h>
6769 /* Override any gcc2 internal prototype to avoid an error. */
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6777 /* The GNU C library defines this for functions which it implements
6778 to always fail with ENOSYS. Some functions are actually named
6779 something starting with __ and the normal name is an alias. */
6780 #if defined (__stub_remove) || defined (__stub___remove)
6783 char (*f) () = remove;
6797 rm -f conftest.$ac_objext conftest$ac_exeext
6798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6799 (eval $ac_link) 2>conftest.er1
6801 grep -v '^ *+' conftest.er1 >conftest.err
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); } &&
6806 { ac_try='test -z "$ac_c_werror_flag"
6807 || test ! -s conftest.err'
6808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); }; } &&
6813 { ac_try='test -s conftest$ac_exeext'
6814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818 (exit $ac_status); }; }; then
6819 ac_cv_func_remove=yes
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ac_cv_func_remove=no
6826 rm -f conftest.err conftest.$ac_objext \
6827 conftest$ac_exeext conftest.$ac_ext
6829 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6830 echo "${ECHO_T}$ac_cv_func_remove" >&6
6832 if test $ac_cv_func_remove = no; then
6833 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6834 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6835 if test "${ac_cv_lib_posix_remove+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 ac_check_lib_save_LIBS=$LIBS
6839 LIBS="-lposix $LIBS"
6840 if test x$gcc_no_link = xyes; then
6841 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6842 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6843 { (exit 1); exit 1; }; }
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6852 /* Override any gcc2 internal prototype to avoid an error. */
6856 /* We use char because int might match the return type of a gcc2
6857 builtin and then its argument prototype would still apply. */
6867 rm -f conftest.$ac_objext conftest$ac_exeext
6868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6869 (eval $ac_link) 2>conftest.er1
6871 grep -v '^ *+' conftest.er1 >conftest.err
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } &&
6876 { ac_try='test -z "$ac_c_werror_flag"
6877 || test ! -s conftest.err'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; } &&
6883 { ac_try='test -s conftest$ac_exeext'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6889 ac_cv_lib_posix_remove=yes
6891 echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6894 ac_cv_lib_posix_remove=no
6896 rm -f conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6898 LIBS=$ac_check_lib_save_LIBS
6900 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6901 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6902 if test $ac_cv_lib_posix_remove = yes; then
6903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6908 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6909 echo "$as_me:$LINENO: checking for shmat" >&5
6910 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6911 if test "${ac_cv_func_shmat+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 if test x$gcc_no_link = xyes; then
6915 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
6916 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
6917 { (exit 1); exit 1; }; }
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6927 #define shmat innocuous_shmat
6929 /* System header to define __stub macros and hopefully few prototypes,
6930 which can conflict with char shmat (); below.
6931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6932 <limits.h> exists even on freestanding compilers. */
6935 # include <limits.h>
6937 # include <assert.h>
6942 /* Override any gcc2 internal prototype to avoid an error. */
6947 /* We use char because int might match the return type of a gcc2
6948 builtin and then its argument prototype would still apply. */
6950 /* The GNU C library defines this for functions which it implements
6951 to always fail with ENOSYS. Some functions are actually named
6952 something starting with __ and the normal name is an alias. */
6953 #if defined (__stub_shmat) || defined (__stub___shmat)
6956 char (*f) () = shmat;
6970 rm -f conftest.$ac_objext conftest$ac_exeext
6971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6972 (eval $ac_link) 2>conftest.er1
6974 grep -v '^ *+' conftest.er1 >conftest.err
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -z "$ac_c_werror_flag"
6980 || test ! -s conftest.err'
6981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); }; } &&
6986 { ac_try='test -s conftest$ac_exeext'
6987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); }; }; then
6992 ac_cv_func_shmat=yes
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6999 rm -f conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7002 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7003 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7005 if test $ac_cv_func_shmat = no; then
7006 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7007 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7008 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 ac_check_lib_save_LIBS=$LIBS
7013 if test x$gcc_no_link = xyes; then
7014 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7015 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7016 { (exit 1); exit 1; }; }
7018 cat >conftest.$ac_ext <<_ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7025 /* Override any gcc2 internal prototype to avoid an error. */
7029 /* We use char because int might match the return type of a gcc2
7030 builtin and then its argument prototype would still apply. */
7040 rm -f conftest.$ac_objext conftest$ac_exeext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7042 (eval $ac_link) 2>conftest.er1
7044 grep -v '^ *+' conftest.er1 >conftest.err
7046 cat conftest.err >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); } &&
7049 { ac_try='test -z "$ac_c_werror_flag"
7050 || test ! -s conftest.err'
7051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); }; } &&
7056 { ac_try='test -s conftest$ac_exeext'
7057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); }; }; then
7062 ac_cv_lib_ipc_shmat=yes
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7067 ac_cv_lib_ipc_shmat=no
7069 rm -f conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071 LIBS=$ac_check_lib_save_LIBS
7073 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7074 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7075 if test $ac_cv_lib_ipc_shmat = yes; then
7076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7082 # Check for libraries that X11R6 Xt/Xaw programs need.
7083 ac_save_LDFLAGS=$LDFLAGS
7084 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7085 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7086 # check for ICE first), but we must link in the order -lSM -lICE or
7087 # we get undefined symbols. So assume we have SM if we have ICE.
7088 # These have to be linked with before -lX11, unlike the other
7089 # libraries we check for below, so use a different variable.
7090 # John Interrante, Karl Berry
7091 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7092 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7093 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 ac_check_lib_save_LIBS=$LIBS
7097 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7098 if test x$gcc_no_link = xyes; then
7099 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7100 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7101 { (exit 1); exit 1; }; }
7103 cat >conftest.$ac_ext <<_ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7110 /* Override any gcc2 internal prototype to avoid an error. */
7114 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7116 char IceConnectionNumber ();
7120 IceConnectionNumber ();
7125 rm -f conftest.$ac_objext conftest$ac_exeext
7126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127 (eval $ac_link) 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } &&
7134 { ac_try='test -z "$ac_c_werror_flag"
7135 || test ! -s conftest.err'
7136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); }; } &&
7141 { ac_try='test -s conftest$ac_exeext'
7142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); }; }; then
7147 ac_cv_lib_ICE_IceConnectionNumber=yes
7149 echo "$as_me: failed program was:" >&5
7150 sed 's/^/| /' conftest.$ac_ext >&5
7152 ac_cv_lib_ICE_IceConnectionNumber=no
7154 rm -f conftest.err conftest.$ac_objext \
7155 conftest$ac_exeext conftest.$ac_ext
7156 LIBS=$ac_check_lib_save_LIBS
7158 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7159 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7160 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7161 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7164 LDFLAGS=$ac_save_LDFLAGS
7169 # Determine which AWT peer libraries to build
7170 # Check whether --enable-java-awt or --disable-java-awt was given.
7171 if test "${enable_java_awt+set}" = set; then
7172 enableval="$enable_java_awt"
7176 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
7179 # The default toolkit to use is the first one specified.
7183 for peer in $peerlibs ; do
7186 if test "$no_x" = yes; then
7187 echo "*** xlib peers requested but no X library available" 1>&2
7191 if test -z "$TOOLKIT"; then
7192 TOOLKIT=gnu.awt.xlib.XToolkit
7197 if test "$no_x" = yes; then
7198 echo "*** xlib peers requested but no X library available" 1>&2
7202 if test -z "$TOOLKIT"; then
7203 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
7205 test -d jniinclude || mkdir jniinclude
7214 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
7221 if test "$use_xlib_awt" = yes; then
7230 if test "$use_gtk_awt" = yes; then
7238 # determine whether to enable the cairo GTK Graphics2D backend
7239 # Check whether --enable-gtk-cairo or --disable-gtk-cairo was given.
7240 if test "${enable_gtk_cairo+set}" = set; then
7241 enableval="$enable_gtk_cairo"
7246 if test "x${enable_gtk_cairo}" = xyes; then
7253 if test "x${enable_gtk_cairo}" = xyes
7258 if test -z "$PKG_CONFIG"; then
7259 # Extract the first word of "pkg-config", so it can be a program name with args.
7260 set dummy pkg-config; ac_word=$2
7261 echo "$as_me:$LINENO: checking for $ac_word" >&5
7262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7263 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7264 echo $ECHO_N "(cached) $ECHO_C" >&6
7268 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7285 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7289 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7291 if test -n "$PKG_CONFIG"; then
7292 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7293 echo "${ECHO_T}$PKG_CONFIG" >&6
7295 echo "$as_me:$LINENO: result: no" >&5
7296 echo "${ECHO_T}no" >&6
7301 if test "$PKG_CONFIG" = "no" ; then
7302 echo "*** The pkg-config script could not be found. Make sure it is"
7303 echo "*** in your path, or set the PKG_CONFIG environment variable"
7304 echo "*** to the full path to pkg-config."
7305 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7307 PKG_CONFIG_MIN_VERSION=0.9.0
7308 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7309 echo "$as_me:$LINENO: checking for cairo" >&5
7310 echo $ECHO_N "checking for cairo... $ECHO_C" >&6
7312 if $PKG_CONFIG --exists "cairo" ; then
7313 echo "$as_me:$LINENO: result: yes" >&5
7314 echo "${ECHO_T}yes" >&6
7317 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
7318 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
7319 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo"`
7320 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
7321 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
7323 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
7324 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
7325 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo"`
7326 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
7327 echo "${ECHO_T}$CAIRO_LIBS" >&6
7331 ## If we have a custom action on failure, don't print errors, but
7332 ## do set a variable so people can do so.
7333 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
7334 echo $CAIRO_PKG_ERRORS
7340 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7341 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7345 if test $succeeded = yes; then
7348 { { 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
7349 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;}
7350 { (exit 1); exit 1; }; }
7356 if test -z "$PKG_CONFIG"; then
7357 # Extract the first word of "pkg-config", so it can be a program name with args.
7358 set dummy pkg-config; ac_word=$2
7359 echo "$as_me:$LINENO: checking for $ac_word" >&5
7360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7361 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7387 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7389 if test -n "$PKG_CONFIG"; then
7390 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7391 echo "${ECHO_T}$PKG_CONFIG" >&6
7393 echo "$as_me:$LINENO: result: no" >&5
7394 echo "${ECHO_T}no" >&6
7399 if test "$PKG_CONFIG" = "no" ; then
7400 echo "*** The pkg-config script could not be found. Make sure it is"
7401 echo "*** in your path, or set the PKG_CONFIG environment variable"
7402 echo "*** to the full path to pkg-config."
7403 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
7405 PKG_CONFIG_MIN_VERSION=0.9.0
7406 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7407 echo "$as_me:$LINENO: checking for pangoft2" >&5
7408 echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
7410 if $PKG_CONFIG --exists "pangoft2" ; then
7411 echo "$as_me:$LINENO: result: yes" >&5
7412 echo "${ECHO_T}yes" >&6
7415 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
7416 echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
7417 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
7418 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
7419 echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
7421 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
7422 echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
7423 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
7424 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
7425 echo "${ECHO_T}$PANGOFT2_LIBS" >&6
7429 ## If we have a custom action on failure, don't print errors, but
7430 ## do set a variable so people can do so.
7431 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
7432 echo $PANGOFT2_PKG_ERRORS
7438 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7439 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7443 if test $succeeded = yes; then
7446 { { 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
7447 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;}
7448 { (exit 1); exit 1; }; }
7457 # FIXME: this should be _libs on some hosts.
7460 # Allow the GC to be disabled. Can be useful when debugging.
7461 echo "$as_me:$LINENO: checking for garbage collector to use" >&5
7462 echo $ECHO_N "checking for garbage collector to use... $ECHO_C" >&6
7463 # Check whether --enable-java-gc or --disable-java-gc was given.
7464 if test "${enable_java_gc+set}" = set; then
7465 enableval="$enable_java_gc"
7479 echo "$as_me:$LINENO: result: boehm" >&5
7480 echo "${ECHO_T}boehm" >&6
7481 GCLIBS=../boehm-gc/libgcjgc_convenience.la
7482 JC1GCSPEC='-fuse-boehm-gc'
7483 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
7484 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
7487 # The POSIX thread support needs to know this.
7489 cat >>confdefs.h <<\_ACEOF
7490 #define HAVE_BOEHM_GC 1
7495 echo "$as_me:$LINENO: result: none" >&5
7496 echo "${ECHO_T}none" >&6
7501 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
7502 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
7503 { (exit 1); exit 1; }; }
7513 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
7517 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7518 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7519 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
7520 echo "$as_me:$LINENO: result: $THREADS" >&5
7521 echo "${ECHO_T}$THREADS" >&6
7532 cat >>confdefs.h <<\_ACEOF
7533 #define LINUX_THREADS 1
7541 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
7542 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
7543 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
7544 { (exit 1); exit 1; }; }
7547 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
7548 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
7549 { (exit 1); exit 1; }; }
7565 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
7568 # Before FreeBSD 5, it didn't have -lpthread (or any library which
7569 # merely adds pthread_* functions) but it does have a -pthread switch
7570 # which is required at link-time to select -lc_r *instead* of -lc.
7571 THREADLDFLAGS=-pthread
7572 # Don't set THREADSPEC here as might be expected since -pthread is
7573 # not processed when found within a spec file, it must come from
7574 # the command line. For now, the user must provide the -pthread
7575 # switch to link code compiled with gcj. In future, consider adding
7576 # support for weak references to pthread_* functions ala gthr.h API.
7577 THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
7580 # FreeBSD 5 implements a model much closer to other modern UNIX
7581 # which support threads. However, it still does not support
7583 THREADLDFLAGS=-pthread
7587 THREADCXXFLAGS=-pthread
7588 # boehm-gc needs some functions from librt, so link that too.
7589 THREADLIBS='-lpthread -lrt'
7590 THREADSPEC='-lpthread -lrt'
7593 THREADLIBS=-lpthread
7594 THREADSPEC=-lpthread
7597 THREADOBJS=posix-threads.lo
7598 THREADH=posix-threads.h
7599 # MIT pthreads doesn't seem to have the mutexattr functions.
7600 # But for now we don't check for it. We just assume you aren't
7601 # using MIT pthreads.
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7608 # If we're using the Boehm GC, then we happen to know that it
7609 # defines _REENTRANT, so we don't bother. Eww.
7610 if test "$GC" != boehm; then
7612 cat >>confdefs.h <<\_ACEOF
7613 #define _REENTRANT 1
7618 cat >>confdefs.h <<\_ACEOF
7619 #define _POSIX_PTHREAD_SEMANTICS 1
7625 THREADOBJS=win32-threads.lo
7626 THREADH=win32-threads.h
7630 THREADOBJS=no-threads.lo
7631 THREADH=no-threads.h
7634 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
7644 if test -d sysdep; then true; else mkdir sysdep; fi
7645 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
7649 # Hash synchronization is only useful with posix threads right now.
7650 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
7651 HASH_SYNC_SPEC=-fhash-synchronization
7653 cat >>confdefs.h <<\_ACEOF
7654 #define JV_HASH_SYNCHRONIZATION 1
7663 if test "$GCC" = yes; then
7671 # We're in the tree with gcc, and need to include some of its headers.
7672 GCC_UNWIND_INCLUDE='-I$(libgcj_basedir)/../gcc'
7674 # Figure out where generated headers like libgcj-config.h get installed.
7675 gcc_version_trigger=${libgcj_basedir}/../gcc/version.c
7676 gcc_version_full=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
7677 gcc_version=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
7678 tool_include_dir='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
7682 if test "x${with_newlib}" = "xyes"; then
7683 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
7684 # may not work correctly, because the compiler may not be able to
7687 # We assume newlib. This lets us hard-code the functions we know
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_MEMMOVE 1
7695 cat >>confdefs.h <<\_ACEOF
7696 #define HAVE_MEMCPY 1
7700 cat >>confdefs.h <<\_ACEOF
7701 #define HAVE_STRERROR 1
7705 cat >>confdefs.h <<\_ACEOF
7710 cat >>confdefs.h <<\_ACEOF
7711 #define HAVE_GMTIME_R 1
7715 cat >>confdefs.h <<\_ACEOF
7716 #define HAVE_LOCALTIME_R 1
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_USLEEP_DECL 1
7724 # This is only for POSIX threads.
7726 cat >>confdefs.h <<\_ACEOF
7727 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7730 # We also assume we are using gcc, which provides alloca.
7731 cat >>confdefs.h <<\_ACEOF
7732 #define HAVE_ALLOCA 1
7736 # Assume we do not have getuid and friends.
7738 cat >>confdefs.h <<\_ACEOF
7752 for ac_func in strerror ioctl select fstat open fsync sleep opendir
7754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7755 echo "$as_me:$LINENO: checking for $ac_func" >&5
7756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7757 if eval "test \"\${$as_ac_var+set}\" = set"; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7760 if test x$gcc_no_link = xyes; then
7761 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7762 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7763 { (exit 1); exit 1; }; }
7765 cat >conftest.$ac_ext <<_ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h. */
7771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7773 #define $ac_func innocuous_$ac_func
7775 /* System header to define __stub macros and hopefully few prototypes,
7776 which can conflict with char $ac_func (); below.
7777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7778 <limits.h> exists even on freestanding compilers. */
7781 # include <limits.h>
7783 # include <assert.h>
7788 /* Override any gcc2 internal prototype to avoid an error. */
7793 /* We use char because int might match the return type of a gcc2
7794 builtin and then its argument prototype would still apply. */
7796 /* The GNU C library defines this for functions which it implements
7797 to always fail with ENOSYS. Some functions are actually named
7798 something starting with __ and the normal name is an alias. */
7799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7802 char (*f) () = $ac_func;
7811 return f != $ac_func;
7816 rm -f conftest.$ac_objext conftest$ac_exeext
7817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7818 (eval $ac_link) 2>conftest.er1
7820 grep -v '^ *+' conftest.er1 >conftest.err
7822 cat conftest.err >&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -z "$ac_c_werror_flag"
7826 || test ! -s conftest.err'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; } &&
7832 { ac_try='test -s conftest$ac_exeext'
7833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); }; }; then
7838 eval "$as_ac_var=yes"
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 eval "$as_ac_var=no"
7845 rm -f conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
7848 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7849 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7850 if test `eval echo '${'$as_ac_var'}'` = yes; then
7851 cat >>confdefs.h <<_ACEOF
7852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7863 for ac_func in gmtime_r localtime_r readdir_r getpwuid_r getcwd
7865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7866 echo "$as_me:$LINENO: checking for $ac_func" >&5
7867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7868 if eval "test \"\${$as_ac_var+set}\" = set"; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 if test x$gcc_no_link = xyes; then
7872 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7873 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7874 { (exit 1); exit 1; }; }
7876 cat >conftest.$ac_ext <<_ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7884 #define $ac_func innocuous_$ac_func
7886 /* System header to define __stub macros and hopefully few prototypes,
7887 which can conflict with char $ac_func (); below.
7888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889 <limits.h> exists even on freestanding compilers. */
7892 # include <limits.h>
7894 # include <assert.h>
7899 /* Override any gcc2 internal prototype to avoid an error. */
7904 /* We use char because int might match the return type of a gcc2
7905 builtin and then its argument prototype would still apply. */
7907 /* The GNU C library defines this for functions which it implements
7908 to always fail with ENOSYS. Some functions are actually named
7909 something starting with __ and the normal name is an alias. */
7910 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7913 char (*f) () = $ac_func;
7922 return f != $ac_func;
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929 (eval $ac_link) 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest$ac_exeext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 eval "$as_ac_var=yes"
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7954 eval "$as_ac_var=no"
7956 rm -f conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
7959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7960 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7961 if test `eval echo '${'$as_ac_var'}'` = yes; then
7962 cat >>confdefs.h <<_ACEOF
7963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7978 for ac_func in access stat mkdir rename rmdir unlink realpath utime chmod
7980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7981 echo "$as_me:$LINENO: checking for $ac_func" >&5
7982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7983 if eval "test \"\${$as_ac_var+set}\" = set"; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 if test x$gcc_no_link = xyes; then
7987 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7988 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7989 { (exit 1); exit 1; }; }
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7999 #define $ac_func innocuous_$ac_func
8001 /* System header to define __stub macros and hopefully few prototypes,
8002 which can conflict with char $ac_func (); below.
8003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8004 <limits.h> exists even on freestanding compilers. */
8007 # include <limits.h>
8009 # include <assert.h>
8014 /* Override any gcc2 internal prototype to avoid an error. */
8019 /* We use char because int might match the return type of a gcc2
8020 builtin and then its argument prototype would still apply. */
8022 /* The GNU C library defines this for functions which it implements
8023 to always fail with ENOSYS. Some functions are actually named
8024 something starting with __ and the normal name is an alias. */
8025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8028 char (*f) () = $ac_func;
8037 return f != $ac_func;
8042 rm -f conftest.$ac_objext conftest$ac_exeext
8043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8044 (eval $ac_link) 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } &&
8051 { ac_try='test -z "$ac_c_werror_flag"
8052 || test ! -s conftest.err'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
8058 { ac_try='test -s conftest$ac_exeext'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
8064 eval "$as_ac_var=yes"
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 eval "$as_ac_var=no"
8071 rm -f conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8076 if test `eval echo '${'$as_ac_var'}'` = yes; then
8077 cat >>confdefs.h <<_ACEOF
8078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8086 for ac_func in nl_langinfo setlocale
8088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8089 echo "$as_me:$LINENO: checking for $ac_func" >&5
8090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8091 if eval "test \"\${$as_ac_var+set}\" = set"; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 if test x$gcc_no_link = xyes; then
8095 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8096 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8097 { (exit 1); exit 1; }; }
8099 cat >conftest.$ac_ext <<_ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8107 #define $ac_func innocuous_$ac_func
8109 /* System header to define __stub macros and hopefully few prototypes,
8110 which can conflict with char $ac_func (); below.
8111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8112 <limits.h> exists even on freestanding compilers. */
8115 # include <limits.h>
8117 # include <assert.h>
8122 /* Override any gcc2 internal prototype to avoid an error. */
8127 /* We use char because int might match the return type of a gcc2
8128 builtin and then its argument prototype would still apply. */
8130 /* The GNU C library defines this for functions which it implements
8131 to always fail with ENOSYS. Some functions are actually named
8132 something starting with __ and the normal name is an alias. */
8133 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8136 char (*f) () = $ac_func;
8145 return f != $ac_func;
8150 rm -f conftest.$ac_objext conftest$ac_exeext
8151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8152 (eval $ac_link) 2>conftest.er1
8154 grep -v '^ *+' conftest.er1 >conftest.err
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } &&
8159 { ac_try='test -z "$ac_c_werror_flag"
8160 || test ! -s conftest.err'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; } &&
8166 { ac_try='test -s conftest$ac_exeext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 eval "$as_ac_var=yes"
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8177 eval "$as_ac_var=no"
8179 rm -f conftest.err conftest.$ac_objext \
8180 conftest$ac_exeext conftest.$ac_ext
8182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8183 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8184 if test `eval echo '${'$as_ac_var'}'` = yes; then
8185 cat >>confdefs.h <<_ACEOF
8186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8194 for ac_func in inet_aton inet_addr
8196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8197 echo "$as_me:$LINENO: checking for $ac_func" >&5
8198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8199 if eval "test \"\${$as_ac_var+set}\" = set"; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8202 if test x$gcc_no_link = xyes; then
8203 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8204 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8205 { (exit 1); exit 1; }; }
8207 cat >conftest.$ac_ext <<_ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8215 #define $ac_func innocuous_$ac_func
8217 /* System header to define __stub macros and hopefully few prototypes,
8218 which can conflict with char $ac_func (); below.
8219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220 <limits.h> exists even on freestanding compilers. */
8223 # include <limits.h>
8225 # include <assert.h>
8230 /* Override any gcc2 internal prototype to avoid an error. */
8235 /* We use char because int might match the return type of a gcc2
8236 builtin and then its argument prototype would still apply. */
8238 /* The GNU C library defines this for functions which it implements
8239 to always fail with ENOSYS. Some functions are actually named
8240 something starting with __ and the normal name is an alias. */
8241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8244 char (*f) () = $ac_func;
8253 return f != $ac_func;
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260 (eval $ac_link) 2>conftest.er1
8262 grep -v '^ *+' conftest.er1 >conftest.err
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } &&
8267 { ac_try='test -z "$ac_c_werror_flag"
8268 || test ! -s conftest.err'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; } &&
8274 { ac_try='test -s conftest$ac_exeext'
8275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); }; }; then
8280 eval "$as_ac_var=yes"
8282 echo "$as_me: failed program was:" >&5
8283 sed 's/^/| /' conftest.$ac_ext >&5
8285 eval "$as_ac_var=no"
8287 rm -f conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8292 if test `eval echo '${'$as_ac_var'}'` = yes; then
8293 cat >>confdefs.h <<_ACEOF
8294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8303 for ac_func in inet_pton uname inet_ntoa
8305 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8306 echo "$as_me:$LINENO: checking for $ac_func" >&5
8307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8308 if eval "test \"\${$as_ac_var+set}\" = set"; then
8309 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 if test x$gcc_no_link = xyes; then
8312 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8313 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8314 { (exit 1); exit 1; }; }
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8324 #define $ac_func innocuous_$ac_func
8326 /* System header to define __stub macros and hopefully few prototypes,
8327 which can conflict with char $ac_func (); below.
8328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8329 <limits.h> exists even on freestanding compilers. */
8332 # include <limits.h>
8334 # include <assert.h>
8339 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8347 /* The GNU C library defines this for functions which it implements
8348 to always fail with ENOSYS. Some functions are actually named
8349 something starting with __ and the normal name is an alias. */
8350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8353 char (*f) () = $ac_func;
8362 return f != $ac_func;
8367 rm -f conftest.$ac_objext conftest$ac_exeext
8368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8369 (eval $ac_link) 2>conftest.er1
8371 grep -v '^ *+' conftest.er1 >conftest.err
8373 cat conftest.err >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } &&
8376 { ac_try='test -z "$ac_c_werror_flag"
8377 || test ! -s conftest.err'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; } &&
8383 { ac_try='test -s conftest$ac_exeext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 eval "$as_ac_var=yes"
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8394 eval "$as_ac_var=no"
8396 rm -f conftest.err conftest.$ac_objext \
8397 conftest$ac_exeext conftest.$ac_ext
8399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8401 if test `eval echo '${'$as_ac_var'}'` = yes; then
8402 cat >>confdefs.h <<_ACEOF
8403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8414 for ac_func in fork execvp pipe sigaction ftruncate
8416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8417 echo "$as_me:$LINENO: checking for $ac_func" >&5
8418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8419 if eval "test \"\${$as_ac_var+set}\" = set"; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 if test x$gcc_no_link = xyes; then
8423 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8424 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8425 { (exit 1); exit 1; }; }
8427 cat >conftest.$ac_ext <<_ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8435 #define $ac_func innocuous_$ac_func
8437 /* System header to define __stub macros and hopefully few prototypes,
8438 which can conflict with char $ac_func (); below.
8439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8440 <limits.h> exists even on freestanding compilers. */
8443 # include <limits.h>
8445 # include <assert.h>
8450 /* Override any gcc2 internal prototype to avoid an error. */
8455 /* We use char because int might match the return type of a gcc2
8456 builtin and then its argument prototype would still apply. */
8458 /* The GNU C library defines this for functions which it implements
8459 to always fail with ENOSYS. Some functions are actually named
8460 something starting with __ and the normal name is an alias. */
8461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8464 char (*f) () = $ac_func;
8473 return f != $ac_func;
8478 rm -f conftest.$ac_objext conftest$ac_exeext
8479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8480 (eval $ac_link) 2>conftest.er1
8482 grep -v '^ *+' conftest.er1 >conftest.err
8484 cat conftest.err >&5
8485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8486 (exit $ac_status); } &&
8487 { ac_try='test -z "$ac_c_werror_flag"
8488 || test ! -s conftest.err'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 eval "$as_ac_var=yes"
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 eval "$as_ac_var=no"
8507 rm -f conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8510 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8511 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8512 if test `eval echo '${'$as_ac_var'}'` = yes; then
8513 cat >>confdefs.h <<_ACEOF
8514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8520 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8521 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8522 if test "${ac_cv_header_stdc+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 cat >conftest.$ac_ext <<_ACEOF
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8544 rm -f conftest.$ac_objext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546 (eval $ac_compile) 2>conftest.er1
8548 grep -v '^ *+' conftest.er1 >conftest.err
8550 cat conftest.err >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); } &&
8553 { ac_try='test -z "$ac_c_werror_flag"
8554 || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest.$ac_objext'
8561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); }; }; then
8566 ac_cv_header_stdc=yes
8568 echo "$as_me: failed program was:" >&5
8569 sed 's/^/| /' conftest.$ac_ext >&5
8571 ac_cv_header_stdc=no
8573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8575 if test $ac_cv_header_stdc = yes; then
8576 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8587 $EGREP "memchr" >/dev/null 2>&1; then
8590 ac_cv_header_stdc=no
8596 if test $ac_cv_header_stdc = yes; then
8597 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8598 cat >conftest.$ac_ext <<_ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8608 $EGREP "free" >/dev/null 2>&1; then
8611 ac_cv_header_stdc=no
8617 if test $ac_cv_header_stdc = yes; then
8618 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8619 if test "$cross_compiling" = yes; then
8622 cat >conftest.$ac_ext <<_ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8629 #if ((' ' & 0x0FF) == 0x020)
8630 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8631 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8633 # define ISLOWER(c) \
8634 (('a' <= (c) && (c) <= 'i') \
8635 || ('j' <= (c) && (c) <= 'r') \
8636 || ('s' <= (c) && (c) <= 'z'))
8637 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8645 for (i = 0; i < 256; i++)
8646 if (XOR (islower (i), ISLOWER (i))
8647 || toupper (i) != TOUPPER (i))
8652 rm -f conftest$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654 (eval $ac_link) 2>&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
8665 echo "$as_me: program exited with status $ac_status" >&5
8666 echo "$as_me: failed program was:" >&5
8667 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_cv_header_stdc=no
8672 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8676 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8677 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8678 if test $ac_cv_header_stdc = yes; then
8680 cat >>confdefs.h <<\_ACEOF
8681 #define STDC_HEADERS 1
8686 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8696 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8697 inttypes.h stdint.h unistd.h
8699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8700 echo "$as_me:$LINENO: checking for $ac_header" >&5
8701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 $ac_includes_default
8713 #include <$ac_header>
8715 rm -f conftest.$ac_objext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8717 (eval $ac_compile) 2>conftest.er1
8719 grep -v '^ *+' conftest.er1 >conftest.err
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } &&
8724 { ac_try='test -z "$ac_c_werror_flag"
8725 || test ! -s conftest.err'
8726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); }; } &&
8731 { ac_try='test -s conftest.$ac_objext'
8732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); }; }; then
8737 eval "$as_ac_Header=yes"
8739 echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8742 eval "$as_ac_Header=no"
8744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8749 cat >>confdefs.h <<_ACEOF
8750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8761 for ac_header in execinfo.h unistd.h dlfcn.h
8763 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8765 echo "$as_me:$LINENO: checking for $ac_header" >&5
8766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8771 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8773 # Is the header compilable?
8774 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8782 $ac_includes_default
8783 #include <$ac_header>
8785 rm -f conftest.$ac_objext
8786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8787 (eval $ac_compile) 2>conftest.er1
8789 grep -v '^ *+' conftest.er1 >conftest.err
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } &&
8794 { ac_try='test -z "$ac_c_werror_flag"
8795 || test ! -s conftest.err'
8796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); }; } &&
8801 { ac_try='test -s conftest.$ac_objext'
8802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); }; }; then
8807 ac_header_compiler=yes
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8812 ac_header_compiler=no
8814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8816 echo "${ECHO_T}$ac_header_compiler" >&6
8818 # Is the header present?
8819 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8821 cat >conftest.$ac_ext <<_ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h. */
8827 #include <$ac_header>
8829 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8832 grep -v '^ *+' conftest.er1 >conftest.err
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } >/dev/null; then
8837 if test -s conftest.err; then
8838 ac_cpp_err=$ac_c_preproc_warn_flag
8839 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8846 if test -z "$ac_cpp_err"; then
8847 ac_header_preproc=yes
8849 echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8852 ac_header_preproc=no
8854 rm -f conftest.err conftest.$ac_ext
8855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8856 echo "${ECHO_T}$ac_header_preproc" >&6
8858 # So? What about this header?
8859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8861 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8862 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8864 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8865 ac_header_preproc=yes
8868 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8869 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8870 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8871 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8872 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8873 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8874 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8875 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8877 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8878 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8879 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8882 ## ------------------------------------------ ##
8883 ## Report this to the AC_PACKAGE_NAME lists. ##
8884 ## ------------------------------------------ ##
8887 sed "s/^/$as_me: WARNING: /" >&2
8890 echo "$as_me:$LINENO: checking for $ac_header" >&5
8891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8892 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 eval "$as_ac_Header=\$ac_header_preproc"
8897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8898 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8902 cat >>confdefs.h <<_ACEOF
8903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8910 echo "$as_me:$LINENO: checking for backtrace" >&5
8911 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
8912 if test "${ac_cv_func_backtrace+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 if test x$gcc_no_link = xyes; then
8916 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8917 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8918 { (exit 1); exit 1; }; }
8920 cat >conftest.$ac_ext <<_ACEOF
8923 cat confdefs.h >>conftest.$ac_ext
8924 cat >>conftest.$ac_ext <<_ACEOF
8925 /* end confdefs.h. */
8926 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
8927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8928 #define backtrace innocuous_backtrace
8930 /* System header to define __stub macros and hopefully few prototypes,
8931 which can conflict with char backtrace (); below.
8932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8933 <limits.h> exists even on freestanding compilers. */
8936 # include <limits.h>
8938 # include <assert.h>
8943 /* Override any gcc2 internal prototype to avoid an error. */
8948 /* We use char because int might match the return type of a gcc2
8949 builtin and then its argument prototype would still apply. */
8951 /* The GNU C library defines this for functions which it implements
8952 to always fail with ENOSYS. Some functions are actually named
8953 something starting with __ and the normal name is an alias. */
8954 #if defined (__stub_backtrace) || defined (__stub___backtrace)
8957 char (*f) () = backtrace;
8966 return f != backtrace;
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973 (eval $ac_link) 2>conftest.er1
8975 grep -v '^ *+' conftest.er1 >conftest.err
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 (exit $ac_status); } &&
8980 { ac_try='test -z "$ac_c_werror_flag"
8981 || test ! -s conftest.err'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; } &&
8987 { ac_try='test -s conftest$ac_exeext'
8988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 (exit $ac_status); }; }; then
8993 ac_cv_func_backtrace=yes
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8998 ac_cv_func_backtrace=no
9000 rm -f conftest.err conftest.$ac_objext \
9001 conftest$ac_exeext conftest.$ac_ext
9003 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9004 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9005 if test $ac_cv_func_backtrace = yes; then
9009 # Has broken backtrace()
9012 # Has broken backtrace(), but we supply our own.
9013 if test -d sysdep; then true; else mkdir -p sysdep; fi
9014 EXTRA_CC_FILES="${EXTRA_CC_FILES} sysdep/dwarf2-backtrace.cc"
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_BACKTRACE 1
9023 cat >>confdefs.h <<\_ACEOF
9024 #define HAVE_BACKTRACE 1
9034 # Has backtrace() defined in libgcj itself
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_BACKTRACE 1
9046 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9047 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9048 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 ac_check_lib_save_LIBS=$LIBS
9053 if test x$gcc_no_link = xyes; then
9054 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9055 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9056 { (exit 1); exit 1; }; }
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9065 /* Override any gcc2 internal prototype to avoid an error. */
9069 /* We use char because int might match the return type of a gcc2
9070 builtin and then its argument prototype would still apply. */
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9082 (eval $ac_link) 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest$ac_exeext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_lib_dl_dladdr=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_cv_lib_dl_dladdr=no
9109 rm -f conftest.err conftest.$ac_objext \
9110 conftest$ac_exeext conftest.$ac_ext
9111 LIBS=$ac_check_lib_save_LIBS
9113 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9114 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9115 if test $ac_cv_lib_dl_dladdr = yes; then
9117 if test "x${disable_dladdr}" = "xyes"; then
9122 cat >>confdefs.h <<\_ACEOF
9123 #define HAVE_DLADDR 1
9130 if test x"$build" = x"$host"; then
9131 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9132 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9133 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9134 echo $ECHO_N "(cached) $ECHO_C" >&6
9136 test "$cross_compiling" = yes &&
9137 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9138 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9139 { (exit 1); exit 1; }; }
9140 if test -r "/proc/self/exe"; then
9141 ac_cv_file__proc_self_exe=yes
9143 ac_cv_file__proc_self_exe=no
9146 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9147 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9148 if test $ac_cv_file__proc_self_exe = yes; then
9150 cat >>confdefs.h <<_ACEOF
9151 #define HAVE__PROC_SELF_EXE 1
9156 cat >>confdefs.h <<\_ACEOF
9157 #define HAVE_PROC_SELF_EXE 1
9166 cat >>confdefs.h <<\_ACEOF
9167 #define HAVE_PROC_SELF_EXE 1
9176 am_cv_lib_iconv_ldpath=
9178 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9179 if test "${with_libiconv_prefix+set}" = set; then
9180 withval="$with_libiconv_prefix"
9182 for dir in `echo "$withval" | tr : ' '`; do
9183 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
9184 if test -d $dir/lib; then am_cv_lib_iconv_ldpath="-L$dir/lib"; fi
9189 echo "$as_me:$LINENO: checking for iconv" >&5
9190 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9191 if test "${am_cv_func_iconv+set}" = set; then
9192 echo $ECHO_N "(cached) $ECHO_C" >&6
9195 am_cv_func_iconv="no, consider installing GNU libiconv"
9197 if test x$gcc_no_link = xyes; then
9198 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9199 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9200 { (exit 1); exit 1; }; }
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9213 iconv_t cd = iconv_open("","");
9214 iconv(cd,NULL,NULL,NULL,NULL);
9220 rm -f conftest.$ac_objext conftest$ac_exeext
9221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9222 (eval $ac_link) 2>conftest.er1
9224 grep -v '^ *+' conftest.er1 >conftest.err
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } &&
9229 { ac_try='test -z "$ac_c_werror_flag"
9230 || test ! -s conftest.err'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; } &&
9236 { ac_try='test -s conftest$ac_exeext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 am_cv_func_iconv=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9248 rm -f conftest.err conftest.$ac_objext \
9249 conftest$ac_exeext conftest.$ac_ext
9250 if test "$am_cv_func_iconv" != yes; then
9251 am_save_LIBS="$LIBS"
9252 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv"
9253 if test x$gcc_no_link = xyes; then
9254 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9255 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9256 { (exit 1); exit 1; }; }
9258 cat >conftest.$ac_ext <<_ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9269 iconv_t cd = iconv_open("","");
9270 iconv(cd,NULL,NULL,NULL,NULL);
9276 rm -f conftest.$ac_objext conftest$ac_exeext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9278 (eval $ac_link) 2>conftest.er1
9280 grep -v '^ *+' conftest.er1 >conftest.err
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } &&
9285 { ac_try='test -z "$ac_c_werror_flag"
9286 || test ! -s conftest.err'
9287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); }; } &&
9292 { ac_try='test -s conftest$ac_exeext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9299 am_cv_func_iconv=yes
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9305 rm -f conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
9307 LIBS="$am_save_LIBS"
9311 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9312 echo "${ECHO_T}$am_cv_func_iconv" >&6
9313 if test "$am_cv_func_iconv" = yes; then
9315 cat >>confdefs.h <<\_ACEOF
9316 #define HAVE_ICONV 1
9319 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9320 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9321 if test "${am_cv_proto_iconv+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9338 #if defined(__STDC__) || defined(__cplusplus)
9339 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9352 rm -f conftest.$ac_objext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9354 (eval $ac_compile) 2>conftest.er1
9356 grep -v '^ *+' conftest.er1 >conftest.err
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest.$ac_objext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 am_cv_proto_iconv_arg1=""
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 am_cv_proto_iconv_arg1="const"
9381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9382 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);"
9385 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9386 echo "$as_me:$LINENO: result: ${ac_t:-
9387 }$am_cv_proto_iconv" >&5
9388 echo "${ECHO_T}${ac_t:-
9389 }$am_cv_proto_iconv" >&6
9391 cat >>confdefs.h <<_ACEOF
9392 #define ICONV_CONST $am_cv_proto_iconv_arg1
9397 if test "$am_cv_lib_iconv" = yes; then
9398 LIBICONV="$am_cv_lib_iconv_ldpath -liconv"
9403 for ac_header in locale.h
9405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9407 echo "$as_me:$LINENO: checking for $ac_header" >&5
9408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9410 echo $ECHO_N "(cached) $ECHO_C" >&6
9412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9415 # Is the header compilable?
9416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9418 cat >conftest.$ac_ext <<_ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h. */
9424 $ac_includes_default
9425 #include <$ac_header>
9427 rm -f conftest.$ac_objext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9429 (eval $ac_compile) 2>conftest.er1
9431 grep -v '^ *+' conftest.er1 >conftest.err
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); } &&
9436 { ac_try='test -z "$ac_c_werror_flag"
9437 || test ! -s conftest.err'
9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9442 (exit $ac_status); }; } &&
9443 { ac_try='test -s conftest.$ac_objext'
9444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); }; }; then
9449 ac_header_compiler=yes
9451 echo "$as_me: failed program was:" >&5
9452 sed 's/^/| /' conftest.$ac_ext >&5
9454 ac_header_compiler=no
9456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9458 echo "${ECHO_T}$ac_header_compiler" >&6
9460 # Is the header present?
9461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9463 cat >conftest.$ac_ext <<_ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h. */
9469 #include <$ac_header>
9471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9474 grep -v '^ *+' conftest.er1 >conftest.err
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } >/dev/null; then
9479 if test -s conftest.err; then
9480 ac_cpp_err=$ac_c_preproc_warn_flag
9481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9488 if test -z "$ac_cpp_err"; then
9489 ac_header_preproc=yes
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_header_preproc=no
9496 rm -f conftest.err conftest.$ac_ext
9497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9498 echo "${ECHO_T}$ac_header_preproc" >&6
9500 # So? What about this header?
9501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9507 ac_header_preproc=yes
9510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9524 ## ------------------------------------------ ##
9525 ## Report this to the AC_PACKAGE_NAME lists. ##
9526 ## ------------------------------------------ ##
9529 sed "s/^/$as_me: WARNING: /" >&2
9532 echo "$as_me:$LINENO: checking for $ac_header" >&5
9533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9535 echo $ECHO_N "(cached) $ECHO_C" >&6
9537 eval "$as_ac_Header=\$ac_header_preproc"
9539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9544 cat >>confdefs.h <<_ACEOF
9545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9552 if test $ac_cv_header_locale_h = yes; then
9553 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9554 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9555 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 if test x$gcc_no_link = xyes; then
9559 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9560 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9561 { (exit 1); exit 1; }; }
9563 cat >conftest.$ac_ext <<_ACEOF
9566 cat confdefs.h >>conftest.$ac_ext
9567 cat >>conftest.$ac_ext <<_ACEOF
9568 /* end confdefs.h. */
9578 rm -f conftest.$ac_objext conftest$ac_exeext
9579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9580 (eval $ac_link) 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag"
9588 || test ! -s conftest.err'
9589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }; } &&
9594 { ac_try='test -s conftest$ac_exeext'
9595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); }; }; then
9600 am_cv_val_LC_MESSAGES=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.$ac_ext >&5
9605 am_cv_val_LC_MESSAGES=no
9607 rm -f conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9610 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9611 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9612 if test $am_cv_val_LC_MESSAGES = yes; then
9614 cat >>confdefs.h <<\_ACEOF
9615 #define HAVE_LC_MESSAGES 1
9620 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9621 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9622 if test "${ac_cv_struct_tm+set}" = set; then
9623 echo $ECHO_N "(cached) $ECHO_C" >&6
9625 cat >conftest.$ac_ext <<_ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9631 #include <sys/types.h>
9637 struct tm *tp; tp->tm_sec;
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644 (eval $ac_compile) 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag"
9652 || test ! -s conftest.err'
9653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); }; } &&
9658 { ac_try='test -s conftest.$ac_objext'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; }; then
9664 ac_cv_struct_tm=time.h
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_struct_tm=sys/time.h
9671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9673 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9674 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9675 if test $ac_cv_struct_tm = sys/time.h; then
9677 cat >>confdefs.h <<\_ACEOF
9678 #define TM_IN_SYS_TIME 1
9683 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9684 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9685 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 cat >conftest.$ac_ext <<_ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 #include <sys/types.h>
9695 #include <$ac_cv_struct_tm>
9701 static struct tm ac_aggr;
9702 if (ac_aggr.tm_zone)
9708 rm -f conftest.$ac_objext
9709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9710 (eval $ac_compile) 2>conftest.er1
9712 grep -v '^ *+' conftest.er1 >conftest.err
9714 cat conftest.err >&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -z "$ac_c_werror_flag"
9718 || test ! -s conftest.err'
9719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); }; } &&
9724 { ac_try='test -s conftest.$ac_objext'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; }; then
9730 ac_cv_member_struct_tm_tm_zone=yes
9732 echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9735 cat >conftest.$ac_ext <<_ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 #include <sys/types.h>
9742 #include <$ac_cv_struct_tm>
9748 static struct tm ac_aggr;
9749 if (sizeof ac_aggr.tm_zone)
9755 rm -f conftest.$ac_objext
9756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9757 (eval $ac_compile) 2>conftest.er1
9759 grep -v '^ *+' conftest.er1 >conftest.err
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } &&
9764 { ac_try='test -z "$ac_c_werror_flag"
9765 || test ! -s conftest.err'
9766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); }; } &&
9771 { ac_try='test -s conftest.$ac_objext'
9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); }; }; then
9777 ac_cv_member_struct_tm_tm_zone=yes
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9782 ac_cv_member_struct_tm_tm_zone=no
9784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9788 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9789 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9790 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9792 cat >>confdefs.h <<_ACEOF
9793 #define HAVE_STRUCT_TM_TM_ZONE 1
9799 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9801 cat >>confdefs.h <<\_ACEOF
9802 #define HAVE_TM_ZONE 1
9806 echo "$as_me:$LINENO: checking for tzname" >&5
9807 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9808 if test "${ac_cv_var_tzname+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 if test x$gcc_no_link = xyes; then
9812 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9813 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9814 { (exit 1); exit 1; }; }
9816 cat >conftest.$ac_ext <<_ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9823 #ifndef tzname /* For SGI. */
9824 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837 (eval $ac_link) 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag"
9845 || test ! -s conftest.err'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try='test -s conftest$ac_exeext'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9857 ac_cv_var_tzname=yes
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9864 rm -f conftest.err conftest.$ac_objext \
9865 conftest$ac_exeext conftest.$ac_ext
9867 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9868 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9869 if test $ac_cv_var_tzname = yes; then
9871 cat >>confdefs.h <<\_ACEOF
9872 #define HAVE_TZNAME 1
9881 for ac_func in gethostbyname_r
9883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9884 echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9886 if eval "test \"\${$as_ac_var+set}\" = set"; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 if test x$gcc_no_link = xyes; then
9890 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9891 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9892 { (exit 1); exit 1; }; }
9894 cat >conftest.$ac_ext <<_ACEOF
9897 cat confdefs.h >>conftest.$ac_ext
9898 cat >>conftest.$ac_ext <<_ACEOF
9899 /* end confdefs.h. */
9900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9902 #define $ac_func innocuous_$ac_func
9904 /* System header to define __stub macros and hopefully few prototypes,
9905 which can conflict with char $ac_func (); below.
9906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9907 <limits.h> exists even on freestanding compilers. */
9910 # include <limits.h>
9912 # include <assert.h>
9917 /* Override any gcc2 internal prototype to avoid an error. */
9922 /* We use char because int might match the return type of a gcc2
9923 builtin and then its argument prototype would still apply. */
9925 /* The GNU C library defines this for functions which it implements
9926 to always fail with ENOSYS. Some functions are actually named
9927 something starting with __ and the normal name is an alias. */
9928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9931 char (*f) () = $ac_func;
9940 return f != $ac_func;
9945 rm -f conftest.$ac_objext conftest$ac_exeext
9946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9947 (eval $ac_link) 2>conftest.er1
9949 grep -v '^ *+' conftest.er1 >conftest.err
9951 cat conftest.err >&5
9952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9953 (exit $ac_status); } &&
9954 { ac_try='test -z "$ac_c_werror_flag"
9955 || test ! -s conftest.err'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; } &&
9961 { ac_try='test -s conftest$ac_exeext'
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; }; then
9967 eval "$as_ac_var=yes"
9969 echo "$as_me: failed program was:" >&5
9970 sed 's/^/| /' conftest.$ac_ext >&5
9972 eval "$as_ac_var=no"
9974 rm -f conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9979 if test `eval echo '${'$as_ac_var'}'` = yes; then
9980 cat >>confdefs.h <<_ACEOF
9981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9985 cat >>confdefs.h <<\_ACEOF
9986 #define HAVE_GETHOSTBYNAME_R 1
9989 # There are two different kinds of gethostbyname_r.
9990 # We look for the one that returns `int'.
9991 # Hopefully this check is robust enough.
9992 cat >conftest.$ac_ext <<_ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
10001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10002 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then
10005 cat >>confdefs.h <<\_ACEOF
10006 #define GETHOSTBYNAME_R_RETURNS_INT 1
10013 case " $GCINCS " in
10014 *" -D_REENTRANT "*) ;;
10016 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10017 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10018 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 ac_cpp='$CXXCPP $CPPFLAGS'
10025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10029 cat >conftest.$ac_ext <<_ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h. */
10039 gethostbyname_r("", 0, 0);
10044 rm -f conftest.$ac_objext
10045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10046 (eval $ac_compile) 2>conftest.er1
10048 grep -v '^ *+' conftest.er1 >conftest.err
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -z "$ac_cxx_werror_flag"
10054 || test ! -s conftest.err'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest.$ac_objext'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; }; then
10066 libjava_cv_gethostbyname_r_needs_reentrant=no
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.$ac_ext >&5
10071 CPPFLAGS_SAVE="$CPPFLAGS"
10072 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10083 gethostbyname_r("", 0, 0);
10088 rm -f conftest.$ac_objext
10089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10090 (eval $ac_compile) 2>conftest.er1
10092 grep -v '^ *+' conftest.er1 >conftest.err
10094 cat conftest.err >&5
10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096 (exit $ac_status); } &&
10097 { ac_try='test -z "$ac_cxx_werror_flag"
10098 || test ! -s conftest.err'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; } &&
10104 { ac_try='test -s conftest.$ac_objext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 libjava_cv_gethostbyname_r_needs_reentrant=yes
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10115 libjava_cv_gethostbyname_r_needs_reentrant=fail
10117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10118 CPPFLAGS="$CPPFLAGS_SAVE"
10121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10123 ac_cpp='$CPP $CPPFLAGS'
10124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10130 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10131 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10132 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
10134 cat >>confdefs.h <<\_ACEOF
10135 #define _REENTRANT 1
10142 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10143 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10144 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 cat >conftest.$ac_ext <<_ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10154 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10155 # define _REENTRANT 1
10161 struct hostent_data data;
10166 rm -f conftest.$ac_objext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10168 (eval $ac_compile) 2>conftest.er1
10170 grep -v '^ *+' conftest.er1 >conftest.err
10172 cat conftest.err >&5
10173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174 (exit $ac_status); } &&
10175 { ac_try='test -z "$ac_c_werror_flag"
10176 || test ! -s conftest.err'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; } &&
10182 { ac_try='test -s conftest.$ac_objext'
10183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10184 (eval $ac_try) 2>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); }; }; then
10188 libjava_cv_struct_hostent_data=yes
10190 echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10193 libjava_cv_struct_hostent_data=no
10195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10197 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10198 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10199 if test "x$libjava_cv_struct_hostent_data" = xyes; then
10201 cat >>confdefs.h <<\_ACEOF
10202 #define HAVE_STRUCT_HOSTENT_DATA 1
10211 # FIXME: libjava source code expects to find a prototype for
10212 # gethostbyaddr_r in netdb.h. The outer check ensures that
10213 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10214 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10215 # linkage check is enough, yet C++ code requires proper prototypes.)
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10226 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then
10229 for ac_func in gethostbyaddr_r
10231 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10232 echo "$as_me:$LINENO: checking for $ac_func" >&5
10233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10234 if eval "test \"\${$as_ac_var+set}\" = set"; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 if test x$gcc_no_link = xyes; then
10238 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10239 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10240 { (exit 1); exit 1; }; }
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10250 #define $ac_func innocuous_$ac_func
10252 /* System header to define __stub macros and hopefully few prototypes,
10253 which can conflict with char $ac_func (); below.
10254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10255 <limits.h> exists even on freestanding compilers. */
10258 # include <limits.h>
10260 # include <assert.h>
10265 /* Override any gcc2 internal prototype to avoid an error. */
10270 /* We use char because int might match the return type of a gcc2
10271 builtin and then its argument prototype would still apply. */
10273 /* The GNU C library defines this for functions which it implements
10274 to always fail with ENOSYS. Some functions are actually named
10275 something starting with __ and the normal name is an alias. */
10276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10279 char (*f) () = $ac_func;
10288 return f != $ac_func;
10293 rm -f conftest.$ac_objext conftest$ac_exeext
10294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10295 (eval $ac_link) 2>conftest.er1
10297 grep -v '^ *+' conftest.er1 >conftest.err
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -z "$ac_c_werror_flag"
10303 || test ! -s conftest.err'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; } &&
10309 { ac_try='test -s conftest$ac_exeext'
10310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10311 (eval $ac_try) 2>&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); }; }; then
10315 eval "$as_ac_var=yes"
10317 echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 eval "$as_ac_var=no"
10322 rm -f conftest.err conftest.$ac_objext \
10323 conftest$ac_exeext conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10326 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10327 if test `eval echo '${'$as_ac_var'}'` = yes; then
10328 cat >>confdefs.h <<_ACEOF
10329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_GETHOSTBYADDR_R 1
10337 # There are two different kinds of gethostbyaddr_r.
10338 # We look for the one that returns `int'.
10339 # Hopefully this check is robust enough.
10340 cat >conftest.$ac_ext <<_ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10350 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then
10353 cat >>confdefs.h <<\_ACEOF
10354 #define GETHOSTBYADDR_R_RETURNS_INT 1
10368 for ac_func in gethostname
10370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10371 echo "$as_me:$LINENO: checking for $ac_func" >&5
10372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10373 if eval "test \"\${$as_ac_var+set}\" = set"; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 if test x$gcc_no_link = xyes; then
10377 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10378 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10379 { (exit 1); exit 1; }; }
10381 cat >conftest.$ac_ext <<_ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h. */
10387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10389 #define $ac_func innocuous_$ac_func
10391 /* System header to define __stub macros and hopefully few prototypes,
10392 which can conflict with char $ac_func (); below.
10393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10394 <limits.h> exists even on freestanding compilers. */
10397 # include <limits.h>
10399 # include <assert.h>
10404 /* Override any gcc2 internal prototype to avoid an error. */
10409 /* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10412 /* The GNU C library defines this for functions which it implements
10413 to always fail with ENOSYS. Some functions are actually named
10414 something starting with __ and the normal name is an alias. */
10415 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10418 char (*f) () = $ac_func;
10427 return f != $ac_func;
10432 rm -f conftest.$ac_objext conftest$ac_exeext
10433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10434 (eval $ac_link) 2>conftest.er1
10436 grep -v '^ *+' conftest.er1 >conftest.err
10438 cat conftest.err >&5
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); } &&
10441 { ac_try='test -z "$ac_c_werror_flag"
10442 || test ! -s conftest.err'
10443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10444 (eval $ac_try) 2>&5
10446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10447 (exit $ac_status); }; } &&
10448 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10454 eval "$as_ac_var=yes"
10456 echo "$as_me: failed program was:" >&5
10457 sed 's/^/| /' conftest.$ac_ext >&5
10459 eval "$as_ac_var=no"
10461 rm -f conftest.err conftest.$ac_objext \
10462 conftest$ac_exeext conftest.$ac_ext
10464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10466 if test `eval echo '${'$as_ac_var'}'` = yes; then
10467 cat >>confdefs.h <<_ACEOF
10468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_GETHOSTNAME 1
10476 cat >conftest.$ac_ext <<_ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 #include <unistd.h>
10485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10486 $EGREP "gethostname" >/dev/null 2>&1; then
10489 cat >>confdefs.h <<\_ACEOF
10490 #define HAVE_GETHOSTNAME_DECL 1
10501 for ac_func in usleep
10503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10504 echo "$as_me:$LINENO: checking for $ac_func" >&5
10505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10506 if eval "test \"\${$as_ac_var+set}\" = set"; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 if test x$gcc_no_link = xyes; then
10510 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10511 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10512 { (exit 1); exit 1; }; }
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10522 #define $ac_func innocuous_$ac_func
10524 /* System header to define __stub macros and hopefully few prototypes,
10525 which can conflict with char $ac_func (); below.
10526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10527 <limits.h> exists even on freestanding compilers. */
10530 # include <limits.h>
10532 # include <assert.h>
10537 /* Override any gcc2 internal prototype to avoid an error. */
10542 /* We use char because int might match the return type of a gcc2
10543 builtin and then its argument prototype would still apply. */
10545 /* The GNU C library defines this for functions which it implements
10546 to always fail with ENOSYS. Some functions are actually named
10547 something starting with __ and the normal name is an alias. */
10548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10551 char (*f) () = $ac_func;
10560 return f != $ac_func;
10565 rm -f conftest.$ac_objext conftest$ac_exeext
10566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10567 (eval $ac_link) 2>conftest.er1
10569 grep -v '^ *+' conftest.er1 >conftest.err
10571 cat conftest.err >&5
10572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573 (exit $ac_status); } &&
10574 { ac_try='test -z "$ac_c_werror_flag"
10575 || test ! -s conftest.err'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; } &&
10581 { ac_try='test -s conftest$ac_exeext'
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; }; then
10587 eval "$as_ac_var=yes"
10589 echo "$as_me: failed program was:" >&5
10590 sed 's/^/| /' conftest.$ac_ext >&5
10592 eval "$as_ac_var=no"
10594 rm -f conftest.err conftest.$ac_objext \
10595 conftest$ac_exeext conftest.$ac_ext
10597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10599 if test `eval echo '${'$as_ac_var'}'` = yes; then
10600 cat >>confdefs.h <<_ACEOF
10601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10604 cat >conftest.$ac_ext <<_ACEOF
10607 cat confdefs.h >>conftest.$ac_ext
10608 cat >>conftest.$ac_ext <<_ACEOF
10609 /* end confdefs.h. */
10610 #include <unistd.h>
10613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10614 $EGREP "usleep" >/dev/null 2>&1; then
10617 cat >>confdefs.h <<\_ACEOF
10618 #define HAVE_USLEEP_DECL 1
10628 # Look for these functions in the thread library, but only bother
10629 # if using POSIX threads.
10630 if test "$THREADS" = posix; then
10632 LIBS="$LIBS $THREADLIBS"
10633 # Some POSIX thread systems don't have pthread_mutexattr_settype.
10637 for ac_func in pthread_mutexattr_settype pthread_mutexattr_setkind_np
10639 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10640 echo "$as_me:$LINENO: checking for $ac_func" >&5
10641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10642 if eval "test \"\${$as_ac_var+set}\" = set"; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 if test x$gcc_no_link = xyes; then
10646 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10647 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10648 { (exit 1); exit 1; }; }
10650 cat >conftest.$ac_ext <<_ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10658 #define $ac_func innocuous_$ac_func
10660 /* System header to define __stub macros and hopefully few prototypes,
10661 which can conflict with char $ac_func (); below.
10662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10663 <limits.h> exists even on freestanding compilers. */
10666 # include <limits.h>
10668 # include <assert.h>
10673 /* Override any gcc2 internal prototype to avoid an error. */
10678 /* We use char because int might match the return type of a gcc2
10679 builtin and then its argument prototype would still apply. */
10681 /* The GNU C library defines this for functions which it implements
10682 to always fail with ENOSYS. Some functions are actually named
10683 something starting with __ and the normal name is an alias. */
10684 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10687 char (*f) () = $ac_func;
10696 return f != $ac_func;
10701 rm -f conftest.$ac_objext conftest$ac_exeext
10702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10703 (eval $ac_link) 2>conftest.er1
10705 grep -v '^ *+' conftest.er1 >conftest.err
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -z "$ac_c_werror_flag"
10711 || test ! -s conftest.err'
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); }; } &&
10717 { ac_try='test -s conftest$ac_exeext'
10718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10719 (eval $ac_try) 2>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); }; }; then
10723 eval "$as_ac_var=yes"
10725 echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10728 eval "$as_ac_var=no"
10730 rm -f conftest.err conftest.$ac_objext \
10731 conftest$ac_exeext conftest.$ac_ext
10733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10735 if test `eval echo '${'$as_ac_var'}'` = yes; then
10736 cat >>confdefs.h <<_ACEOF
10737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10744 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
10745 # Solaris 7 the name librt is preferred.
10747 for ac_func in sched_yield
10749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10750 echo "$as_me:$LINENO: checking for $ac_func" >&5
10751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10752 if eval "test \"\${$as_ac_var+set}\" = set"; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 if test x$gcc_no_link = xyes; then
10756 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10757 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10758 { (exit 1); exit 1; }; }
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10768 #define $ac_func innocuous_$ac_func
10770 /* System header to define __stub macros and hopefully few prototypes,
10771 which can conflict with char $ac_func (); below.
10772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10773 <limits.h> exists even on freestanding compilers. */
10776 # include <limits.h>
10778 # include <assert.h>
10783 /* Override any gcc2 internal prototype to avoid an error. */
10788 /* We use char because int might match the return type of a gcc2
10789 builtin and then its argument prototype would still apply. */
10791 /* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10797 char (*f) () = $ac_func;
10806 return f != $ac_func;
10811 rm -f conftest.$ac_objext conftest$ac_exeext
10812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10813 (eval $ac_link) 2>conftest.er1
10815 grep -v '^ *+' conftest.er1 >conftest.err
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } &&
10820 { ac_try='test -z "$ac_c_werror_flag"
10821 || test ! -s conftest.err'
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); }; } &&
10827 { ac_try='test -s conftest$ac_exeext'
10828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10829 (eval $ac_try) 2>&5
10831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }; }; then
10833 eval "$as_ac_var=yes"
10835 echo "$as_me: failed program was:" >&5
10836 sed 's/^/| /' conftest.$ac_ext >&5
10838 eval "$as_ac_var=no"
10840 rm -f conftest.err conftest.$ac_objext \
10841 conftest$ac_exeext conftest.$ac_ext
10843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10844 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10845 if test `eval echo '${'$as_ac_var'}'` = yes; then
10846 cat >>confdefs.h <<_ACEOF
10847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10852 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
10853 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
10854 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 ac_check_lib_save_LIBS=$LIBS
10859 if test x$gcc_no_link = xyes; then
10860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10862 { (exit 1); exit 1; }; }
10864 cat >conftest.$ac_ext <<_ACEOF
10867 cat confdefs.h >>conftest.$ac_ext
10868 cat >>conftest.$ac_ext <<_ACEOF
10869 /* end confdefs.h. */
10871 /* Override any gcc2 internal prototype to avoid an error. */
10875 /* We use char because int might match the return type of a gcc2
10876 builtin and then its argument prototype would still apply. */
10877 char sched_yield ();
10886 rm -f conftest.$ac_objext conftest$ac_exeext
10887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10888 (eval $ac_link) 2>conftest.er1
10890 grep -v '^ *+' conftest.er1 >conftest.err
10892 cat conftest.err >&5
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
10895 { ac_try='test -z "$ac_c_werror_flag"
10896 || test ! -s conftest.err'
10897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10898 (eval $ac_try) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); }; } &&
10902 { ac_try='test -s conftest$ac_exeext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ac_cv_lib_rt_sched_yield=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 ac_cv_lib_rt_sched_yield=no
10915 rm -f conftest.err conftest.$ac_objext \
10916 conftest$ac_exeext conftest.$ac_ext
10917 LIBS=$ac_check_lib_save_LIBS
10919 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
10920 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
10921 if test $ac_cv_lib_rt_sched_yield = yes; then
10923 cat >>confdefs.h <<\_ACEOF
10924 #define HAVE_SCHED_YIELD 1
10927 THREADLIBS="$THREADLIBS -lrt"
10928 THREADSPEC="$THREADSPEC -lrt"
10931 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
10932 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
10933 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 ac_check_lib_save_LIBS=$LIBS
10937 LIBS="-lposix4 $LIBS"
10938 if test x$gcc_no_link = xyes; then
10939 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10940 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10941 { (exit 1); exit 1; }; }
10943 cat >conftest.$ac_ext <<_ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h. */
10950 /* Override any gcc2 internal prototype to avoid an error. */
10954 /* We use char because int might match the return type of a gcc2
10955 builtin and then its argument prototype would still apply. */
10956 char sched_yield ();
10965 rm -f conftest.$ac_objext conftest$ac_exeext
10966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10967 (eval $ac_link) 2>conftest.er1
10969 grep -v '^ *+' conftest.er1 >conftest.err
10971 cat conftest.err >&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try='test -z "$ac_c_werror_flag"
10975 || test ! -s conftest.err'
10976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10977 (eval $ac_try) 2>&5
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); }; } &&
10981 { ac_try='test -s conftest$ac_exeext'
10982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10983 (eval $ac_try) 2>&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); }; }; then
10987 ac_cv_lib_posix4_sched_yield=yes
10989 echo "$as_me: failed program was:" >&5
10990 sed 's/^/| /' conftest.$ac_ext >&5
10992 ac_cv_lib_posix4_sched_yield=no
10994 rm -f conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10996 LIBS=$ac_check_lib_save_LIBS
10998 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
10999 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11000 if test $ac_cv_lib_posix4_sched_yield = yes; then
11002 cat >>confdefs.h <<\_ACEOF
11003 #define HAVE_SCHED_YIELD 1
11006 THREADLIBS="$THREADLIBS -lposix4"
11007 THREADSPEC="$THREADSPEC -lposix4"
11017 # We can save a little space at runtime if the mutex has m_count
11018 # or __m_count. This is a nice hack for Linux.
11019 cat >conftest.$ac_ext <<_ACEOF
11022 cat confdefs.h >>conftest.$ac_ext
11023 cat >>conftest.$ac_ext <<_ACEOF
11024 /* end confdefs.h. */
11025 #include <pthread.h>
11030 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11036 rm -f conftest.$ac_objext
11037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11038 (eval $ac_compile) 2>conftest.er1
11040 grep -v '^ *+' conftest.er1 >conftest.err
11042 cat conftest.err >&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); } &&
11045 { ac_try='test -z "$ac_c_werror_flag"
11046 || test ! -s conftest.err'
11047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11048 (eval $ac_try) 2>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); }; } &&
11052 { ac_try='test -s conftest.$ac_objext'
11053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11054 (eval $ac_try) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); }; }; then
11059 cat >>confdefs.h <<\_ACEOF
11060 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11068 cat >conftest.$ac_ext <<_ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11074 #include <pthread.h>
11079 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11085 rm -f conftest.$ac_objext
11086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087 (eval $ac_compile) 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest.$ac_objext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11108 cat >>confdefs.h <<\_ACEOF
11109 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11119 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11122 # We require a way to get the time.
11127 for ac_func in gettimeofday time ftime
11129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11130 echo "$as_me:$LINENO: checking for $ac_func" >&5
11131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11132 if eval "test \"\${$as_ac_var+set}\" = set"; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 if test x$gcc_no_link = xyes; then
11136 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11137 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11138 { (exit 1); exit 1; }; }
11140 cat >conftest.$ac_ext <<_ACEOF
11143 cat confdefs.h >>conftest.$ac_ext
11144 cat >>conftest.$ac_ext <<_ACEOF
11145 /* end confdefs.h. */
11146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11148 #define $ac_func innocuous_$ac_func
11150 /* System header to define __stub macros and hopefully few prototypes,
11151 which can conflict with char $ac_func (); below.
11152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11153 <limits.h> exists even on freestanding compilers. */
11156 # include <limits.h>
11158 # include <assert.h>
11163 /* Override any gcc2 internal prototype to avoid an error. */
11168 /* We use char because int might match the return type of a gcc2
11169 builtin and then its argument prototype would still apply. */
11171 /* The GNU C library defines this for functions which it implements
11172 to always fail with ENOSYS. Some functions are actually named
11173 something starting with __ and the normal name is an alias. */
11174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11177 char (*f) () = $ac_func;
11186 return f != $ac_func;
11191 rm -f conftest.$ac_objext conftest$ac_exeext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11193 (eval $ac_link) 2>conftest.er1
11195 grep -v '^ *+' conftest.er1 >conftest.err
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } &&
11200 { ac_try='test -z "$ac_c_werror_flag"
11201 || test ! -s conftest.err'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; } &&
11207 { ac_try='test -s conftest$ac_exeext'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; }; then
11213 eval "$as_ac_var=yes"
11215 echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.$ac_ext >&5
11218 eval "$as_ac_var=no"
11220 rm -f conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext conftest.$ac_ext
11223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11224 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11225 if test `eval echo '${'$as_ac_var'}'` = yes; then
11226 cat >>confdefs.h <<_ACEOF
11227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11233 if test "$time_found" = no; then
11234 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11235 echo "$as_me: error: no function found to get the time" >&2;}
11236 { (exit 1); exit 1; }; }
11240 for ac_func in memmove
11242 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11243 echo "$as_me:$LINENO: checking for $ac_func" >&5
11244 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11245 if eval "test \"\${$as_ac_var+set}\" = set"; then
11246 echo $ECHO_N "(cached) $ECHO_C" >&6
11248 if test x$gcc_no_link = xyes; then
11249 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11250 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11251 { (exit 1); exit 1; }; }
11253 cat >conftest.$ac_ext <<_ACEOF
11256 cat confdefs.h >>conftest.$ac_ext
11257 cat >>conftest.$ac_ext <<_ACEOF
11258 /* end confdefs.h. */
11259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11261 #define $ac_func innocuous_$ac_func
11263 /* System header to define __stub macros and hopefully few prototypes,
11264 which can conflict with char $ac_func (); below.
11265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11266 <limits.h> exists even on freestanding compilers. */
11269 # include <limits.h>
11271 # include <assert.h>
11276 /* Override any gcc2 internal prototype to avoid an error. */
11281 /* We use char because int might match the return type of a gcc2
11282 builtin and then its argument prototype would still apply. */
11284 /* The GNU C library defines this for functions which it implements
11285 to always fail with ENOSYS. Some functions are actually named
11286 something starting with __ and the normal name is an alias. */
11287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11290 char (*f) () = $ac_func;
11299 return f != $ac_func;
11304 rm -f conftest.$ac_objext conftest$ac_exeext
11305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11306 (eval $ac_link) 2>conftest.er1
11308 grep -v '^ *+' conftest.er1 >conftest.err
11310 cat conftest.err >&5
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); } &&
11313 { ac_try='test -z "$ac_c_werror_flag"
11314 || test ! -s conftest.err'
11315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11316 (eval $ac_try) 2>&5
11318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319 (exit $ac_status); }; } &&
11320 { ac_try='test -s conftest$ac_exeext'
11321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11322 (eval $ac_try) 2>&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); }; }; then
11326 eval "$as_ac_var=yes"
11328 echo "$as_me: failed program was:" >&5
11329 sed 's/^/| /' conftest.$ac_ext >&5
11331 eval "$as_ac_var=no"
11333 rm -f conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
11336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11338 if test `eval echo '${'$as_ac_var'}'` = yes; then
11339 cat >>confdefs.h <<_ACEOF
11340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11347 # We require memcpy.
11350 for ac_func in memcpy
11352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11353 echo "$as_me:$LINENO: checking for $ac_func" >&5
11354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11355 if eval "test \"\${$as_ac_var+set}\" = set"; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 if test x$gcc_no_link = xyes; then
11359 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11360 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11361 { (exit 1); exit 1; }; }
11363 cat >conftest.$ac_ext <<_ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11371 #define $ac_func innocuous_$ac_func
11373 /* System header to define __stub macros and hopefully few prototypes,
11374 which can conflict with char $ac_func (); below.
11375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11376 <limits.h> exists even on freestanding compilers. */
11379 # include <limits.h>
11381 # include <assert.h>
11386 /* Override any gcc2 internal prototype to avoid an error. */
11391 /* We use char because int might match the return type of a gcc2
11392 builtin and then its argument prototype would still apply. */
11394 /* The GNU C library defines this for functions which it implements
11395 to always fail with ENOSYS. Some functions are actually named
11396 something starting with __ and the normal name is an alias. */
11397 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11400 char (*f) () = $ac_func;
11409 return f != $ac_func;
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>conftest.er1
11418 grep -v '^ *+' conftest.er1 >conftest.err
11420 cat conftest.err >&5
11421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422 (exit $ac_status); } &&
11423 { ac_try='test -z "$ac_c_werror_flag"
11424 || test ! -s conftest.err'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; } &&
11430 { ac_try='test -s conftest$ac_exeext'
11431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432 (eval $ac_try) 2>&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }; }; then
11436 eval "$as_ac_var=yes"
11438 echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11441 eval "$as_ac_var=no"
11443 rm -f conftest.err conftest.$ac_objext \
11444 conftest$ac_exeext conftest.$ac_ext
11446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11448 if test `eval echo '${'$as_ac_var'}'` = yes; then
11449 cat >>confdefs.h <<_ACEOF
11450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11456 if test "$memcpy_found" = no; then
11457 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
11458 echo "$as_me: error: memcpy is required" >&2;}
11459 { (exit 1); exit 1; }; }
11462 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11463 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11464 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11465 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 ac_check_lib_save_LIBS=$LIBS
11469 if test x$gcc_no_link = xyes; then
11470 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11471 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11472 { (exit 1); exit 1; }; }
11474 cat >conftest.$ac_ext <<_ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11481 /* Override any gcc2 internal prototype to avoid an error. */
11485 /* We use char because int might match the return type of a gcc2
11486 builtin and then its argument prototype would still apply. */
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>conftest.er1
11500 grep -v '^ *+' conftest.er1 >conftest.err
11502 cat conftest.err >&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } &&
11505 { ac_try='test -z "$ac_c_werror_flag"
11506 || test ! -s conftest.err'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; } &&
11512 { ac_try='test -s conftest$ac_exeext'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 ac_cv_lib_dl_dlopen=yes
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_cv_lib_dl_dlopen=no
11525 rm -f conftest.err conftest.$ac_objext \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LIBS=$ac_check_lib_save_LIBS
11529 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11531 if test $ac_cv_lib_dl_dlopen = yes; then
11534 cat >>confdefs.h <<\_ACEOF
11535 #define HAVE_DLOPEN 1
11541 # Some library-finding code we stole from Tcl.
11542 #--------------------------------------------------------------------
11543 # Check for the existence of the -lsocket and -lnsl libraries.
11544 # The order here is important, so that they end up in the right
11545 # order in the command line generated by make. Here are some
11546 # special considerations:
11547 # 1. Use "connect" and "accept" to check for -lsocket, and
11548 # "gethostbyname" to check for -lnsl.
11549 # 2. Use each function name only once: can't redo a check because
11550 # autoconf caches the results of the last check and won't redo it.
11551 # 3. Use -lnsl and -lsocket only if they supply procedures that
11552 # aren't already present in the normal libraries. This is because
11553 # IRIX 5.2 has libraries, but they aren't needed and they're
11554 # bogus: they goof up name resolution if used.
11555 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
11556 # To get around this problem, check for both libraries together
11557 # if -lsocket doesn't work by itself.
11558 #--------------------------------------------------------------------
11560 echo "$as_me:$LINENO: checking for socket libraries" >&5
11561 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
11562 if test "${gcj_cv_lib_sockets+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 gcj_cv_lib_sockets=
11567 unset ac_cv_func_connect
11568 echo "$as_me:$LINENO: checking for connect" >&5
11569 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11570 if test "${ac_cv_func_connect+set}" = set; then
11571 echo $ECHO_N "(cached) $ECHO_C" >&6
11573 if test x$gcc_no_link = xyes; then
11574 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11575 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11576 { (exit 1); exit 1; }; }
11578 cat >conftest.$ac_ext <<_ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11584 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11585 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11586 #define connect innocuous_connect
11588 /* System header to define __stub macros and hopefully few prototypes,
11589 which can conflict with char connect (); below.
11590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11591 <limits.h> exists even on freestanding compilers. */
11594 # include <limits.h>
11596 # include <assert.h>
11601 /* Override any gcc2 internal prototype to avoid an error. */
11606 /* We use char because int might match the return type of a gcc2
11607 builtin and then its argument prototype would still apply. */
11609 /* The GNU C library defines this for functions which it implements
11610 to always fail with ENOSYS. Some functions are actually named
11611 something starting with __ and the normal name is an alias. */
11612 #if defined (__stub_connect) || defined (__stub___connect)
11615 char (*f) () = connect;
11624 return f != connect;
11629 rm -f conftest.$ac_objext conftest$ac_exeext
11630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11631 (eval $ac_link) 2>conftest.er1
11633 grep -v '^ *+' conftest.er1 >conftest.err
11635 cat conftest.err >&5
11636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637 (exit $ac_status); } &&
11638 { ac_try='test -z "$ac_c_werror_flag"
11639 || test ! -s conftest.err'
11640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11641 (eval $ac_try) 2>&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; } &&
11645 { ac_try='test -s conftest$ac_exeext'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; }; then
11651 ac_cv_func_connect=yes
11653 echo "$as_me: failed program was:" >&5
11654 sed 's/^/| /' conftest.$ac_ext >&5
11656 ac_cv_func_connect=no
11658 rm -f conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11661 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11662 echo "${ECHO_T}$ac_cv_func_connect" >&6
11663 if test $ac_cv_func_connect = yes; then
11669 if test "$gcj_checkSocket" = 1; then
11670 unset ac_cv_func_connect
11671 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
11672 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
11673 if test "${ac_cv_lib_socket_main+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 ac_check_lib_save_LIBS=$LIBS
11677 LIBS="-lsocket $LIBS"
11678 if test x$gcc_no_link = xyes; then
11679 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11680 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11681 { (exit 1); exit 1; }; }
11683 cat >conftest.$ac_ext <<_ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h. */
11699 rm -f conftest.$ac_objext conftest$ac_exeext
11700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11701 (eval $ac_link) 2>conftest.er1
11703 grep -v '^ *+' conftest.er1 >conftest.err
11705 cat conftest.err >&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
11708 { ac_try='test -z "$ac_c_werror_flag"
11709 || test ! -s conftest.err'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest$ac_exeext'
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 ac_cv_lib_socket_main=yes
11723 echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11726 ac_cv_lib_socket_main=no
11728 rm -f conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
11730 LIBS=$ac_check_lib_save_LIBS
11732 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
11733 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
11734 if test $ac_cv_lib_socket_main = yes; then
11735 gcj_cv_lib_sockets="-lsocket"
11741 if test "$gcj_checkBoth" = 1; then
11743 LIBS="$LIBS -lsocket -lnsl"
11744 unset ac_cv_func_accept
11745 echo "$as_me:$LINENO: checking for accept" >&5
11746 echo $ECHO_N "checking for accept... $ECHO_C" >&6
11747 if test "${ac_cv_func_accept+set}" = set; then
11748 echo $ECHO_N "(cached) $ECHO_C" >&6
11750 if test x$gcc_no_link = xyes; then
11751 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11752 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11753 { (exit 1); exit 1; }; }
11755 cat >conftest.$ac_ext <<_ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11761 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
11762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11763 #define accept innocuous_accept
11765 /* System header to define __stub macros and hopefully few prototypes,
11766 which can conflict with char accept (); below.
11767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768 <limits.h> exists even on freestanding compilers. */
11771 # include <limits.h>
11773 # include <assert.h>
11778 /* Override any gcc2 internal prototype to avoid an error. */
11783 /* We use char because int might match the return type of a gcc2
11784 builtin and then its argument prototype would still apply. */
11786 /* The GNU C library defines this for functions which it implements
11787 to always fail with ENOSYS. Some functions are actually named
11788 something starting with __ and the normal name is an alias. */
11789 #if defined (__stub_accept) || defined (__stub___accept)
11792 char (*f) () = accept;
11801 return f != accept;
11806 rm -f conftest.$ac_objext conftest$ac_exeext
11807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11808 (eval $ac_link) 2>conftest.er1
11810 grep -v '^ *+' conftest.er1 >conftest.err
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -z "$ac_c_werror_flag"
11816 || test ! -s conftest.err'
11817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11818 (eval $ac_try) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); }; } &&
11822 { ac_try='test -s conftest$ac_exeext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 ac_cv_func_accept=yes
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 ac_cv_func_accept=no
11835 rm -f conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11838 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
11839 echo "${ECHO_T}$ac_cv_func_accept" >&6
11840 if test $ac_cv_func_accept = yes; then
11842 gcj_cv_lib_sockets="-lsocket -lnsl"
11845 unset ac_cv_func_accept
11848 unset ac_cv_func_gethostbyname
11850 LIBS="$LIBS $gcj_cv_lib_sockets"
11851 echo "$as_me:$LINENO: checking for gethostbyname" >&5
11852 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11853 if test "${ac_cv_func_gethostbyname+set}" = set; then
11854 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 if test x$gcc_no_link = xyes; then
11857 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11858 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11859 { (exit 1); exit 1; }; }
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11869 #define gethostbyname innocuous_gethostbyname
11871 /* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char gethostbyname (); below.
11873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11874 <limits.h> exists even on freestanding compilers. */
11877 # include <limits.h>
11879 # include <assert.h>
11882 #undef gethostbyname
11884 /* Override any gcc2 internal prototype to avoid an error. */
11889 /* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11891 char gethostbyname ();
11892 /* The GNU C library defines this for functions which it implements
11893 to always fail with ENOSYS. Some functions are actually named
11894 something starting with __ and the normal name is an alias. */
11895 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11898 char (*f) () = gethostbyname;
11907 return f != gethostbyname;
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914 (eval $ac_link) 2>conftest.er1
11916 grep -v '^ *+' conftest.er1 >conftest.err
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
11921 { ac_try='test -z "$ac_c_werror_flag"
11922 || test ! -s conftest.err'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_func_gethostbyname=yes
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.$ac_ext >&5
11939 ac_cv_func_gethostbyname=no
11941 rm -f conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
11944 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11945 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
11946 if test $ac_cv_func_gethostbyname = yes; then
11949 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
11950 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
11951 if test "${ac_cv_lib_nsl_main+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11954 ac_check_lib_save_LIBS=$LIBS
11956 if test x$gcc_no_link = xyes; then
11957 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11958 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11959 { (exit 1); exit 1; }; }
11961 cat >conftest.$ac_ext <<_ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11979 (eval $ac_link) 2>conftest.er1
11981 grep -v '^ *+' conftest.er1 >conftest.err
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } &&
11986 { ac_try='test -z "$ac_c_werror_flag"
11987 || test ! -s conftest.err'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; } &&
11993 { ac_try='test -s conftest$ac_exeext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_cv_lib_nsl_main=yes
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ac_cv_lib_nsl_main=no
12006 rm -f conftest.err conftest.$ac_objext \
12007 conftest$ac_exeext conftest.$ac_ext
12008 LIBS=$ac_check_lib_save_LIBS
12010 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12011 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12012 if test $ac_cv_lib_nsl_main = yes; then
12013 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
12018 unset ac_cv_func_gethostbyname
12022 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12023 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12024 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
12026 if test "$with_system_zlib" = yes; then
12027 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12028 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12029 if test "${ac_cv_lib_z_deflate+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 ac_check_lib_save_LIBS=$LIBS
12034 if test x$gcc_no_link = xyes; then
12035 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12036 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12037 { (exit 1); exit 1; }; }
12039 cat >conftest.$ac_ext <<_ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12046 /* Override any gcc2 internal prototype to avoid an error. */
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063 (eval $ac_link) 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_c_werror_flag"
12071 || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_cv_lib_z_deflate=yes
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12088 ac_cv_lib_z_deflate=no
12090 rm -f conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12094 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12095 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12096 if test $ac_cv_lib_z_deflate = yes; then
12104 # Test for Gtk stuff, if asked for.
12105 if test "$use_gtk_awt" = yes; then
12109 if test -z "$PKG_CONFIG"; then
12110 # Extract the first word of "pkg-config", so it can be a program name with args.
12111 set dummy pkg-config; ac_word=$2
12112 echo "$as_me:$LINENO: checking for $ac_word" >&5
12113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12114 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 case $PKG_CONFIG in
12119 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12140 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12142 if test -n "$PKG_CONFIG"; then
12143 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12144 echo "${ECHO_T}$PKG_CONFIG" >&6
12146 echo "$as_me:$LINENO: result: no" >&5
12147 echo "${ECHO_T}no" >&6
12152 if test "$PKG_CONFIG" = "no" ; then
12153 echo "*** The pkg-config script could not be found. Make sure it is"
12154 echo "*** in your path, or set the PKG_CONFIG environment variable"
12155 echo "*** to the full path to pkg-config."
12156 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12158 PKG_CONFIG_MIN_VERSION=0.9.0
12159 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12160 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12161 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12163 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12164 echo "$as_me:$LINENO: result: yes" >&5
12165 echo "${ECHO_T}yes" >&6
12168 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12169 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12170 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12171 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12172 echo "${ECHO_T}$GTK_CFLAGS" >&6
12174 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12175 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12176 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12177 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12178 echo "${ECHO_T}$GTK_LIBS" >&6
12182 ## If we have a custom action on failure, don't print errors, but
12183 ## do set a variable so people can do so.
12184 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12185 echo $GTK_PKG_ERRORS
12191 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12192 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12196 if test $succeeded = yes; then
12199 { { 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
12200 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;}
12201 { (exit 1); exit 1; }; }
12210 if test -z "$PKG_CONFIG"; then
12211 # Extract the first word of "pkg-config", so it can be a program name with args.
12212 set dummy pkg-config; ac_word=$2
12213 echo "$as_me:$LINENO: checking for $ac_word" >&5
12214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12215 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 case $PKG_CONFIG in
12220 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12227 test -z "$as_dir" && as_dir=.
12228 for ac_exec_ext in '' $ac_executable_extensions; do
12229 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12230 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12241 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12243 if test -n "$PKG_CONFIG"; then
12244 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12245 echo "${ECHO_T}$PKG_CONFIG" >&6
12247 echo "$as_me:$LINENO: result: no" >&5
12248 echo "${ECHO_T}no" >&6
12253 if test "$PKG_CONFIG" = "no" ; then
12254 echo "*** The pkg-config script could not be found. Make sure it is"
12255 echo "*** in your path, or set the PKG_CONFIG environment variable"
12256 echo "*** to the full path to pkg-config."
12257 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12259 PKG_CONFIG_MIN_VERSION=0.9.0
12260 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12261 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12262 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12264 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12265 echo "$as_me:$LINENO: result: yes" >&5
12266 echo "${ECHO_T}yes" >&6
12269 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12270 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12271 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12272 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12273 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12275 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12276 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12277 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12278 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12279 echo "${ECHO_T}$GLIB_LIBS" >&6
12283 ## If we have a custom action on failure, don't print errors, but
12284 ## do set a variable so people can do so.
12285 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12286 echo $GLIB_PKG_ERRORS
12292 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12293 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12297 if test $succeeded = yes; then
12300 { { 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
12301 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;}
12302 { (exit 1); exit 1; }; }
12311 if test -z "$PKG_CONFIG"; then
12312 # Extract the first word of "pkg-config", so it can be a program name with args.
12313 set dummy pkg-config; ac_word=$2
12314 echo "$as_me:$LINENO: checking for $ac_word" >&5
12315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12316 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 case $PKG_CONFIG in
12321 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12342 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12344 if test -n "$PKG_CONFIG"; then
12345 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12346 echo "${ECHO_T}$PKG_CONFIG" >&6
12348 echo "$as_me:$LINENO: result: no" >&5
12349 echo "${ECHO_T}no" >&6
12354 if test "$PKG_CONFIG" = "no" ; then
12355 echo "*** The pkg-config script could not be found. Make sure it is"
12356 echo "*** in your path, or set the PKG_CONFIG environment variable"
12357 echo "*** to the full path to pkg-config."
12358 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12360 PKG_CONFIG_MIN_VERSION=0.9.0
12361 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12362 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
12363 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
12365 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
12366 echo "$as_me:$LINENO: result: yes" >&5
12367 echo "${ECHO_T}yes" >&6
12370 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
12371 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
12372 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
12373 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
12374 echo "${ECHO_T}$LIBART_CFLAGS" >&6
12376 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
12377 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
12378 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
12379 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
12380 echo "${ECHO_T}$LIBART_LIBS" >&6
12384 ## If we have a custom action on failure, don't print errors, but
12385 ## do set a variable so people can do so.
12386 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
12387 echo $LIBART_PKG_ERRORS
12393 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12394 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12398 if test $succeeded = yes; then
12401 { { 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
12402 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;}
12403 { (exit 1); exit 1; }; }
12410 # On Solaris, and maybe other architectures, the Boehm collector
12412 if test "$GC" = boehm; then
12413 echo "$as_me:$LINENO: checking for main in -ldl" >&5
12414 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
12415 if test "${ac_cv_lib_dl_main+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 ac_check_lib_save_LIBS=$LIBS
12420 if test x$gcc_no_link = xyes; then
12421 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12422 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12423 { (exit 1); exit 1; }; }
12425 cat >conftest.$ac_ext <<_ACEOF
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12441 rm -f conftest.$ac_objext conftest$ac_exeext
12442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12443 (eval $ac_link) 2>conftest.er1
12445 grep -v '^ *+' conftest.er1 >conftest.err
12447 cat conftest.err >&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); } &&
12450 { ac_try='test -z "$ac_c_werror_flag"
12451 || test ! -s conftest.err'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; } &&
12457 { ac_try='test -s conftest$ac_exeext'
12458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12459 (eval $ac_try) 2>&5
12461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12462 (exit $ac_status); }; }; then
12463 ac_cv_lib_dl_main=yes
12465 echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12468 ac_cv_lib_dl_main=no
12470 rm -f conftest.err conftest.$ac_objext \
12471 conftest$ac_exeext conftest.$ac_ext
12472 LIBS=$ac_check_lib_save_LIBS
12474 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
12475 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
12476 if test $ac_cv_lib_dl_main = yes; then
12477 SYSTEMSPEC="$SYSTEMSPEC -ldl"
12483 if test -z "${with_multisubdir}"; then
12486 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
12491 # Which gcj do we use?
12493 built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
12494 if test -n "${with_cross_host}"; then
12495 # We are being configured with a cross compiler. We can't
12496 # use ac_exeext, because that is for the target platform.
12499 case "${with_cross_host}" in
12500 *mingw* | *cygwin*)
12501 cross_host_exeext=.exe
12504 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
12505 if test x"$build_noncanonical" = x"$with_cross_host"; then
12506 # Ordinary cross (host!=target and host=build)
12509 # Canadian cross (host!=target and host!=build)
12516 # We are being configured with a native or crossed-native compiler
12517 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
12518 if test x"$build" = x"$host"; then
12519 # True native build (host=target and host=build)
12522 # Crossed-native build (host=target and host!=build)
12529 case "${which_gcj}" in
12531 GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
12532 GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
12533 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12536 if test "x${with_newlib}" = "xyes"; then
12537 # FIXME (comment): Why is this needed?
12538 GCC_UNWIND_INCLUDE=
12539 GCJ="${target_noncanonical}-gcj"
12541 GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
12544 GCJH='$(target_noncanonical)-gcjh'
12547 GCJ="gcj -B`${PWDCMD-pwd}`/"
12548 ## In this case, gcj is found outside the build tree. However, zip is
12549 ## found in the build tree.
12550 ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12558 # Create it, so that compile/link tests don't fail
12559 test -f libgcj.spec || touch libgcj.spec
12561 # We must search the source tree for java.lang, since we still don't
12562 # have libgcj.jar nor java/lang/*.class
12563 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
12564 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
12566 # Since some classes depend on this one, we need its source available
12567 # before we can do any GCJ compilation test :-(
12568 if test ! -f gnu/classpath/Configuration.java; then
12569 test -d gnu || mkdir gnu
12570 test -d gnu/classpath || mkdir gnu/classpath
12571 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
12572 -e 's,@TOOLKIT@,$TOOLKIT,' \
12573 < $srcdir/gnu/classpath/Configuration.java.in \
12574 > gnu/classpath/Configuration.java
12575 # We do not want to redirect the output of the grep below to /dev/null,
12576 # but we add /dev/null to the input list so that grep will print the
12577 # filename of Configuration.java in case it finds any matches.
12578 if grep @ gnu/classpath/Configuration.java /dev/null; then
12579 { { echo "$as_me:$LINENO: error: configure.in is missing the substitutions above" >&5
12580 echo "$as_me: error: configure.in is missing the substitutions above" >&2;}
12581 { (exit 1); exit 1; }; }
12585 if test -n "$ac_tool_prefix"; then
12586 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
12587 set dummy ${ac_tool_prefix}gcj; ac_word=$2
12588 echo "$as_me:$LINENO: checking for $ac_word" >&5
12589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12590 if test "${ac_cv_prog_GCJ+set}" = set; then
12591 echo $ECHO_N "(cached) $ECHO_C" >&6
12593 if test -n "$GCJ"; then
12594 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
12596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597 for as_dir in $PATH
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
12602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12603 ac_cv_prog_GCJ="${ac_tool_prefix}gcj"
12604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12612 GCJ=$ac_cv_prog_GCJ
12613 if test -n "$GCJ"; then
12614 echo "$as_me:$LINENO: result: $GCJ" >&5
12615 echo "${ECHO_T}$GCJ" >&6
12617 echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6
12622 if test -z "$ac_cv_prog_GCJ"; then
12624 # Extract the first word of "gcj", so it can be a program name with args.
12625 set dummy gcj; ac_word=$2
12626 echo "$as_me:$LINENO: checking for $ac_word" >&5
12627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12628 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
12629 echo $ECHO_N "(cached) $ECHO_C" >&6
12631 if test -n "$ac_ct_GCJ"; then
12632 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
12634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12638 test -z "$as_dir" && as_dir=.
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12641 ac_cv_prog_ac_ct_GCJ="gcj"
12642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12648 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ="no"
12651 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
12652 if test -n "$ac_ct_GCJ"; then
12653 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
12654 echo "${ECHO_T}$ac_ct_GCJ" >&6
12656 echo "$as_me:$LINENO: result: no" >&5
12657 echo "${ECHO_T}no" >&6
12662 GCJ="$ac_cv_prog_GCJ"
12665 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
12669 LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
12671 lt_save_CFLAGS="$CFLAGS"
12672 AR="$AR" LTCC="$CC" CC="$GCJ" CFLAGS="$GCJFLAGS" CPPFLAGS="$CPPFLAGS" \
12673 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
12674 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
12675 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
12676 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
12677 deplibs_check_method="$deplibs_check_method" \
12678 file_magic_cmd="$file_magic_cmd" \
12679 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
12680 --build="$build" --add-tag=GCJ $ac_aux_dir/ltcf-gcj.sh $host \
12681 || { { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
12682 echo "$as_me: error: libtool tag configuration failed" >&2;}
12683 { (exit 1); exit 1; }; }
12685 CFLAGS="$lt_save_CFLAGS"
12687 # Redirect the config.log output again, so that the ltconfig log is not
12688 # clobbered by the next message.
12689 exec 5>>./config.log
12694 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
12696 echo "$as_me:$LINENO: checking size of void *" >&5
12697 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12698 if test "${ac_cv_sizeof_void_p+set}" = set; then
12699 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
12702 cat >conftest.$ac_ext <<_ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708 #include "confdefs.h"
12709 #include <sys/types.h>
12715 switch (0) case 0: case (sizeof (void *) == $ac_size):;
12720 rm -f conftest.$ac_objext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12722 (eval $ac_compile) 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } &&
12729 { ac_try='test -z "$ac_c_werror_flag"
12730 || test ! -s conftest.err'
12731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12732 (eval $ac_try) 2>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); }; } &&
12736 { ac_try='test -s conftest.$ac_objext'
12737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12738 (eval $ac_try) 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_sizeof_void_p=$ac_size
12744 echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12749 if test x$ac_cv_sizeof_void_p != x ; then break; fi
12754 if test x$ac_cv_sizeof_void_p = x ; then
12755 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
12756 echo "$as_me: error: cannot determine a size for void *" >&2;}
12757 { (exit 1); exit 1; }; }
12759 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12760 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12762 cat >>confdefs.h <<_ACEOF
12763 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12772 if test -z "$ZLIBSPEC"; then
12773 # Use zlib from the GCC tree.
12774 ZINCS='-I$(top_srcdir)/../zlib'
12775 ZLIBS=../zlib/libzgcj_convenience.la
12778 SYS_ZLIBS="$ZLIBSPEC"
12790 if test "$NATIVE" = yes; then
12799 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
12800 NEEDS_DATA_START_TRUE=
12801 NEEDS_DATA_START_FALSE='#'
12803 NEEDS_DATA_START_TRUE='#'
12804 NEEDS_DATA_START_FALSE=
12808 # Process the option "--enable-version-specific-runtime-libs"
12809 # Calculate toolexeclibdir
12810 case ${version_specific_libs} in
12812 # Need the gcc compiler version to know where to install libraries
12813 # and header files if --enable-version-specific-runtime-libs option
12815 includedir='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include/
12816 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
12817 toolexecmainlibdir='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
12818 toolexeclibdir=$toolexecmainlibdir
12821 if test -n "$with_cross_host" &&
12822 test x"$with_cross_host" != x"no"; then
12823 # Install a library built with a cross compiler in tooldir, not libdir.
12824 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
12825 toolexecmainlibdir='$(toolexecdir)/lib'
12827 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
12828 toolexecmainlibdir='$(libdir)'
12830 multi_os_directory=`$CC -print-multi-os-directory`
12831 case $multi_os_directory in
12832 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
12833 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
12841 # Determine gcj version number.
12842 gcjversion=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
12843 GCJVERSION=$gcjversion
12846 cat >>confdefs.h <<_ACEOF
12847 #define GCJVERSION "$GCJVERSION"
12851 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
12852 # On that system, sys/ioctl.h will not include sys/filio.h unless
12853 # BSD_COMP is defined; just including sys/filio.h is simpler.
12873 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h sys/ioctl.h sys/filio.h sys/stat.h sys/select.h sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h pwd.h sys/config.h stdint.h langinfo.h locale.h
12875 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12876 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12877 echo "$as_me:$LINENO: checking for $ac_header" >&5
12878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12885 # Is the header compilable?
12886 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12888 cat >conftest.$ac_ext <<_ACEOF
12891 cat confdefs.h >>conftest.$ac_ext
12892 cat >>conftest.$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12894 $ac_includes_default
12895 #include <$ac_header>
12897 rm -f conftest.$ac_objext
12898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12899 (eval $ac_compile) 2>conftest.er1
12901 grep -v '^ *+' conftest.er1 >conftest.err
12903 cat conftest.err >&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } &&
12906 { ac_try='test -z "$ac_c_werror_flag"
12907 || test ! -s conftest.err'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; } &&
12913 { ac_try='test -s conftest.$ac_objext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 ac_header_compiler=yes
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 ac_header_compiler=no
12926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12927 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12928 echo "${ECHO_T}$ac_header_compiler" >&6
12930 # Is the header present?
12931 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939 #include <$ac_header>
12941 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12942 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12944 grep -v '^ *+' conftest.er1 >conftest.err
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } >/dev/null; then
12949 if test -s conftest.err; then
12950 ac_cpp_err=$ac_c_preproc_warn_flag
12951 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12958 if test -z "$ac_cpp_err"; then
12959 ac_header_preproc=yes
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12964 ac_header_preproc=no
12966 rm -f conftest.err conftest.$ac_ext
12967 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12968 echo "${ECHO_T}$ac_header_preproc" >&6
12970 # So? What about this header?
12971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12977 ac_header_preproc=yes
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12994 ## ------------------------------------------ ##
12995 ## Report this to the AC_PACKAGE_NAME lists. ##
12996 ## ------------------------------------------ ##
12999 sed "s/^/$as_me: WARNING: /" >&2
13002 echo "$as_me:$LINENO: checking for $ac_header" >&5
13003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
13007 eval "$as_ac_Header=\$ac_header_preproc"
13009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13014 cat >>confdefs.h <<_ACEOF
13015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13022 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13023 # for now. If you change this, you also must update natFile.cc.
13025 for ac_header in dirent.h
13027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13029 echo "$as_me:$LINENO: checking for $ac_header" >&5
13030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13037 # Is the header compilable?
13038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 $ac_includes_default
13047 #include <$ac_header>
13049 rm -f conftest.$ac_objext
13050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13051 (eval $ac_compile) 2>conftest.er1
13053 grep -v '^ *+' conftest.er1 >conftest.err
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); } &&
13058 { ac_try='test -z "$ac_c_werror_flag"
13059 || test ! -s conftest.err'
13060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13061 (eval $ac_try) 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest.$ac_objext'
13066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067 (eval $ac_try) 2>&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); }; }; then
13071 ac_header_compiler=yes
13073 echo "$as_me: failed program was:" >&5
13074 sed 's/^/| /' conftest.$ac_ext >&5
13076 ac_header_compiler=no
13078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13080 echo "${ECHO_T}$ac_header_compiler" >&6
13082 # Is the header present?
13083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13085 cat >conftest.$ac_ext <<_ACEOF
13088 cat confdefs.h >>conftest.$ac_ext
13089 cat >>conftest.$ac_ext <<_ACEOF
13090 /* end confdefs.h. */
13091 #include <$ac_header>
13093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } >/dev/null; then
13101 if test -s conftest.err; then
13102 ac_cpp_err=$ac_c_preproc_warn_flag
13103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13110 if test -z "$ac_cpp_err"; then
13111 ac_header_preproc=yes
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13116 ac_header_preproc=no
13118 rm -f conftest.err conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13120 echo "${ECHO_T}$ac_header_preproc" >&6
13122 # So? What about this header?
13123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13129 ac_header_preproc=yes
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13146 ## ------------------------------------------ ##
13147 ## Report this to the AC_PACKAGE_NAME lists. ##
13148 ## ------------------------------------------ ##
13151 sed "s/^/$as_me: WARNING: /" >&2
13154 echo "$as_me:$LINENO: checking for $ac_header" >&5
13155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13156 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13157 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 eval "$as_ac_Header=\$ac_header_preproc"
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13165 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13166 cat >>confdefs.h <<_ACEOF
13167 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13175 for ac_header in inttypes.h
13177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13179 echo "$as_me:$LINENO: checking for $ac_header" >&5
13180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13187 # Is the header compilable?
13188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 $ac_includes_default
13197 #include <$ac_header>
13199 rm -f conftest.$ac_objext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201 (eval $ac_compile) 2>conftest.er1
13203 grep -v '^ *+' conftest.er1 >conftest.err
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -z "$ac_c_werror_flag"
13209 || test ! -s conftest.err'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; } &&
13215 { ac_try='test -s conftest.$ac_objext'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 ac_header_compiler=yes
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_header_compiler=no
13228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13230 echo "${ECHO_T}$ac_header_compiler" >&6
13232 # Is the header present?
13233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13235 cat >conftest.$ac_ext <<_ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 #include <$ac_header>
13243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13246 grep -v '^ *+' conftest.er1 >conftest.err
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } >/dev/null; then
13251 if test -s conftest.err; then
13252 ac_cpp_err=$ac_c_preproc_warn_flag
13253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13260 if test -z "$ac_cpp_err"; then
13261 ac_header_preproc=yes
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_header_preproc=no
13268 rm -f conftest.err conftest.$ac_ext
13269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13270 echo "${ECHO_T}$ac_header_preproc" >&6
13272 # So? What about this header?
13273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13279 ac_header_preproc=yes
13282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13296 ## ------------------------------------------ ##
13297 ## Report this to the AC_PACKAGE_NAME lists. ##
13298 ## ------------------------------------------ ##
13301 sed "s/^/$as_me: WARNING: /" >&2
13304 echo "$as_me:$LINENO: checking for $ac_header" >&5
13305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 eval "$as_ac_Header=\$ac_header_preproc"
13311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13316 cat >>confdefs.h <<_ACEOF
13317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13321 cat >>confdefs.h <<\_ACEOF
13322 #define HAVE_INTTYPES_H 1
13326 cat >>confdefs.h <<\_ACEOF
13327 #define JV_HAVE_INTTYPES_H 1
13335 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13336 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13337 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13338 echo $ECHO_N "(cached) $ECHO_C" >&6
13340 cat >conftest.$ac_ext <<_ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 #include <sys/types.h>
13347 #include <sys/wait.h>
13348 #ifndef WEXITSTATUS
13349 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13352 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13360 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13365 rm -f conftest.$ac_objext
13366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13367 (eval $ac_compile) 2>conftest.er1
13369 grep -v '^ *+' conftest.er1 >conftest.err
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } &&
13374 { ac_try='test -z "$ac_c_werror_flag"
13375 || test ! -s conftest.err'
13376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13377 (eval $ac_try) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); }; } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_cv_header_sys_wait_h=yes
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_cv_header_sys_wait_h=no
13394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13397 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13398 if test $ac_cv_header_sys_wait_h = yes; then
13400 cat >>confdefs.h <<\_ACEOF
13401 #define HAVE_SYS_WAIT_H 1
13407 echo "$as_me:$LINENO: checking for ssize_t" >&5
13408 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13409 if test "${ac_cv_type_ssize_t+set}" = set; then
13410 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 cat >conftest.$ac_ext <<_ACEOF
13415 cat confdefs.h >>conftest.$ac_ext
13416 cat >>conftest.$ac_ext <<_ACEOF
13417 /* end confdefs.h. */
13418 $ac_includes_default
13424 if (sizeof (ssize_t))
13430 rm -f conftest.$ac_objext
13431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13432 (eval $ac_compile) 2>conftest.er1
13434 grep -v '^ *+' conftest.er1 >conftest.err
13436 cat conftest.err >&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -z "$ac_c_werror_flag"
13440 || test ! -s conftest.err'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; } &&
13446 { ac_try='test -s conftest.$ac_objext'
13447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13448 (eval $ac_try) 2>&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); }; }; then
13452 ac_cv_type_ssize_t=yes
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_cv_type_ssize_t=no
13459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13461 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13462 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13463 if test $ac_cv_type_ssize_t = yes; then
13467 cat >>confdefs.h <<_ACEOF
13468 #define ssize_t int
13474 echo "$as_me:$LINENO: checking for in_addr_t" >&5
13475 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
13476 cat >conftest.$ac_ext <<_ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 #include <sys/types.h>
13484 #include <stdlib.h>
13485 #include <stddef.h>
13487 #if HAVE_NETINET_IN_H
13488 #include <netinet/in.h>
13498 rm -f conftest.$ac_objext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500 (eval $ac_compile) 2>conftest.er1
13502 grep -v '^ *+' conftest.er1 >conftest.err
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try='test -z "$ac_c_werror_flag"
13508 || test ! -s conftest.err'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try='test -s conftest.$ac_objext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13521 cat >>confdefs.h <<\_ACEOF
13522 #define HAVE_IN_ADDR_T 1
13525 echo "$as_me:$LINENO: result: yes" >&5
13526 echo "${ECHO_T}yes" >&6
13528 echo "$as_me: failed program was:" >&5
13529 sed 's/^/| /' conftest.$ac_ext >&5
13531 echo "$as_me:$LINENO: result: no" >&5
13532 echo "${ECHO_T}no" >&6
13534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13536 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
13537 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
13538 cat >conftest.$ac_ext <<_ACEOF
13541 cat confdefs.h >>conftest.$ac_ext
13542 cat >>conftest.$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13544 #include <netinet/in.h>
13548 struct ip_mreq mreq;
13553 rm -f conftest.$ac_objext
13554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13555 (eval $ac_compile) 2>conftest.er1
13557 grep -v '^ *+' conftest.er1 >conftest.err
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } &&
13562 { ac_try='test -z "$ac_c_werror_flag"
13563 || test ! -s conftest.err'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; } &&
13569 { ac_try='test -s conftest.$ac_objext'
13570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13571 (eval $ac_try) 2>&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); }; }; then
13576 cat >>confdefs.h <<\_ACEOF
13577 #define HAVE_STRUCT_IP_MREQ 1
13580 echo "$as_me:$LINENO: result: yes" >&5
13581 echo "${ECHO_T}yes" >&6
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 echo "$as_me:$LINENO: result: no" >&5
13587 echo "${ECHO_T}no" >&6
13589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13591 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
13592 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 #include <netinet/in.h>
13603 struct ipv6_mreq mreq6;
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610 (eval $ac_compile) 2>conftest.er1
13612 grep -v '^ *+' conftest.er1 >conftest.err
13614 cat conftest.err >&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -z "$ac_c_werror_flag"
13618 || test ! -s conftest.err'
13619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620 (eval $ac_try) 2>&5
13622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623 (exit $ac_status); }; } &&
13624 { ac_try='test -s conftest.$ac_objext'
13625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626 (eval $ac_try) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); }; }; then
13631 cat >>confdefs.h <<\_ACEOF
13632 #define HAVE_STRUCT_IPV6_MREQ 1
13635 echo "$as_me:$LINENO: result: yes" >&5
13636 echo "${ECHO_T}yes" >&6
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 echo "$as_me:$LINENO: result: no" >&5
13642 echo "${ECHO_T}no" >&6
13644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13646 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
13647 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
13648 cat >conftest.$ac_ext <<_ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654 #include <netinet/in.h>
13658 struct sockaddr_in6 addr6;
13663 rm -f conftest.$ac_objext
13664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13665 (eval $ac_compile) 2>conftest.er1
13667 grep -v '^ *+' conftest.er1 >conftest.err
13669 cat conftest.err >&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -z "$ac_c_werror_flag"
13673 || test ! -s conftest.err'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try='test -s conftest.$ac_objext'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13686 cat >>confdefs.h <<\_ACEOF
13687 #define HAVE_INET6 1
13690 echo "$as_me:$LINENO: result: yes" >&5
13691 echo "${ECHO_T}yes" >&6
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 echo "$as_me:$LINENO: result: no" >&5
13697 echo "${ECHO_T}no" >&6
13699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13701 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
13702 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 #define _POSIX_PII_SOCKET
13710 #include <sys/types.h>
13711 #include <sys/socket.h>
13720 rm -f conftest.$ac_objext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13722 (eval $ac_compile) 2>conftest.er1
13724 grep -v '^ *+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag"
13730 || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest.$ac_objext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13743 cat >>confdefs.h <<\_ACEOF
13744 #define HAVE_SOCKLEN_T 1
13747 echo "$as_me:$LINENO: result: yes" >&5
13748 echo "${ECHO_T}yes" >&6
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 echo "$as_me:$LINENO: result: no" >&5
13754 echo "${ECHO_T}no" >&6
13756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13758 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
13759 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
13760 cat >conftest.$ac_ext <<_ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h. */
13770 struct tm tim; tim.tm_gmtoff = 0;
13775 rm -f conftest.$ac_objext
13776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13777 (eval $ac_compile) 2>conftest.er1
13779 grep -v '^ *+' conftest.er1 >conftest.err
13781 cat conftest.err >&5
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
13784 { ac_try='test -z "$ac_c_werror_flag"
13785 || test ! -s conftest.err'
13786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13787 (eval $ac_try) 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; } &&
13791 { ac_try='test -s conftest.$ac_objext'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; }; then
13798 cat >>confdefs.h <<\_ACEOF
13799 #define STRUCT_TM_HAS_GMTOFF 1
13802 echo "$as_me:$LINENO: result: yes" >&5
13803 echo "${ECHO_T}yes" >&6
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 echo "$as_me:$LINENO: result: no" >&5
13809 echo "${ECHO_T}no" >&6
13810 echo "$as_me:$LINENO: checking for global timezone variable" >&5
13811 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
13812 cat >conftest.$ac_ext <<_ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13822 void i(){long z2 = 2*timezone;}
13827 rm -f conftest.$ac_objext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13829 (eval $ac_compile) 2>conftest.er1
13831 grep -v '^ *+' conftest.er1 >conftest.err
13833 cat conftest.err >&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -z "$ac_c_werror_flag"
13837 || test ! -s conftest.err'
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest.$ac_objext'
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_TIMEZONE 1
13854 echo "$as_me:$LINENO: result: yes" >&5
13855 echo "${ECHO_T}yes" >&6
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13860 echo "$as_me:$LINENO: result: no" >&5
13861 echo "${ECHO_T}no" >&6
13862 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
13863 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13874 long z2 = _timezone;
13879 rm -f conftest.$ac_objext
13880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13881 (eval $ac_compile) 2>conftest.er1
13883 grep -v '^ *+' conftest.er1 >conftest.err
13885 cat conftest.err >&5
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } &&
13888 { ac_try='test -z "$ac_c_werror_flag"
13889 || test ! -s conftest.err'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; } &&
13895 { ac_try='test -s conftest.$ac_objext'
13896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897 (eval $ac_try) 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; }; then
13902 cat >>confdefs.h <<\_ACEOF
13903 #define HAVE_UNDERSCORE_TIMEZONE 1
13906 echo "$as_me:$LINENO: result: yes" >&5
13907 echo "${ECHO_T}yes" >&6
13909 echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13912 echo "$as_me:$LINENO: result: no" >&5
13913 echo "${ECHO_T}no" >&6
13915 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13921 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13922 # for constant arguments. Useless!
13923 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13924 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13925 if test "${ac_cv_working_alloca_h+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 if test x$gcc_no_link = xyes; then
13929 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13930 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13931 { (exit 1); exit 1; }; }
13933 cat >conftest.$ac_ext <<_ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 #include <alloca.h>
13943 char *p = (char *) alloca (2 * sizeof (int));
13948 rm -f conftest.$ac_objext conftest$ac_exeext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13950 (eval $ac_link) 2>conftest.er1
13952 grep -v '^ *+' conftest.er1 >conftest.err
13954 cat conftest.err >&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } &&
13957 { ac_try='test -z "$ac_c_werror_flag"
13958 || test ! -s conftest.err'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; } &&
13964 { ac_try='test -s conftest$ac_exeext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_cv_working_alloca_h=yes
13972 echo "$as_me: failed program was:" >&5
13973 sed 's/^/| /' conftest.$ac_ext >&5
13975 ac_cv_working_alloca_h=no
13977 rm -f conftest.err conftest.$ac_objext \
13978 conftest$ac_exeext conftest.$ac_ext
13980 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13981 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13982 if test $ac_cv_working_alloca_h = yes; then
13984 cat >>confdefs.h <<\_ACEOF
13985 #define HAVE_ALLOCA_H 1
13990 echo "$as_me:$LINENO: checking for alloca" >&5
13991 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13992 if test "${ac_cv_func_alloca_works+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 if test x$gcc_no_link = xyes; then
13996 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13997 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13998 { (exit 1); exit 1; }; }
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14007 # define alloca __builtin_alloca
14010 # include <malloc.h>
14011 # define alloca _alloca
14014 # include <alloca.h>
14019 # ifndef alloca /* predefined by HP cc +Olibcalls */
14030 char *p = (char *) alloca (1);
14035 rm -f conftest.$ac_objext conftest$ac_exeext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14037 (eval $ac_link) 2>conftest.er1
14039 grep -v '^ *+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -z "$ac_c_werror_flag"
14045 || test ! -s conftest.err'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } &&
14051 { ac_try='test -s conftest$ac_exeext'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; }; then
14057 ac_cv_func_alloca_works=yes
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_cv_func_alloca_works=no
14064 rm -f conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
14067 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14068 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14070 if test $ac_cv_func_alloca_works = yes; then
14072 cat >>confdefs.h <<\_ACEOF
14073 #define HAVE_ALLOCA 1
14077 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14078 # that cause trouble. Some versions do not even contain alloca or
14079 # contain a buggy version. If you still want to use their alloca,
14080 # use ar to extract alloca.o from them instead of compiling alloca.c.
14082 ALLOCA=alloca.$ac_objext
14084 cat >>confdefs.h <<\_ACEOF
14089 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14090 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14091 if test "${ac_cv_os_cray+set}" = set; then
14092 echo $ECHO_N "(cached) $ECHO_C" >&6
14094 cat >conftest.$ac_ext <<_ACEOF
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 #if defined(CRAY) && ! defined(CRAY2)
14107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108 $EGREP "webecray" >/dev/null 2>&1; then
14116 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14117 echo "${ECHO_T}$ac_cv_os_cray" >&6
14118 if test $ac_cv_os_cray = yes; then
14119 for ac_func in _getb67 GETB67 getb67; do
14120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14121 echo "$as_me:$LINENO: checking for $ac_func" >&5
14122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14123 if eval "test \"\${$as_ac_var+set}\" = set"; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 if test x$gcc_no_link = xyes; then
14127 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14128 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14129 { (exit 1); exit 1; }; }
14131 cat >conftest.$ac_ext <<_ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14139 #define $ac_func innocuous_$ac_func
14141 /* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char $ac_func (); below.
14143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14144 <limits.h> exists even on freestanding compilers. */
14147 # include <limits.h>
14149 # include <assert.h>
14154 /* Override any gcc2 internal prototype to avoid an error. */
14159 /* We use char because int might match the return type of a gcc2
14160 builtin and then its argument prototype would still apply. */
14162 /* The GNU C library defines this for functions which it implements
14163 to always fail with ENOSYS. Some functions are actually named
14164 something starting with __ and the normal name is an alias. */
14165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14168 char (*f) () = $ac_func;
14177 return f != $ac_func;
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184 (eval $ac_link) 2>conftest.er1
14186 grep -v '^ *+' conftest.er1 >conftest.err
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -z "$ac_c_werror_flag"
14192 || test ! -s conftest.err'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; } &&
14198 { ac_try='test -s conftest$ac_exeext'
14199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14200 (eval $ac_try) 2>&5
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); }; }; then
14204 eval "$as_ac_var=yes"
14206 echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.$ac_ext >&5
14209 eval "$as_ac_var=no"
14211 rm -f conftest.err conftest.$ac_objext \
14212 conftest$ac_exeext conftest.$ac_ext
14214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14216 if test `eval echo '${'$as_ac_var'}'` = yes; then
14218 cat >>confdefs.h <<_ACEOF
14219 #define CRAY_STACKSEG_END $ac_func
14228 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14229 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14230 if test "${ac_cv_c_stack_direction+set}" = set; then
14231 echo $ECHO_N "(cached) $ECHO_C" >&6
14233 if test "$cross_compiling" = yes; then
14234 ac_cv_c_stack_direction=0
14236 cat >conftest.$ac_ext <<_ACEOF
14239 cat confdefs.h >>conftest.$ac_ext
14240 cat >>conftest.$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14243 find_stack_direction ()
14245 static char *addr = 0;
14250 return find_stack_direction ();
14253 return (&dummy > addr) ? 1 : -1;
14259 exit (find_stack_direction () < 0);
14262 rm -f conftest$ac_exeext
14263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14264 (eval $ac_link) 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; }; then
14273 ac_cv_c_stack_direction=1
14275 echo "$as_me: program exited with status $ac_status" >&5
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 ( exit $ac_status )
14280 ac_cv_c_stack_direction=-1
14282 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14285 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14286 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14288 cat >>confdefs.h <<_ACEOF
14289 #define STACK_DIRECTION $ac_cv_c_stack_direction
14295 if test x$gcc_no_link = xyes; then
14296 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14297 ac_cv_func_mmap_fixed_mapped=no
14300 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
14303 for ac_header in stdlib.h unistd.h
14305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14307 echo "$as_me:$LINENO: checking for $ac_header" >&5
14308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14315 # Is the header compilable?
14316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 $ac_includes_default
14325 #include <$ac_header>
14327 rm -f conftest.$ac_objext
14328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14329 (eval $ac_compile) 2>conftest.er1
14331 grep -v '^ *+' conftest.er1 >conftest.err
14333 cat conftest.err >&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); } &&
14336 { ac_try='test -z "$ac_c_werror_flag"
14337 || test ! -s conftest.err'
14338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14339 (eval $ac_try) 2>&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); }; } &&
14343 { ac_try='test -s conftest.$ac_objext'
14344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14345 (eval $ac_try) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }; }; then
14349 ac_header_compiler=yes
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.$ac_ext >&5
14354 ac_header_compiler=no
14356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14358 echo "${ECHO_T}$ac_header_compiler" >&6
14360 # Is the header present?
14361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14363 cat >conftest.$ac_ext <<_ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14369 #include <$ac_header>
14371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } >/dev/null; then
14379 if test -s conftest.err; then
14380 ac_cpp_err=$ac_c_preproc_warn_flag
14381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14388 if test -z "$ac_cpp_err"; then
14389 ac_header_preproc=yes
14391 echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14394 ac_header_preproc=no
14396 rm -f conftest.err conftest.$ac_ext
14397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14398 echo "${ECHO_T}$ac_header_preproc" >&6
14400 # So? What about this header?
14401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14407 ac_header_preproc=yes
14410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14424 ## ------------------------------------------ ##
14425 ## Report this to the AC_PACKAGE_NAME lists. ##
14426 ## ------------------------------------------ ##
14429 sed "s/^/$as_me: WARNING: /" >&2
14432 echo "$as_me:$LINENO: checking for $ac_header" >&5
14433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 eval "$as_ac_Header=\$ac_header_preproc"
14439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14444 cat >>confdefs.h <<_ACEOF
14445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14453 for ac_func in getpagesize
14455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14456 echo "$as_me:$LINENO: checking for $ac_func" >&5
14457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14458 if eval "test \"\${$as_ac_var+set}\" = set"; then
14459 echo $ECHO_N "(cached) $ECHO_C" >&6
14461 if test x$gcc_no_link = xyes; then
14462 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14463 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14464 { (exit 1); exit 1; }; }
14466 cat >conftest.$ac_ext <<_ACEOF
14469 cat confdefs.h >>conftest.$ac_ext
14470 cat >>conftest.$ac_ext <<_ACEOF
14471 /* end confdefs.h. */
14472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14474 #define $ac_func innocuous_$ac_func
14476 /* System header to define __stub macros and hopefully few prototypes,
14477 which can conflict with char $ac_func (); below.
14478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14479 <limits.h> exists even on freestanding compilers. */
14482 # include <limits.h>
14484 # include <assert.h>
14489 /* Override any gcc2 internal prototype to avoid an error. */
14494 /* We use char because int might match the return type of a gcc2
14495 builtin and then its argument prototype would still apply. */
14497 /* The GNU C library defines this for functions which it implements
14498 to always fail with ENOSYS. Some functions are actually named
14499 something starting with __ and the normal name is an alias. */
14500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14503 char (*f) () = $ac_func;
14512 return f != $ac_func;
14517 rm -f conftest.$ac_objext conftest$ac_exeext
14518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14519 (eval $ac_link) 2>conftest.er1
14521 grep -v '^ *+' conftest.er1 >conftest.err
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
14526 { ac_try='test -z "$ac_c_werror_flag"
14527 || test ! -s conftest.err'
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest$ac_exeext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 eval "$as_ac_var=yes"
14541 echo "$as_me: failed program was:" >&5
14542 sed 's/^/| /' conftest.$ac_ext >&5
14544 eval "$as_ac_var=no"
14546 rm -f conftest.err conftest.$ac_objext \
14547 conftest$ac_exeext conftest.$ac_ext
14549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14550 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14551 if test `eval echo '${'$as_ac_var'}'` = yes; then
14552 cat >>confdefs.h <<_ACEOF
14553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14559 echo "$as_me:$LINENO: checking for working mmap" >&5
14560 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14561 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 if test "$cross_compiling" = yes; then
14565 ac_cv_func_mmap_fixed_mapped=no
14567 cat >conftest.$ac_ext <<_ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 $ac_includes_default
14574 /* malloc might have been renamed as rpl_malloc. */
14577 /* Thanks to Mike Haertel and Jim Avera for this test.
14578 Here is a matrix of mmap possibilities:
14579 mmap private not fixed
14580 mmap private fixed at somewhere currently unmapped
14581 mmap private fixed at somewhere already mapped
14582 mmap shared not fixed
14583 mmap shared fixed at somewhere currently unmapped
14584 mmap shared fixed at somewhere already mapped
14585 For private mappings, we should verify that changes cannot be read()
14586 back from the file, nor mmap's back from the file at a different
14587 address. (There have been systems where private was not correctly
14588 implemented like the infamous i386 svr4.0, and systems where the
14589 VM page cache was not coherent with the file system buffer cache
14590 like early versions of FreeBSD and possibly contemporary NetBSD.)
14591 For shared mappings, we should conversely verify that changes get
14592 propagated back to all the places they're supposed to be.
14594 Grep wants private fixed already mapped.
14595 The main things grep needs to know about mmap are:
14596 * does it exist and is it safe to write into the mmap'd area
14597 * how to use it (BSD variants) */
14600 #include <sys/mman.h>
14602 #if !STDC_HEADERS && !HAVE_STDLIB_H
14606 /* This mess was copied from the GNU getpagesize.h. */
14607 #if !HAVE_GETPAGESIZE
14608 /* Assume that all systems that can run configure have sys/param.h. */
14609 # if !HAVE_SYS_PARAM_H
14610 # define HAVE_SYS_PARAM_H 1
14613 # ifdef _SC_PAGESIZE
14614 # define getpagesize() sysconf(_SC_PAGESIZE)
14615 # else /* no _SC_PAGESIZE */
14616 # if HAVE_SYS_PARAM_H
14617 # include <sys/param.h>
14618 # ifdef EXEC_PAGESIZE
14619 # define getpagesize() EXEC_PAGESIZE
14620 # else /* no EXEC_PAGESIZE */
14622 # define getpagesize() NBPG * CLSIZE
14625 # endif /* no CLSIZE */
14626 # else /* no NBPG */
14628 # define getpagesize() NBPC
14629 # else /* no NBPC */
14631 # define getpagesize() PAGESIZE
14632 # endif /* PAGESIZE */
14633 # endif /* no NBPC */
14634 # endif /* no NBPG */
14635 # endif /* no EXEC_PAGESIZE */
14636 # else /* no HAVE_SYS_PARAM_H */
14637 # define getpagesize() 8192 /* punt totally */
14638 # endif /* no HAVE_SYS_PARAM_H */
14639 # endif /* no _SC_PAGESIZE */
14641 #endif /* no HAVE_GETPAGESIZE */
14646 char *data, *data2, *data3;
14650 pagesize = getpagesize ();
14652 /* First, make a file with some known garbage in it. */
14653 data = (char *) malloc (pagesize);
14656 for (i = 0; i < pagesize; ++i)
14657 *(data + i) = rand ();
14659 fd = creat ("conftest.mmap", 0600);
14662 if (write (fd, data, pagesize) != pagesize)
14666 /* Next, try to mmap the file at a fixed address which already has
14667 something else allocated at it. If we can, also make sure that
14668 we see the same garbage. */
14669 fd = open ("conftest.mmap", O_RDWR);
14672 data2 = (char *) malloc (2 * pagesize);
14675 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14676 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14677 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14679 for (i = 0; i < pagesize; ++i)
14680 if (*(data + i) != *(data2 + i))
14683 /* Finally, make sure that changes to the mapped area do not
14684 percolate back to the file as seen by read(). (This is a bug on
14685 some variants of i386 svr4.0.) */
14686 for (i = 0; i < pagesize; ++i)
14687 *(data2 + i) = *(data2 + i) + 1;
14688 data3 = (char *) malloc (pagesize);
14691 if (read (fd, data3, pagesize) != pagesize)
14693 for (i = 0; i < pagesize; ++i)
14694 if (*(data + i) != *(data3 + i))
14700 rm -f conftest$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14707 (eval $ac_try) 2>&5
14709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710 (exit $ac_status); }; }; then
14711 ac_cv_func_mmap_fixed_mapped=yes
14713 echo "$as_me: program exited with status $ac_status" >&5
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 ( exit $ac_status )
14718 ac_cv_func_mmap_fixed_mapped=no
14720 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14723 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14724 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14725 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14727 cat >>confdefs.h <<\_ACEOF
14728 #define HAVE_MMAP 1
14732 rm -f conftest.mmap
14736 for ac_prog in perl
14738 # Extract the first word of "$ac_prog", so it can be a program name with args.
14739 set dummy $ac_prog; ac_word=$2
14740 echo "$as_me:$LINENO: checking for $ac_word" >&5
14741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14742 if test "${ac_cv_prog_PERL+set}" = set; then
14743 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 if test -n "$PERL"; then
14746 ac_cv_prog_PERL="$PERL" # Let the user override the test.
14748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749 for as_dir in $PATH
14752 test -z "$as_dir" && as_dir=.
14753 for ac_exec_ext in '' $ac_executable_extensions; do
14754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755 ac_cv_prog_PERL="$ac_prog"
14756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14764 PERL=$ac_cv_prog_PERL
14765 if test -n "$PERL"; then
14766 echo "$as_me:$LINENO: result: $PERL" >&5
14767 echo "${ECHO_T}$PERL" >&6
14769 echo "$as_me:$LINENO: result: no" >&5
14770 echo "${ECHO_T}no" >&6
14773 test -n "$PERL" && break
14775 test -n "$PERL" || PERL="false"
14779 SIGNAL_HANDLER_AUX=
14783 SIGNAL_HANDLER=include/i386-signal.h
14785 sparc*-sun-solaris*)
14786 SIGNAL_HANDLER=include/sparc-signal.h
14789 # SYSDEP_SOURCES=sysdep/ia64.c
14790 # test -d sysdep || mkdir sysdep
14793 SIGNAL_HANDLER=include/pa-signal.h
14796 SIGNAL_HANDLER=include/dwarf2-signal.h
14799 SIGNAL_HANDLER=include/powerpc-signal.h
14802 SIGNAL_HANDLER=include/dwarf2-signal.h
14805 SIGNAL_HANDLER=include/s390-signal.h
14808 SIGNAL_HANDLER=include/x86_64-signal.h
14809 SIGNAL_HANDLER_AUX=include/i386-signal.h
14812 SIGNAL_HANDLER=include/dwarf2-signal.h
14814 sh-*-linux* | sh[34]*-*-linux*)
14815 SIGNAL_HANDLER=include/dwarf2-signal.h
14818 SIGNAL_HANDLER=include/win32-signal.h
14821 SIGNAL_HANDLER=include/mips-signal.h
14824 SIGNAL_HANDLER=include/darwin-signal.h
14827 SIGNAL_HANDLER=include/default-signal.h
14831 # If we're using sjlj exceptions, forget what we just learned.
14832 if test "$enable_sjlj_exceptions" = yes; then
14833 SIGNAL_HANDLER=include/default-signal.h
14834 SIGNAL_HANDLER_AUX=
14837 # Define here any compiler flags that you need in order to make backtrace() work.
14840 x86_64*-*-linux*|i?86-*)
14841 BACKTRACESPEC=-fno-omit-frame-pointer
14848 if test -z "$SIGNAL_HANDLER_AUX"; then
14849 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
14852 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
14855 if test "${multilib}" = "yes"; then
14856 multilib_arg="--enable-multilib"
14863 here=`${PWDCMD-pwd}`
14866 # We get this from the environment.
14869 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
14870 ac_config_commands="$ac_config_commands default"
14871 cat >confcache <<\_ACEOF
14872 # This file is a shell script that caches the results of configure
14873 # tests run on this system so they can be shared between configure
14874 # scripts and configure runs, see configure's option --config-cache.
14875 # It is not useful on other systems. If it contains results you don't
14876 # want to keep, you may remove or edit it.
14878 # config.status only pays attention to the cache file if you give it
14879 # the --recheck option to rerun configure.
14881 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14882 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14883 # following values.
14887 # The following way of writing the cache mishandles newlines in values,
14888 # but we know of no workaround that is simple, portable, and efficient.
14889 # So, don't put newlines in cache variables' values.
14890 # Ultrix sh set writes to stderr and can't be redirected directly,
14891 # and sets the high bit in the cache file unless we assign to the vars.
14894 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14896 # `set' does not quote correctly, so add quotes (double-quote
14897 # substitution turns \\\\ into \\, and sed turns \\ into \).
14900 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14903 # `set' quotes correctly as required by POSIX, so do not add quotes.
14905 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14914 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14916 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14917 if test -w $cache_file; then
14918 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14919 cat confcache >$cache_file
14921 echo "not updating unwritable cache $cache_file"
14926 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14927 # Let make expand exec_prefix.
14928 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14930 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14931 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14932 # trailing colons and then remove the whole line if VPATH becomes empty
14933 # (actually we leave an empty line to preserve line numbers).
14934 if test "x$srcdir" = x.; then
14935 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14936 s/:*\$(srcdir):*/:/;
14937 s/:*\${srcdir}:*/:/;
14939 s/^\([^=]*=[ ]*\):*/\1/;
14945 DEFS=-DHAVE_CONFIG_H
14949 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14950 # 1. Remove the extension, and $U if already installed.
14951 ac_i=`echo "$ac_i" |
14952 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14954 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14955 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14957 LIBOBJS=$ac_libobjs
14959 LTLIBOBJS=$ac_ltlibobjs
14963 : ${CONFIG_STATUS=./config.status}
14964 ac_clean_files_save=$ac_clean_files
14965 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14966 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14967 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14968 cat >$CONFIG_STATUS <<_ACEOF
14970 # Generated by $as_me.
14971 # Run this file to recreate the current configuration.
14972 # Compiler output produced by configure, useful for debugging
14973 # configure, is in config.log if it exists.
14976 ac_cs_recheck=false
14978 SHELL=\${CONFIG_SHELL-$SHELL}
14981 cat >>$CONFIG_STATUS <<\_ACEOF
14982 ## --------------------- ##
14983 ## M4sh Initialization. ##
14984 ## --------------------- ##
14986 # Be Bourne compatible
14987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14990 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14991 # is contrary to our usage. Disable this feature.
14992 alias -g '${1+"$@"}'='"$@"'
14993 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14996 DUALCASE=1; export DUALCASE # for MKS sh
14998 # Support unset when possible.
14999 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15006 # Work around bugs in pre-3.0 UWIN ksh.
15007 $as_unset ENV MAIL MAILPATH
15014 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15015 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15016 LC_TELEPHONE LC_TIME
15018 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15019 eval $as_var=C; export $as_var
15025 # Required to use basename.
15026 if expr a : '\(a\)' >/dev/null 2>&1; then
15032 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15033 as_basename=basename
15039 # Name of the executable.
15040 as_me=`$as_basename "$0" ||
15041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15042 X"$0" : 'X\(//\)$' \| \
15043 X"$0" : 'X\(/\)$' \| \
15044 . : '\(.\)' 2>/dev/null ||
15046 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15047 /^X\/\(\/\/\)$/{ s//\1/; q; }
15048 /^X\/\(\/\).*/{ s//\1/; q; }
15052 # PATH needs CR, and LINENO needs CR and PATH.
15053 # Avoid depending upon Character Ranges.
15054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15057 as_cr_digits='0123456789'
15058 as_cr_alnum=$as_cr_Letters$as_cr_digits
15060 # The user is always right.
15061 if test "${PATH_SEPARATOR+set}" != set; then
15062 echo "#! /bin/sh" >conf$$.sh
15063 echo "exit 0" >>conf$$.sh
15065 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15074 as_lineno_1=$LINENO
15075 as_lineno_2=$LINENO
15076 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15077 test "x$as_lineno_1" != "x$as_lineno_2" &&
15078 test "x$as_lineno_3" = "x$as_lineno_2" || {
15079 # Find who we are. Look in the path if we contain no path at all
15082 *[\\/]* ) as_myself=$0 ;;
15083 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15084 for as_dir in $PATH
15087 test -z "$as_dir" && as_dir=.
15088 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15093 # We did not find ourselves, most probably we were run as `sh COMMAND'
15094 # in which case we are not to be found in the path.
15095 if test "x$as_myself" = x; then
15098 if test ! -f "$as_myself"; then
15099 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15100 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15101 { (exit 1); exit 1; }; }
15103 case $CONFIG_SHELL in
15105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15106 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15109 test -z "$as_dir" && as_dir=.
15110 for as_base in sh bash ksh sh5; do
15113 if ("$as_dir/$as_base" -c '
15114 as_lineno_1=$LINENO
15115 as_lineno_2=$LINENO
15116 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15117 test "x$as_lineno_1" != "x$as_lineno_2" &&
15118 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15119 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15120 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15121 CONFIG_SHELL=$as_dir/$as_base
15122 export CONFIG_SHELL
15123 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15131 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15132 # uniformly replaced by the line number. The first 'sed' inserts a
15133 # line-number line before each line; the second 'sed' does the real
15134 # work. The second script uses 'N' to pair each line-number line
15135 # with the numbered line, and appends trailing '-' during
15136 # substitution so that $LINENO is not a special case at line end.
15137 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15138 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15139 sed '=' <$as_myself |
15144 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15147 s,^['$as_cr_digits']*\n,,
15148 ' >$as_me.lineno &&
15149 chmod +x $as_me.lineno ||
15150 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15151 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15152 { (exit 1); exit 1; }; }
15154 # Don't try to exec as it changes $[0], causing all sort of problems
15155 # (the dirname of $[0] is not the place where we might find the
15156 # original and so on. Autoconf is especially sensible to this).
15158 # Exit status is that of the last command.
15163 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15164 *c*,-n*) ECHO_N= ECHO_C='
15166 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15167 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15170 if expr a : '\(a\)' >/dev/null 2>&1; then
15176 rm -f conf$$ conf$$.exe conf$$.file
15178 if ln -s conf$$.file conf$$ 2>/dev/null; then
15179 # We could just check for DJGPP; but this test a) works b) is more generic
15180 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15181 if test -f conf$$.exe; then
15182 # Don't use ln at all; we don't have any links
15187 elif ln conf$$.file conf$$ 2>/dev/null; then
15192 rm -f conf$$ conf$$.exe conf$$.file
15194 if mkdir -p . 2>/dev/null; then
15197 test -d ./-p && rmdir ./-p
15201 as_executable_p="test -f"
15203 # Sed expression to map a string onto a valid CPP name.
15204 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15206 # Sed expression to map a string onto a valid variable name.
15207 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15211 # We need space, tab and new line, in precisely that order.
15221 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15222 # report actual input values of CONFIG_FILES etc. instead of their
15223 # values after options handling. Logging --version etc. is OK.
15227 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15228 ## Running $as_me. ##
15233 This file was extended by $as_me, which was
15234 generated by GNU Autoconf 2.59. Invocation command line was
15236 CONFIG_FILES = $CONFIG_FILES
15237 CONFIG_HEADERS = $CONFIG_HEADERS
15238 CONFIG_LINKS = $CONFIG_LINKS
15239 CONFIG_COMMANDS = $CONFIG_COMMANDS
15243 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15247 # Files that config.status was made for.
15248 if test -n "$ac_config_files"; then
15249 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15252 if test -n "$ac_config_headers"; then
15253 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15256 if test -n "$ac_config_links"; then
15257 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15260 if test -n "$ac_config_commands"; then
15261 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15264 cat >>$CONFIG_STATUS <<\_ACEOF
15267 \`$as_me' instantiates files from templates according to the
15268 current configuration.
15270 Usage: $0 [OPTIONS] [FILE]...
15272 -h, --help print this help, then exit
15273 -V, --version print version number, then exit
15274 -q, --quiet do not print progress messages
15275 -d, --debug don't remove temporary files
15276 --recheck update $as_me by reconfiguring in the same conditions
15277 --file=FILE[:TEMPLATE]
15278 instantiate the configuration file FILE
15279 --header=FILE[:TEMPLATE]
15280 instantiate the configuration header FILE
15282 Configuration files:
15285 Configuration headers:
15288 Configuration links:
15291 Configuration commands:
15294 Report bugs to <bug-autoconf@gnu.org>."
15297 cat >>$CONFIG_STATUS <<_ACEOF
15300 configured by $0, generated by GNU Autoconf 2.59,
15301 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15303 Copyright (C) 2003 Free Software Foundation, Inc.
15304 This config.status script is free software; the Free Software Foundation
15305 gives unlimited permission to copy, distribute and modify it."
15310 cat >>$CONFIG_STATUS <<\_ACEOF
15311 # If no file are specified by the user, then we need to provide default
15312 # value. By we need to know if files were specified by the user.
15318 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15319 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15327 *) # This is not an option, so the user has probably given explicit
15330 ac_need_defaults=false;;
15334 # Handling of the options.
15336 cat >>$CONFIG_STATUS <<\_ACEOF
15337 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15339 --version | --vers* | -V )
15340 echo "$ac_cs_version"; exit 0 ;;
15342 # Conflict between --help and --header
15343 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15344 Try \`$0 --help' for more information." >&5
15345 echo "$as_me: error: ambiguous option: $1
15346 Try \`$0 --help' for more information." >&2;}
15347 { (exit 1); exit 1; }; };;
15348 --help | --hel | -h )
15349 echo "$ac_cs_usage"; exit 0 ;;
15350 --debug | --d* | -d )
15352 --file | --fil | --fi | --f )
15354 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15355 ac_need_defaults=false;;
15356 --header | --heade | --head | --hea )
15358 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15359 ac_need_defaults=false;;
15360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15361 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15364 # This is an error.
15365 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15366 Try \`$0 --help' for more information." >&5
15367 echo "$as_me: error: unrecognized option: $1
15368 Try \`$0 --help' for more information." >&2;}
15369 { (exit 1); exit 1; }; } ;;
15371 *) ac_config_targets="$ac_config_targets $1" ;;
15377 ac_configure_extra_args=
15379 if $ac_cs_silent; then
15381 ac_configure_extra_args="$ac_configure_extra_args --silent"
15385 cat >>$CONFIG_STATUS <<_ACEOF
15386 if \$ac_cs_recheck; then
15387 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15388 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15393 cat >>$CONFIG_STATUS <<_ACEOF
15395 # INIT-COMMANDS section.
15402 with_multisubdir=${with_multisubdir}
15403 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15404 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15405 libgcj_basedir=${libgcj_basedir}
15408 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
15415 cat >>$CONFIG_STATUS <<\_ACEOF
15416 for ac_config_target in $ac_config_targets
15418 case "$ac_config_target" in
15419 # Handling of arguments.
15420 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15421 "libgcj.pc" ) CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
15422 "libgcj.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
15423 "libgcj-test.spec" ) CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
15424 "gnu/classpath/Configuration.java" ) CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
15425 "gcj/Makefile" ) CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
15426 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15427 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15428 "include/platform.h" ) CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
15429 "java/io/natFile.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
15430 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
15431 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
15432 "java/net/natInetAddress.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
15433 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
15434 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
15435 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
15436 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
15437 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
15438 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
15439 "include/java-gc.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
15440 "include/java-threads.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
15441 "sysdep/locks.h" ) CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
15442 "include/java-signal.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
15443 "include/java-signal-aux.h" ) CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
15444 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15445 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
15446 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
15447 "gcj/libgcj-config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
15448 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15449 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15450 { (exit 1); exit 1; }; };;
15454 # If the user did not use the arguments to specify the items to instantiate,
15455 # then the envvar interface is used. Set only those that are not.
15456 # We use the long form for the default assignment because of an extremely
15457 # bizarre bug on SunOS 4.1.3.
15458 if $ac_need_defaults; then
15459 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15460 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15461 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15462 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15465 # Have a temporary directory for convenience. Make it in the build tree
15466 # simply because there is no reason to put it here, and in addition,
15467 # creating and moving files from /tmp can sometimes cause problems.
15468 # Create a temporary directory, and hook for its removal unless debugging.
15471 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15472 trap '{ (exit 1); exit 1; }' 1 2 13 15
15475 # Create a (secure) tmp directory for tmp files.
15478 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15479 test -n "$tmp" && test -d "$tmp"
15482 tmp=./confstat$$-$RANDOM
15483 (umask 077 && mkdir $tmp)
15486 echo "$me: cannot create a temporary directory in ." >&2
15487 { (exit 1); exit 1; }
15492 cat >>$CONFIG_STATUS <<_ACEOF
15495 # CONFIG_FILES section.
15498 # No need to generate the scripts if there are no CONFIG_FILES.
15499 # This happens for instance when ./config.status config.h
15500 if test -n "\$CONFIG_FILES"; then
15501 # Protect against being on the right side of a sed subst in config.status.
15502 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15503 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15504 s,@SHELL@,$SHELL,;t t
15505 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15506 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15507 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15508 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15509 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15510 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15511 s,@exec_prefix@,$exec_prefix,;t t
15512 s,@prefix@,$prefix,;t t
15513 s,@program_transform_name@,$program_transform_name,;t t
15514 s,@bindir@,$bindir,;t t
15515 s,@sbindir@,$sbindir,;t t
15516 s,@libexecdir@,$libexecdir,;t t
15517 s,@datadir@,$datadir,;t t
15518 s,@sysconfdir@,$sysconfdir,;t t
15519 s,@sharedstatedir@,$sharedstatedir,;t t
15520 s,@localstatedir@,$localstatedir,;t t
15521 s,@libdir@,$libdir,;t t
15522 s,@includedir@,$includedir,;t t
15523 s,@oldincludedir@,$oldincludedir,;t t
15524 s,@infodir@,$infodir,;t t
15525 s,@mandir@,$mandir,;t t
15526 s,@build_alias@,$build_alias,;t t
15527 s,@host_alias@,$host_alias,;t t
15528 s,@target_alias@,$target_alias,;t t
15529 s,@DEFS@,$DEFS,;t t
15530 s,@ECHO_C@,$ECHO_C,;t t
15531 s,@ECHO_N@,$ECHO_N,;t t
15532 s,@ECHO_T@,$ECHO_T,;t t
15533 s,@LIBS@,$LIBS,;t t
15534 s,@libgcj_basedir@,$libgcj_basedir,;t t
15535 s,@build@,$build,;t t
15536 s,@build_cpu@,$build_cpu,;t t
15537 s,@build_vendor@,$build_vendor,;t t
15538 s,@build_os@,$build_os,;t t
15539 s,@host@,$host,;t t
15540 s,@host_cpu@,$host_cpu,;t t
15541 s,@host_vendor@,$host_vendor,;t t
15542 s,@host_os@,$host_os,;t t
15543 s,@target@,$target,;t t
15544 s,@target_cpu@,$target_cpu,;t t
15545 s,@target_vendor@,$target_vendor,;t t
15546 s,@target_os@,$target_os,;t t
15547 s,@target_noncanonical@,$target_noncanonical,;t t
15548 s,@LN_S@,$LN_S,;t t
15549 s,@mkinstalldirs@,$mkinstalldirs,;t t
15551 s,@ac_ct_CC@,$ac_ct_CC,;t t
15552 s,@EXEEXT@,$EXEEXT,;t t
15553 s,@OBJEXT@,$OBJEXT,;t t
15555 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15556 s,@CFLAGS@,$CFLAGS,;t t
15557 s,@CXXFLAGS@,$CXXFLAGS,;t t
15558 s,@LDFLAGS@,$LDFLAGS,;t t
15559 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15560 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15561 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15562 s,@PACKAGE@,$PACKAGE,;t t
15563 s,@VERSION@,$VERSION,;t t
15564 s,@ACLOCAL@,$ACLOCAL,;t t
15565 s,@AUTOCONF@,$AUTOCONF,;t t
15566 s,@AUTOMAKE@,$AUTOMAKE,;t t
15567 s,@AUTOHEADER@,$AUTOHEADER,;t t
15568 s,@MAKEINFO@,$MAKEINFO,;t t
15569 s,@SET_MAKE@,$SET_MAKE,;t t
15571 s,@ac_ct_AS@,$ac_ct_AS,;t t
15573 s,@ac_ct_AR@,$ac_ct_AR,;t t
15574 s,@RANLIB@,$RANLIB,;t t
15575 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15576 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15577 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15578 s,@MAINT@,$MAINT,;t t
15579 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
15580 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
15581 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
15582 s,@INCLTDL@,$INCLTDL,;t t
15583 s,@LIBLTDL@,$LIBLTDL,;t t
15584 s,@DIRLTDL@,$DIRLTDL,;t t
15585 s,@STRIP@,$STRIP,;t t
15586 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15587 s,@LIBTOOL@,$LIBTOOL,;t t
15588 s,@CXXCPP@,$CXXCPP,;t t
15589 s,@CPPFLAGS@,$CPPFLAGS,;t t
15590 s,@subdirs@,$subdirs,;t t
15591 s,@COMPPATH@,$COMPPATH,;t t
15592 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
15593 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
15594 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
15595 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
15596 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
15597 s,@INTERPRETER@,$INTERPRETER,;t t
15598 s,@LIBFFI@,$LIBFFI,;t t
15599 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
15600 s,@EXTRA_CC_FILES@,$EXTRA_CC_FILES,;t t
15601 s,@PLATFORMOBJS@,$PLATFORMOBJS,;t t
15602 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
15604 s,@EGREP@,$EGREP,;t t
15605 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
15606 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
15607 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
15608 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
15609 s,@X_CFLAGS@,$X_CFLAGS,;t t
15610 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15611 s,@X_LIBS@,$X_LIBS,;t t
15612 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15613 s,@TOOLKIT@,$TOOLKIT,;t t
15614 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
15615 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
15616 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
15617 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
15618 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
15619 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
15620 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15621 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
15622 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
15623 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
15624 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
15625 s,@GCLIBS@,$GCLIBS,;t t
15626 s,@GCINCS@,$GCINCS,;t t
15627 s,@GCDEPS@,$GCDEPS,;t t
15628 s,@GCOBJS@,$GCOBJS,;t t
15629 s,@GCSPEC@,$GCSPEC,;t t
15630 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
15631 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
15632 s,@THREADLIBS@,$THREADLIBS,;t t
15633 s,@THREADINCS@,$THREADINCS,;t t
15634 s,@THREADDEPS@,$THREADDEPS,;t t
15635 s,@THREADOBJS@,$THREADOBJS,;t t
15636 s,@THREADSPEC@,$THREADSPEC,;t t
15637 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
15638 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
15639 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
15640 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
15641 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
15642 s,@tool_include_dir@,$tool_include_dir,;t t
15643 s,@gcc_version@,$gcc_version,;t t
15644 s,@LIBICONV@,$LIBICONV,;t t
15645 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15646 s,@GTK_LIBS@,$GTK_LIBS,;t t
15647 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
15648 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
15649 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
15650 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
15651 s,@GCJH@,$GCJH,;t t
15654 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
15655 s,@GCJFLAGS@,$GCJFLAGS,;t t
15656 s,@ZLIBS@,$ZLIBS,;t t
15657 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
15658 s,@ZINCS@,$ZINCS,;t t
15659 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
15660 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
15661 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
15662 s,@IEEESPEC@,$IEEESPEC,;t t
15663 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
15664 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
15665 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
15666 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
15667 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
15668 s,@toolexecdir@,$toolexecdir,;t t
15669 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
15670 s,@toolexeclibdir@,$toolexeclibdir,;t t
15671 s,@GCJVERSION@,$GCJVERSION,;t t
15672 s,@ALLOCA@,$ALLOCA,;t t
15673 s,@PERL@,$PERL,;t t
15674 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
15675 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
15676 s,@here@,$here,;t t
15677 s,@LIBOBJS@,$LIBOBJS,;t t
15678 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15683 cat >>$CONFIG_STATUS <<\_ACEOF
15684 # Split the substitutions into bite-sized pieces for seds with
15685 # small command number limits, like on Digital OSF/1 and HP-UX.
15686 ac_max_sed_lines=48
15687 ac_sed_frag=1 # Number of current file.
15688 ac_beg=1 # First line for current file.
15689 ac_end=$ac_max_sed_lines # Line after last line for current file.
15692 while $ac_more_lines; do
15693 if test $ac_beg -gt 1; then
15694 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15696 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15698 if test ! -s $tmp/subs.frag; then
15699 ac_more_lines=false
15701 # The purpose of the label and of the branching condition is to
15702 # speed up the sed processing (if there are no `@' at all, there
15703 # is no need to browse any of the substitutions).
15704 # These are the two extra sed commands mentioned above.
15706 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15707 if test -z "$ac_sed_cmds"; then
15708 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15710 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15712 ac_sed_frag=`expr $ac_sed_frag + 1`
15714 ac_end=`expr $ac_end + $ac_max_sed_lines`
15717 if test -z "$ac_sed_cmds"; then
15720 fi # test -n "$CONFIG_FILES"
15723 cat >>$CONFIG_STATUS <<\_ACEOF
15724 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15725 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15727 - | *:- | *:-:* ) # input from stdin
15729 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15730 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15731 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15732 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15733 * ) ac_file_in=$ac_file.in ;;
15736 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15737 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15739 X"$ac_file" : 'X\(//\)[^/]' \| \
15740 X"$ac_file" : 'X\(//\)$' \| \
15741 X"$ac_file" : 'X\(/\)' \| \
15742 . : '\(.\)' 2>/dev/null ||
15744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15746 /^X\(\/\/\)$/{ s//\1/; q; }
15747 /^X\(\/\).*/{ s//\1/; q; }
15749 { if $as_mkdir_p; then
15754 while test ! -d "$as_dir"; do
15755 as_dirs="$as_dir $as_dirs"
15756 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15758 X"$as_dir" : 'X\(//\)[^/]' \| \
15759 X"$as_dir" : 'X\(//\)$' \| \
15760 X"$as_dir" : 'X\(/\)' \| \
15761 . : '\(.\)' 2>/dev/null ||
15763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15765 /^X\(\/\/\)$/{ s//\1/; q; }
15766 /^X\(\/\).*/{ s//\1/; q; }
15769 test ! -n "$as_dirs" || mkdir $as_dirs
15770 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15771 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15772 { (exit 1); exit 1; }; }; }
15776 if test "$ac_dir" != .; then
15777 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15778 # A "../" for each directory in $ac_dir_suffix.
15779 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15781 ac_dir_suffix= ac_top_builddir=
15785 .) # No --srcdir option. We are building in place.
15787 if test -z "$ac_top_builddir"; then
15790 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15792 [\\/]* | ?:[\\/]* ) # Absolute path.
15793 ac_srcdir=$srcdir$ac_dir_suffix;
15794 ac_top_srcdir=$srcdir ;;
15795 *) # Relative path.
15796 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15797 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15800 # Do not use `cd foo && pwd` to compute absolute paths, because
15801 # the directories may not exist.
15803 .) ac_abs_builddir="$ac_dir";;
15806 .) ac_abs_builddir=`pwd`;;
15807 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15808 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15811 case $ac_abs_builddir in
15812 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15814 case ${ac_top_builddir}. in
15815 .) ac_abs_top_builddir=$ac_abs_builddir;;
15816 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15817 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15820 case $ac_abs_builddir in
15821 .) ac_abs_srcdir=$ac_srcdir;;
15824 .) ac_abs_srcdir=$ac_abs_builddir;;
15825 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15826 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15829 case $ac_abs_builddir in
15830 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15832 case $ac_top_srcdir in
15833 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15834 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15835 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15841 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15842 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15845 if test x"$ac_file" != x-; then
15846 { echo "$as_me:$LINENO: creating $ac_file" >&5
15847 echo "$as_me: creating $ac_file" >&6;}
15850 # Let's still pretend it is `configure' which instantiates (i.e., don't
15851 # use $as_me), people would be surprised to read:
15852 # /* config.h. Generated by config.status. */
15853 if test x"$ac_file" = x-; then
15856 configure_input="$ac_file. "
15858 configure_input=$configure_input"Generated from `echo $ac_file_in |
15859 sed 's,.*/,,'` by configure."
15861 # First look for the input files in the build tree, otherwise in the
15863 ac_file_inputs=`IFS=:
15864 for f in $ac_file_in; do
15866 -) echo $tmp/stdin ;;
15868 # Absolute (can't be DOS-style, as IFS=:)
15869 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15870 echo "$as_me: error: cannot find input file: $f" >&2;}
15871 { (exit 1); exit 1; }; }
15874 if test -f "$f"; then
15877 elif test -f "$srcdir/$f"; then
15882 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15883 echo "$as_me: error: cannot find input file: $f" >&2;}
15884 { (exit 1); exit 1; }; }
15887 done` || { (exit 1); exit 1; }
15889 cat >>$CONFIG_STATUS <<_ACEOF
15893 cat >>$CONFIG_STATUS <<\_ACEOF
15895 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15896 s,@configure_input@,$configure_input,;t t
15897 s,@srcdir@,$ac_srcdir,;t t
15898 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15899 s,@top_srcdir@,$ac_top_srcdir,;t t
15900 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15901 s,@builddir@,$ac_builddir,;t t
15902 s,@abs_builddir@,$ac_abs_builddir,;t t
15903 s,@top_builddir@,$ac_top_builddir,;t t
15904 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15905 s,@INSTALL@,$ac_INSTALL,;t t
15906 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15908 if test x"$ac_file" != x-; then
15909 mv $tmp/out $ac_file
15917 cat >>$CONFIG_STATUS <<\_ACEOF
15920 # CONFIG_HEADER section.
15923 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15924 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15926 # ac_d sets the value in "#define NAME VALUE" lines.
15927 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15928 ac_dB='[ ].*$,\1#\2'
15931 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15932 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15933 ac_uB='$,\1#\2define\3'
15937 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15938 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15940 - | *:- | *:-:* ) # input from stdin
15942 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15944 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15946 * ) ac_file_in=$ac_file.in ;;
15949 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15950 echo "$as_me: creating $ac_file" >&6;}
15952 # First look for the input files in the build tree, otherwise in the
15954 ac_file_inputs=`IFS=:
15955 for f in $ac_file_in; do
15957 -) echo $tmp/stdin ;;
15959 # Absolute (can't be DOS-style, as IFS=:)
15960 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15961 echo "$as_me: error: cannot find input file: $f" >&2;}
15962 { (exit 1); exit 1; }; }
15963 # Do quote $f, to prevent DOS paths from being IFS'd.
15966 if test -f "$f"; then
15969 elif test -f "$srcdir/$f"; then
15974 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15975 echo "$as_me: error: cannot find input file: $f" >&2;}
15976 { (exit 1); exit 1; }; }
15979 done` || { (exit 1); exit 1; }
15980 # Remove the trailing spaces.
15981 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15985 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15986 # `conftest.undefs', that substitutes the proper values into
15987 # config.h.in to produce config.h. The first handles `#define'
15988 # templates, and the second `#undef' templates.
15989 # And first: Protect against being on the right side of a sed subst in
15990 # config.status. Protect against being in an unquoted here document
15991 # in config.status.
15992 rm -f conftest.defines conftest.undefs
15993 # Using a here document instead of a string reduces the quoting nightmare.
15994 # Putting comments in sed scripts is not portable.
15996 # `end' is used to avoid that the second main sed command (meant for
15997 # 0-ary CPP macros) applies to n-ary macro definitions.
15998 # See the Autoconf documentation for `clear'.
15999 cat >confdef2sed.sed <<\_ACEOF
16004 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16006 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16009 # If some macros were called several times there might be several times
16010 # the same #defines, which is useless. Nevertheless, we may not want to
16011 # sort them, since we want the *last* AC-DEFINE to be honored.
16012 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16013 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16014 rm -f confdef2sed.sed
16016 # This sed command replaces #undef with comments. This is necessary, for
16017 # example, in the case of _POSIX_SOURCE, which is predefined and required
16018 # on some systems where configure will not decide to define it.
16019 cat >>conftest.undefs <<\_ACEOF
16020 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16023 # Break up conftest.defines because some shells have a limit on the size
16024 # of here documents, and old seds have small limits too (100 cmds).
16025 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16026 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16027 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16028 echo ' :' >>$CONFIG_STATUS
16029 rm -f conftest.tail
16030 while grep . conftest.defines >/dev/null
16032 # Write a limited-size here document to $tmp/defines.sed.
16033 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16034 # Speed up: don't consider the non `#define' lines.
16035 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16036 # Work around the forget-to-reset-the-flag bug.
16037 echo 't clr' >>$CONFIG_STATUS
16038 echo ': clr' >>$CONFIG_STATUS
16039 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16041 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16043 mv $tmp/out $tmp/in
16045 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16046 rm -f conftest.defines
16047 mv conftest.tail conftest.defines
16049 rm -f conftest.defines
16050 echo ' fi # grep' >>$CONFIG_STATUS
16051 echo >>$CONFIG_STATUS
16053 # Break up conftest.undefs because some shells have a limit on the size
16054 # of here documents, and old seds have small limits too (100 cmds).
16055 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16056 rm -f conftest.tail
16057 while grep . conftest.undefs >/dev/null
16059 # Write a limited-size here document to $tmp/undefs.sed.
16060 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16061 # Speed up: don't consider the non `#undef'
16062 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16063 # Work around the forget-to-reset-the-flag bug.
16064 echo 't clr' >>$CONFIG_STATUS
16065 echo ': clr' >>$CONFIG_STATUS
16066 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16068 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16070 mv $tmp/out $tmp/in
16072 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16073 rm -f conftest.undefs
16074 mv conftest.tail conftest.undefs
16076 rm -f conftest.undefs
16078 cat >>$CONFIG_STATUS <<\_ACEOF
16079 # Let's still pretend it is `configure' which instantiates (i.e., don't
16080 # use $as_me), people would be surprised to read:
16081 # /* config.h. Generated by config.status. */
16082 if test x"$ac_file" = x-; then
16083 echo "/* Generated by configure. */" >$tmp/config.h
16085 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16087 cat $tmp/in >>$tmp/config.h
16089 if test x"$ac_file" != x-; then
16090 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16091 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16092 echo "$as_me: $ac_file is unchanged" >&6;}
16094 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16095 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16096 X"$ac_file" : 'X\(//\)[^/]' \| \
16097 X"$ac_file" : 'X\(//\)$' \| \
16098 X"$ac_file" : 'X\(/\)' \| \
16099 . : '\(.\)' 2>/dev/null ||
16101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16103 /^X\(\/\/\)$/{ s//\1/; q; }
16104 /^X\(\/\).*/{ s//\1/; q; }
16106 { if $as_mkdir_p; then
16111 while test ! -d "$as_dir"; do
16112 as_dirs="$as_dir $as_dirs"
16113 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16114 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16115 X"$as_dir" : 'X\(//\)[^/]' \| \
16116 X"$as_dir" : 'X\(//\)$' \| \
16117 X"$as_dir" : 'X\(/\)' \| \
16118 . : '\(.\)' 2>/dev/null ||
16120 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16121 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16122 /^X\(\/\/\)$/{ s//\1/; q; }
16123 /^X\(\/\).*/{ s//\1/; q; }
16126 test ! -n "$as_dirs" || mkdir $as_dirs
16127 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16128 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16129 { (exit 1); exit 1; }; }; }
16132 mv $tmp/config.h $ac_file
16136 rm -f $tmp/config.h
16140 cat >>$CONFIG_STATUS <<\_ACEOF
16143 # CONFIG_LINKS section.
16146 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
16147 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16148 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16150 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16151 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16153 if test ! -r $srcdir/$ac_source; then
16154 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16155 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16156 { (exit 1); exit 1; }; }
16160 # Make relative symlinks.
16161 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
16162 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16163 X"$ac_dest" : 'X\(//\)[^/]' \| \
16164 X"$ac_dest" : 'X\(//\)$' \| \
16165 X"$ac_dest" : 'X\(/\)' \| \
16166 . : '\(.\)' 2>/dev/null ||
16168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16169 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16170 /^X\(\/\/\)$/{ s//\1/; q; }
16171 /^X\(\/\).*/{ s//\1/; q; }
16173 { if $as_mkdir_p; then
16174 mkdir -p "$ac_dest_dir"
16176 as_dir="$ac_dest_dir"
16178 while test ! -d "$as_dir"; do
16179 as_dirs="$as_dir $as_dirs"
16180 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16182 X"$as_dir" : 'X\(//\)[^/]' \| \
16183 X"$as_dir" : 'X\(//\)$' \| \
16184 X"$as_dir" : 'X\(/\)' \| \
16185 . : '\(.\)' 2>/dev/null ||
16187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16188 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16189 /^X\(\/\/\)$/{ s//\1/; q; }
16190 /^X\(\/\).*/{ s//\1/; q; }
16193 test ! -n "$as_dirs" || mkdir $as_dirs
16194 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
16195 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
16196 { (exit 1); exit 1; }; }; }
16200 if test "$ac_dest_dir" != .; then
16201 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16202 # A "../" for each directory in $ac_dir_suffix.
16203 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16205 ac_dir_suffix= ac_top_builddir=
16209 .) # No --srcdir option. We are building in place.
16211 if test -z "$ac_top_builddir"; then
16214 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16216 [\\/]* | ?:[\\/]* ) # Absolute path.
16217 ac_srcdir=$srcdir$ac_dir_suffix;
16218 ac_top_srcdir=$srcdir ;;
16219 *) # Relative path.
16220 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16221 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16224 # Do not use `cd foo && pwd` to compute absolute paths, because
16225 # the directories may not exist.
16227 .) ac_abs_builddir="$ac_dest_dir";;
16229 case "$ac_dest_dir" in
16230 .) ac_abs_builddir=`pwd`;;
16231 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
16232 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
16235 case $ac_abs_builddir in
16236 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16238 case ${ac_top_builddir}. in
16239 .) ac_abs_top_builddir=$ac_abs_builddir;;
16240 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16241 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16244 case $ac_abs_builddir in
16245 .) ac_abs_srcdir=$ac_srcdir;;
16248 .) ac_abs_srcdir=$ac_abs_builddir;;
16249 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16250 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16253 case $ac_abs_builddir in
16254 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16256 case $ac_top_srcdir in
16257 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16258 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16259 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16265 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
16266 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
16269 # Try a symlink, then a hard link, then a copy.
16270 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
16271 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
16272 cp -p $srcdir/$ac_source $ac_dest ||
16273 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
16274 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
16275 { (exit 1); exit 1; }; }
16278 cat >>$CONFIG_STATUS <<\_ACEOF
16281 # CONFIG_COMMANDS section.
16283 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16284 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16285 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16286 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16287 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16288 X"$ac_dest" : 'X\(//\)[^/]' \| \
16289 X"$ac_dest" : 'X\(//\)$' \| \
16290 X"$ac_dest" : 'X\(/\)' \| \
16291 . : '\(.\)' 2>/dev/null ||
16293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16295 /^X\(\/\/\)$/{ s//\1/; q; }
16296 /^X\(\/\).*/{ s//\1/; q; }
16298 { if $as_mkdir_p; then
16303 while test ! -d "$as_dir"; do
16304 as_dirs="$as_dir $as_dirs"
16305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16307 X"$as_dir" : 'X\(//\)[^/]' \| \
16308 X"$as_dir" : 'X\(//\)$' \| \
16309 X"$as_dir" : 'X\(/\)' \| \
16310 . : '\(.\)' 2>/dev/null ||
16312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16314 /^X\(\/\/\)$/{ s//\1/; q; }
16315 /^X\(\/\).*/{ s//\1/; q; }
16318 test ! -n "$as_dirs" || mkdir $as_dirs
16319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16320 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16321 { (exit 1); exit 1; }; }; }
16325 if test "$ac_dir" != .; then
16326 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16327 # A "../" for each directory in $ac_dir_suffix.
16328 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16330 ac_dir_suffix= ac_top_builddir=
16334 .) # No --srcdir option. We are building in place.
16336 if test -z "$ac_top_builddir"; then
16339 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16341 [\\/]* | ?:[\\/]* ) # Absolute path.
16342 ac_srcdir=$srcdir$ac_dir_suffix;
16343 ac_top_srcdir=$srcdir ;;
16344 *) # Relative path.
16345 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16346 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16349 # Do not use `cd foo && pwd` to compute absolute paths, because
16350 # the directories may not exist.
16352 .) ac_abs_builddir="$ac_dir";;
16355 .) ac_abs_builddir=`pwd`;;
16356 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16357 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16360 case $ac_abs_builddir in
16361 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16363 case ${ac_top_builddir}. in
16364 .) ac_abs_top_builddir=$ac_abs_builddir;;
16365 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16366 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16369 case $ac_abs_builddir in
16370 .) ac_abs_srcdir=$ac_srcdir;;
16373 .) ac_abs_srcdir=$ac_abs_builddir;;
16374 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16375 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16378 case $ac_abs_builddir in
16379 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16381 case $ac_top_srcdir in
16382 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16383 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16384 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16389 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16390 echo "$as_me: executing $ac_dest commands" >&6;}
16392 default-1 ) am_indx=1
16393 for am_file in include/config.h gcj/libgcj-config.h; do
16394 case " $CONFIG_HEADERS " in
16396 echo timestamp > `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
16399 am_indx=`expr "$am_indx" + 1`
16401 default ) # Only add multilib support code if we just rebuilt top-level Makefile.
16402 case " $CONFIG_FILES " in
16404 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
16405 ac_file=Makefile . ${libgcj_basedir}/../config-ml.in
16409 # Make subdirectories and `.d' files. Look in both srcdir and
16410 # builddir for the .java files.
16413 ( (cd $srcdir && find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) ;
16414 find . \( -name '*.java' -o -name '*.cc' -o -name '*.c' \) -print) | \
16415 fgrep -v testsuite | \
16416 sed -e 's/\.java/.d/'\;'s/\.cc/.d/'\;'s/\.c/.d/' | \
16418 echo "include $f" >> deps.mk
16420 d=`echo $f | sed -e 's,/[^/]*$,,'`
16421 if test ! -d $d; then
16422 $libgcj_basedir/../mkinstalldirs $d
16432 cat >>$CONFIG_STATUS <<\_ACEOF
16434 { (exit 0); exit 0; }
16436 chmod +x $CONFIG_STATUS
16437 ac_clean_files=$ac_clean_files_save
16440 # configure is writing to config.log, and then calls config.status.
16441 # config.status does its own redirection, appending to config.log.
16442 # Unfortunately, on DOS this fails, as config.log is still kept open
16443 # by configure, so config.status won't be able to write to it; its
16444 # output is simply discarded. So we exec the FD to /dev/null,
16445 # effectively closing config.log, so it can be properly (re)opened and
16446 # appended to by config.status. When coming back to configure, we
16447 # need to make the FD available again.
16448 if test "$no_create" != yes; then
16450 ac_config_status_args=
16451 test "$silent" = yes &&
16452 ac_config_status_args="$ac_config_status_args --quiet"
16454 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16456 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16457 # would make configure fail if this is the last instruction.
16458 $ac_cs_success || { (exit 1); exit 1; }
16462 # CONFIG_SUBDIRS section.
16464 if test "$no_recursion" != yes; then
16466 # Remove --cache-file and --srcdir arguments so they do not pile up.
16467 ac_sub_configure_args=
16469 for ac_arg in $ac_configure_args; do
16470 if test -n "$ac_prev"; then
16475 -cache-file | --cache-file | --cache-fil | --cache-fi \
16476 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16477 ac_prev=cache_file ;;
16478 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16479 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16482 --config-cache | -C)
16484 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16486 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16492 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
16496 # Always prepend --prefix to ensure using the same prefix
16497 # in subdir configurations.
16498 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
16501 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16503 # Do not complain, so a configure script can configure whichever
16504 # parts of a large source tree are present.
16505 test -d $srcdir/$ac_dir || continue
16507 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
16508 echo "$as_me: configuring in $ac_dir" >&6;}
16509 { if $as_mkdir_p; then
16514 while test ! -d "$as_dir"; do
16515 as_dirs="$as_dir $as_dirs"
16516 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16517 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16518 X"$as_dir" : 'X\(//\)[^/]' \| \
16519 X"$as_dir" : 'X\(//\)$' \| \
16520 X"$as_dir" : 'X\(/\)' \| \
16521 . : '\(.\)' 2>/dev/null ||
16523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16525 /^X\(\/\/\)$/{ s//\1/; q; }
16526 /^X\(\/\).*/{ s//\1/; q; }
16529 test ! -n "$as_dirs" || mkdir $as_dirs
16530 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16531 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16532 { (exit 1); exit 1; }; }; }
16536 if test "$ac_dir" != .; then
16537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16538 # A "../" for each directory in $ac_dir_suffix.
16539 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16541 ac_dir_suffix= ac_top_builddir=
16545 .) # No --srcdir option. We are building in place.
16547 if test -z "$ac_top_builddir"; then
16550 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16552 [\\/]* | ?:[\\/]* ) # Absolute path.
16553 ac_srcdir=$srcdir$ac_dir_suffix;
16554 ac_top_srcdir=$srcdir ;;
16555 *) # Relative path.
16556 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16557 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16560 # Do not use `cd foo && pwd` to compute absolute paths, because
16561 # the directories may not exist.
16563 .) ac_abs_builddir="$ac_dir";;
16566 .) ac_abs_builddir=`pwd`;;
16567 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
16568 *) ac_abs_builddir=`pwd`/"$ac_dir";;
16571 case $ac_abs_builddir in
16572 .) ac_abs_top_builddir=${ac_top_builddir}.;;
16574 case ${ac_top_builddir}. in
16575 .) ac_abs_top_builddir=$ac_abs_builddir;;
16576 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
16577 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
16580 case $ac_abs_builddir in
16581 .) ac_abs_srcdir=$ac_srcdir;;
16584 .) ac_abs_srcdir=$ac_abs_builddir;;
16585 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
16586 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
16589 case $ac_abs_builddir in
16590 .) ac_abs_top_srcdir=$ac_top_srcdir;;
16592 case $ac_top_srcdir in
16593 .) ac_abs_top_srcdir=$ac_abs_builddir;;
16594 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
16595 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
16602 # Check for guested configure; otherwise get Cygnus style configure.
16603 if test -f $ac_srcdir/configure.gnu; then
16604 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
16605 elif test -f $ac_srcdir/configure; then
16606 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
16607 elif test -f $ac_srcdir/configure.in; then
16608 ac_sub_configure=$ac_configure
16610 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16611 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16615 # The recursion is here.
16616 if test -n "$ac_sub_configure"; then
16617 # Make the cache file name correct relative to the subdirectory.
16618 case $cache_file in
16619 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16620 *) # Relative path.
16621 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
16624 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16625 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16626 # The eval makes quoting arguments work.
16627 eval $ac_sub_configure $ac_sub_configure_args \
16628 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16629 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16630 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16631 { (exit 1); exit 1; }; }