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"
7485 # We also want to pick up some cpp flags required when including
7486 # boehm-config.h. Yuck.
7487 GCINCS
="`cat ../boehm-gc/boehm-cflags`"
7490 # The POSIX thread support needs to know this.
7492 cat >>confdefs.h
<<\_ACEOF
7493 #define HAVE_BOEHM_GC 1
7498 echo "$as_me:$LINENO: result: none" >&5
7499 echo "${ECHO_T}none" >&6
7504 { { echo "$as_me:$LINENO: error: unrecognized collector \"$GC\"" >&5
7505 echo "$as_me: error: unrecognized collector \"$GC\"" >&2;}
7506 { (exit 1); exit 1; }; }
7516 ac_config_links
="$ac_config_links include/java-gc.h:include/$GCHDR"
7520 echo "$as_me:$LINENO: checking for thread model used by GCC" >&5
7521 echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6
7522 THREADS
=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
7523 echo "$as_me:$LINENO: result: $THREADS" >&5
7524 echo "${ECHO_T}$THREADS" >&6
7535 cat >>confdefs.h
<<\_ACEOF
7536 #define LINUX_THREADS 1
7544 decosf1 | irix | mach | os2 | solaris | dce | vxworks
)
7545 { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5
7546 echo "$as_me: error: thread package $THREADS not yet supported" >&2;}
7547 { (exit 1); exit 1; }; }
7550 { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5
7551 echo "$as_me: error: $THREADS is an unknown thread package" >&2;}
7552 { (exit 1); exit 1; }; }
7568 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
7571 # Before FreeBSD 5, it didn't have -lpthread (or any library which
7572 # merely adds pthread_* functions) but it does have a -pthread switch
7573 # which is required at link-time to select -lc_r *instead* of -lc.
7574 THREADLDFLAGS
=-pthread
7575 # Don't set THREADSPEC here as might be expected since -pthread is
7576 # not processed when found within a spec file, it must come from
7577 # the command line. For now, the user must provide the -pthread
7578 # switch to link code compiled with gcj. In future, consider adding
7579 # support for weak references to pthread_* functions ala gthr.h API.
7580 THREADSPEC
='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
7583 # FreeBSD 5 implements a model much closer to other modern UNIX
7584 # which support threads. However, it still does not support
7586 THREADLDFLAGS
=-pthread
7590 THREADCXXFLAGS
=-pthread
7591 # boehm-gc needs some functions from librt, so link that too.
7592 THREADLIBS
='-lpthread -lrt'
7593 THREADSPEC
='-lpthread -lrt'
7596 THREADLIBS
=-lpthread
7597 THREADSPEC
=-lpthread
7600 THREADOBJS
=posix-threads.lo
7601 THREADH
=posix-threads.h
7602 # MIT pthreads doesn't seem to have the mutexattr functions.
7603 # But for now we don't check for it. We just assume you aren't
7604 # using MIT pthreads.
7606 cat >>confdefs.h
<<\_ACEOF
7607 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7611 # If we're using the Boehm GC, then we happen to know that it
7612 # defines _REENTRANT, so we don't bother. Eww.
7613 if test "$GC" != boehm
; then
7615 cat >>confdefs.h
<<\_ACEOF
7616 #define _REENTRANT 1
7621 cat >>confdefs.h
<<\_ACEOF
7622 #define _POSIX_PTHREAD_SEMANTICS 1
7628 THREADOBJS
=win32-threads.lo
7629 THREADH
=win32-threads.h
7633 THREADOBJS
=no-threads.lo
7634 THREADH
=no-threads.h
7637 ac_config_links
="$ac_config_links include/java-threads.h:include/$THREADH"
7647 if test -d sysdep
; then true
; else mkdir sysdep
; fi
7648 ac_config_links
="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
7652 # Hash synchronization is only useful with posix threads right now.
7653 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
7654 HASH_SYNC_SPEC
=-fhash-synchronization
7656 cat >>confdefs.h
<<\_ACEOF
7657 #define JV_HASH_SYNCHRONIZATION 1
7666 if test "$GCC" = yes; then
7674 # We're in the tree with gcc, and need to include some of its headers.
7675 GCC_UNWIND_INCLUDE
='-I$(libgcj_basedir)/../gcc'
7677 # Figure out where generated headers like libgcj-config.h get installed.
7678 gcc_version_trigger
=${libgcj_basedir}/..
/gcc
/version.c
7679 gcc_version_full
=`grep version_string ${gcc_version_trigger} | sed -e 's/.*\"\([^\"]*\)\".*/\1/'`
7680 gcc_version
=`echo ${gcc_version_full} | sed -e 's/\([^ ]*\) .*/\1/'`
7681 tool_include_dir
='$(libdir)/gcc/$(target_noncanonical)/'${gcc_version}/include
7685 if test "x${with_newlib}" = "xyes"; then
7686 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
7687 # may not work correctly, because the compiler may not be able to
7690 # We assume newlib. This lets us hard-code the functions we know
7693 cat >>confdefs.h
<<\_ACEOF
7694 #define HAVE_MEMMOVE 1
7698 cat >>confdefs.h
<<\_ACEOF
7699 #define HAVE_MEMCPY 1
7703 cat >>confdefs.h
<<\_ACEOF
7704 #define HAVE_STRERROR 1
7708 cat >>confdefs.h
<<\_ACEOF
7713 cat >>confdefs.h
<<\_ACEOF
7714 #define HAVE_GMTIME_R 1
7718 cat >>confdefs.h
<<\_ACEOF
7719 #define HAVE_LOCALTIME_R 1
7723 cat >>confdefs.h
<<\_ACEOF
7724 #define HAVE_USLEEP_DECL 1
7727 # This is only for POSIX threads.
7729 cat >>confdefs.h
<<\_ACEOF
7730 #define HAVE_PTHREAD_MUTEXATTR_INIT 1
7733 # We also assume we are using gcc, which provides alloca.
7734 cat >>confdefs.h
<<\_ACEOF
7735 #define HAVE_ALLOCA 1
7739 # Assume we do not have getuid and friends.
7741 cat >>confdefs.h
<<\_ACEOF
7755 for ac_func
in strerror ioctl
select fstat open fsync
sleep opendir
7757 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7758 echo "$as_me:$LINENO: checking for $ac_func" >&5
7759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7760 if eval "test \"\${$as_ac_var+set}\" = set"; then
7761 echo $ECHO_N "(cached) $ECHO_C" >&6
7763 if test x
$gcc_no_link = xyes
; then
7764 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7765 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7766 { (exit 1); exit 1; }; }
7768 cat >conftest.
$ac_ext <<_ACEOF
7771 cat confdefs.h
>>conftest.
$ac_ext
7772 cat >>conftest.
$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7776 #define $ac_func innocuous_$ac_func
7778 /* System header to define __stub macros and hopefully few prototypes,
7779 which can conflict with char $ac_func (); below.
7780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 <limits.h> exists even on freestanding compilers. */
7784 # include <limits.h>
7786 # include <assert.h>
7791 /* Override any gcc2 internal prototype to avoid an error. */
7796 /* We use char because int might match the return type of a gcc2
7797 builtin and then its argument prototype would still apply. */
7799 /* The GNU C library defines this for functions which it implements
7800 to always fail with ENOSYS. Some functions are actually named
7801 something starting with __ and the normal name is an alias. */
7802 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7805 char (*f) () = $ac_func;
7814 return f != $ac_func;
7819 rm -f conftest.
$ac_objext conftest
$ac_exeext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7821 (eval $ac_link) 2>conftest.er1
7823 grep -v '^ *+' conftest.er1
>conftest.err
7825 cat conftest.err
>&5
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); } &&
7828 { ac_try
='test -z "$ac_c_werror_flag"
7829 || test ! -s conftest.err'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; } &&
7835 { ac_try
='test -s conftest$ac_exeext'
7836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 eval "$as_ac_var=yes"
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.
$ac_ext >&5
7846 eval "$as_ac_var=no"
7848 rm -f conftest.err conftest.
$ac_objext \
7849 conftest
$ac_exeext conftest.
$ac_ext
7851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7852 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7853 if test `eval echo '${'$as_ac_var'}'` = yes; then
7854 cat >>confdefs.h
<<_ACEOF
7855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7866 for ac_func
in gmtime_r localtime_r readdir_r getpwuid_r getcwd
7868 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7869 echo "$as_me:$LINENO: checking for $ac_func" >&5
7870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7871 if eval "test \"\${$as_ac_var+set}\" = set"; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 if test x
$gcc_no_link = xyes
; then
7875 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7876 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7877 { (exit 1); exit 1; }; }
7879 cat >conftest.
$ac_ext <<_ACEOF
7882 cat confdefs.h
>>conftest.
$ac_ext
7883 cat >>conftest.
$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7887 #define $ac_func innocuous_$ac_func
7889 /* System header to define __stub macros and hopefully few prototypes,
7890 which can conflict with char $ac_func (); below.
7891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7892 <limits.h> exists even on freestanding compilers. */
7895 # include <limits.h>
7897 # include <assert.h>
7902 /* Override any gcc2 internal prototype to avoid an error. */
7907 /* We use char because int might match the return type of a gcc2
7908 builtin and then its argument prototype would still apply. */
7910 /* The GNU C library defines this for functions which it implements
7911 to always fail with ENOSYS. Some functions are actually named
7912 something starting with __ and the normal name is an alias. */
7913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7916 char (*f) () = $ac_func;
7925 return f != $ac_func;
7930 rm -f conftest.
$ac_objext conftest
$ac_exeext
7931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7932 (eval $ac_link) 2>conftest.er1
7934 grep -v '^ *+' conftest.er1
>conftest.err
7936 cat conftest.err
>&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); } &&
7939 { ac_try
='test -z "$ac_c_werror_flag"
7940 || test ! -s conftest.err'
7941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); }; } &&
7946 { ac_try
='test -s conftest$ac_exeext'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; }; then
7952 eval "$as_ac_var=yes"
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.
$ac_ext >&5
7957 eval "$as_ac_var=no"
7959 rm -f conftest.err conftest.
$ac_objext \
7960 conftest
$ac_exeext conftest.
$ac_ext
7962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7964 if test `eval echo '${'$as_ac_var'}'` = yes; then
7965 cat >>confdefs.h
<<_ACEOF
7966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7981 for ac_func
in access stat mkdir rename
rmdir unlink realpath utime
chmod
7983 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7984 echo "$as_me:$LINENO: checking for $ac_func" >&5
7985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7986 if eval "test \"\${$as_ac_var+set}\" = set"; then
7987 echo $ECHO_N "(cached) $ECHO_C" >&6
7989 if test x
$gcc_no_link = xyes
; then
7990 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
7991 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
7992 { (exit 1); exit 1; }; }
7994 cat >conftest.
$ac_ext <<_ACEOF
7997 cat confdefs.h
>>conftest.
$ac_ext
7998 cat >>conftest.
$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8002 #define $ac_func innocuous_$ac_func
8004 /* System header to define __stub macros and hopefully few prototypes,
8005 which can conflict with char $ac_func (); below.
8006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8007 <limits.h> exists even on freestanding compilers. */
8010 # include <limits.h>
8012 # include <assert.h>
8017 /* Override any gcc2 internal prototype to avoid an error. */
8022 /* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8025 /* The GNU C library defines this for functions which it implements
8026 to always fail with ENOSYS. Some functions are actually named
8027 something starting with __ and the normal name is an alias. */
8028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8031 char (*f) () = $ac_func;
8040 return f != $ac_func;
8045 rm -f conftest.
$ac_objext conftest
$ac_exeext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8047 (eval $ac_link) 2>conftest.er1
8049 grep -v '^ *+' conftest.er1
>conftest.err
8051 cat conftest.err
>&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } &&
8054 { ac_try
='test -z "$ac_c_werror_flag"
8055 || test ! -s conftest.err'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; } &&
8061 { ac_try
='test -s conftest$ac_exeext'
8062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }; }; then
8067 eval "$as_ac_var=yes"
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.
$ac_ext >&5
8072 eval "$as_ac_var=no"
8074 rm -f conftest.err conftest.
$ac_objext \
8075 conftest
$ac_exeext conftest.
$ac_ext
8077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8078 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8079 if test `eval echo '${'$as_ac_var'}'` = yes; then
8080 cat >>confdefs.h
<<_ACEOF
8081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8089 for ac_func
in nl_langinfo setlocale
8091 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8092 echo "$as_me:$LINENO: checking for $ac_func" >&5
8093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8094 if eval "test \"\${$as_ac_var+set}\" = set"; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 if test x
$gcc_no_link = xyes
; then
8098 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8099 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8100 { (exit 1); exit 1; }; }
8102 cat >conftest.
$ac_ext <<_ACEOF
8105 cat confdefs.h
>>conftest.
$ac_ext
8106 cat >>conftest.
$ac_ext <<_ACEOF
8107 /* end confdefs.h. */
8108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8110 #define $ac_func innocuous_$ac_func
8112 /* System header to define __stub macros and hopefully few prototypes,
8113 which can conflict with char $ac_func (); below.
8114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8115 <limits.h> exists even on freestanding compilers. */
8118 # include <limits.h>
8120 # include <assert.h>
8125 /* Override any gcc2 internal prototype to avoid an error. */
8130 /* We use char because int might match the return type of a gcc2
8131 builtin and then its argument prototype would still apply. */
8133 /* The GNU C library defines this for functions which it implements
8134 to always fail with ENOSYS. Some functions are actually named
8135 something starting with __ and the normal name is an alias. */
8136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8139 char (*f) () = $ac_func;
8148 return f != $ac_func;
8153 rm -f conftest.
$ac_objext conftest
$ac_exeext
8154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8155 (eval $ac_link) 2>conftest.er1
8157 grep -v '^ *+' conftest.er1
>conftest.err
8159 cat conftest.err
>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); } &&
8162 { ac_try
='test -z "$ac_c_werror_flag"
8163 || test ! -s conftest.err'
8164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); }; } &&
8169 { ac_try
='test -s conftest$ac_exeext'
8170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); }; }; then
8175 eval "$as_ac_var=yes"
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.
$ac_ext >&5
8180 eval "$as_ac_var=no"
8182 rm -f conftest.err conftest.
$ac_objext \
8183 conftest
$ac_exeext conftest.
$ac_ext
8185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8187 if test `eval echo '${'$as_ac_var'}'` = yes; then
8188 cat >>confdefs.h
<<_ACEOF
8189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8197 for ac_func
in inet_aton inet_addr
8199 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8200 echo "$as_me:$LINENO: checking for $ac_func" >&5
8201 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8202 if eval "test \"\${$as_ac_var+set}\" = set"; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8205 if test x
$gcc_no_link = xyes
; then
8206 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8207 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8208 { (exit 1); exit 1; }; }
8210 cat >conftest.
$ac_ext <<_ACEOF
8213 cat confdefs.h
>>conftest.
$ac_ext
8214 cat >>conftest.
$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8218 #define $ac_func innocuous_$ac_func
8220 /* System header to define __stub macros and hopefully few prototypes,
8221 which can conflict with char $ac_func (); below.
8222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8223 <limits.h> exists even on freestanding compilers. */
8226 # include <limits.h>
8228 # include <assert.h>
8233 /* Override any gcc2 internal prototype to avoid an error. */
8238 /* We use char because int might match the return type of a gcc2
8239 builtin and then its argument prototype would still apply. */
8241 /* The GNU C library defines this for functions which it implements
8242 to always fail with ENOSYS. Some functions are actually named
8243 something starting with __ and the normal name is an alias. */
8244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8247 char (*f) () = $ac_func;
8256 return f != $ac_func;
8261 rm -f conftest.
$ac_objext conftest
$ac_exeext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>conftest.er1
8265 grep -v '^ *+' conftest.er1
>conftest.err
8267 cat conftest.err
>&5
8268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
8270 { ac_try
='test -z "$ac_c_werror_flag"
8271 || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try
='test -s conftest$ac_exeext'
8278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 eval "$as_ac_var=yes"
8285 echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.
$ac_ext >&5
8288 eval "$as_ac_var=no"
8290 rm -f conftest.err conftest.
$ac_objext \
8291 conftest
$ac_exeext conftest.
$ac_ext
8293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8295 if test `eval echo '${'$as_ac_var'}'` = yes; then
8296 cat >>confdefs.h
<<_ACEOF
8297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8306 for ac_func
in inet_pton uname inet_ntoa
8308 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8309 echo "$as_me:$LINENO: checking for $ac_func" >&5
8310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_var+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 if test x
$gcc_no_link = xyes
; then
8315 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8316 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8317 { (exit 1); exit 1; }; }
8319 cat >conftest.
$ac_ext <<_ACEOF
8322 cat confdefs.h
>>conftest.
$ac_ext
8323 cat >>conftest.
$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8327 #define $ac_func innocuous_$ac_func
8329 /* System header to define __stub macros and hopefully few prototypes,
8330 which can conflict with char $ac_func (); below.
8331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8332 <limits.h> exists even on freestanding compilers. */
8335 # include <limits.h>
8337 # include <assert.h>
8342 /* Override any gcc2 internal prototype to avoid an error. */
8347 /* We use char because int might match the return type of a gcc2
8348 builtin and then its argument prototype would still apply. */
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8356 char (*f) () = $ac_func;
8365 return f != $ac_func;
8370 rm -f conftest.
$ac_objext conftest
$ac_exeext
8371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8372 (eval $ac_link) 2>conftest.er1
8374 grep -v '^ *+' conftest.er1
>conftest.err
8376 cat conftest.err
>&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } &&
8379 { ac_try
='test -z "$ac_c_werror_flag"
8380 || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try
='test -s conftest$ac_exeext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 eval "$as_ac_var=yes"
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.
$ac_ext >&5
8397 eval "$as_ac_var=no"
8399 rm -f conftest.err conftest.
$ac_objext \
8400 conftest
$ac_exeext conftest.
$ac_ext
8402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8403 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8404 if test `eval echo '${'$as_ac_var'}'` = yes; then
8405 cat >>confdefs.h
<<_ACEOF
8406 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8417 for ac_func
in fork execvp pipe sigaction ftruncate
8419 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8420 echo "$as_me:$LINENO: checking for $ac_func" >&5
8421 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8422 if eval "test \"\${$as_ac_var+set}\" = set"; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8425 if test x
$gcc_no_link = xyes
; then
8426 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8427 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8428 { (exit 1); exit 1; }; }
8430 cat >conftest.
$ac_ext <<_ACEOF
8433 cat confdefs.h
>>conftest.
$ac_ext
8434 cat >>conftest.
$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8438 #define $ac_func innocuous_$ac_func
8440 /* System header to define __stub macros and hopefully few prototypes,
8441 which can conflict with char $ac_func (); below.
8442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8443 <limits.h> exists even on freestanding compilers. */
8446 # include <limits.h>
8448 # include <assert.h>
8453 /* Override any gcc2 internal prototype to avoid an error. */
8458 /* We use char because int might match the return type of a gcc2
8459 builtin and then its argument prototype would still apply. */
8461 /* The GNU C library defines this for functions which it implements
8462 to always fail with ENOSYS. Some functions are actually named
8463 something starting with __ and the normal name is an alias. */
8464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8467 char (*f) () = $ac_func;
8476 return f != $ac_func;
8481 rm -f conftest.
$ac_objext conftest
$ac_exeext
8482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8483 (eval $ac_link) 2>conftest.er1
8485 grep -v '^ *+' conftest.er1
>conftest.err
8487 cat conftest.err
>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } &&
8490 { ac_try
='test -z "$ac_c_werror_flag"
8491 || test ! -s conftest.err'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try
='test -s conftest$ac_exeext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 eval "$as_ac_var=yes"
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.
$ac_ext >&5
8508 eval "$as_ac_var=no"
8510 rm -f conftest.err conftest.
$ac_objext \
8511 conftest
$ac_exeext conftest.
$ac_ext
8513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8514 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8515 if test `eval echo '${'$as_ac_var'}'` = yes; then
8516 cat >>confdefs.h
<<_ACEOF
8517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8523 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8524 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8525 if test "${ac_cv_header_stdc+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 cat >conftest.
$ac_ext <<_ACEOF
8531 cat confdefs.h
>>conftest.
$ac_ext
8532 cat >>conftest.
$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8547 rm -f conftest.
$ac_objext
8548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8549 (eval $ac_compile) 2>conftest.er1
8551 grep -v '^ *+' conftest.er1
>conftest.err
8553 cat conftest.err
>&5
8554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555 (exit $ac_status); } &&
8556 { ac_try
='test -z "$ac_c_werror_flag"
8557 || test ! -s conftest.err'
8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562 (exit $ac_status); }; } &&
8563 { ac_try
='test -s conftest.$ac_objext'
8564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); }; }; then
8569 ac_cv_header_stdc
=yes
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.
$ac_ext >&5
8574 ac_cv_header_stdc
=no
8576 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8578 if test $ac_cv_header_stdc = yes; then
8579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8580 cat >conftest.
$ac_ext <<_ACEOF
8583 cat confdefs.h
>>conftest.
$ac_ext
8584 cat >>conftest.
$ac_ext <<_ACEOF
8585 /* end confdefs.h. */
8589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8590 $EGREP "memchr" >/dev
/null
2>&1; then
8593 ac_cv_header_stdc
=no
8599 if test $ac_cv_header_stdc = yes; then
8600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8601 cat >conftest.
$ac_ext <<_ACEOF
8604 cat confdefs.h
>>conftest.
$ac_ext
8605 cat >>conftest.
$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611 $EGREP "free" >/dev
/null
2>&1; then
8614 ac_cv_header_stdc
=no
8620 if test $ac_cv_header_stdc = yes; then
8621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8622 if test "$cross_compiling" = yes; then
8625 cat >conftest.
$ac_ext <<_ACEOF
8628 cat confdefs.h
>>conftest.
$ac_ext
8629 cat >>conftest.
$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 #if ((' ' & 0x0FF) == 0x020)
8633 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8634 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8636 # define ISLOWER(c) \
8637 (('a' <= (c) && (c) <= 'i') \
8638 || ('j' <= (c) && (c) <= 'r') \
8639 || ('s' <= (c) && (c) <= 'z'))
8640 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8643 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8648 for (i = 0; i < 256; i++)
8649 if (XOR (islower (i), ISLOWER (i))
8650 || toupper (i) != TOUPPER (i))
8655 rm -f conftest
$ac_exeext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8657 (eval $ac_link) 2>&5
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8668 echo "$as_me: program exited with status $ac_status" >&5
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.
$ac_ext >&5
8673 ac_cv_header_stdc
=no
8675 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
8679 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8680 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8681 if test $ac_cv_header_stdc = yes; then
8683 cat >>confdefs.h
<<\_ACEOF
8684 #define STDC_HEADERS 1
8689 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8699 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8700 inttypes.h stdint.h unistd.h
8702 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8703 echo "$as_me:$LINENO: checking for $ac_header" >&5
8704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 cat >conftest.
$ac_ext <<_ACEOF
8711 cat confdefs.h
>>conftest.
$ac_ext
8712 cat >>conftest.
$ac_ext <<_ACEOF
8713 /* end confdefs.h. */
8714 $ac_includes_default
8716 #include <$ac_header>
8718 rm -f conftest.
$ac_objext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8720 (eval $ac_compile) 2>conftest.er1
8722 grep -v '^ *+' conftest.er1
>conftest.err
8724 cat conftest.err
>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } &&
8727 { ac_try
='test -z "$ac_c_werror_flag"
8728 || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try
='test -s conftest.$ac_objext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 eval "$as_ac_Header=yes"
8742 echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.
$ac_ext >&5
8745 eval "$as_ac_Header=no"
8747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8752 cat >>confdefs.h
<<_ACEOF
8753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8764 for ac_header
in execinfo.h unistd.h dlfcn.h
8766 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo "$as_me:$LINENO: checking for $ac_header" >&5
8769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8776 # Is the header compilable?
8777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8779 cat >conftest.
$ac_ext <<_ACEOF
8782 cat confdefs.h
>>conftest.
$ac_ext
8783 cat >>conftest.
$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8785 $ac_includes_default
8786 #include <$ac_header>
8788 rm -f conftest.
$ac_objext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>conftest.er1
8792 grep -v '^ *+' conftest.er1
>conftest.err
8794 cat conftest.err
>&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try
='test -z "$ac_c_werror_flag"
8798 || test ! -s conftest.err'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; } &&
8804 { ac_try
='test -s conftest.$ac_objext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_header_compiler
=yes
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.
$ac_ext >&5
8815 ac_header_compiler
=no
8817 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8818 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8819 echo "${ECHO_T}$ac_header_compiler" >&6
8821 # Is the header present?
8822 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8824 cat >conftest.
$ac_ext <<_ACEOF
8827 cat confdefs.h
>>conftest.
$ac_ext
8828 cat >>conftest.
$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8830 #include <$ac_header>
8832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8833 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8835 grep -v '^ *+' conftest.er1
>conftest.err
8837 cat conftest.err
>&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } >/dev
/null
; then
8840 if test -s conftest.err
; then
8841 ac_cpp_err
=$ac_c_preproc_warn_flag
8842 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8849 if test -z "$ac_cpp_err"; then
8850 ac_header_preproc
=yes
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.
$ac_ext >&5
8855 ac_header_preproc
=no
8857 rm -f conftest.err conftest.
$ac_ext
8858 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8859 echo "${ECHO_T}$ac_header_preproc" >&6
8861 # So? What about this header?
8862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8868 ac_header_preproc
=yes
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8885 ## ------------------------------------------ ##
8886 ## Report this to the AC_PACKAGE_NAME lists. ##
8887 ## ------------------------------------------ ##
8890 sed "s/^/$as_me: WARNING: /" >&2
8893 echo "$as_me:$LINENO: checking for $ac_header" >&5
8894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 eval "$as_ac_Header=\$ac_header_preproc"
8900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8905 cat >>confdefs.h
<<_ACEOF
8906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8913 echo "$as_me:$LINENO: checking for backtrace" >&5
8914 echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
8915 if test "${ac_cv_func_backtrace+set}" = set; then
8916 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 if test x
$gcc_no_link = xyes
; then
8919 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
8920 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
8921 { (exit 1); exit 1; }; }
8923 cat >conftest.
$ac_ext <<_ACEOF
8926 cat confdefs.h
>>conftest.
$ac_ext
8927 cat >>conftest.
$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 /* Define backtrace to an innocuous variant, in case <limits.h> declares backtrace.
8930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8931 #define backtrace innocuous_backtrace
8933 /* System header to define __stub macros and hopefully few prototypes,
8934 which can conflict with char backtrace (); below.
8935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8936 <limits.h> exists even on freestanding compilers. */
8939 # include <limits.h>
8941 # include <assert.h>
8946 /* Override any gcc2 internal prototype to avoid an error. */
8951 /* We use char because int might match the return type of a gcc2
8952 builtin and then its argument prototype would still apply. */
8954 /* The GNU C library defines this for functions which it implements
8955 to always fail with ENOSYS. Some functions are actually named
8956 something starting with __ and the normal name is an alias. */
8957 #if defined (__stub_backtrace) || defined (__stub___backtrace)
8960 char (*f) () = backtrace;
8969 return f != backtrace;
8974 rm -f conftest.
$ac_objext conftest
$ac_exeext
8975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976 (eval $ac_link) 2>conftest.er1
8978 grep -v '^ *+' conftest.er1
>conftest.err
8980 cat conftest.err
>&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } &&
8983 { ac_try
='test -z "$ac_c_werror_flag"
8984 || test ! -s conftest.err'
8985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); }; } &&
8990 { ac_try
='test -s conftest$ac_exeext'
8991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); }; }; then
8996 ac_cv_func_backtrace
=yes
8998 echo "$as_me: failed program was:" >&5
8999 sed 's/^/| /' conftest.
$ac_ext >&5
9001 ac_cv_func_backtrace
=no
9003 rm -f conftest.err conftest.
$ac_objext \
9004 conftest
$ac_exeext conftest.
$ac_ext
9006 echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9007 echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9008 if test $ac_cv_func_backtrace = yes; then
9012 # Has broken backtrace()
9015 # Has broken backtrace(), but we supply our own.
9016 if test -d sysdep
; then true
; else mkdir
-p sysdep
; fi
9017 EXTRA_CC_FILES
="${EXTRA_CC_FILES} sysdep/dwarf2-backtrace.cc"
9019 cat >>confdefs.h
<<\_ACEOF
9020 #define HAVE_BACKTRACE 1
9026 cat >>confdefs.h
<<\_ACEOF
9027 #define HAVE_BACKTRACE 1
9037 # Has backtrace() defined in libgcj itself
9039 cat >>confdefs.h
<<\_ACEOF
9040 #define HAVE_BACKTRACE 1
9049 echo "$as_me:$LINENO: checking for dladdr in -ldl" >&5
9050 echo $ECHO_N "checking for dladdr in -ldl... $ECHO_C" >&6
9051 if test "${ac_cv_lib_dl_dladdr+set}" = set; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 ac_check_lib_save_LIBS
=$LIBS
9056 if test x
$gcc_no_link = xyes
; then
9057 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9058 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9059 { (exit 1); exit 1; }; }
9061 cat >conftest.
$ac_ext <<_ACEOF
9064 cat confdefs.h
>>conftest.
$ac_ext
9065 cat >>conftest.
$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9068 /* Override any gcc2 internal prototype to avoid an error. */
9072 /* We use char because int might match the return type of a gcc2
9073 builtin and then its argument prototype would still apply. */
9083 rm -f conftest.
$ac_objext conftest
$ac_exeext
9084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9085 (eval $ac_link) 2>conftest.er1
9087 grep -v '^ *+' conftest.er1
>conftest.err
9089 cat conftest.err
>&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } &&
9092 { ac_try
='test -z "$ac_c_werror_flag"
9093 || test ! -s conftest.err'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; } &&
9099 { ac_try
='test -s conftest$ac_exeext'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; }; then
9105 ac_cv_lib_dl_dladdr
=yes
9107 echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.
$ac_ext >&5
9110 ac_cv_lib_dl_dladdr
=no
9112 rm -f conftest.err conftest.
$ac_objext \
9113 conftest
$ac_exeext conftest.
$ac_ext
9114 LIBS
=$ac_check_lib_save_LIBS
9116 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dladdr" >&5
9117 echo "${ECHO_T}$ac_cv_lib_dl_dladdr" >&6
9118 if test $ac_cv_lib_dl_dladdr = yes; then
9120 if test "x${disable_dladdr}" = "xyes"; then
9125 cat >>confdefs.h
<<\_ACEOF
9126 #define HAVE_DLADDR 1
9133 if test x
"$build" = x
"$host"; then
9134 echo "$as_me:$LINENO: checking for /proc/self/exe" >&5
9135 echo $ECHO_N "checking for /proc/self/exe... $ECHO_C" >&6
9136 if test "${ac_cv_file__proc_self_exe+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 test "$cross_compiling" = yes &&
9140 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
9141 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9142 { (exit 1); exit 1; }; }
9143 if test -r "/proc/self/exe"; then
9144 ac_cv_file__proc_self_exe
=yes
9146 ac_cv_file__proc_self_exe
=no
9149 echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_exe" >&5
9150 echo "${ECHO_T}$ac_cv_file__proc_self_exe" >&6
9151 if test $ac_cv_file__proc_self_exe = yes; then
9153 cat >>confdefs.h
<<_ACEOF
9154 #define HAVE__PROC_SELF_EXE 1
9159 cat >>confdefs.h
<<\_ACEOF
9160 #define HAVE_PROC_SELF_EXE 1
9169 cat >>confdefs.h
<<\_ACEOF
9170 #define HAVE_PROC_SELF_EXE 1
9179 am_cv_lib_iconv_ldpath
=
9181 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
9182 if test "${with_libiconv_prefix+set}" = set; then
9183 withval
="$with_libiconv_prefix"
9185 for dir
in `echo "$withval" | tr : ' '`; do
9186 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
9187 if test -d $dir/lib
; then am_cv_lib_iconv_ldpath
="-L$dir/lib"; fi
9192 echo "$as_me:$LINENO: checking for iconv" >&5
9193 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9194 if test "${am_cv_func_iconv+set}" = set; then
9195 echo $ECHO_N "(cached) $ECHO_C" >&6
9198 am_cv_func_iconv
="no, consider installing GNU libiconv"
9200 if test x
$gcc_no_link = xyes
; then
9201 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9202 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9203 { (exit 1); exit 1; }; }
9205 cat >conftest.
$ac_ext <<_ACEOF
9208 cat confdefs.h
>>conftest.
$ac_ext
9209 cat >>conftest.
$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9216 iconv_t cd = iconv_open("","");
9217 iconv(cd,NULL,NULL,NULL,NULL);
9223 rm -f conftest.
$ac_objext conftest
$ac_exeext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9227 grep -v '^ *+' conftest.er1
>conftest.err
9229 cat conftest.err
>&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try
='test -z "$ac_c_werror_flag"
9233 || test ! -s conftest.err'
9234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238 (exit $ac_status); }; } &&
9239 { ac_try
='test -s conftest$ac_exeext'
9240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244 (exit $ac_status); }; }; then
9245 am_cv_func_iconv
=yes
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.
$ac_ext >&5
9251 rm -f conftest.err conftest.
$ac_objext \
9252 conftest
$ac_exeext conftest.
$ac_ext
9253 if test "$am_cv_func_iconv" != yes; then
9254 am_save_LIBS
="$LIBS"
9255 LIBS
="$LIBS $am_cv_libiconv_ldpath -liconv"
9256 if test x
$gcc_no_link = xyes
; then
9257 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9258 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9259 { (exit 1); exit 1; }; }
9261 cat >conftest.
$ac_ext <<_ACEOF
9264 cat confdefs.h
>>conftest.
$ac_ext
9265 cat >>conftest.
$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9272 iconv_t cd = iconv_open("","");
9273 iconv(cd,NULL,NULL,NULL,NULL);
9279 rm -f conftest.
$ac_objext conftest
$ac_exeext
9280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9281 (eval $ac_link) 2>conftest.er1
9283 grep -v '^ *+' conftest.er1
>conftest.err
9285 cat conftest.err
>&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } &&
9288 { ac_try
='test -z "$ac_c_werror_flag"
9289 || test ! -s conftest.err'
9290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; } &&
9295 { ac_try
='test -s conftest$ac_exeext'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; }; then
9302 am_cv_func_iconv
=yes
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.
$ac_ext >&5
9308 rm -f conftest.err conftest.
$ac_objext \
9309 conftest
$ac_exeext conftest.
$ac_ext
9310 LIBS
="$am_save_LIBS"
9314 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9315 echo "${ECHO_T}$am_cv_func_iconv" >&6
9316 if test "$am_cv_func_iconv" = yes; then
9318 cat >>confdefs.h
<<\_ACEOF
9319 #define HAVE_ICONV 1
9322 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9323 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9324 if test "${am_cv_proto_iconv+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 cat >conftest.
$ac_ext <<_ACEOF
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9341 #if defined(__STDC__) || defined(__cplusplus)
9342 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9355 rm -f conftest.
$ac_objext
9356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9357 (eval $ac_compile) 2>conftest.er1
9359 grep -v '^ *+' conftest.er1
>conftest.err
9361 cat conftest.err
>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try
='test -z "$ac_c_werror_flag"
9365 || test ! -s conftest.err'
9366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); }; } &&
9371 { ac_try
='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 am_cv_proto_iconv_arg1
=""
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.
$ac_ext >&5
9382 am_cv_proto_iconv_arg1
="const"
9384 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9385 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);"
9388 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9389 echo "$as_me:$LINENO: result: ${ac_t:-
9390 }$am_cv_proto_iconv" >&5
9391 echo "${ECHO_T}${ac_t:-
9392 }$am_cv_proto_iconv" >&6
9394 cat >>confdefs.h
<<_ACEOF
9395 #define ICONV_CONST $am_cv_proto_iconv_arg1
9400 if test "$am_cv_lib_iconv" = yes; then
9401 LIBICONV
="$am_cv_lib_iconv_ldpath -liconv"
9406 for ac_header
in locale.h
9408 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9410 echo "$as_me:$LINENO: checking for $ac_header" >&5
9411 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9413 echo $ECHO_N "(cached) $ECHO_C" >&6
9415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9418 # Is the header compilable?
9419 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9421 cat >conftest.
$ac_ext <<_ACEOF
9424 cat confdefs.h
>>conftest.
$ac_ext
9425 cat >>conftest.
$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427 $ac_includes_default
9428 #include <$ac_header>
9430 rm -f conftest.
$ac_objext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9432 (eval $ac_compile) 2>conftest.er1
9434 grep -v '^ *+' conftest.er1
>conftest.err
9436 cat conftest.err
>&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try
='test -z "$ac_c_werror_flag"
9440 || test ! -s conftest.err'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } &&
9446 { ac_try
='test -s conftest.$ac_objext'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 ac_header_compiler
=yes
9454 echo "$as_me: failed program was:" >&5
9455 sed 's/^/| /' conftest.
$ac_ext >&5
9457 ac_header_compiler
=no
9459 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9461 echo "${ECHO_T}$ac_header_compiler" >&6
9463 # Is the header present?
9464 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9466 cat >conftest.
$ac_ext <<_ACEOF
9469 cat confdefs.h
>>conftest.
$ac_ext
9470 cat >>conftest.
$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 #include <$ac_header>
9474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9475 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9477 grep -v '^ *+' conftest.er1
>conftest.err
9479 cat conftest.err
>&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } >/dev
/null
; then
9482 if test -s conftest.err
; then
9483 ac_cpp_err
=$ac_c_preproc_warn_flag
9484 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9491 if test -z "$ac_cpp_err"; then
9492 ac_header_preproc
=yes
9494 echo "$as_me: failed program was:" >&5
9495 sed 's/^/| /' conftest.
$ac_ext >&5
9497 ac_header_preproc
=no
9499 rm -f conftest.err conftest.
$ac_ext
9500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9501 echo "${ECHO_T}$ac_header_preproc" >&6
9503 # So? What about this header?
9504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9510 ac_header_preproc
=yes
9513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9527 ## ------------------------------------------ ##
9528 ## Report this to the AC_PACKAGE_NAME lists. ##
9529 ## ------------------------------------------ ##
9532 sed "s/^/$as_me: WARNING: /" >&2
9535 echo "$as_me:$LINENO: checking for $ac_header" >&5
9536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9538 echo $ECHO_N "(cached) $ECHO_C" >&6
9540 eval "$as_ac_Header=\$ac_header_preproc"
9542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9543 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9547 cat >>confdefs.h
<<_ACEOF
9548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9555 if test $ac_cv_header_locale_h = yes; then
9556 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9557 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9558 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 if test x
$gcc_no_link = xyes
; then
9562 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9563 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9564 { (exit 1); exit 1; }; }
9566 cat >conftest.
$ac_ext <<_ACEOF
9569 cat confdefs.h
>>conftest.
$ac_ext
9570 cat >>conftest.
$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9581 rm -f conftest.
$ac_objext conftest
$ac_exeext
9582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9583 (eval $ac_link) 2>conftest.er1
9585 grep -v '^ *+' conftest.er1
>conftest.err
9587 cat conftest.err
>&5
9588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } &&
9590 { ac_try
='test -z "$ac_c_werror_flag"
9591 || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try
='test -s conftest$ac_exeext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 am_cv_val_LC_MESSAGES
=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.
$ac_ext >&5
9608 am_cv_val_LC_MESSAGES
=no
9610 rm -f conftest.err conftest.
$ac_objext \
9611 conftest
$ac_exeext conftest.
$ac_ext
9613 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9614 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9615 if test $am_cv_val_LC_MESSAGES = yes; then
9617 cat >>confdefs.h
<<\_ACEOF
9618 #define HAVE_LC_MESSAGES 1
9623 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9624 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9625 if test "${ac_cv_struct_tm+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 cat >conftest.
$ac_ext <<_ACEOF
9631 cat confdefs.h
>>conftest.
$ac_ext
9632 cat >>conftest.
$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 #include <sys/types.h>
9640 struct tm *tp; tp->tm_sec;
9645 rm -f conftest.
$ac_objext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9647 (eval $ac_compile) 2>conftest.er1
9649 grep -v '^ *+' conftest.er1
>conftest.err
9651 cat conftest.err
>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try
='test -z "$ac_c_werror_flag"
9655 || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try
='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_cv_struct_tm
=time.h
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.
$ac_ext >&5
9672 ac_cv_struct_tm
=sys
/time.h
9674 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9676 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9677 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9678 if test $ac_cv_struct_tm = sys
/time.h
; then
9680 cat >>confdefs.h
<<\_ACEOF
9681 #define TM_IN_SYS_TIME 1
9686 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9687 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9688 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9689 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 cat >conftest.
$ac_ext <<_ACEOF
9694 cat confdefs.h
>>conftest.
$ac_ext
9695 cat >>conftest.
$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9697 #include <sys/types.h>
9698 #include <$ac_cv_struct_tm>
9704 static struct tm ac_aggr;
9705 if (ac_aggr.tm_zone)
9711 rm -f conftest.
$ac_objext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9713 (eval $ac_compile) 2>conftest.er1
9715 grep -v '^ *+' conftest.er1
>conftest.err
9717 cat conftest.err
>&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try
='test -z "$ac_c_werror_flag"
9721 || test ! -s conftest.err'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try
='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_cv_member_struct_tm_tm_zone
=yes
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.
$ac_ext >&5
9738 cat >conftest.
$ac_ext <<_ACEOF
9741 cat confdefs.h
>>conftest.
$ac_ext
9742 cat >>conftest.
$ac_ext <<_ACEOF
9743 /* end confdefs.h. */
9744 #include <sys/types.h>
9745 #include <$ac_cv_struct_tm>
9751 static struct tm ac_aggr;
9752 if (sizeof ac_aggr.tm_zone)
9758 rm -f conftest.
$ac_objext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9760 (eval $ac_compile) 2>conftest.er1
9762 grep -v '^ *+' conftest.er1
>conftest.err
9764 cat conftest.err
>&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try
='test -z "$ac_c_werror_flag"
9768 || test ! -s conftest.err'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; } &&
9774 { ac_try
='test -s conftest.$ac_objext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9780 ac_cv_member_struct_tm_tm_zone
=yes
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.
$ac_ext >&5
9785 ac_cv_member_struct_tm_tm_zone
=no
9787 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9789 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9791 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9792 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9793 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9795 cat >>confdefs.h
<<_ACEOF
9796 #define HAVE_STRUCT_TM_TM_ZONE 1
9802 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9804 cat >>confdefs.h
<<\_ACEOF
9805 #define HAVE_TM_ZONE 1
9809 echo "$as_me:$LINENO: checking for tzname" >&5
9810 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9811 if test "${ac_cv_var_tzname+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 if test x
$gcc_no_link = xyes
; then
9815 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9816 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9817 { (exit 1); exit 1; }; }
9819 cat >conftest.
$ac_ext <<_ACEOF
9822 cat confdefs.h
>>conftest.
$ac_ext
9823 cat >>conftest.
$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9826 #ifndef tzname /* For SGI. */
9827 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9838 rm -f conftest.
$ac_objext conftest
$ac_exeext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9840 (eval $ac_link) 2>conftest.er1
9842 grep -v '^ *+' conftest.er1
>conftest.err
9844 cat conftest.err
>&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } &&
9847 { ac_try
='test -z "$ac_c_werror_flag"
9848 || test ! -s conftest.err'
9849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); }; } &&
9854 { ac_try
='test -s conftest$ac_exeext'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9860 ac_cv_var_tzname
=yes
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.
$ac_ext >&5
9867 rm -f conftest.err conftest.
$ac_objext \
9868 conftest
$ac_exeext conftest.
$ac_ext
9870 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9871 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9872 if test $ac_cv_var_tzname = yes; then
9874 cat >>confdefs.h
<<\_ACEOF
9875 #define HAVE_TZNAME 1
9884 for ac_func
in gethostbyname_r
9886 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9887 echo "$as_me:$LINENO: checking for $ac_func" >&5
9888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9889 if eval "test \"\${$as_ac_var+set}\" = set"; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 if test x
$gcc_no_link = xyes
; then
9893 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
9894 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
9895 { (exit 1); exit 1; }; }
9897 cat >conftest.
$ac_ext <<_ACEOF
9900 cat confdefs.h
>>conftest.
$ac_ext
9901 cat >>conftest.
$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9905 #define $ac_func innocuous_$ac_func
9907 /* System header to define __stub macros and hopefully few prototypes,
9908 which can conflict with char $ac_func (); below.
9909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9910 <limits.h> exists even on freestanding compilers. */
9913 # include <limits.h>
9915 # include <assert.h>
9920 /* Override any gcc2 internal prototype to avoid an error. */
9925 /* We use char because int might match the return type of a gcc2
9926 builtin and then its argument prototype would still apply. */
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9934 char (*f) () = $ac_func;
9943 return f != $ac_func;
9948 rm -f conftest.
$ac_objext conftest
$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>conftest.er1
9952 grep -v '^ *+' conftest.er1
>conftest.err
9954 cat conftest.err
>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try
='test -z "$ac_c_werror_flag"
9958 || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try
='test -s conftest$ac_exeext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 eval "$as_ac_var=yes"
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.
$ac_ext >&5
9975 eval "$as_ac_var=no"
9977 rm -f conftest.err conftest.
$ac_objext \
9978 conftest
$ac_exeext conftest.
$ac_ext
9980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9981 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9982 if test `eval echo '${'$as_ac_var'}'` = yes; then
9983 cat >>confdefs.h
<<_ACEOF
9984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9988 cat >>confdefs.h
<<\_ACEOF
9989 #define HAVE_GETHOSTBYNAME_R 1
9992 # There are two different kinds of gethostbyname_r.
9993 # We look for the one that returns `int'.
9994 # Hopefully this check is robust enough.
9995 cat >conftest.
$ac_ext <<_ACEOF
9998 cat confdefs.h
>>conftest.
$ac_ext
9999 cat >>conftest.
$ac_ext <<_ACEOF
10000 /* end confdefs.h. */
10004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10005 $EGREP "int.*gethostbyname_r" >/dev
/null
2>&1; then
10008 cat >>confdefs.h
<<\_ACEOF
10009 #define GETHOSTBYNAME_R_RETURNS_INT 1
10016 case " $GCINCS " in
10017 *" -D_REENTRANT "*) ;;
10019 echo "$as_me:$LINENO: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
10020 echo $ECHO_N "checking whether gethostbyname_r declaration requires -D_REENTRANT... $ECHO_C" >&6
10021 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 ac_cpp
='$CXXCPP $CPPFLAGS'
10028 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10029 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10030 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
10032 cat >conftest.
$ac_ext <<_ACEOF
10035 cat confdefs.h
>>conftest.
$ac_ext
10036 cat >>conftest.
$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10042 gethostbyname_r("", 0, 0);
10047 rm -f conftest.
$ac_objext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10049 (eval $ac_compile) 2>conftest.er1
10051 grep -v '^ *+' conftest.er1
>conftest.err
10053 cat conftest.err
>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } &&
10056 { ac_try
='test -z "$ac_cxx_werror_flag"
10057 || test ! -s conftest.err'
10058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10059 (eval $ac_try) 2>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); }; } &&
10063 { ac_try
='test -s conftest.$ac_objext'
10064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10065 (eval $ac_try) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); }; }; then
10069 libjava_cv_gethostbyname_r_needs_reentrant
=no
10071 echo "$as_me: failed program was:" >&5
10072 sed 's/^/| /' conftest.
$ac_ext >&5
10074 CPPFLAGS_SAVE
="$CPPFLAGS"
10075 CPPFLAGS
="$CPPFLAGS -D_REENTRANT"
10076 cat >conftest.
$ac_ext <<_ACEOF
10079 cat confdefs.h
>>conftest.
$ac_ext
10080 cat >>conftest.
$ac_ext <<_ACEOF
10081 /* end confdefs.h. */
10086 gethostbyname_r("", 0, 0);
10091 rm -f conftest.
$ac_objext
10092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093 (eval $ac_compile) 2>conftest.er1
10095 grep -v '^ *+' conftest.er1
>conftest.err
10097 cat conftest.err
>&5
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); } &&
10100 { ac_try
='test -z "$ac_cxx_werror_flag"
10101 || test ! -s conftest.err'
10102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10103 (eval $ac_try) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); }; } &&
10107 { ac_try
='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 libjava_cv_gethostbyname_r_needs_reentrant
=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.
$ac_ext >&5
10118 libjava_cv_gethostbyname_r_needs_reentrant
=fail
10120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10121 CPPFLAGS
="$CPPFLAGS_SAVE"
10124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10126 ac_cpp
='$CPP $CPPFLAGS'
10127 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10128 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10129 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10133 echo "$as_me:$LINENO: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
10134 echo "${ECHO_T}$libjava_cv_gethostbyname_r_needs_reentrant" >&6
10135 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes
; then
10137 cat >>confdefs.h
<<\_ACEOF
10138 #define _REENTRANT 1
10145 echo "$as_me:$LINENO: checking for struct hostent_data" >&5
10146 echo $ECHO_N "checking for struct hostent_data... $ECHO_C" >&6
10147 if test "${libjava_cv_struct_hostent_data+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 cat >conftest.
$ac_ext <<_ACEOF
10153 cat confdefs.h
>>conftest.
$ac_ext
10154 cat >>conftest.
$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10157 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
10158 # define _REENTRANT 1
10164 struct hostent_data data;
10169 rm -f conftest.
$ac_objext
10170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10171 (eval $ac_compile) 2>conftest.er1
10173 grep -v '^ *+' conftest.er1
>conftest.err
10175 cat conftest.err
>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try
='test -z "$ac_c_werror_flag"
10179 || test ! -s conftest.err'
10180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10181 (eval $ac_try) 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); }; } &&
10185 { ac_try
='test -s conftest.$ac_objext'
10186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10187 (eval $ac_try) 2>&5
10189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10190 (exit $ac_status); }; }; then
10191 libjava_cv_struct_hostent_data
=yes
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.
$ac_ext >&5
10196 libjava_cv_struct_hostent_data
=no
10198 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10200 echo "$as_me:$LINENO: result: $libjava_cv_struct_hostent_data" >&5
10201 echo "${ECHO_T}$libjava_cv_struct_hostent_data" >&6
10202 if test "x$libjava_cv_struct_hostent_data" = xyes
; then
10204 cat >>confdefs.h
<<\_ACEOF
10205 #define HAVE_STRUCT_HOSTENT_DATA 1
10214 # FIXME: libjava source code expects to find a prototype for
10215 # gethostbyaddr_r in netdb.h. The outer check ensures that
10216 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
10217 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
10218 # linkage check is enough, yet C++ code requires proper prototypes.)
10219 cat >conftest.
$ac_ext <<_ACEOF
10222 cat confdefs.h
>>conftest.
$ac_ext
10223 cat >>conftest.
$ac_ext <<_ACEOF
10224 /* end confdefs.h. */
10228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10229 $EGREP "gethostbyaddr_r" >/dev
/null
2>&1; then
10232 for ac_func
in gethostbyaddr_r
10234 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10235 echo "$as_me:$LINENO: checking for $ac_func" >&5
10236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10237 if eval "test \"\${$as_ac_var+set}\" = set"; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 if test x
$gcc_no_link = xyes
; then
10241 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10242 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10243 { (exit 1); exit 1; }; }
10245 cat >conftest.
$ac_ext <<_ACEOF
10248 cat confdefs.h
>>conftest.
$ac_ext
10249 cat >>conftest.
$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10253 #define $ac_func innocuous_$ac_func
10255 /* System header to define __stub macros and hopefully few prototypes,
10256 which can conflict with char $ac_func (); below.
10257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10258 <limits.h> exists even on freestanding compilers. */
10261 # include <limits.h>
10263 # include <assert.h>
10268 /* Override any gcc2 internal prototype to avoid an error. */
10273 /* We use char because int might match the return type of a gcc2
10274 builtin and then its argument prototype would still apply. */
10276 /* The GNU C library defines this for functions which it implements
10277 to always fail with ENOSYS. Some functions are actually named
10278 something starting with __ and the normal name is an alias. */
10279 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10282 char (*f) () = $ac_func;
10291 return f != $ac_func;
10296 rm -f conftest.
$ac_objext conftest
$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>conftest.er1
10300 grep -v '^ *+' conftest.er1
>conftest.err
10302 cat conftest.err
>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } &&
10305 { ac_try
='test -z "$ac_c_werror_flag"
10306 || test ! -s conftest.err'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; } &&
10312 { ac_try
='test -s conftest$ac_exeext'
10313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10314 (eval $ac_try) 2>&5
10316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317 (exit $ac_status); }; }; then
10318 eval "$as_ac_var=yes"
10320 echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.
$ac_ext >&5
10323 eval "$as_ac_var=no"
10325 rm -f conftest.err conftest.
$ac_objext \
10326 conftest
$ac_exeext conftest.
$ac_ext
10328 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10329 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10330 if test `eval echo '${'$as_ac_var'}'` = yes; then
10331 cat >>confdefs.h
<<_ACEOF
10332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10336 cat >>confdefs.h
<<\_ACEOF
10337 #define HAVE_GETHOSTBYADDR_R 1
10340 # There are two different kinds of gethostbyaddr_r.
10341 # We look for the one that returns `int'.
10342 # Hopefully this check is robust enough.
10343 cat >conftest.
$ac_ext <<_ACEOF
10346 cat confdefs.h
>>conftest.
$ac_ext
10347 cat >>conftest.
$ac_ext <<_ACEOF
10348 /* end confdefs.h. */
10352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10353 $EGREP "int.*gethostbyaddr_r" >/dev
/null
2>&1; then
10356 cat >>confdefs.h
<<\_ACEOF
10357 #define GETHOSTBYADDR_R_RETURNS_INT 1
10371 for ac_func
in gethostname
10373 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10374 echo "$as_me:$LINENO: checking for $ac_func" >&5
10375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10376 if eval "test \"\${$as_ac_var+set}\" = set"; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 if test x
$gcc_no_link = xyes
; then
10380 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10381 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10382 { (exit 1); exit 1; }; }
10384 cat >conftest.
$ac_ext <<_ACEOF
10387 cat confdefs.h
>>conftest.
$ac_ext
10388 cat >>conftest.
$ac_ext <<_ACEOF
10389 /* end confdefs.h. */
10390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10392 #define $ac_func innocuous_$ac_func
10394 /* System header to define __stub macros and hopefully few prototypes,
10395 which can conflict with char $ac_func (); below.
10396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10397 <limits.h> exists even on freestanding compilers. */
10400 # include <limits.h>
10402 # include <assert.h>
10407 /* Override any gcc2 internal prototype to avoid an error. */
10412 /* We use char because int might match the return type of a gcc2
10413 builtin and then its argument prototype would still apply. */
10415 /* The GNU C library defines this for functions which it implements
10416 to always fail with ENOSYS. Some functions are actually named
10417 something starting with __ and the normal name is an alias. */
10418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10421 char (*f) () = $ac_func;
10430 return f != $ac_func;
10435 rm -f conftest.
$ac_objext conftest
$ac_exeext
10436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10437 (eval $ac_link) 2>conftest.er1
10439 grep -v '^ *+' conftest.er1
>conftest.err
10441 cat conftest.err
>&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } &&
10444 { ac_try
='test -z "$ac_c_werror_flag"
10445 || test ! -s conftest.err'
10446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10447 (eval $ac_try) 2>&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); }; } &&
10451 { ac_try
='test -s conftest$ac_exeext'
10452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10453 (eval $ac_try) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 eval "$as_ac_var=yes"
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.
$ac_ext >&5
10462 eval "$as_ac_var=no"
10464 rm -f conftest.err conftest.
$ac_objext \
10465 conftest
$ac_exeext conftest.
$ac_ext
10467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10468 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10469 if test `eval echo '${'$as_ac_var'}'` = yes; then
10470 cat >>confdefs.h
<<_ACEOF
10471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10475 cat >>confdefs.h
<<\_ACEOF
10476 #define HAVE_GETHOSTNAME 1
10479 cat >conftest.
$ac_ext <<_ACEOF
10482 cat confdefs.h
>>conftest.
$ac_ext
10483 cat >>conftest.
$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 #include <unistd.h>
10488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10489 $EGREP "gethostname" >/dev
/null
2>&1; then
10492 cat >>confdefs.h
<<\_ACEOF
10493 #define HAVE_GETHOSTNAME_DECL 1
10504 for ac_func
in usleep
10506 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10507 echo "$as_me:$LINENO: checking for $ac_func" >&5
10508 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10509 if eval "test \"\${$as_ac_var+set}\" = set"; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 if test x
$gcc_no_link = xyes
; then
10513 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10514 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10515 { (exit 1); exit 1; }; }
10517 cat >conftest.
$ac_ext <<_ACEOF
10520 cat confdefs.h
>>conftest.
$ac_ext
10521 cat >>conftest.
$ac_ext <<_ACEOF
10522 /* end confdefs.h. */
10523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10525 #define $ac_func innocuous_$ac_func
10527 /* System header to define __stub macros and hopefully few prototypes,
10528 which can conflict with char $ac_func (); below.
10529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10530 <limits.h> exists even on freestanding compilers. */
10533 # include <limits.h>
10535 # include <assert.h>
10540 /* Override any gcc2 internal prototype to avoid an error. */
10545 /* We use char because int might match the return type of a gcc2
10546 builtin and then its argument prototype would still apply. */
10548 /* The GNU C library defines this for functions which it implements
10549 to always fail with ENOSYS. Some functions are actually named
10550 something starting with __ and the normal name is an alias. */
10551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10554 char (*f) () = $ac_func;
10563 return f != $ac_func;
10568 rm -f conftest.
$ac_objext conftest
$ac_exeext
10569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10570 (eval $ac_link) 2>conftest.er1
10572 grep -v '^ *+' conftest.er1
>conftest.err
10574 cat conftest.err
>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } &&
10577 { ac_try
='test -z "$ac_c_werror_flag"
10578 || test ! -s conftest.err'
10579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10580 (eval $ac_try) 2>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); }; } &&
10584 { ac_try
='test -s conftest$ac_exeext'
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 eval "$as_ac_var=yes"
10592 echo "$as_me: failed program was:" >&5
10593 sed 's/^/| /' conftest.
$ac_ext >&5
10595 eval "$as_ac_var=no"
10597 rm -f conftest.err conftest.
$ac_objext \
10598 conftest
$ac_exeext conftest.
$ac_ext
10600 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10601 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10602 if test `eval echo '${'$as_ac_var'}'` = yes; then
10603 cat >>confdefs.h
<<_ACEOF
10604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10607 cat >conftest.
$ac_ext <<_ACEOF
10610 cat confdefs.h
>>conftest.
$ac_ext
10611 cat >>conftest.
$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10613 #include <unistd.h>
10616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10617 $EGREP "usleep" >/dev
/null
2>&1; then
10620 cat >>confdefs.h
<<\_ACEOF
10621 #define HAVE_USLEEP_DECL 1
10631 # Look for these functions in the thread library, but only bother
10632 # if using POSIX threads.
10633 if test "$THREADS" = posix
; then
10635 LIBS
="$LIBS $THREADLIBS"
10636 # Some POSIX thread systems don't have pthread_mutexattr_settype.
10640 for ac_func
in pthread_mutexattr_settype pthread_mutexattr_setkind_np
10642 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10643 echo "$as_me:$LINENO: checking for $ac_func" >&5
10644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10645 if eval "test \"\${$as_ac_var+set}\" = set"; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 if test x
$gcc_no_link = xyes
; then
10649 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10650 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10651 { (exit 1); exit 1; }; }
10653 cat >conftest.
$ac_ext <<_ACEOF
10656 cat confdefs.h
>>conftest.
$ac_ext
10657 cat >>conftest.
$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10661 #define $ac_func innocuous_$ac_func
10663 /* System header to define __stub macros and hopefully few prototypes,
10664 which can conflict with char $ac_func (); below.
10665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10666 <limits.h> exists even on freestanding compilers. */
10669 # include <limits.h>
10671 # include <assert.h>
10676 /* Override any gcc2 internal prototype to avoid an error. */
10681 /* We use char because int might match the return type of a gcc2
10682 builtin and then its argument prototype would still apply. */
10684 /* The GNU C library defines this for functions which it implements
10685 to always fail with ENOSYS. Some functions are actually named
10686 something starting with __ and the normal name is an alias. */
10687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10690 char (*f) () = $ac_func;
10699 return f != $ac_func;
10704 rm -f conftest.
$ac_objext conftest
$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706 (eval $ac_link) 2>conftest.er1
10708 grep -v '^ *+' conftest.er1
>conftest.err
10710 cat conftest.err
>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try
='test -z "$ac_c_werror_flag"
10714 || test ! -s conftest.err'
10715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716 (eval $ac_try) 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try
='test -s conftest$ac_exeext'
10721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722 (eval $ac_try) 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; }; then
10726 eval "$as_ac_var=yes"
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.
$ac_ext >&5
10731 eval "$as_ac_var=no"
10733 rm -f conftest.err conftest.
$ac_objext \
10734 conftest
$ac_exeext conftest.
$ac_ext
10736 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10737 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10738 if test `eval echo '${'$as_ac_var'}'` = yes; then
10739 cat >>confdefs.h
<<_ACEOF
10740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10747 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
10748 # Solaris 7 the name librt is preferred.
10750 for ac_func
in sched_yield
10752 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10753 echo "$as_me:$LINENO: checking for $ac_func" >&5
10754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10755 if eval "test \"\${$as_ac_var+set}\" = set"; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 if test x
$gcc_no_link = xyes
; then
10759 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10760 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10761 { (exit 1); exit 1; }; }
10763 cat >conftest.
$ac_ext <<_ACEOF
10766 cat confdefs.h
>>conftest.
$ac_ext
10767 cat >>conftest.
$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10771 #define $ac_func innocuous_$ac_func
10773 /* System header to define __stub macros and hopefully few prototypes,
10774 which can conflict with char $ac_func (); below.
10775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10776 <limits.h> exists even on freestanding compilers. */
10779 # include <limits.h>
10781 # include <assert.h>
10786 /* Override any gcc2 internal prototype to avoid an error. */
10791 /* We use char because int might match the return type of a gcc2
10792 builtin and then its argument prototype would still apply. */
10794 /* The GNU C library defines this for functions which it implements
10795 to always fail with ENOSYS. Some functions are actually named
10796 something starting with __ and the normal name is an alias. */
10797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10800 char (*f) () = $ac_func;
10809 return f != $ac_func;
10814 rm -f conftest.
$ac_objext conftest
$ac_exeext
10815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10816 (eval $ac_link) 2>conftest.er1
10818 grep -v '^ *+' conftest.er1
>conftest.err
10820 cat conftest.err
>&5
10821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822 (exit $ac_status); } &&
10823 { ac_try
='test -z "$ac_c_werror_flag"
10824 || test ! -s conftest.err'
10825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10826 (eval $ac_try) 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; } &&
10830 { ac_try
='test -s conftest$ac_exeext'
10831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10832 (eval $ac_try) 2>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); }; }; then
10836 eval "$as_ac_var=yes"
10838 echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.
$ac_ext >&5
10841 eval "$as_ac_var=no"
10843 rm -f conftest.err conftest.
$ac_objext \
10844 conftest
$ac_exeext conftest.
$ac_ext
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10848 if test `eval echo '${'$as_ac_var'}'` = yes; then
10849 cat >>confdefs.h
<<_ACEOF
10850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10855 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
10856 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
10857 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
10858 echo $ECHO_N "(cached) $ECHO_C" >&6
10860 ac_check_lib_save_LIBS
=$LIBS
10862 if test x
$gcc_no_link = xyes
; then
10863 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10864 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10865 { (exit 1); exit 1; }; }
10867 cat >conftest.
$ac_ext <<_ACEOF
10870 cat confdefs.h
>>conftest.
$ac_ext
10871 cat >>conftest.
$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10874 /* Override any gcc2 internal prototype to avoid an error. */
10878 /* We use char because int might match the return type of a gcc2
10879 builtin and then its argument prototype would still apply. */
10880 char sched_yield ();
10889 rm -f conftest.
$ac_objext conftest
$ac_exeext
10890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10891 (eval $ac_link) 2>conftest.er1
10893 grep -v '^ *+' conftest.er1
>conftest.err
10895 cat conftest.err
>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); } &&
10898 { ac_try
='test -z "$ac_c_werror_flag"
10899 || test ! -s conftest.err'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; } &&
10905 { ac_try
='test -s conftest$ac_exeext'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; }; then
10911 ac_cv_lib_rt_sched_yield
=yes
10913 echo "$as_me: failed program was:" >&5
10914 sed 's/^/| /' conftest.
$ac_ext >&5
10916 ac_cv_lib_rt_sched_yield
=no
10918 rm -f conftest.err conftest.
$ac_objext \
10919 conftest
$ac_exeext conftest.
$ac_ext
10920 LIBS
=$ac_check_lib_save_LIBS
10922 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
10923 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
10924 if test $ac_cv_lib_rt_sched_yield = yes; then
10926 cat >>confdefs.h
<<\_ACEOF
10927 #define HAVE_SCHED_YIELD 1
10930 THREADLIBS
="$THREADLIBS -lrt"
10931 THREADSPEC
="$THREADSPEC -lrt"
10934 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
10935 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
10936 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10939 ac_check_lib_save_LIBS
=$LIBS
10940 LIBS
="-lposix4 $LIBS"
10941 if test x
$gcc_no_link = xyes
; then
10942 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
10943 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
10944 { (exit 1); exit 1; }; }
10946 cat >conftest.
$ac_ext <<_ACEOF
10949 cat confdefs.h
>>conftest.
$ac_ext
10950 cat >>conftest.
$ac_ext <<_ACEOF
10951 /* end confdefs.h. */
10953 /* Override any gcc2 internal prototype to avoid an error. */
10957 /* We use char because int might match the return type of a gcc2
10958 builtin and then its argument prototype would still apply. */
10959 char sched_yield ();
10968 rm -f conftest.
$ac_objext conftest
$ac_exeext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10970 (eval $ac_link) 2>conftest.er1
10972 grep -v '^ *+' conftest.er1
>conftest.err
10974 cat conftest.err
>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try
='test -z "$ac_c_werror_flag"
10978 || test ! -s conftest.err'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; } &&
10984 { ac_try
='test -s conftest$ac_exeext'
10985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10986 (eval $ac_try) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); }; }; then
10990 ac_cv_lib_posix4_sched_yield
=yes
10992 echo "$as_me: failed program was:" >&5
10993 sed 's/^/| /' conftest.
$ac_ext >&5
10995 ac_cv_lib_posix4_sched_yield
=no
10997 rm -f conftest.err conftest.
$ac_objext \
10998 conftest
$ac_exeext conftest.
$ac_ext
10999 LIBS
=$ac_check_lib_save_LIBS
11001 echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
11002 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
11003 if test $ac_cv_lib_posix4_sched_yield = yes; then
11005 cat >>confdefs.h
<<\_ACEOF
11006 #define HAVE_SCHED_YIELD 1
11009 THREADLIBS
="$THREADLIBS -lposix4"
11010 THREADSPEC
="$THREADSPEC -lposix4"
11020 # We can save a little space at runtime if the mutex has m_count
11021 # or __m_count. This is a nice hack for Linux.
11022 cat >conftest.
$ac_ext <<_ACEOF
11025 cat confdefs.h
>>conftest.
$ac_ext
11026 cat >>conftest.
$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 #include <pthread.h>
11033 extern pthread_mutex_t *mutex; int q = mutex->m_count;
11039 rm -f conftest.
$ac_objext
11040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11041 (eval $ac_compile) 2>conftest.er1
11043 grep -v '^ *+' conftest.er1
>conftest.err
11045 cat conftest.err
>&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } &&
11048 { ac_try
='test -z "$ac_c_werror_flag"
11049 || test ! -s conftest.err'
11050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11051 (eval $ac_try) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; } &&
11055 { ac_try
='test -s conftest.$ac_objext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11062 cat >>confdefs.h
<<\_ACEOF
11063 #define PTHREAD_MUTEX_HAVE_M_COUNT 1
11067 echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.
$ac_ext >&5
11071 cat >conftest.
$ac_ext <<_ACEOF
11074 cat confdefs.h
>>conftest.
$ac_ext
11075 cat >>conftest.
$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 #include <pthread.h>
11082 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
11088 rm -f conftest.
$ac_objext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090 (eval $ac_compile) 2>conftest.er1
11092 grep -v '^ *+' conftest.er1
>conftest.err
11094 cat conftest.err
>&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } &&
11097 { ac_try
='test -z "$ac_c_werror_flag"
11098 || test ! -s conftest.err'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; } &&
11104 { ac_try
='test -s conftest.$ac_objext'
11105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106 (eval $ac_try) 2>&5
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); }; }; then
11111 cat >>confdefs.h
<<\_ACEOF
11112 #define PTHREAD_MUTEX_HAVE___M_COUNT 1
11116 echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.
$ac_ext >&5
11120 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11122 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11125 # We require a way to get the time.
11130 for ac_func
in gettimeofday
time ftime
11132 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11133 echo "$as_me:$LINENO: checking for $ac_func" >&5
11134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11135 if eval "test \"\${$as_ac_var+set}\" = set"; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 if test x
$gcc_no_link = xyes
; then
11139 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11140 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11141 { (exit 1); exit 1; }; }
11143 cat >conftest.
$ac_ext <<_ACEOF
11146 cat confdefs.h
>>conftest.
$ac_ext
11147 cat >>conftest.
$ac_ext <<_ACEOF
11148 /* end confdefs.h. */
11149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11151 #define $ac_func innocuous_$ac_func
11153 /* System header to define __stub macros and hopefully few prototypes,
11154 which can conflict with char $ac_func (); below.
11155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 <limits.h> exists even on freestanding compilers. */
11159 # include <limits.h>
11161 # include <assert.h>
11166 /* Override any gcc2 internal prototype to avoid an error. */
11171 /* We use char because int might match the return type of a gcc2
11172 builtin and then its argument prototype would still apply. */
11174 /* The GNU C library defines this for functions which it implements
11175 to always fail with ENOSYS. Some functions are actually named
11176 something starting with __ and the normal name is an alias. */
11177 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11180 char (*f) () = $ac_func;
11189 return f != $ac_func;
11194 rm -f conftest.
$ac_objext conftest
$ac_exeext
11195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11196 (eval $ac_link) 2>conftest.er1
11198 grep -v '^ *+' conftest.er1
>conftest.err
11200 cat conftest.err
>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } &&
11203 { ac_try
='test -z "$ac_c_werror_flag"
11204 || test ! -s conftest.err'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; } &&
11210 { ac_try
='test -s conftest$ac_exeext'
11211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212 (eval $ac_try) 2>&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); }; }; then
11216 eval "$as_ac_var=yes"
11218 echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.
$ac_ext >&5
11221 eval "$as_ac_var=no"
11223 rm -f conftest.err conftest.
$ac_objext \
11224 conftest
$ac_exeext conftest.
$ac_ext
11226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11228 if test `eval echo '${'$as_ac_var'}'` = yes; then
11229 cat >>confdefs.h
<<_ACEOF
11230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11236 if test "$time_found" = no
; then
11237 { { echo "$as_me:$LINENO: error: no function found to get the time" >&5
11238 echo "$as_me: error: no function found to get the time" >&2;}
11239 { (exit 1); exit 1; }; }
11243 for ac_func
in memmove
11245 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 echo "$as_me:$LINENO: checking for $ac_func" >&5
11247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11248 if eval "test \"\${$as_ac_var+set}\" = set"; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 if test x
$gcc_no_link = xyes
; then
11252 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11253 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11254 { (exit 1); exit 1; }; }
11256 cat >conftest.
$ac_ext <<_ACEOF
11259 cat confdefs.h
>>conftest.
$ac_ext
11260 cat >>conftest.
$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264 #define $ac_func innocuous_$ac_func
11266 /* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char $ac_func (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
11272 # include <limits.h>
11274 # include <assert.h>
11279 /* Override any gcc2 internal prototype to avoid an error. */
11284 /* We use char because int might match the return type of a gcc2
11285 builtin and then its argument prototype would still apply. */
11287 /* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11293 char (*f) () = $ac_func;
11302 return f != $ac_func;
11307 rm -f conftest.
$ac_objext conftest
$ac_exeext
11308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11309 (eval $ac_link) 2>conftest.er1
11311 grep -v '^ *+' conftest.er1
>conftest.err
11313 cat conftest.err
>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try
='test -z "$ac_c_werror_flag"
11317 || test ! -s conftest.err'
11318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11319 (eval $ac_try) 2>&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); }; } &&
11323 { ac_try
='test -s conftest$ac_exeext'
11324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 eval "$as_ac_var=yes"
11331 echo "$as_me: failed program was:" >&5
11332 sed 's/^/| /' conftest.
$ac_ext >&5
11334 eval "$as_ac_var=no"
11336 rm -f conftest.err conftest.
$ac_objext \
11337 conftest
$ac_exeext conftest.
$ac_ext
11339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11340 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11341 if test `eval echo '${'$as_ac_var'}'` = yes; then
11342 cat >>confdefs.h
<<_ACEOF
11343 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11350 # We require memcpy.
11353 for ac_func
in memcpy
11355 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11356 echo "$as_me:$LINENO: checking for $ac_func" >&5
11357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11358 if eval "test \"\${$as_ac_var+set}\" = set"; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11361 if test x
$gcc_no_link = xyes
; then
11362 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11363 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11364 { (exit 1); exit 1; }; }
11366 cat >conftest.
$ac_ext <<_ACEOF
11369 cat confdefs.h
>>conftest.
$ac_ext
11370 cat >>conftest.
$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11374 #define $ac_func innocuous_$ac_func
11376 /* System header to define __stub macros and hopefully few prototypes,
11377 which can conflict with char $ac_func (); below.
11378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11379 <limits.h> exists even on freestanding compilers. */
11382 # include <limits.h>
11384 # include <assert.h>
11389 /* Override any gcc2 internal prototype to avoid an error. */
11394 /* We use char because int might match the return type of a gcc2
11395 builtin and then its argument prototype would still apply. */
11397 /* The GNU C library defines this for functions which it implements
11398 to always fail with ENOSYS. Some functions are actually named
11399 something starting with __ and the normal name is an alias. */
11400 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11403 char (*f) () = $ac_func;
11412 return f != $ac_func;
11417 rm -f conftest.
$ac_objext conftest
$ac_exeext
11418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11419 (eval $ac_link) 2>conftest.er1
11421 grep -v '^ *+' conftest.er1
>conftest.err
11423 cat conftest.err
>&5
11424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11425 (exit $ac_status); } &&
11426 { ac_try
='test -z "$ac_c_werror_flag"
11427 || test ! -s conftest.err'
11428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11429 (eval $ac_try) 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); }; } &&
11433 { ac_try
='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 eval "$as_ac_var=yes"
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.
$ac_ext >&5
11444 eval "$as_ac_var=no"
11446 rm -f conftest.err conftest.
$ac_objext \
11447 conftest
$ac_exeext conftest.
$ac_ext
11449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11450 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11451 if test `eval echo '${'$as_ac_var'}'` = yes; then
11452 cat >>confdefs.h
<<_ACEOF
11453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11459 if test "$memcpy_found" = no
; then
11460 { { echo "$as_me:$LINENO: error: memcpy is required" >&5
11461 echo "$as_me: error: memcpy is required" >&2;}
11462 { (exit 1); exit 1; }; }
11465 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11466 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11467 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 ac_check_lib_save_LIBS
=$LIBS
11472 if test x
$gcc_no_link = xyes
; then
11473 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11474 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11475 { (exit 1); exit 1; }; }
11477 cat >conftest.
$ac_ext <<_ACEOF
11480 cat confdefs.h
>>conftest.
$ac_ext
11481 cat >>conftest.
$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11484 /* Override any gcc2 internal prototype to avoid an error. */
11488 /* We use char because int might match the return type of a gcc2
11489 builtin and then its argument prototype would still apply. */
11499 rm -f conftest.
$ac_objext conftest
$ac_exeext
11500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11501 (eval $ac_link) 2>conftest.er1
11503 grep -v '^ *+' conftest.er1
>conftest.err
11505 cat conftest.err
>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try
='test -z "$ac_c_werror_flag"
11509 || test ! -s conftest.err'
11510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11511 (eval $ac_try) 2>&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); }; } &&
11515 { ac_try
='test -s conftest$ac_exeext'
11516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11517 (eval $ac_try) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); }; }; then
11521 ac_cv_lib_dl_dlopen
=yes
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.
$ac_ext >&5
11526 ac_cv_lib_dl_dlopen
=no
11528 rm -f conftest.err conftest.
$ac_objext \
11529 conftest
$ac_exeext conftest.
$ac_ext
11530 LIBS
=$ac_check_lib_save_LIBS
11532 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11533 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11534 if test $ac_cv_lib_dl_dlopen = yes; then
11537 cat >>confdefs.h
<<\_ACEOF
11538 #define HAVE_DLOPEN 1
11544 # Some library-finding code we stole from Tcl.
11545 #--------------------------------------------------------------------
11546 # Check for the existence of the -lsocket and -lnsl libraries.
11547 # The order here is important, so that they end up in the right
11548 # order in the command line generated by make. Here are some
11549 # special considerations:
11550 # 1. Use "connect" and "accept" to check for -lsocket, and
11551 # "gethostbyname" to check for -lnsl.
11552 # 2. Use each function name only once: can't redo a check because
11553 # autoconf caches the results of the last check and won't redo it.
11554 # 3. Use -lnsl and -lsocket only if they supply procedures that
11555 # aren't already present in the normal libraries. This is because
11556 # IRIX 5.2 has libraries, but they aren't needed and they're
11557 # bogus: they goof up name resolution if used.
11558 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
11559 # To get around this problem, check for both libraries together
11560 # if -lsocket doesn't work by itself.
11561 #--------------------------------------------------------------------
11563 echo "$as_me:$LINENO: checking for socket libraries" >&5
11564 echo $ECHO_N "checking for socket libraries... $ECHO_C" >&6
11565 if test "${gcj_cv_lib_sockets+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 gcj_cv_lib_sockets
=
11570 unset ac_cv_func_connect
11571 echo "$as_me:$LINENO: checking for connect" >&5
11572 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11573 if test "${ac_cv_func_connect+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 if test x
$gcc_no_link = xyes
; then
11577 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11578 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11579 { (exit 1); exit 1; }; }
11581 cat >conftest.
$ac_ext <<_ACEOF
11584 cat confdefs.h
>>conftest.
$ac_ext
11585 cat >>conftest.
$ac_ext <<_ACEOF
11586 /* end confdefs.h. */
11587 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11589 #define connect innocuous_connect
11591 /* System header to define __stub macros and hopefully few prototypes,
11592 which can conflict with char connect (); below.
11593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11594 <limits.h> exists even on freestanding compilers. */
11597 # include <limits.h>
11599 # include <assert.h>
11604 /* Override any gcc2 internal prototype to avoid an error. */
11609 /* We use char because int might match the return type of a gcc2
11610 builtin and then its argument prototype would still apply. */
11612 /* The GNU C library defines this for functions which it implements
11613 to always fail with ENOSYS. Some functions are actually named
11614 something starting with __ and the normal name is an alias. */
11615 #if defined (__stub_connect) || defined (__stub___connect)
11618 char (*f) () = connect;
11627 return f != connect;
11632 rm -f conftest.
$ac_objext conftest
$ac_exeext
11633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11634 (eval $ac_link) 2>conftest.er1
11636 grep -v '^ *+' conftest.er1
>conftest.err
11638 cat conftest.err
>&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try
='test -z "$ac_c_werror_flag"
11642 || test ! -s conftest.err'
11643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644 (eval $ac_try) 2>&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); }; } &&
11648 { ac_try
='test -s conftest$ac_exeext'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; }; then
11654 ac_cv_func_connect
=yes
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.
$ac_ext >&5
11659 ac_cv_func_connect
=no
11661 rm -f conftest.err conftest.
$ac_objext \
11662 conftest
$ac_exeext conftest.
$ac_ext
11664 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11665 echo "${ECHO_T}$ac_cv_func_connect" >&6
11666 if test $ac_cv_func_connect = yes; then
11672 if test "$gcj_checkSocket" = 1; then
11673 unset ac_cv_func_connect
11674 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
11675 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
11676 if test "${ac_cv_lib_socket_main+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 ac_check_lib_save_LIBS
=$LIBS
11680 LIBS
="-lsocket $LIBS"
11681 if test x
$gcc_no_link = xyes
; then
11682 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11683 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11684 { (exit 1); exit 1; }; }
11686 cat >conftest.
$ac_ext <<_ACEOF
11689 cat confdefs.h
>>conftest.
$ac_ext
11690 cat >>conftest.
$ac_ext <<_ACEOF
11691 /* end confdefs.h. */
11702 rm -f conftest.
$ac_objext conftest
$ac_exeext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704 (eval $ac_link) 2>conftest.er1
11706 grep -v '^ *+' conftest.er1
>conftest.err
11708 cat conftest.err
>&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try
='test -z "$ac_c_werror_flag"
11712 || test ! -s conftest.err'
11713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11714 (eval $ac_try) 2>&5
11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717 (exit $ac_status); }; } &&
11718 { ac_try
='test -s conftest$ac_exeext'
11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11720 (eval $ac_try) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); }; }; then
11724 ac_cv_lib_socket_main
=yes
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.
$ac_ext >&5
11729 ac_cv_lib_socket_main
=no
11731 rm -f conftest.err conftest.
$ac_objext \
11732 conftest
$ac_exeext conftest.
$ac_ext
11733 LIBS
=$ac_check_lib_save_LIBS
11735 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
11736 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
11737 if test $ac_cv_lib_socket_main = yes; then
11738 gcj_cv_lib_sockets
="-lsocket"
11744 if test "$gcj_checkBoth" = 1; then
11746 LIBS
="$LIBS -lsocket -lnsl"
11747 unset ac_cv_func_accept
11748 echo "$as_me:$LINENO: checking for accept" >&5
11749 echo $ECHO_N "checking for accept... $ECHO_C" >&6
11750 if test "${ac_cv_func_accept+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 if test x
$gcc_no_link = xyes
; then
11754 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11755 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11756 { (exit 1); exit 1; }; }
11758 cat >conftest.
$ac_ext <<_ACEOF
11761 cat confdefs.h
>>conftest.
$ac_ext
11762 cat >>conftest.
$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 /* Define accept to an innocuous variant, in case <limits.h> declares accept.
11765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11766 #define accept innocuous_accept
11768 /* System header to define __stub macros and hopefully few prototypes,
11769 which can conflict with char accept (); below.
11770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11771 <limits.h> exists even on freestanding compilers. */
11774 # include <limits.h>
11776 # include <assert.h>
11781 /* Override any gcc2 internal prototype to avoid an error. */
11786 /* We use char because int might match the return type of a gcc2
11787 builtin and then its argument prototype would still apply. */
11789 /* The GNU C library defines this for functions which it implements
11790 to always fail with ENOSYS. Some functions are actually named
11791 something starting with __ and the normal name is an alias. */
11792 #if defined (__stub_accept) || defined (__stub___accept)
11795 char (*f) () = accept;
11804 return f != accept;
11809 rm -f conftest.
$ac_objext conftest
$ac_exeext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11811 (eval $ac_link) 2>conftest.er1
11813 grep -v '^ *+' conftest.er1
>conftest.err
11815 cat conftest.err
>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try
='test -z "$ac_c_werror_flag"
11819 || test ! -s conftest.err'
11820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11821 (eval $ac_try) 2>&5
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); }; } &&
11825 { ac_try
='test -s conftest$ac_exeext'
11826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827 (eval $ac_try) 2>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); }; }; then
11831 ac_cv_func_accept
=yes
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.
$ac_ext >&5
11836 ac_cv_func_accept
=no
11838 rm -f conftest.err conftest.
$ac_objext \
11839 conftest
$ac_exeext conftest.
$ac_ext
11841 echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
11842 echo "${ECHO_T}$ac_cv_func_accept" >&6
11843 if test $ac_cv_func_accept = yes; then
11845 gcj_cv_lib_sockets
="-lsocket -lnsl"
11848 unset ac_cv_func_accept
11851 unset ac_cv_func_gethostbyname
11853 LIBS
="$LIBS $gcj_cv_lib_sockets"
11854 echo "$as_me:$LINENO: checking for gethostbyname" >&5
11855 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11856 if test "${ac_cv_func_gethostbyname+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 if test x
$gcc_no_link = xyes
; then
11860 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11861 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11862 { (exit 1); exit 1; }; }
11864 cat >conftest.
$ac_ext <<_ACEOF
11867 cat confdefs.h
>>conftest.
$ac_ext
11868 cat >>conftest.
$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11872 #define gethostbyname innocuous_gethostbyname
11874 /* System header to define __stub macros and hopefully few prototypes,
11875 which can conflict with char gethostbyname (); below.
11876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11877 <limits.h> exists even on freestanding compilers. */
11880 # include <limits.h>
11882 # include <assert.h>
11885 #undef gethostbyname
11887 /* Override any gcc2 internal prototype to avoid an error. */
11892 /* We use char because int might match the return type of a gcc2
11893 builtin and then its argument prototype would still apply. */
11894 char gethostbyname ();
11895 /* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
11898 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11901 char (*f) () = gethostbyname;
11910 return f != gethostbyname;
11915 rm -f conftest.
$ac_objext conftest
$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917 (eval $ac_link) 2>conftest.er1
11919 grep -v '^ *+' conftest.er1
>conftest.err
11921 cat conftest.err
>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try
='test -z "$ac_c_werror_flag"
11925 || test ! -s conftest.err'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try
='test -s conftest$ac_exeext'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 ac_cv_func_gethostbyname
=yes
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.
$ac_ext >&5
11942 ac_cv_func_gethostbyname
=no
11944 rm -f conftest.err conftest.
$ac_objext \
11945 conftest
$ac_exeext conftest.
$ac_ext
11947 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11948 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
11949 if test $ac_cv_func_gethostbyname = yes; then
11952 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
11953 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
11954 if test "${ac_cv_lib_nsl_main+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 ac_check_lib_save_LIBS
=$LIBS
11959 if test x
$gcc_no_link = xyes
; then
11960 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
11961 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
11962 { (exit 1); exit 1; }; }
11964 cat >conftest.
$ac_ext <<_ACEOF
11967 cat confdefs.h
>>conftest.
$ac_ext
11968 cat >>conftest.
$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11980 rm -f conftest.
$ac_objext conftest
$ac_exeext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11982 (eval $ac_link) 2>conftest.er1
11984 grep -v '^ *+' conftest.er1
>conftest.err
11986 cat conftest.err
>&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try
='test -z "$ac_c_werror_flag"
11990 || test ! -s conftest.err'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try
='test -s conftest$ac_exeext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_lib_nsl_main
=yes
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.
$ac_ext >&5
12007 ac_cv_lib_nsl_main
=no
12009 rm -f conftest.err conftest.
$ac_objext \
12010 conftest
$ac_exeext conftest.
$ac_ext
12011 LIBS
=$ac_check_lib_save_LIBS
12013 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
12014 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
12015 if test $ac_cv_lib_nsl_main = yes; then
12016 gcj_cv_lib_sockets
="$gcj_cv_lib_sockets -lnsl"
12021 unset ac_cv_func_gethostbyname
12025 echo "$as_me:$LINENO: result: $gcj_cv_lib_sockets" >&5
12026 echo "${ECHO_T}$gcj_cv_lib_sockets" >&6
12027 SYSTEMSPEC
="$SYSTEMSPEC $gcj_cv_lib_sockets"
12029 if test "$with_system_zlib" = yes; then
12030 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
12031 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
12032 if test "${ac_cv_lib_z_deflate+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 ac_check_lib_save_LIBS
=$LIBS
12037 if test x
$gcc_no_link = xyes
; then
12038 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12039 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12040 { (exit 1); exit 1; }; }
12042 cat >conftest.
$ac_ext <<_ACEOF
12045 cat confdefs.h
>>conftest.
$ac_ext
12046 cat >>conftest.
$ac_ext <<_ACEOF
12047 /* end confdefs.h. */
12049 /* Override any gcc2 internal prototype to avoid an error. */
12053 /* We use char because int might match the return type of a gcc2
12054 builtin and then its argument prototype would still apply. */
12064 rm -f conftest.
$ac_objext conftest
$ac_exeext
12065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12066 (eval $ac_link) 2>conftest.er1
12068 grep -v '^ *+' conftest.er1
>conftest.err
12070 cat conftest.err
>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } &&
12073 { ac_try
='test -z "$ac_c_werror_flag"
12074 || test ! -s conftest.err'
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; } &&
12080 { ac_try
='test -s conftest$ac_exeext'
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; }; then
12086 ac_cv_lib_z_deflate
=yes
12088 echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.
$ac_ext >&5
12091 ac_cv_lib_z_deflate
=no
12093 rm -f conftest.err conftest.
$ac_objext \
12094 conftest
$ac_exeext conftest.
$ac_ext
12095 LIBS
=$ac_check_lib_save_LIBS
12097 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
12098 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
12099 if test $ac_cv_lib_z_deflate = yes; then
12107 # Test for Gtk stuff, if asked for.
12108 if test "$use_gtk_awt" = yes; then
12112 if test -z "$PKG_CONFIG"; then
12113 # Extract the first word of "pkg-config", so it can be a program name with args.
12114 set dummy pkg-config
; ac_word
=$2
12115 echo "$as_me:$LINENO: checking for $ac_word" >&5
12116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12117 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 case $PKG_CONFIG in
12122 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12126 for as_dir
in $PATH
12129 test -z "$as_dir" && as_dir
=.
12130 for ac_exec_ext
in '' $ac_executable_extensions; do
12131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12132 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12139 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12143 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12145 if test -n "$PKG_CONFIG"; then
12146 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12147 echo "${ECHO_T}$PKG_CONFIG" >&6
12149 echo "$as_me:$LINENO: result: no" >&5
12150 echo "${ECHO_T}no" >&6
12155 if test "$PKG_CONFIG" = "no" ; then
12156 echo "*** The pkg-config script could not be found. Make sure it is"
12157 echo "*** in your path, or set the PKG_CONFIG environment variable"
12158 echo "*** to the full path to pkg-config."
12159 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12161 PKG_CONFIG_MIN_VERSION
=0.9.0
12162 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12163 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4" >&5
12164 echo $ECHO_N "checking for gtk+-2.0 >= 2.4... $ECHO_C" >&6
12166 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
12167 echo "$as_me:$LINENO: result: yes" >&5
12168 echo "${ECHO_T}yes" >&6
12171 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12172 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
12173 GTK_CFLAGS
=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
12174 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12175 echo "${ECHO_T}$GTK_CFLAGS" >&6
12177 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12178 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
12179 GTK_LIBS
=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
12180 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12181 echo "${ECHO_T}$GTK_LIBS" >&6
12185 ## If we have a custom action on failure, don't print errors, but
12186 ## do set a variable so people can do so.
12187 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
12188 echo $GTK_PKG_ERRORS
12194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12199 if test $succeeded = yes; then
12202 { { 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
12203 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;}
12204 { (exit 1); exit 1; }; }
12213 if test -z "$PKG_CONFIG"; then
12214 # Extract the first word of "pkg-config", so it can be a program name with args.
12215 set dummy pkg-config
; ac_word
=$2
12216 echo "$as_me:$LINENO: checking for $ac_word" >&5
12217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12218 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12219 echo $ECHO_N "(cached) $ECHO_C" >&6
12221 case $PKG_CONFIG in
12223 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12227 for as_dir
in $PATH
12230 test -z "$as_dir" && as_dir
=.
12231 for ac_exec_ext
in '' $ac_executable_extensions; do
12232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12233 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12244 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12246 if test -n "$PKG_CONFIG"; then
12247 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12248 echo "${ECHO_T}$PKG_CONFIG" >&6
12250 echo "$as_me:$LINENO: result: no" >&5
12251 echo "${ECHO_T}no" >&6
12256 if test "$PKG_CONFIG" = "no" ; then
12257 echo "*** The pkg-config script could not be found. Make sure it is"
12258 echo "*** in your path, or set the PKG_CONFIG environment variable"
12259 echo "*** to the full path to pkg-config."
12260 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12262 PKG_CONFIG_MIN_VERSION
=0.9.0
12263 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12264 echo "$as_me:$LINENO: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
12265 echo $ECHO_N "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... $ECHO_C" >&6
12267 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
12268 echo "$as_me:$LINENO: result: yes" >&5
12269 echo "${ECHO_T}yes" >&6
12272 echo "$as_me:$LINENO: checking GLIB_CFLAGS" >&5
12273 echo $ECHO_N "checking GLIB_CFLAGS... $ECHO_C" >&6
12274 GLIB_CFLAGS
=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12275 echo "$as_me:$LINENO: result: $GLIB_CFLAGS" >&5
12276 echo "${ECHO_T}$GLIB_CFLAGS" >&6
12278 echo "$as_me:$LINENO: checking GLIB_LIBS" >&5
12279 echo $ECHO_N "checking GLIB_LIBS... $ECHO_C" >&6
12280 GLIB_LIBS
=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12281 echo "$as_me:$LINENO: result: $GLIB_LIBS" >&5
12282 echo "${ECHO_T}$GLIB_LIBS" >&6
12286 ## If we have a custom action on failure, don't print errors, but
12287 ## do set a variable so people can do so.
12288 GLIB_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
12289 echo $GLIB_PKG_ERRORS
12295 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12296 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12300 if test $succeeded = yes; then
12303 { { 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
12304 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;}
12305 { (exit 1); exit 1; }; }
12314 if test -z "$PKG_CONFIG"; then
12315 # Extract the first word of "pkg-config", so it can be a program name with args.
12316 set dummy pkg-config
; ac_word
=$2
12317 echo "$as_me:$LINENO: checking for $ac_word" >&5
12318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12319 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12320 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 case $PKG_CONFIG in
12324 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12328 for as_dir
in $PATH
12331 test -z "$as_dir" && as_dir
=.
12332 for ac_exec_ext
in '' $ac_executable_extensions; do
12333 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12334 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12341 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12345 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12347 if test -n "$PKG_CONFIG"; then
12348 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12349 echo "${ECHO_T}$PKG_CONFIG" >&6
12351 echo "$as_me:$LINENO: result: no" >&5
12352 echo "${ECHO_T}no" >&6
12357 if test "$PKG_CONFIG" = "no" ; then
12358 echo "*** The pkg-config script could not be found. Make sure it is"
12359 echo "*** in your path, or set the PKG_CONFIG environment variable"
12360 echo "*** to the full path to pkg-config."
12361 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12363 PKG_CONFIG_MIN_VERSION
=0.9.0
12364 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12365 echo "$as_me:$LINENO: checking for libart-2.0 >= 2.1" >&5
12366 echo $ECHO_N "checking for libart-2.0 >= 2.1... $ECHO_C" >&6
12368 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
12369 echo "$as_me:$LINENO: result: yes" >&5
12370 echo "${ECHO_T}yes" >&6
12373 echo "$as_me:$LINENO: checking LIBART_CFLAGS" >&5
12374 echo $ECHO_N "checking LIBART_CFLAGS... $ECHO_C" >&6
12375 LIBART_CFLAGS
=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
12376 echo "$as_me:$LINENO: result: $LIBART_CFLAGS" >&5
12377 echo "${ECHO_T}$LIBART_CFLAGS" >&6
12379 echo "$as_me:$LINENO: checking LIBART_LIBS" >&5
12380 echo $ECHO_N "checking LIBART_LIBS... $ECHO_C" >&6
12381 LIBART_LIBS
=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
12382 echo "$as_me:$LINENO: result: $LIBART_LIBS" >&5
12383 echo "${ECHO_T}$LIBART_LIBS" >&6
12387 ## If we have a custom action on failure, don't print errors, but
12388 ## do set a variable so people can do so.
12389 LIBART_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
12390 echo $LIBART_PKG_ERRORS
12396 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12397 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12401 if test $succeeded = yes; then
12404 { { 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
12405 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;}
12406 { (exit 1); exit 1; }; }
12413 # On Solaris, and maybe other architectures, the Boehm collector
12415 if test "$GC" = boehm
; then
12416 echo "$as_me:$LINENO: checking for main in -ldl" >&5
12417 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
12418 if test "${ac_cv_lib_dl_main+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 ac_check_lib_save_LIBS
=$LIBS
12423 if test x
$gcc_no_link = xyes
; then
12424 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
12425 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
12426 { (exit 1); exit 1; }; }
12428 cat >conftest.
$ac_ext <<_ACEOF
12431 cat confdefs.h
>>conftest.
$ac_ext
12432 cat >>conftest.
$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12444 rm -f conftest.
$ac_objext conftest
$ac_exeext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12446 (eval $ac_link) 2>conftest.er1
12448 grep -v '^ *+' conftest.er1
>conftest.err
12450 cat conftest.err
>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try
='test -z "$ac_c_werror_flag"
12454 || test ! -s conftest.err'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try
='test -s conftest$ac_exeext'
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_cv_lib_dl_main
=yes
12468 echo "$as_me: failed program was:" >&5
12469 sed 's/^/| /' conftest.
$ac_ext >&5
12471 ac_cv_lib_dl_main
=no
12473 rm -f conftest.err conftest.
$ac_objext \
12474 conftest
$ac_exeext conftest.
$ac_ext
12475 LIBS
=$ac_check_lib_save_LIBS
12477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
12478 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
12479 if test $ac_cv_lib_dl_main = yes; then
12480 SYSTEMSPEC
="$SYSTEMSPEC -ldl"
12486 if test -z "${with_multisubdir}"; then
12489 builddotdot
=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
12494 # Which gcj do we use?
12496 built_gcc_dir
="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
12497 if test -n "${with_cross_host}"; then
12498 # We are being configured with a cross compiler. We can't
12499 # use ac_exeext, because that is for the target platform.
12502 case "${with_cross_host}" in
12503 *mingw
* |
*cygwin
*)
12504 cross_host_exeext
=.exe
12507 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
12508 if test x
"$build_noncanonical" = x
"$with_cross_host"; then
12509 # Ordinary cross (host!=target and host=build)
12512 # Canadian cross (host!=target and host!=build)
12519 # We are being configured with a native or crossed-native compiler
12520 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
12521 if test x
"$build" = x
"$host"; then
12522 # True native build (host=target and host=build)
12525 # Crossed-native build (host=target and host!=build)
12532 case "${which_gcj}" in
12534 GCJ
="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
12535 GCJH
='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
12536 ZIP
='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12539 if test "x${with_newlib}" = "xyes"; then
12540 # FIXME (comment): Why is this needed?
12541 GCC_UNWIND_INCLUDE
=
12542 GCJ
="${target_noncanonical}-gcj"
12544 GCJ
="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
12547 GCJH
='$(target_noncanonical)-gcjh'
12550 GCJ
="gcj -B`${PWDCMD-pwd}`/"
12551 ## In this case, gcj is found outside the build tree. However, zip is
12552 ## found in the build tree.
12553 ZIP
='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
12561 # Create it, so that compile/link tests don't fail
12562 test -f libgcj.spec ||
touch libgcj.spec
12564 # We must search the source tree for java.lang, since we still don't
12565 # have libgcj.jar nor java/lang/*.class
12566 GCJ_SAVE_CPPFLAGS
=$CPPFLAGS
12567 CPPFLAGS
="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
12569 # Since some classes depend on this one, we need its source available
12570 # before we can do any GCJ compilation test :-(
12571 if test ! -f gnu
/classpath
/Configuration.java
; then
12572 test -d gnu || mkdir gnu
12573 test -d gnu
/classpath || mkdir gnu
/classpath
12574 sed -e 's,@LIBGCJDEBUG@,$LIBGCJDEBUG,' \
12575 -e 's,@TOOLKIT@,$TOOLKIT,' \
12576 < $srcdir/gnu
/classpath
/Configuration.java.
in \
12577 > gnu
/classpath
/Configuration.java
12578 # We do not want to redirect the output of the grep below to /dev/null,
12579 # but we add /dev/null to the input list so that grep will print the
12580 # filename of Configuration.java in case it finds any matches.
12581 if grep @ gnu
/classpath
/Configuration.java
/dev
/null
; then
12582 { { echo "$as_me:$LINENO: error: configure.in is missing the substitutions above" >&5
12583 echo "$as_me: error: configure.in is missing the substitutions above" >&2;}
12584 { (exit 1); exit 1; }; }
12588 if test -n "$ac_tool_prefix"; then
12589 # Extract the first word of "${ac_tool_prefix}gcj", so it can be a program name with args.
12590 set dummy
${ac_tool_prefix}gcj
; ac_word
=$2
12591 echo "$as_me:$LINENO: checking for $ac_word" >&5
12592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12593 if test "${ac_cv_prog_GCJ+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 if test -n "$GCJ"; then
12597 ac_cv_prog_GCJ
="$GCJ" # Let the user override the test.
12599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12600 for as_dir
in $PATH
12603 test -z "$as_dir" && as_dir
=.
12604 for ac_exec_ext
in '' $ac_executable_extensions; do
12605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12606 ac_cv_prog_GCJ
="${ac_tool_prefix}gcj"
12607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12615 GCJ
=$ac_cv_prog_GCJ
12616 if test -n "$GCJ"; then
12617 echo "$as_me:$LINENO: result: $GCJ" >&5
12618 echo "${ECHO_T}$GCJ" >&6
12620 echo "$as_me:$LINENO: result: no" >&5
12621 echo "${ECHO_T}no" >&6
12625 if test -z "$ac_cv_prog_GCJ"; then
12627 # Extract the first word of "gcj", so it can be a program name with args.
12628 set dummy gcj
; ac_word
=$2
12629 echo "$as_me:$LINENO: checking for $ac_word" >&5
12630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12631 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 if test -n "$ac_ct_GCJ"; then
12635 ac_cv_prog_ac_ct_GCJ
="$ac_ct_GCJ" # Let the user override the test.
12637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12638 for as_dir
in $PATH
12641 test -z "$as_dir" && as_dir
=.
12642 for ac_exec_ext
in '' $ac_executable_extensions; do
12643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12644 ac_cv_prog_ac_ct_GCJ
="gcj"
12645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12651 test -z "$ac_cv_prog_ac_ct_GCJ" && ac_cv_prog_ac_ct_GCJ
="no"
12654 ac_ct_GCJ
=$ac_cv_prog_ac_ct_GCJ
12655 if test -n "$ac_ct_GCJ"; then
12656 echo "$as_me:$LINENO: result: $ac_ct_GCJ" >&5
12657 echo "${ECHO_T}$ac_ct_GCJ" >&6
12659 echo "$as_me:$LINENO: result: no" >&5
12660 echo "${ECHO_T}no" >&6
12665 GCJ
="$ac_cv_prog_GCJ"
12668 test "x${GCJFLAGS+set}" = xset || GCJFLAGS
="-g -O2"
12672 LIBTOOL_DEPS
=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh"
12674 lt_save_CFLAGS
="$CFLAGS"
12675 AR
="$AR" LTCC
="$CC" CC
="$GCJ" CFLAGS
="$GCJFLAGS" CPPFLAGS
="$CPPFLAGS" \
12676 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
12677 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
12678 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
12679 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
12680 deplibs_check_method
="$deplibs_check_method" \
12681 file_magic_cmd
="$file_magic_cmd" \
12682 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
-o libtool
$libtool_flags \
12683 --build="$build" --add-tag=GCJ
$ac_aux_dir/ltcf-gcj.sh
$host \
12684 ||
{ { echo "$as_me:$LINENO: error: libtool tag configuration failed" >&5
12685 echo "$as_me: error: libtool tag configuration failed" >&2;}
12686 { (exit 1); exit 1; }; }
12688 CFLAGS
="$lt_save_CFLAGS"
12690 # Redirect the config.log output again, so that the ltconfig log is not
12691 # clobbered by the next message.
12692 exec 5>>.
/config.log
12697 CPPFLAGS
=$GCJ_SAVE_CPPFLAGS
12699 echo "$as_me:$LINENO: checking size of void *" >&5
12700 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
12701 if test "${ac_cv_sizeof_void_p+set}" = set; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12704 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
12705 cat >conftest.
$ac_ext <<_ACEOF
12708 cat confdefs.h
>>conftest.
$ac_ext
12709 cat >>conftest.
$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include "confdefs.h"
12712 #include <sys/types.h>
12718 switch (0) case 0: case (sizeof (void *) == $ac_size):;
12723 rm -f conftest.
$ac_objext
12724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12725 (eval $ac_compile) 2>conftest.er1
12727 grep -v '^ *+' conftest.er1
>conftest.err
12729 cat conftest.err
>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); } &&
12732 { ac_try
='test -z "$ac_c_werror_flag"
12733 || test ! -s conftest.err'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; } &&
12739 { ac_try
='test -s conftest.$ac_objext'
12740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12741 (eval $ac_try) 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; }; then
12745 ac_cv_sizeof_void_p
=$ac_size
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.
$ac_ext >&5
12751 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12752 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
12757 if test x
$ac_cv_sizeof_void_p = x
; then
12758 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
12759 echo "$as_me: error: cannot determine a size for void *" >&2;}
12760 { (exit 1); exit 1; }; }
12762 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12763 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
12765 cat >>confdefs.h
<<_ACEOF
12766 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12775 if test -z "$ZLIBSPEC"; then
12776 # Use zlib from the GCC tree.
12777 ZINCS
='-I$(top_srcdir)/../zlib'
12778 ZLIBS
=..
/zlib
/libzgcj_convenience.la
12781 SYS_ZLIBS
="$ZLIBSPEC"
12793 if test "$NATIVE" = yes; then
12802 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
12803 NEEDS_DATA_START_TRUE
=
12804 NEEDS_DATA_START_FALSE
='#'
12806 NEEDS_DATA_START_TRUE
='#'
12807 NEEDS_DATA_START_FALSE
=
12811 # Process the option "--enable-version-specific-runtime-libs"
12812 # Calculate toolexeclibdir
12813 case ${version_specific_libs} in
12815 # Need the gcc compiler version to know where to install libraries
12816 # and header files if --enable-version-specific-runtime-libs option
12818 includedir
='${libdir}/gcc/${target_noncanonical}/'$gcc_version/include
/
12819 toolexecdir
='$(libdir)/gcc/$(target_noncanonical)'
12820 toolexecmainlibdir
='$(toolexecdir)/'${gcc_version}'$(MULTISUBDIR)'
12821 toolexeclibdir
=$toolexecmainlibdir
12824 if test -n "$with_cross_host" &&
12825 test x
"$with_cross_host" != x
"no"; then
12826 # Install a library built with a cross compiler in tooldir, not libdir.
12827 toolexecdir
='$(exec_prefix)/$(target_noncanonical)'
12828 toolexecmainlibdir
='$(toolexecdir)/lib'
12830 toolexecdir
='$(libdir)/gcc-lib/$(target_noncanonical)'
12831 toolexecmainlibdir
='$(libdir)'
12833 multi_os_directory
=`$CC -print-multi-os-directory`
12834 case $multi_os_directory in
12835 .
) toolexeclibdir
=$toolexecmainlibdir ;; # Avoid trailing /.
12836 *) toolexeclibdir
=$toolexecmainlibdir/$multi_os_directory ;;
12844 # Determine gcj version number.
12845 gcjversion
=`$GCJ -v 2>&1 | sed -n 's/^.*version \([^ ]*\).*$/\1/p'`
12846 GCJVERSION
=$gcjversion
12849 cat >>confdefs.h
<<_ACEOF
12850 #define GCJVERSION "$GCJVERSION"
12854 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
12855 # On that system, sys/ioctl.h will not include sys/filio.h unless
12856 # BSD_COMP is defined; just including sys/filio.h is simpler.
12876 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
12878 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12880 echo "$as_me:$LINENO: checking for $ac_header" >&5
12881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12888 # Is the header compilable?
12889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12891 cat >conftest.
$ac_ext <<_ACEOF
12894 cat confdefs.h
>>conftest.
$ac_ext
12895 cat >>conftest.
$ac_ext <<_ACEOF
12896 /* end confdefs.h. */
12897 $ac_includes_default
12898 #include <$ac_header>
12900 rm -f conftest.
$ac_objext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12902 (eval $ac_compile) 2>conftest.er1
12904 grep -v '^ *+' conftest.er1
>conftest.err
12906 cat conftest.err
>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
12909 { ac_try
='test -z "$ac_c_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try
='test -s conftest.$ac_objext'
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_header_compiler
=yes
12924 echo "$as_me: failed program was:" >&5
12925 sed 's/^/| /' conftest.
$ac_ext >&5
12927 ac_header_compiler
=no
12929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12931 echo "${ECHO_T}$ac_header_compiler" >&6
12933 # Is the header present?
12934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12936 cat >conftest.
$ac_ext <<_ACEOF
12939 cat confdefs.h
>>conftest.
$ac_ext
12940 cat >>conftest.
$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 #include <$ac_header>
12944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12945 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12947 grep -v '^ *+' conftest.er1
>conftest.err
12949 cat conftest.err
>&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } >/dev
/null
; then
12952 if test -s conftest.err
; then
12953 ac_cpp_err
=$ac_c_preproc_warn_flag
12954 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12961 if test -z "$ac_cpp_err"; then
12962 ac_header_preproc
=yes
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.
$ac_ext >&5
12967 ac_header_preproc
=no
12969 rm -f conftest.err conftest.
$ac_ext
12970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12971 echo "${ECHO_T}$ac_header_preproc" >&6
12973 # So? What about this header?
12974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12980 ac_header_preproc
=yes
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12997 ## ------------------------------------------ ##
12998 ## Report this to the AC_PACKAGE_NAME lists. ##
12999 ## ------------------------------------------ ##
13002 sed "s/^/$as_me: WARNING: /" >&2
13005 echo "$as_me:$LINENO: checking for $ac_header" >&5
13006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 eval "$as_ac_Header=\$ac_header_preproc"
13012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13017 cat >>confdefs.h
<<_ACEOF
13018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13025 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
13026 # for now. If you change this, you also must update natFile.cc.
13028 for ac_header
in dirent.h
13030 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13032 echo "$as_me:$LINENO: checking for $ac_header" >&5
13033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13040 # Is the header compilable?
13041 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13043 cat >conftest.
$ac_ext <<_ACEOF
13046 cat confdefs.h
>>conftest.
$ac_ext
13047 cat >>conftest.
$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 $ac_includes_default
13050 #include <$ac_header>
13052 rm -f conftest.
$ac_objext
13053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13054 (eval $ac_compile) 2>conftest.er1
13056 grep -v '^ *+' conftest.er1
>conftest.err
13058 cat conftest.err
>&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } &&
13061 { ac_try
='test -z "$ac_c_werror_flag"
13062 || test ! -s conftest.err'
13063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13064 (eval $ac_try) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); }; } &&
13068 { ac_try
='test -s conftest.$ac_objext'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13074 ac_header_compiler
=yes
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.
$ac_ext >&5
13079 ac_header_compiler
=no
13081 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13083 echo "${ECHO_T}$ac_header_compiler" >&6
13085 # Is the header present?
13086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13088 cat >conftest.
$ac_ext <<_ACEOF
13091 cat confdefs.h
>>conftest.
$ac_ext
13092 cat >>conftest.
$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 #include <$ac_header>
13096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13097 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13099 grep -v '^ *+' conftest.er1
>conftest.err
13101 cat conftest.err
>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } >/dev
/null
; then
13104 if test -s conftest.err
; then
13105 ac_cpp_err
=$ac_c_preproc_warn_flag
13106 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13113 if test -z "$ac_cpp_err"; then
13114 ac_header_preproc
=yes
13116 echo "$as_me: failed program was:" >&5
13117 sed 's/^/| /' conftest.
$ac_ext >&5
13119 ac_header_preproc
=no
13121 rm -f conftest.err conftest.
$ac_ext
13122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13123 echo "${ECHO_T}$ac_header_preproc" >&6
13125 # So? What about this header?
13126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13132 ac_header_preproc
=yes
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13149 ## ------------------------------------------ ##
13150 ## Report this to the AC_PACKAGE_NAME lists. ##
13151 ## ------------------------------------------ ##
13154 sed "s/^/$as_me: WARNING: /" >&2
13157 echo "$as_me:$LINENO: checking for $ac_header" >&5
13158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 eval "$as_ac_Header=\$ac_header_preproc"
13164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13169 cat >>confdefs.h
<<_ACEOF
13170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13178 for ac_header
in inttypes.h
13180 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182 echo "$as_me:$LINENO: checking for $ac_header" >&5
13183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13190 # Is the header compilable?
13191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13193 cat >conftest.
$ac_ext <<_ACEOF
13196 cat confdefs.h
>>conftest.
$ac_ext
13197 cat >>conftest.
$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13199 $ac_includes_default
13200 #include <$ac_header>
13202 rm -f conftest.
$ac_objext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13204 (eval $ac_compile) 2>conftest.er1
13206 grep -v '^ *+' conftest.er1
>conftest.err
13208 cat conftest.err
>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
13211 { ac_try
='test -z "$ac_c_werror_flag"
13212 || test ! -s conftest.err'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try
='test -s conftest.$ac_objext'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_header_compiler
=yes
13226 echo "$as_me: failed program was:" >&5
13227 sed 's/^/| /' conftest.
$ac_ext >&5
13229 ac_header_compiler
=no
13231 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13233 echo "${ECHO_T}$ac_header_compiler" >&6
13235 # Is the header present?
13236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13238 cat >conftest.
$ac_ext <<_ACEOF
13241 cat confdefs.h
>>conftest.
$ac_ext
13242 cat >>conftest.
$ac_ext <<_ACEOF
13243 /* end confdefs.h. */
13244 #include <$ac_header>
13246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13247 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13249 grep -v '^ *+' conftest.er1
>conftest.err
13251 cat conftest.err
>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } >/dev
/null
; then
13254 if test -s conftest.err
; then
13255 ac_cpp_err
=$ac_c_preproc_warn_flag
13256 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13263 if test -z "$ac_cpp_err"; then
13264 ac_header_preproc
=yes
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.
$ac_ext >&5
13269 ac_header_preproc
=no
13271 rm -f conftest.err conftest.
$ac_ext
13272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13273 echo "${ECHO_T}$ac_header_preproc" >&6
13275 # So? What about this header?
13276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13282 ac_header_preproc
=yes
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13299 ## ------------------------------------------ ##
13300 ## Report this to the AC_PACKAGE_NAME lists. ##
13301 ## ------------------------------------------ ##
13304 sed "s/^/$as_me: WARNING: /" >&2
13307 echo "$as_me:$LINENO: checking for $ac_header" >&5
13308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 eval "$as_ac_Header=\$ac_header_preproc"
13314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13319 cat >>confdefs.h
<<_ACEOF
13320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13324 cat >>confdefs.h
<<\_ACEOF
13325 #define HAVE_INTTYPES_H 1
13329 cat >>confdefs.h
<<\_ACEOF
13330 #define JV_HAVE_INTTYPES_H 1
13338 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13339 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13340 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13341 echo $ECHO_N "(cached) $ECHO_C" >&6
13343 cat >conftest.
$ac_ext <<_ACEOF
13346 cat confdefs.h
>>conftest.
$ac_ext
13347 cat >>conftest.
$ac_ext <<_ACEOF
13348 /* end confdefs.h. */
13349 #include <sys/types.h>
13350 #include <sys/wait.h>
13351 #ifndef WEXITSTATUS
13352 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13355 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13363 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13368 rm -f conftest.
$ac_objext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13370 (eval $ac_compile) 2>conftest.er1
13372 grep -v '^ *+' conftest.er1
>conftest.err
13374 cat conftest.err
>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try
='test -z "$ac_c_werror_flag"
13378 || test ! -s conftest.err'
13379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13380 (eval $ac_try) 2>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); }; } &&
13384 { ac_try
='test -s conftest.$ac_objext'
13385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13386 (eval $ac_try) 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_header_sys_wait_h
=yes
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.
$ac_ext >&5
13395 ac_cv_header_sys_wait_h
=no
13397 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13399 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13400 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
13401 if test $ac_cv_header_sys_wait_h = yes; then
13403 cat >>confdefs.h
<<\_ACEOF
13404 #define HAVE_SYS_WAIT_H 1
13410 echo "$as_me:$LINENO: checking for ssize_t" >&5
13411 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13412 if test "${ac_cv_type_ssize_t+set}" = set; then
13413 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 cat >conftest.
$ac_ext <<_ACEOF
13418 cat confdefs.h
>>conftest.
$ac_ext
13419 cat >>conftest.
$ac_ext <<_ACEOF
13420 /* end confdefs.h. */
13421 $ac_includes_default
13427 if (sizeof (ssize_t))
13433 rm -f conftest.
$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435 (eval $ac_compile) 2>conftest.er1
13437 grep -v '^ *+' conftest.er1
>conftest.err
13439 cat conftest.err
>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try
='test -z "$ac_c_werror_flag"
13443 || test ! -s conftest.err'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; } &&
13449 { ac_try
='test -s conftest.$ac_objext'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; }; then
13455 ac_cv_type_ssize_t
=yes
13457 echo "$as_me: failed program was:" >&5
13458 sed 's/^/| /' conftest.
$ac_ext >&5
13460 ac_cv_type_ssize_t
=no
13462 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13464 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13465 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
13466 if test $ac_cv_type_ssize_t = yes; then
13470 cat >>confdefs.h
<<_ACEOF
13471 #define ssize_t int
13477 echo "$as_me:$LINENO: checking for in_addr_t" >&5
13478 echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
13479 cat >conftest.
$ac_ext <<_ACEOF
13482 cat confdefs.h
>>conftest.
$ac_ext
13483 cat >>conftest.
$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 #include <sys/types.h>
13487 #include <stdlib.h>
13488 #include <stddef.h>
13490 #if HAVE_NETINET_IN_H
13491 #include <netinet/in.h>
13501 rm -f conftest.
$ac_objext
13502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13503 (eval $ac_compile) 2>conftest.er1
13505 grep -v '^ *+' conftest.er1
>conftest.err
13507 cat conftest.err
>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); } &&
13510 { ac_try
='test -z "$ac_c_werror_flag"
13511 || test ! -s conftest.err'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; } &&
13517 { ac_try
='test -s conftest.$ac_objext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13524 cat >>confdefs.h
<<\_ACEOF
13525 #define HAVE_IN_ADDR_T 1
13528 echo "$as_me:$LINENO: result: yes" >&5
13529 echo "${ECHO_T}yes" >&6
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.
$ac_ext >&5
13534 echo "$as_me:$LINENO: result: no" >&5
13535 echo "${ECHO_T}no" >&6
13537 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13539 echo "$as_me:$LINENO: checking whether struct ip_mreq is in netinet/in.h" >&5
13540 echo $ECHO_N "checking whether struct ip_mreq is in netinet/in.h... $ECHO_C" >&6
13541 cat >conftest.
$ac_ext <<_ACEOF
13544 cat confdefs.h
>>conftest.
$ac_ext
13545 cat >>conftest.
$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 #include <netinet/in.h>
13551 struct ip_mreq mreq;
13556 rm -f conftest.
$ac_objext
13557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13558 (eval $ac_compile) 2>conftest.er1
13560 grep -v '^ *+' conftest.er1
>conftest.err
13562 cat conftest.err
>&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
13565 { ac_try
='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try
='test -s conftest.$ac_objext'
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; }; then
13579 cat >>confdefs.h
<<\_ACEOF
13580 #define HAVE_STRUCT_IP_MREQ 1
13583 echo "$as_me:$LINENO: result: yes" >&5
13584 echo "${ECHO_T}yes" >&6
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.
$ac_ext >&5
13589 echo "$as_me:$LINENO: result: no" >&5
13590 echo "${ECHO_T}no" >&6
13592 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13594 echo "$as_me:$LINENO: checking whether struct ipv6_mreq is in netinet/in.h" >&5
13595 echo $ECHO_N "checking whether struct ipv6_mreq is in netinet/in.h... $ECHO_C" >&6
13596 cat >conftest.
$ac_ext <<_ACEOF
13599 cat confdefs.h
>>conftest.
$ac_ext
13600 cat >>conftest.
$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 #include <netinet/in.h>
13606 struct ipv6_mreq mreq6;
13611 rm -f conftest.
$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>conftest.er1
13615 grep -v '^ *+' conftest.er1
>conftest.err
13617 cat conftest.err
>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); } &&
13620 { ac_try
='test -z "$ac_c_werror_flag"
13621 || test ! -s conftest.err'
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; } &&
13627 { ac_try
='test -s conftest.$ac_objext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13634 cat >>confdefs.h
<<\_ACEOF
13635 #define HAVE_STRUCT_IPV6_MREQ 1
13638 echo "$as_me:$LINENO: result: yes" >&5
13639 echo "${ECHO_T}yes" >&6
13641 echo "$as_me: failed program was:" >&5
13642 sed 's/^/| /' conftest.
$ac_ext >&5
13644 echo "$as_me:$LINENO: result: no" >&5
13645 echo "${ECHO_T}no" >&6
13647 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13649 echo "$as_me:$LINENO: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
13650 echo $ECHO_N "checking whether struct sockaddr_in6 is in netinet/in.h... $ECHO_C" >&6
13651 cat >conftest.
$ac_ext <<_ACEOF
13654 cat confdefs.h
>>conftest.
$ac_ext
13655 cat >>conftest.
$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13657 #include <netinet/in.h>
13661 struct sockaddr_in6 addr6;
13666 rm -f conftest.
$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13670 grep -v '^ *+' conftest.er1
>conftest.err
13672 cat conftest.err
>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try
='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try
='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13689 cat >>confdefs.h
<<\_ACEOF
13690 #define HAVE_INET6 1
13693 echo "$as_me:$LINENO: result: yes" >&5
13694 echo "${ECHO_T}yes" >&6
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.
$ac_ext >&5
13699 echo "$as_me:$LINENO: result: no" >&5
13700 echo "${ECHO_T}no" >&6
13702 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13704 echo "$as_me:$LINENO: checking for socklen_t in sys/socket.h" >&5
13705 echo $ECHO_N "checking for socklen_t in sys/socket.h... $ECHO_C" >&6
13706 cat >conftest.
$ac_ext <<_ACEOF
13709 cat confdefs.h
>>conftest.
$ac_ext
13710 cat >>conftest.
$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 #define _POSIX_PII_SOCKET
13713 #include <sys/types.h>
13714 #include <sys/socket.h>
13723 rm -f conftest.
$ac_objext
13724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13725 (eval $ac_compile) 2>conftest.er1
13727 grep -v '^ *+' conftest.er1
>conftest.err
13729 cat conftest.err
>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } &&
13732 { ac_try
='test -z "$ac_c_werror_flag"
13733 || test ! -s conftest.err'
13734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; } &&
13739 { ac_try
='test -s conftest.$ac_objext'
13740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13741 (eval $ac_try) 2>&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); }; }; then
13746 cat >>confdefs.h
<<\_ACEOF
13747 #define HAVE_SOCKLEN_T 1
13750 echo "$as_me:$LINENO: result: yes" >&5
13751 echo "${ECHO_T}yes" >&6
13753 echo "$as_me: failed program was:" >&5
13754 sed 's/^/| /' conftest.
$ac_ext >&5
13756 echo "$as_me:$LINENO: result: no" >&5
13757 echo "${ECHO_T}no" >&6
13759 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13761 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
13762 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
13763 cat >conftest.
$ac_ext <<_ACEOF
13766 cat confdefs.h
>>conftest.
$ac_ext
13767 cat >>conftest.
$ac_ext <<_ACEOF
13768 /* end confdefs.h. */
13773 struct tm tim; tim.tm_gmtoff = 0;
13778 rm -f conftest.
$ac_objext
13779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13780 (eval $ac_compile) 2>conftest.er1
13782 grep -v '^ *+' conftest.er1
>conftest.err
13784 cat conftest.err
>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
13787 { ac_try
='test -z "$ac_c_werror_flag"
13788 || test ! -s conftest.err'
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; } &&
13794 { ac_try
='test -s conftest.$ac_objext'
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13801 cat >>confdefs.h
<<\_ACEOF
13802 #define STRUCT_TM_HAS_GMTOFF 1
13805 echo "$as_me:$LINENO: result: yes" >&5
13806 echo "${ECHO_T}yes" >&6
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.
$ac_ext >&5
13811 echo "$as_me:$LINENO: result: no" >&5
13812 echo "${ECHO_T}no" >&6
13813 echo "$as_me:$LINENO: checking for global timezone variable" >&5
13814 echo $ECHO_N "checking for global timezone variable... $ECHO_C" >&6
13815 cat >conftest.
$ac_ext <<_ACEOF
13818 cat confdefs.h
>>conftest.
$ac_ext
13819 cat >>conftest.
$ac_ext <<_ACEOF
13820 /* end confdefs.h. */
13825 void i(){long z2 = 2*timezone;}
13830 rm -f conftest.
$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>conftest.er1
13834 grep -v '^ *+' conftest.er1
>conftest.err
13836 cat conftest.err
>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try
='test -z "$ac_c_werror_flag"
13840 || test ! -s conftest.err'
13841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842 (eval $ac_try) 2>&5
13844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); }; } &&
13846 { ac_try
='test -s conftest.$ac_objext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13853 cat >>confdefs.h
<<\_ACEOF
13854 #define HAVE_TIMEZONE 1
13857 echo "$as_me:$LINENO: result: yes" >&5
13858 echo "${ECHO_T}yes" >&6
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.
$ac_ext >&5
13863 echo "$as_me:$LINENO: result: no" >&5
13864 echo "${ECHO_T}no" >&6
13865 echo "$as_me:$LINENO: checking for global _timezone variable" >&5
13866 echo $ECHO_N "checking for global _timezone variable... $ECHO_C" >&6
13867 cat >conftest.
$ac_ext <<_ACEOF
13870 cat confdefs.h
>>conftest.
$ac_ext
13871 cat >>conftest.
$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13877 long z2 = _timezone;
13882 rm -f conftest.
$ac_objext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13884 (eval $ac_compile) 2>conftest.er1
13886 grep -v '^ *+' conftest.er1
>conftest.err
13888 cat conftest.err
>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try
='test -z "$ac_c_werror_flag"
13892 || test ! -s conftest.err'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; } &&
13898 { ac_try
='test -s conftest.$ac_objext'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; }; then
13905 cat >>confdefs.h
<<\_ACEOF
13906 #define HAVE_UNDERSCORE_TIMEZONE 1
13909 echo "$as_me:$LINENO: result: yes" >&5
13910 echo "${ECHO_T}yes" >&6
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.
$ac_ext >&5
13915 echo "$as_me:$LINENO: result: no" >&5
13916 echo "${ECHO_T}no" >&6
13918 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13920 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13922 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13925 # for constant arguments. Useless!
13926 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13927 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13928 if test "${ac_cv_working_alloca_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 if test x
$gcc_no_link = xyes
; then
13932 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
13933 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
13934 { (exit 1); exit 1; }; }
13936 cat >conftest.
$ac_ext <<_ACEOF
13939 cat confdefs.h
>>conftest.
$ac_ext
13940 cat >>conftest.
$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 #include <alloca.h>
13946 char *p = (char *) alloca (2 * sizeof (int));
13951 rm -f conftest.
$ac_objext conftest
$ac_exeext
13952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13953 (eval $ac_link) 2>conftest.er1
13955 grep -v '^ *+' conftest.er1
>conftest.err
13957 cat conftest.err
>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } &&
13960 { ac_try
='test -z "$ac_c_werror_flag"
13961 || test ! -s conftest.err'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; } &&
13967 { ac_try
='test -s conftest$ac_exeext'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 ac_cv_working_alloca_h
=yes
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.
$ac_ext >&5
13978 ac_cv_working_alloca_h
=no
13980 rm -f conftest.err conftest.
$ac_objext \
13981 conftest
$ac_exeext conftest.
$ac_ext
13983 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13984 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13985 if test $ac_cv_working_alloca_h = yes; then
13987 cat >>confdefs.h
<<\_ACEOF
13988 #define HAVE_ALLOCA_H 1
13993 echo "$as_me:$LINENO: checking for alloca" >&5
13994 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13995 if test "${ac_cv_func_alloca_works+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 if test x
$gcc_no_link = xyes
; then
13999 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14000 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14001 { (exit 1); exit 1; }; }
14003 cat >conftest.
$ac_ext <<_ACEOF
14006 cat confdefs.h
>>conftest.
$ac_ext
14007 cat >>conftest.
$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14010 # define alloca __builtin_alloca
14013 # include <malloc.h>
14014 # define alloca _alloca
14017 # include <alloca.h>
14022 # ifndef alloca /* predefined by HP cc +Olibcalls */
14033 char *p = (char *) alloca (1);
14038 rm -f conftest.
$ac_objext conftest
$ac_exeext
14039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14040 (eval $ac_link) 2>conftest.er1
14042 grep -v '^ *+' conftest.er1
>conftest.err
14044 cat conftest.err
>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try
='test -z "$ac_c_werror_flag"
14048 || test ! -s conftest.err'
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; } &&
14054 { ac_try
='test -s conftest$ac_exeext'
14055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056 (eval $ac_try) 2>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); }; }; then
14060 ac_cv_func_alloca_works
=yes
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.
$ac_ext >&5
14065 ac_cv_func_alloca_works
=no
14067 rm -f conftest.err conftest.
$ac_objext \
14068 conftest
$ac_exeext conftest.
$ac_ext
14070 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14071 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14073 if test $ac_cv_func_alloca_works = yes; then
14075 cat >>confdefs.h
<<\_ACEOF
14076 #define HAVE_ALLOCA 1
14080 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14081 # that cause trouble. Some versions do not even contain alloca or
14082 # contain a buggy version. If you still want to use their alloca,
14083 # use ar to extract alloca.o from them instead of compiling alloca.c.
14085 ALLOCA
=alloca.
$ac_objext
14087 cat >>confdefs.h
<<\_ACEOF
14092 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14093 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14094 if test "${ac_cv_os_cray+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 cat >conftest.
$ac_ext <<_ACEOF
14100 cat confdefs.h
>>conftest.
$ac_ext
14101 cat >>conftest.
$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14103 #if defined(CRAY) && ! defined(CRAY2)
14110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14111 $EGREP "webecray" >/dev
/null
2>&1; then
14119 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14120 echo "${ECHO_T}$ac_cv_os_cray" >&6
14121 if test $ac_cv_os_cray = yes; then
14122 for ac_func
in _getb67 GETB67 getb67
; do
14123 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14124 echo "$as_me:$LINENO: checking for $ac_func" >&5
14125 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14126 if eval "test \"\${$as_ac_var+set}\" = set"; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 if test x
$gcc_no_link = xyes
; then
14130 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14131 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14132 { (exit 1); exit 1; }; }
14134 cat >conftest.
$ac_ext <<_ACEOF
14137 cat confdefs.h
>>conftest.
$ac_ext
14138 cat >>conftest.
$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14142 #define $ac_func innocuous_$ac_func
14144 /* System header to define __stub macros and hopefully few prototypes,
14145 which can conflict with char $ac_func (); below.
14146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14147 <limits.h> exists even on freestanding compilers. */
14150 # include <limits.h>
14152 # include <assert.h>
14157 /* Override any gcc2 internal prototype to avoid an error. */
14162 /* We use char because int might match the return type of a gcc2
14163 builtin and then its argument prototype would still apply. */
14165 /* The GNU C library defines this for functions which it implements
14166 to always fail with ENOSYS. Some functions are actually named
14167 something starting with __ and the normal name is an alias. */
14168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14171 char (*f) () = $ac_func;
14180 return f != $ac_func;
14185 rm -f conftest.
$ac_objext conftest
$ac_exeext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14187 (eval $ac_link) 2>conftest.er1
14189 grep -v '^ *+' conftest.er1
>conftest.err
14191 cat conftest.err
>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try
='test -z "$ac_c_werror_flag"
14195 || test ! -s conftest.err'
14196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14197 (eval $ac_try) 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); }; } &&
14201 { ac_try
='test -s conftest$ac_exeext'
14202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14203 (eval $ac_try) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); }; }; then
14207 eval "$as_ac_var=yes"
14209 echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.
$ac_ext >&5
14212 eval "$as_ac_var=no"
14214 rm -f conftest.err conftest.
$ac_objext \
14215 conftest
$ac_exeext conftest.
$ac_ext
14217 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14218 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14219 if test `eval echo '${'$as_ac_var'}'` = yes; then
14221 cat >>confdefs.h
<<_ACEOF
14222 #define CRAY_STACKSEG_END $ac_func
14231 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14232 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14233 if test "${ac_cv_c_stack_direction+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 if test "$cross_compiling" = yes; then
14237 ac_cv_c_stack_direction
=0
14239 cat >conftest.
$ac_ext <<_ACEOF
14242 cat confdefs.h
>>conftest.
$ac_ext
14243 cat >>conftest.
$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14246 find_stack_direction ()
14248 static char *addr = 0;
14253 return find_stack_direction ();
14256 return (&dummy > addr) ? 1 : -1;
14262 exit (find_stack_direction () < 0);
14265 rm -f conftest
$ac_exeext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14267 (eval $ac_link) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14272 (eval $ac_try) 2>&5
14274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); }; }; then
14276 ac_cv_c_stack_direction
=1
14278 echo "$as_me: program exited with status $ac_status" >&5
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.
$ac_ext >&5
14282 ( exit $ac_status )
14283 ac_cv_c_stack_direction
=-1
14285 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14288 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14289 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14291 cat >>confdefs.h
<<_ACEOF
14292 #define STACK_DIRECTION $ac_cv_c_stack_direction
14298 if test x
$gcc_no_link = xyes
; then
14299 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
14300 ac_cv_func_mmap_fixed_mapped
=no
14303 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset
; then
14306 for ac_header
in stdlib.h unistd.h
14308 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14310 echo "$as_me:$LINENO: checking for $ac_header" >&5
14311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14313 echo $ECHO_N "(cached) $ECHO_C" >&6
14315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14318 # Is the header compilable?
14319 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14321 cat >conftest.
$ac_ext <<_ACEOF
14324 cat confdefs.h
>>conftest.
$ac_ext
14325 cat >>conftest.
$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327 $ac_includes_default
14328 #include <$ac_header>
14330 rm -f conftest.
$ac_objext
14331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14332 (eval $ac_compile) 2>conftest.er1
14334 grep -v '^ *+' conftest.er1
>conftest.err
14336 cat conftest.err
>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } &&
14339 { ac_try
='test -z "$ac_c_werror_flag"
14340 || test ! -s conftest.err'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; } &&
14346 { ac_try
='test -s conftest.$ac_objext'
14347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14348 (eval $ac_try) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); }; }; then
14352 ac_header_compiler
=yes
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.
$ac_ext >&5
14357 ac_header_compiler
=no
14359 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14360 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14361 echo "${ECHO_T}$ac_header_compiler" >&6
14363 # Is the header present?
14364 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14366 cat >conftest.
$ac_ext <<_ACEOF
14369 cat confdefs.h
>>conftest.
$ac_ext
14370 cat >>conftest.
$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 #include <$ac_header>
14374 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14375 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14377 grep -v '^ *+' conftest.er1
>conftest.err
14379 cat conftest.err
>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } >/dev
/null
; then
14382 if test -s conftest.err
; then
14383 ac_cpp_err
=$ac_c_preproc_warn_flag
14384 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14391 if test -z "$ac_cpp_err"; then
14392 ac_header_preproc
=yes
14394 echo "$as_me: failed program was:" >&5
14395 sed 's/^/| /' conftest.
$ac_ext >&5
14397 ac_header_preproc
=no
14399 rm -f conftest.err conftest.
$ac_ext
14400 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14401 echo "${ECHO_T}$ac_header_preproc" >&6
14403 # So? What about this header?
14404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14410 ac_header_preproc
=yes
14413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14427 ## ------------------------------------------ ##
14428 ## Report this to the AC_PACKAGE_NAME lists. ##
14429 ## ------------------------------------------ ##
14432 sed "s/^/$as_me: WARNING: /" >&2
14435 echo "$as_me:$LINENO: checking for $ac_header" >&5
14436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14437 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14438 echo $ECHO_N "(cached) $ECHO_C" >&6
14440 eval "$as_ac_Header=\$ac_header_preproc"
14442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14447 cat >>confdefs.h
<<_ACEOF
14448 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14456 for ac_func
in getpagesize
14458 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14459 echo "$as_me:$LINENO: checking for $ac_func" >&5
14460 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14461 if eval "test \"\${$as_ac_var+set}\" = set"; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 if test x
$gcc_no_link = xyes
; then
14465 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
14466 echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
14467 { (exit 1); exit 1; }; }
14469 cat >conftest.
$ac_ext <<_ACEOF
14472 cat confdefs.h
>>conftest.
$ac_ext
14473 cat >>conftest.
$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14477 #define $ac_func innocuous_$ac_func
14479 /* System header to define __stub macros and hopefully few prototypes,
14480 which can conflict with char $ac_func (); below.
14481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14482 <limits.h> exists even on freestanding compilers. */
14485 # include <limits.h>
14487 # include <assert.h>
14492 /* Override any gcc2 internal prototype to avoid an error. */
14497 /* We use char because int might match the return type of a gcc2
14498 builtin and then its argument prototype would still apply. */
14500 /* The GNU C library defines this for functions which it implements
14501 to always fail with ENOSYS. Some functions are actually named
14502 something starting with __ and the normal name is an alias. */
14503 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14506 char (*f) () = $ac_func;
14515 return f != $ac_func;
14520 rm -f conftest.
$ac_objext conftest
$ac_exeext
14521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14522 (eval $ac_link) 2>conftest.er1
14524 grep -v '^ *+' conftest.er1
>conftest.err
14526 cat conftest.err
>&5
14527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528 (exit $ac_status); } &&
14529 { ac_try
='test -z "$ac_c_werror_flag"
14530 || test ! -s conftest.err'
14531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14532 (eval $ac_try) 2>&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 (exit $ac_status); }; } &&
14536 { ac_try
='test -s conftest$ac_exeext'
14537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14538 (eval $ac_try) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); }; }; then
14542 eval "$as_ac_var=yes"
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.
$ac_ext >&5
14547 eval "$as_ac_var=no"
14549 rm -f conftest.err conftest.
$ac_objext \
14550 conftest
$ac_exeext conftest.
$ac_ext
14552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14553 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14554 if test `eval echo '${'$as_ac_var'}'` = yes; then
14555 cat >>confdefs.h
<<_ACEOF
14556 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14562 echo "$as_me:$LINENO: checking for working mmap" >&5
14563 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14564 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 if test "$cross_compiling" = yes; then
14568 ac_cv_func_mmap_fixed_mapped
=no
14570 cat >conftest.
$ac_ext <<_ACEOF
14573 cat confdefs.h
>>conftest.
$ac_ext
14574 cat >>conftest.
$ac_ext <<_ACEOF
14575 /* end confdefs.h. */
14576 $ac_includes_default
14577 /* malloc might have been renamed as rpl_malloc. */
14580 /* Thanks to Mike Haertel and Jim Avera for this test.
14581 Here is a matrix of mmap possibilities:
14582 mmap private not fixed
14583 mmap private fixed at somewhere currently unmapped
14584 mmap private fixed at somewhere already mapped
14585 mmap shared not fixed
14586 mmap shared fixed at somewhere currently unmapped
14587 mmap shared fixed at somewhere already mapped
14588 For private mappings, we should verify that changes cannot be read()
14589 back from the file, nor mmap's back from the file at a different
14590 address. (There have been systems where private was not correctly
14591 implemented like the infamous i386 svr4.0, and systems where the
14592 VM page cache was not coherent with the file system buffer cache
14593 like early versions of FreeBSD and possibly contemporary NetBSD.)
14594 For shared mappings, we should conversely verify that changes get
14595 propagated back to all the places they're supposed to be.
14597 Grep wants private fixed already mapped.
14598 The main things grep needs to know about mmap are:
14599 * does it exist and is it safe to write into the mmap'd area
14600 * how to use it (BSD variants) */
14603 #include <sys/mman.h>
14605 #if !STDC_HEADERS && !HAVE_STDLIB_H
14609 /* This mess was copied from the GNU getpagesize.h. */
14610 #if !HAVE_GETPAGESIZE
14611 /* Assume that all systems that can run configure have sys/param.h. */
14612 # if !HAVE_SYS_PARAM_H
14613 # define HAVE_SYS_PARAM_H 1
14616 # ifdef _SC_PAGESIZE
14617 # define getpagesize() sysconf(_SC_PAGESIZE)
14618 # else /* no _SC_PAGESIZE */
14619 # if HAVE_SYS_PARAM_H
14620 # include <sys/param.h>
14621 # ifdef EXEC_PAGESIZE
14622 # define getpagesize() EXEC_PAGESIZE
14623 # else /* no EXEC_PAGESIZE */
14625 # define getpagesize() NBPG * CLSIZE
14628 # endif /* no CLSIZE */
14629 # else /* no NBPG */
14631 # define getpagesize() NBPC
14632 # else /* no NBPC */
14634 # define getpagesize() PAGESIZE
14635 # endif /* PAGESIZE */
14636 # endif /* no NBPC */
14637 # endif /* no NBPG */
14638 # endif /* no EXEC_PAGESIZE */
14639 # else /* no HAVE_SYS_PARAM_H */
14640 # define getpagesize() 8192 /* punt totally */
14641 # endif /* no HAVE_SYS_PARAM_H */
14642 # endif /* no _SC_PAGESIZE */
14644 #endif /* no HAVE_GETPAGESIZE */
14649 char *data, *data2, *data3;
14653 pagesize = getpagesize ();
14655 /* First, make a file with some known garbage in it. */
14656 data = (char *) malloc (pagesize);
14659 for (i = 0; i < pagesize; ++i)
14660 *(data + i) = rand ();
14662 fd = creat ("conftest.mmap", 0600);
14665 if (write (fd, data, pagesize) != pagesize)
14669 /* Next, try to mmap the file at a fixed address which already has
14670 something else allocated at it. If we can, also make sure that
14671 we see the same garbage. */
14672 fd = open ("conftest.mmap", O_RDWR);
14675 data2 = (char *) malloc (2 * pagesize);
14678 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14679 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14680 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14682 for (i = 0; i < pagesize; ++i)
14683 if (*(data + i) != *(data2 + i))
14686 /* Finally, make sure that changes to the mapped area do not
14687 percolate back to the file as seen by read(). (This is a bug on
14688 some variants of i386 svr4.0.) */
14689 for (i = 0; i < pagesize; ++i)
14690 *(data2 + i) = *(data2 + i) + 1;
14691 data3 = (char *) malloc (pagesize);
14694 if (read (fd, data3, pagesize) != pagesize)
14696 for (i = 0; i < pagesize; ++i)
14697 if (*(data + i) != *(data3 + i))
14703 rm -f conftest
$ac_exeext
14704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14705 (eval $ac_link) 2>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14710 (eval $ac_try) 2>&5
14712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14713 (exit $ac_status); }; }; then
14714 ac_cv_func_mmap_fixed_mapped
=yes
14716 echo "$as_me: program exited with status $ac_status" >&5
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.
$ac_ext >&5
14720 ( exit $ac_status )
14721 ac_cv_func_mmap_fixed_mapped
=no
14723 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14726 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14727 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14728 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14730 cat >>confdefs.h
<<\_ACEOF
14731 #define HAVE_MMAP 1
14735 rm -f conftest.mmap
14739 for ac_prog
in perl
14741 # Extract the first word of "$ac_prog", so it can be a program name with args.
14742 set dummy
$ac_prog; ac_word
=$2
14743 echo "$as_me:$LINENO: checking for $ac_word" >&5
14744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14745 if test "${ac_cv_prog_PERL+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 if test -n "$PERL"; then
14749 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
14751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14752 for as_dir
in $PATH
14755 test -z "$as_dir" && as_dir
=.
14756 for ac_exec_ext
in '' $ac_executable_extensions; do
14757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14758 ac_cv_prog_PERL
="$ac_prog"
14759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14767 PERL
=$ac_cv_prog_PERL
14768 if test -n "$PERL"; then
14769 echo "$as_me:$LINENO: result: $PERL" >&5
14770 echo "${ECHO_T}$PERL" >&6
14772 echo "$as_me:$LINENO: result: no" >&5
14773 echo "${ECHO_T}no" >&6
14776 test -n "$PERL" && break
14778 test -n "$PERL" || PERL
="false"
14782 SIGNAL_HANDLER_AUX
=
14786 SIGNAL_HANDLER
=include
/i386-signal.h
14788 sparc
*-sun-solaris*)
14789 SIGNAL_HANDLER
=include
/sparc-signal.h
14792 # SYSDEP_SOURCES=sysdep/ia64.c
14793 # test -d sysdep || mkdir sysdep
14796 SIGNAL_HANDLER
=include
/pa-signal.h
14799 SIGNAL_HANDLER
=include
/dwarf2-signal.h
14802 SIGNAL_HANDLER
=include
/powerpc-signal.h
14805 SIGNAL_HANDLER
=include
/dwarf2-signal.h
14808 SIGNAL_HANDLER
=include
/s390-signal.h
14811 SIGNAL_HANDLER
=include
/x86_64-signal.h
14812 SIGNAL_HANDLER_AUX
=include
/i386-signal.h
14815 SIGNAL_HANDLER
=include
/dwarf2-signal.h
14817 sh-
*-linux* | sh
[34]*-*-linux*)
14818 SIGNAL_HANDLER
=include
/dwarf2-signal.h
14821 SIGNAL_HANDLER
=include
/win32-signal.h
14824 SIGNAL_HANDLER
=include
/mips-signal.h
14827 SIGNAL_HANDLER
=include
/darwin-signal.h
14830 SIGNAL_HANDLER
=include
/default-signal.h
14834 # If we're using sjlj exceptions, forget what we just learned.
14835 if test "$enable_sjlj_exceptions" = yes; then
14836 SIGNAL_HANDLER
=include
/default-signal.h
14837 SIGNAL_HANDLER_AUX
=
14840 # Define here any compiler flags that you need in order to make backtrace() work.
14843 x86_64
*-*-linux*|i?
86-*)
14844 BACKTRACESPEC
=-fno-omit-frame-pointer
14851 if test -z "$SIGNAL_HANDLER_AUX"; then
14852 SIGNAL_HANDLER_AUX
=$SIGNAL_HANDLER
14855 ac_config_links
="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
14858 if test "${multilib}" = "yes"; then
14859 multilib_arg
="--enable-multilib"
14866 here
=`${PWDCMD-pwd}`
14869 # We get this from the environment.
14872 ac_config_files
="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gnu/classpath/Configuration.java gcj/Makefile include/Makefile testsuite/Makefile"
14873 ac_config_commands
="$ac_config_commands default"
14874 cat >confcache
<<\_ACEOF
14875 # This file is a shell script that caches the results of configure
14876 # tests run on this system so they can be shared between configure
14877 # scripts and configure runs, see configure's option --config-cache.
14878 # It is not useful on other systems. If it contains results you don't
14879 # want to keep, you may remove or edit it.
14881 # config.status only pays attention to the cache file if you give it
14882 # the --recheck option to rerun configure.
14884 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14885 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14886 # following values.
14890 # The following way of writing the cache mishandles newlines in values,
14891 # but we know of no workaround that is simple, portable, and efficient.
14892 # So, don't put newlines in cache variables' values.
14893 # Ultrix sh set writes to stderr and can't be redirected directly,
14894 # and sets the high bit in the cache file unless we assign to the vars.
14897 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14899 # `set' does not quote correctly, so add quotes (double-quote
14900 # substitution turns \\\\ into \\, and sed turns \\ into \).
14903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14906 # `set' quotes correctly as required by POSIX, so do not add quotes.
14908 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14915 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14917 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14919 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
14920 if test -w $cache_file; then
14921 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14922 cat confcache
>$cache_file
14924 echo "not updating unwritable cache $cache_file"
14929 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14930 # Let make expand exec_prefix.
14931 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14935 # trailing colons and then remove the whole line if VPATH becomes empty
14936 # (actually we leave an empty line to preserve line numbers).
14937 if test "x$srcdir" = x.
; then
14938 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
14939 s/:*\$(srcdir):*/:/;
14940 s/:*\${srcdir}:*/:/;
14942 s/^\([^=]*=[ ]*\):*/\1/;
14948 DEFS
=-DHAVE_CONFIG_H
14952 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14953 # 1. Remove the extension, and $U if already installed.
14954 ac_i
=`echo "$ac_i" |
14955 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14957 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
14958 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
14960 LIBOBJS
=$ac_libobjs
14962 LTLIBOBJS
=$ac_ltlibobjs
14966 : ${CONFIG_STATUS=./config.status}
14967 ac_clean_files_save
=$ac_clean_files
14968 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14969 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14970 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14971 cat >$CONFIG_STATUS <<_ACEOF
14973 # Generated by $as_me.
14974 # Run this file to recreate the current configuration.
14975 # Compiler output produced by configure, useful for debugging
14976 # configure, is in config.log if it exists.
14979 ac_cs_recheck=false
14981 SHELL=\${CONFIG_SHELL-$SHELL}
14984 cat >>$CONFIG_STATUS <<\_ACEOF
14985 ## --------------------- ##
14986 ## M4sh Initialization. ##
14987 ## --------------------- ##
14989 # Be Bourne compatible
14990 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
14993 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14994 # is contrary to our usage. Disable this feature.
14995 alias -g '${1+"$@"}'='"$@"'
14996 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
14999 DUALCASE
=1; export DUALCASE
# for MKS sh
15001 # Support unset when possible.
15002 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15009 # Work around bugs in pre-3.0 UWIN ksh.
15010 $as_unset ENV MAIL MAILPATH
15017 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15018 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15019 LC_TELEPHONE LC_TIME
15021 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15022 eval $as_var=C
; export $as_var
15028 # Required to use basename.
15029 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15035 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
15036 as_basename
=basename
15042 # Name of the executable.
15043 as_me
=`$as_basename "$0" ||
15044 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15045 X"$0" : 'X\(//\)$' \| \
15046 X"$0" : 'X\(/\)$' \| \
15047 . : '\(.\)' 2>/dev/null ||
15049 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15050 /^X\/\(\/\/\)$/{ s//\1/; q; }
15051 /^X\/\(\/\).*/{ s//\1/; q; }
15055 # PATH needs CR, and LINENO needs CR and PATH.
15056 # Avoid depending upon Character Ranges.
15057 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15058 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15059 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15060 as_cr_digits
='0123456789'
15061 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15063 # The user is always right.
15064 if test "${PATH_SEPARATOR+set}" != set; then
15065 echo "#! /bin/sh" >conf$$.sh
15066 echo "exit 0" >>conf$$.sh
15068 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15077 as_lineno_1
=$LINENO
15078 as_lineno_2
=$LINENO
15079 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
15080 test "x$as_lineno_1" != "x$as_lineno_2" &&
15081 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
15082 # Find who we are. Look in the path if we contain no path at all
15085 *[\\/]* ) as_myself
=$0 ;;
15086 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15087 for as_dir
in $PATH
15090 test -z "$as_dir" && as_dir
=.
15091 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15096 # We did not find ourselves, most probably we were run as `sh COMMAND'
15097 # in which case we are not to be found in the path.
15098 if test "x$as_myself" = x
; then
15101 if test ! -f "$as_myself"; then
15102 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15103 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15104 { (exit 1); exit 1; }; }
15106 case $CONFIG_SHELL in
15108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15109 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
15112 test -z "$as_dir" && as_dir
=.
15113 for as_base
in sh bash ksh sh5
; do
15116 if ("$as_dir/$as_base" -c '
15117 as_lineno_1=$LINENO
15118 as_lineno_2=$LINENO
15119 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15120 test "x$as_lineno_1" != "x$as_lineno_2" &&
15121 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
15122 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
15123 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
15124 CONFIG_SHELL
=$as_dir/$as_base
15125 export CONFIG_SHELL
15126 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15134 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15135 # uniformly replaced by the line number. The first 'sed' inserts a
15136 # line-number line before each line; the second 'sed' does the real
15137 # work. The second script uses 'N' to pair each line-number line
15138 # with the numbered line, and appends trailing '-' during
15139 # substitution so that $LINENO is not a special case at line end.
15140 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15141 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15142 sed '=' <$as_myself |
15147 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15150 s,^['$as_cr_digits']*\n,,
15151 ' >$as_me.lineno
&&
15152 chmod +x
$as_me.lineno ||
15153 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15154 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15155 { (exit 1); exit 1; }; }
15157 # Don't try to exec as it changes $[0], causing all sort of problems
15158 # (the dirname of $[0] is not the place where we might find the
15159 # original and so on. Autoconf is especially sensible to this).
15161 # Exit status is that of the last command.
15166 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15167 *c
*,-n*) ECHO_N
= ECHO_C
='
15169 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
15170 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
15173 if expr a
: '\(a\)' >/dev
/null
2>&1; then
15179 rm -f conf$$ conf$$.exe conf$$.
file
15181 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15182 # We could just check for DJGPP; but this test a) works b) is more generic
15183 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15184 if test -f conf$$.exe
; then
15185 # Don't use ln at all; we don't have any links
15190 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15195 rm -f conf$$ conf$$.exe conf$$.
file
15197 if mkdir
-p .
2>/dev
/null
; then
15200 test -d .
/-p && rmdir .
/-p
15204 as_executable_p
="test -f"
15206 # Sed expression to map a string onto a valid CPP name.
15207 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15209 # Sed expression to map a string onto a valid variable name.
15210 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15214 # We need space, tab and new line, in precisely that order.
15224 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15225 # report actual input values of CONFIG_FILES etc. instead of their
15226 # values after options handling. Logging --version etc. is OK.
15230 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15231 ## Running $as_me. ##
15236 This file was extended by $as_me, which was
15237 generated by GNU Autoconf 2.59. Invocation command line was
15239 CONFIG_FILES = $CONFIG_FILES
15240 CONFIG_HEADERS = $CONFIG_HEADERS
15241 CONFIG_LINKS = $CONFIG_LINKS
15242 CONFIG_COMMANDS = $CONFIG_COMMANDS
15246 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15250 # Files that config.status was made for.
15251 if test -n "$ac_config_files"; then
15252 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15255 if test -n "$ac_config_headers"; then
15256 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15259 if test -n "$ac_config_links"; then
15260 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15263 if test -n "$ac_config_commands"; then
15264 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15267 cat >>$CONFIG_STATUS <<\_ACEOF
15270 \`$as_me' instantiates files from templates according to the
15271 current configuration.
15273 Usage: $0 [OPTIONS] [FILE]...
15275 -h, --help print this help, then exit
15276 -V, --version print version number, then exit
15277 -q, --quiet do not print progress messages
15278 -d, --debug don't remove temporary files
15279 --recheck update $as_me by reconfiguring in the same conditions
15280 --file=FILE[:TEMPLATE]
15281 instantiate the configuration file FILE
15282 --header=FILE[:TEMPLATE]
15283 instantiate the configuration header FILE
15285 Configuration files:
15288 Configuration headers:
15291 Configuration links:
15294 Configuration commands:
15297 Report bugs to <bug-autoconf@gnu.org>."
15300 cat >>$CONFIG_STATUS <<_ACEOF
15303 configured by $0, generated by GNU Autoconf 2.59,
15304 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15306 Copyright (C) 2003 Free Software Foundation, Inc.
15307 This config.status script is free software; the Free Software Foundation
15308 gives unlimited permission to copy, distribute and modify it."
15313 cat >>$CONFIG_STATUS <<\_ACEOF
15314 # If no file are specified by the user, then we need to provide default
15315 # value. By we need to know if files were specified by the user.
15321 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
15322 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
15330 *) # This is not an option, so the user has probably given explicit
15333 ac_need_defaults
=false
;;
15337 # Handling of the options.
15339 cat >>$CONFIG_STATUS <<\_ACEOF
15340 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15342 --version |
--vers* |
-V )
15343 echo "$ac_cs_version"; exit 0 ;;
15345 # Conflict between --help and --header
15346 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15347 Try \`$0 --help' for more information." >&5
15348 echo "$as_me: error: ambiguous option: $1
15349 Try \`$0 --help' for more information." >&2;}
15350 { (exit 1); exit 1; }; };;
15351 --help |
--hel |
-h )
15352 echo "$ac_cs_usage"; exit 0 ;;
15353 --debug |
--d* |
-d )
15355 --file |
--fil |
--fi |
--f )
15357 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15358 ac_need_defaults
=false
;;
15359 --header |
--heade |
--head |
--hea )
15361 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
15362 ac_need_defaults
=false
;;
15363 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15364 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15367 # This is an error.
15368 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15369 Try \`$0 --help' for more information." >&5
15370 echo "$as_me: error: unrecognized option: $1
15371 Try \`$0 --help' for more information." >&2;}
15372 { (exit 1); exit 1; }; } ;;
15374 *) ac_config_targets
="$ac_config_targets $1" ;;
15380 ac_configure_extra_args
=
15382 if $ac_cs_silent; then
15384 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15388 cat >>$CONFIG_STATUS <<_ACEOF
15389 if \$ac_cs_recheck; then
15390 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15391 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15396 cat >>$CONFIG_STATUS <<_ACEOF
15398 # INIT-COMMANDS section.
15405 with_multisubdir=${with_multisubdir}
15406 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15407 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15408 libgcj_basedir=${libgcj_basedir}
15411 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
15418 cat >>$CONFIG_STATUS <<\_ACEOF
15419 for ac_config_target
in $ac_config_targets
15421 case "$ac_config_target" in
15422 # Handling of arguments.
15423 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15424 "libgcj.pc" ) CONFIG_FILES
="$CONFIG_FILES libgcj.pc" ;;
15425 "libgcj.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj.spec" ;;
15426 "libgcj-test.spec" ) CONFIG_FILES
="$CONFIG_FILES libgcj-test.spec" ;;
15427 "gnu/classpath/Configuration.java" ) CONFIG_FILES
="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
15428 "gcj/Makefile" ) CONFIG_FILES
="$CONFIG_FILES gcj/Makefile" ;;
15429 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
15430 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
15431 "include/platform.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
15432 "java/io/natFile.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
15433 "java/lang/ConcreteProcess.java" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/ConcreteProcess.java:java/lang/${PLATFORM}Process.java" ;;
15434 "java/lang/natConcreteProcess.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
15435 "java/net/natInetAddress.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natInetAddress.cc:java/net/natInetAddress${PLATFORMNET}.cc" ;;
15436 "java/net/natNetworkInterface.cc" ) CONFIG_LINKS
="$CONFIG_LINKS java/net/natNetworkInterface.cc:java/net/natNetworkInterface${PLATFORMNET}.cc" ;;
15437 "gnu/java/net/natPlainSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
15438 "gnu/java/net/natPlainDatagramSocketImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
15439 "gnu/java/nio/natPipeImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natPipeImpl.cc:gnu/java/nio/natPipeImpl${PLATFORM}.cc" ;;
15440 "gnu/java/nio/natSelectorImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/natSelectorImpl.cc:gnu/java/nio/natSelectorImpl${PLATFORM}.cc" ;;
15441 "gnu/java/nio/channels/natFileChannelImpl.cc" ) CONFIG_LINKS
="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
15442 "include/java-gc.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
15443 "include/java-threads.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
15444 "sysdep/locks.h" ) CONFIG_LINKS
="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
15445 "include/java-signal.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
15446 "include/java-signal-aux.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
15447 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
15448 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
15449 "include/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS include/config.h" ;;
15450 "gcj/libgcj-config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
15451 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15452 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15453 { (exit 1); exit 1; }; };;
15457 # If the user did not use the arguments to specify the items to instantiate,
15458 # then the envvar interface is used. Set only those that are not.
15459 # We use the long form for the default assignment because of an extremely
15460 # bizarre bug on SunOS 4.1.3.
15461 if $ac_need_defaults; then
15462 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15463 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15464 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
15465 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15468 # Have a temporary directory for convenience. Make it in the build tree
15469 # simply because there is no reason to put it here, and in addition,
15470 # creating and moving files from /tmp can sometimes cause problems.
15471 # Create a temporary directory, and hook for its removal unless debugging.
15474 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15475 trap '{ (exit 1); exit 1; }' 1 2 13 15
15478 # Create a (secure) tmp directory for tmp files.
15481 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15482 test -n "$tmp" && test -d "$tmp"
15485 tmp
=.
/confstat$$
-$RANDOM
15486 (umask 077 && mkdir
$tmp)
15489 echo "$me: cannot create a temporary directory in ." >&2
15490 { (exit 1); exit 1; }
15495 cat >>$CONFIG_STATUS <<_ACEOF
15498 # CONFIG_FILES section.
15501 # No need to generate the scripts if there are no CONFIG_FILES.
15502 # This happens for instance when ./config.status config.h
15503 if test -n "\$CONFIG_FILES"; then
15504 # Protect against being on the right side of a sed subst in config.status.
15505 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15506 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15507 s,@SHELL@,$SHELL,;t t
15508 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15509 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15510 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15511 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15512 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15513 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15514 s,@exec_prefix@,$exec_prefix,;t t
15515 s,@prefix@,$prefix,;t t
15516 s,@program_transform_name@,$program_transform_name,;t t
15517 s,@bindir@,$bindir,;t t
15518 s,@sbindir@,$sbindir,;t t
15519 s,@libexecdir@,$libexecdir,;t t
15520 s,@datadir@,$datadir,;t t
15521 s,@sysconfdir@,$sysconfdir,;t t
15522 s,@sharedstatedir@,$sharedstatedir,;t t
15523 s,@localstatedir@,$localstatedir,;t t
15524 s,@libdir@,$libdir,;t t
15525 s,@includedir@,$includedir,;t t
15526 s,@oldincludedir@,$oldincludedir,;t t
15527 s,@infodir@,$infodir,;t t
15528 s,@mandir@,$mandir,;t t
15529 s,@build_alias@,$build_alias,;t t
15530 s,@host_alias@,$host_alias,;t t
15531 s,@target_alias@,$target_alias,;t t
15532 s,@DEFS@,$DEFS,;t t
15533 s,@ECHO_C@,$ECHO_C,;t t
15534 s,@ECHO_N@,$ECHO_N,;t t
15535 s,@ECHO_T@,$ECHO_T,;t t
15536 s,@LIBS@,$LIBS,;t t
15537 s,@libgcj_basedir@,$libgcj_basedir,;t t
15538 s,@build@,$build,;t t
15539 s,@build_cpu@,$build_cpu,;t t
15540 s,@build_vendor@,$build_vendor,;t t
15541 s,@build_os@,$build_os,;t t
15542 s,@host@,$host,;t t
15543 s,@host_cpu@,$host_cpu,;t t
15544 s,@host_vendor@,$host_vendor,;t t
15545 s,@host_os@,$host_os,;t t
15546 s,@target@,$target,;t t
15547 s,@target_cpu@,$target_cpu,;t t
15548 s,@target_vendor@,$target_vendor,;t t
15549 s,@target_os@,$target_os,;t t
15550 s,@target_noncanonical@,$target_noncanonical,;t t
15551 s,@LN_S@,$LN_S,;t t
15552 s,@mkinstalldirs@,$mkinstalldirs,;t t
15554 s,@ac_ct_CC@,$ac_ct_CC,;t t
15555 s,@EXEEXT@,$EXEEXT,;t t
15556 s,@OBJEXT@,$OBJEXT,;t t
15558 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
15559 s,@CFLAGS@,$CFLAGS,;t t
15560 s,@CXXFLAGS@,$CXXFLAGS,;t t
15561 s,@LDFLAGS@,$LDFLAGS,;t t
15562 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15563 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15564 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15565 s,@PACKAGE@,$PACKAGE,;t t
15566 s,@VERSION@,$VERSION,;t t
15567 s,@ACLOCAL@,$ACLOCAL,;t t
15568 s,@AUTOCONF@,$AUTOCONF,;t t
15569 s,@AUTOMAKE@,$AUTOMAKE,;t t
15570 s,@AUTOHEADER@,$AUTOHEADER,;t t
15571 s,@MAKEINFO@,$MAKEINFO,;t t
15572 s,@SET_MAKE@,$SET_MAKE,;t t
15574 s,@ac_ct_AS@,$ac_ct_AS,;t t
15576 s,@ac_ct_AR@,$ac_ct_AR,;t t
15577 s,@RANLIB@,$RANLIB,;t t
15578 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
15579 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
15580 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
15581 s,@MAINT@,$MAINT,;t t
15582 s,@LIBGCJ_CFLAGS@,$LIBGCJ_CFLAGS,;t t
15583 s,@LIBGCJ_CXXFLAGS@,$LIBGCJ_CXXFLAGS,;t t
15584 s,@LIBGCJ_JAVAFLAGS@,$LIBGCJ_JAVAFLAGS,;t t
15585 s,@INCLTDL@,$INCLTDL,;t t
15586 s,@LIBLTDL@,$LIBLTDL,;t t
15587 s,@DIRLTDL@,$DIRLTDL,;t t
15588 s,@STRIP@,$STRIP,;t t
15589 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15590 s,@LIBTOOL@,$LIBTOOL,;t t
15591 s,@CXXCPP@,$CXXCPP,;t t
15592 s,@CPPFLAGS@,$CPPFLAGS,;t t
15593 s,@subdirs@,$subdirs,;t t
15594 s,@COMPPATH@,$COMPPATH,;t t
15595 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
15596 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
15597 s,@ONESTEP_TRUE@,$ONESTEP_TRUE,;t t
15598 s,@ONESTEP_FALSE@,$ONESTEP_FALSE,;t t
15599 s,@LIBGCJDEBUG@,$LIBGCJDEBUG,;t t
15600 s,@INTERPRETER@,$INTERPRETER,;t t
15601 s,@LIBFFI@,$LIBFFI,;t t
15602 s,@LIBFFIINCS@,$LIBFFIINCS,;t t
15603 s,@EXTRA_CC_FILES@,$EXTRA_CC_FILES,;t t
15604 s,@PLATFORMOBJS@,$PLATFORMOBJS,;t t
15605 s,@PLATFORM_INNER_NAT_HDRS@,$PLATFORM_INNER_NAT_HDRS,;t t
15607 s,@EGREP@,$EGREP,;t t
15608 s,@SYSTEMSPEC@,$SYSTEMSPEC,;t t
15609 s,@LIBGCJTESTSPEC@,$LIBGCJTESTSPEC,;t t
15610 s,@ZLIBSPEC@,$ZLIBSPEC,;t t
15611 s,@ZLIBTESTSPEC@,$ZLIBTESTSPEC,;t t
15612 s,@X_CFLAGS@,$X_CFLAGS,;t t
15613 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
15614 s,@X_LIBS@,$X_LIBS,;t t
15615 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
15616 s,@TOOLKIT@,$TOOLKIT,;t t
15617 s,@XLIB_AWT_TRUE@,$XLIB_AWT_TRUE,;t t
15618 s,@XLIB_AWT_FALSE@,$XLIB_AWT_FALSE,;t t
15619 s,@GTK_AWT_TRUE@,$GTK_AWT_TRUE,;t t
15620 s,@GTK_AWT_FALSE@,$GTK_AWT_FALSE,;t t
15621 s,@GTK_CAIRO_TRUE@,$GTK_CAIRO_TRUE,;t t
15622 s,@GTK_CAIRO_FALSE@,$GTK_CAIRO_FALSE,;t t
15623 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
15624 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
15625 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
15626 s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
15627 s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
15628 s,@GCLIBS@,$GCLIBS,;t t
15629 s,@GCINCS@,$GCINCS,;t t
15630 s,@GCDEPS@,$GCDEPS,;t t
15631 s,@GCOBJS@,$GCOBJS,;t t
15632 s,@GCSPEC@,$GCSPEC,;t t
15633 s,@JC1GCSPEC@,$JC1GCSPEC,;t t
15634 s,@GCTESTSPEC@,$GCTESTSPEC,;t t
15635 s,@THREADLIBS@,$THREADLIBS,;t t
15636 s,@THREADINCS@,$THREADINCS,;t t
15637 s,@THREADDEPS@,$THREADDEPS,;t t
15638 s,@THREADOBJS@,$THREADOBJS,;t t
15639 s,@THREADSPEC@,$THREADSPEC,;t t
15640 s,@THREADLDFLAGS@,$THREADLDFLAGS,;t t
15641 s,@THREADCXXFLAGS@,$THREADCXXFLAGS,;t t
15642 s,@HASH_SYNC_SPEC@,$HASH_SYNC_SPEC,;t t
15643 s,@USING_GCC_TRUE@,$USING_GCC_TRUE,;t t
15644 s,@USING_GCC_FALSE@,$USING_GCC_FALSE,;t t
15645 s,@tool_include_dir@,$tool_include_dir,;t t
15646 s,@gcc_version@,$gcc_version,;t t
15647 s,@LIBICONV@,$LIBICONV,;t t
15648 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
15649 s,@GTK_LIBS@,$GTK_LIBS,;t t
15650 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
15651 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
15652 s,@LIBART_CFLAGS@,$LIBART_CFLAGS,;t t
15653 s,@LIBART_LIBS@,$LIBART_LIBS,;t t
15654 s,@GCJH@,$GCJH,;t t
15657 s,@ac_ct_GCJ@,$ac_ct_GCJ,;t t
15658 s,@GCJFLAGS@,$GCJFLAGS,;t t
15659 s,@ZLIBS@,$ZLIBS,;t t
15660 s,@SYS_ZLIBS@,$SYS_ZLIBS,;t t
15661 s,@ZINCS@,$ZINCS,;t t
15662 s,@DIVIDESPEC@,$DIVIDESPEC,;t t
15663 s,@CHECKREFSPEC@,$CHECKREFSPEC,;t t
15664 s,@EXCEPTIONSPEC@,$EXCEPTIONSPEC,;t t
15665 s,@IEEESPEC@,$IEEESPEC,;t t
15666 s,@NATIVE_TRUE@,$NATIVE_TRUE,;t t
15667 s,@NATIVE_FALSE@,$NATIVE_FALSE,;t t
15668 s,@NEEDS_DATA_START_TRUE@,$NEEDS_DATA_START_TRUE,;t t
15669 s,@NEEDS_DATA_START_FALSE@,$NEEDS_DATA_START_FALSE,;t t
15670 s,@GCC_UNWIND_INCLUDE@,$GCC_UNWIND_INCLUDE,;t t
15671 s,@toolexecdir@,$toolexecdir,;t t
15672 s,@toolexecmainlibdir@,$toolexecmainlibdir,;t t
15673 s,@toolexeclibdir@,$toolexeclibdir,;t t
15674 s,@GCJVERSION@,$GCJVERSION,;t t
15675 s,@ALLOCA@,$ALLOCA,;t t
15676 s,@PERL@,$PERL,;t t
15677 s,@BACKTRACESPEC@,$BACKTRACESPEC,;t t
15678 s,@SYSDEP_SOURCES@,$SYSDEP_SOURCES,;t t
15679 s,@here@,$here,;t t
15680 s,@LIBOBJS@,$LIBOBJS,;t t
15681 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15686 cat >>$CONFIG_STATUS <<\_ACEOF
15687 # Split the substitutions into bite-sized pieces for seds with
15688 # small command number limits, like on Digital OSF/1 and HP-UX.
15689 ac_max_sed_lines
=48
15690 ac_sed_frag
=1 # Number of current file.
15691 ac_beg
=1 # First line for current file.
15692 ac_end
=$ac_max_sed_lines # Line after last line for current file.
15695 while $ac_more_lines; do
15696 if test $ac_beg -gt 1; then
15697 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
15699 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
15701 if test ! -s $tmp/subs.frag
; then
15702 ac_more_lines
=false
15704 # The purpose of the label and of the branching condition is to
15705 # speed up the sed processing (if there are no `@' at all, there
15706 # is no need to browse any of the substitutions).
15707 # These are the two extra sed commands mentioned above.
15709 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
15710 if test -z "$ac_sed_cmds"; then
15711 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
15713 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15715 ac_sed_frag
=`expr $ac_sed_frag + 1`
15717 ac_end
=`expr $ac_end + $ac_max_sed_lines`
15720 if test -z "$ac_sed_cmds"; then
15723 fi # test -n "$CONFIG_FILES"
15726 cat >>$CONFIG_STATUS <<\_ACEOF
15727 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
15728 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15730 - |
*:- |
*:-:* ) # input from stdin
15732 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15733 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15734 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15735 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15736 * ) ac_file_in
=$ac_file.
in ;;
15739 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15740 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
15741 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15742 X"$ac_file" : 'X\(//\)[^/]' \| \
15743 X"$ac_file" : 'X\(//\)$' \| \
15744 X"$ac_file" : 'X\(/\)' \| \
15745 . : '\(.\)' 2>/dev/null ||
15747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15748 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15749 /^X\(\/\/\)$/{ s//\1/; q; }
15750 /^X\(\/\).*/{ s//\1/; q; }
15752 { if $as_mkdir_p; then
15757 while test ! -d "$as_dir"; do
15758 as_dirs
="$as_dir $as_dirs"
15759 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
15760 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15761 X"$as_dir" : 'X\(//\)[^/]' \| \
15762 X"$as_dir" : 'X\(//\)$' \| \
15763 X"$as_dir" : 'X\(/\)' \| \
15764 . : '\(.\)' 2>/dev/null ||
15766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15767 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15768 /^X\(\/\/\)$/{ s//\1/; q; }
15769 /^X\(\/\).*/{ s//\1/; q; }
15772 test ! -n "$as_dirs" || mkdir
$as_dirs
15773 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15774 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15775 { (exit 1); exit 1; }; }; }
15779 if test "$ac_dir" != .
; then
15780 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15781 # A "../" for each directory in $ac_dir_suffix.
15782 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15784 ac_dir_suffix
= ac_top_builddir
=
15788 .
) # No --srcdir option. We are building in place.
15790 if test -z "$ac_top_builddir"; then
15793 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
15795 [\\/]* | ?
:[\\/]* ) # Absolute path.
15796 ac_srcdir
=$srcdir$ac_dir_suffix;
15797 ac_top_srcdir
=$srcdir ;;
15798 *) # Relative path.
15799 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
15800 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
15803 # Do not use `cd foo && pwd` to compute absolute paths, because
15804 # the directories may not exist.
15806 .
) ac_abs_builddir
="$ac_dir";;
15809 .
) ac_abs_builddir
=`pwd`;;
15810 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
15811 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
15814 case $ac_abs_builddir in
15815 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
15817 case ${ac_top_builddir}.
in
15818 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
15819 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
15820 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
15823 case $ac_abs_builddir in
15824 .
) ac_abs_srcdir
=$ac_srcdir;;
15827 .
) ac_abs_srcdir
=$ac_abs_builddir;;
15828 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
15829 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
15832 case $ac_abs_builddir in
15833 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
15835 case $ac_top_srcdir in
15836 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
15837 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
15838 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
15844 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
15845 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
15848 if test x
"$ac_file" != x-
; then
15849 { echo "$as_me:$LINENO: creating $ac_file" >&5
15850 echo "$as_me: creating $ac_file" >&6;}
15853 # Let's still pretend it is `configure' which instantiates (i.e., don't
15854 # use $as_me), people would be surprised to read:
15855 # /* config.h. Generated by config.status. */
15856 if test x
"$ac_file" = x-
; then
15859 configure_input
="$ac_file. "
15861 configure_input
=$configure_input"Generated from `echo $ac_file_in |
15862 sed 's,.*/,,'` by configure."
15864 # First look for the input files in the build tree, otherwise in the
15866 ac_file_inputs
=`IFS=:
15867 for f in $ac_file_in; do
15869 -) echo $tmp/stdin ;;
15871 # Absolute (can't be DOS-style, as IFS=:)
15872 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15873 echo "$as_me: error: cannot find input file: $f" >&2;}
15874 { (exit 1); exit 1; }; }
15877 if test -f "$f"; then
15880 elif test -f "$srcdir/$f"; then
15885 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15886 echo "$as_me: error: cannot find input file: $f" >&2;}
15887 { (exit 1); exit 1; }; }
15890 done` ||
{ (exit 1); exit 1; }
15892 cat >>$CONFIG_STATUS <<_ACEOF
15896 cat >>$CONFIG_STATUS <<\_ACEOF
15898 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
15899 s
,@configure_input@
,$configure_input,;t t
15900 s
,@srcdir@
,$ac_srcdir,;t t
15901 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
15902 s
,@top_srcdir@
,$ac_top_srcdir,;t t
15903 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
15904 s
,@builddir@
,$ac_builddir,;t t
15905 s
,@abs_builddir@
,$ac_abs_builddir,;t t
15906 s
,@top_builddir@
,$ac_top_builddir,;t t
15907 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
15908 s
,@INSTALL@
,$ac_INSTALL,;t t
15909 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15911 if test x"$ac_file" != x-; then
15912 mv $tmp/out $ac_file
15920 cat >>$CONFIG_STATUS <<\_ACEOF
15923 # CONFIG_HEADER section.
15926 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
15927 # NAME is the cpp macro being defined and VALUE is the value it is being given.
15929 # ac_d sets the value in "#define NAME VALUE" lines.
15930 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
15931 ac_dB
='[ ].*$,\1#\2'
15934 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15935 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
15936 ac_uB
='$,\1#\2define\3'
15940 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
15941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15943 - |
*:- |
*:-:* ) # input from stdin
15945 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15946 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15947 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15948 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
15949 * ) ac_file_in
=$ac_file.
in ;;
15952 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
15953 echo "$as_me: creating $ac_file" >&6;}
15955 # First look for the input files in the build tree, otherwise in the
15957 ac_file_inputs
=`IFS=:
15958 for f in $ac_file_in; do
15960 -) echo $tmp/stdin ;;
15962 # Absolute (can't be DOS-style, as IFS=:)
15963 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15964 echo "$as_me: error: cannot find input file: $f" >&2;}
15965 { (exit 1); exit 1; }; }
15966 # Do quote $f, to prevent DOS paths from being IFS'd.
15969 if test -f "$f"; then
15972 elif test -f "$srcdir/$f"; then
15977 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15978 echo "$as_me: error: cannot find input file: $f" >&2;}
15979 { (exit 1); exit 1; }; }
15982 done` ||
{ (exit 1); exit 1; }
15983 # Remove the trailing spaces.
15984 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15988 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15989 # `conftest.undefs', that substitutes the proper values into
15990 # config.h.in to produce config.h. The first handles `#define'
15991 # templates, and the second `#undef' templates.
15992 # And first: Protect against being on the right side of a sed subst in
15993 # config.status. Protect against being in an unquoted here document
15994 # in config.status.
15995 rm -f conftest.defines conftest.undefs
15996 # Using a here document instead of a string reduces the quoting nightmare.
15997 # Putting comments in sed scripts is not portable.
15999 # `end' is used to avoid that the second main sed command (meant for
16000 # 0-ary CPP macros) applies to n-ary macro definitions.
16001 # See the Autoconf documentation for `clear'.
16002 cat >confdef2sed.
sed <<\_ACEOF
16007 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16009 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16012 # If some macros were called several times there might be several times
16013 # the same #defines, which is useless. Nevertheless, we may not want to
16014 # sort them, since we want the *last* AC-DEFINE to be honored.
16015 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16016 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16017 rm -f confdef2sed.sed
16019 # This sed command replaces #undef with comments. This is necessary, for
16020 # example, in the case of _POSIX_SOURCE, which is predefined and required
16021 # on some systems where configure will not decide to define it.
16022 cat >>conftest.undefs <<\_ACEOF
16023 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16026 # Break up conftest.defines because some shells have a limit on the size
16027 # of here documents, and old seds have small limits too (100 cmds).
16028 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16029 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16030 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16031 echo ' :' >>$CONFIG_STATUS
16032 rm -f conftest.tail
16033 while grep . conftest.defines >/dev/null
16035 # Write a limited-size here document to $tmp/defines.sed.
16036 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16037 # Speed up: don't consider the non `#define' lines.
16038 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16039 # Work around the forget-to-reset-the-flag bug.
16040 echo 't clr' >>$CONFIG_STATUS
16041 echo ': clr' >>$CONFIG_STATUS
16042 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
16044 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16046 mv $tmp/out $tmp/in
16048 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
16049 rm -f conftest.defines
16050 mv conftest.
tail conftest.defines
16052 rm -f conftest.defines
16053 echo ' fi # grep' >>$CONFIG_STATUS
16054 echo >>$CONFIG_STATUS
16056 # Break up conftest.undefs because some shells have a limit on the size
16057 # of here documents, and old seds have small limits too (100 cmds).
16058 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16059 rm -f conftest.
tail
16060 while grep . conftest.undefs
>/dev
/null
16062 # Write a limited-size here document to $tmp/undefs.sed.
16063 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16064 # Speed up: don't consider the non
`#undef'
16065 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16066 # Work around the forget-to-reset-the-flag bug.
16067 echo 't clr' >>$CONFIG_STATUS
16068 echo ': clr' >>$CONFIG_STATUS
16069 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16071 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16073 mv $tmp/out $tmp/in
16075 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16076 rm -f conftest.undefs
16077 mv conftest.tail conftest.undefs
16079 rm -f conftest.undefs
16081 cat >>$CONFIG_STATUS <<\_ACEOF
16082 # Let's still pretend it is `configure
' which instantiates (i.e., don't
16083 # use $as_me), people would be surprised to read:
16084 # /* config.h. Generated by config.status. */
16085 if test x
"$ac_file" = x-
; then
16086 echo "/* Generated by configure. */" >$tmp/config.h
16088 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16090 cat $tmp/in >>$tmp/config.h
16092 if test x
"$ac_file" != x-
; then
16093 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
16094 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16095 echo "$as_me: $ac_file is unchanged" >&6;}
16097 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16099 X"$ac_file" : 'X\(//\)[^/]' \| \
16100 X"$ac_file" : 'X\(//\)$' \| \
16101 X"$ac_file" : 'X\(/\)' \| \
16102 . : '\(.\)' 2>/dev/null ||
16104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16105 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16106 /^X\(\/\/\)$/{ s//\1/; q; }
16107 /^X\(\/\).*/{ s//\1/; q; }
16109 { if $as_mkdir_p; then
16114 while test ! -d "$as_dir"; do
16115 as_dirs
="$as_dir $as_dirs"
16116 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16118 X"$as_dir" : 'X\(//\)[^/]' \| \
16119 X"$as_dir" : 'X\(//\)$' \| \
16120 X"$as_dir" : 'X\(/\)' \| \
16121 . : '\(.\)' 2>/dev/null ||
16123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16124 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16125 /^X\(\/\/\)$/{ s//\1/; q; }
16126 /^X\(\/\).*/{ s//\1/; q; }
16129 test ! -n "$as_dirs" || mkdir
$as_dirs
16130 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16131 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16132 { (exit 1); exit 1; }; }; }
16135 mv $tmp/config.h
$ac_file
16139 rm -f $tmp/config.h
16143 cat >>$CONFIG_STATUS <<\_ACEOF
16146 # CONFIG_LINKS section.
16149 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
16150 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16151 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16153 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
16154 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
16156 if test ! -r $srcdir/$ac_source; then
16157 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
16158 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
16159 { (exit 1); exit 1; }; }
16163 # Make relative symlinks.
16164 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16165 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16166 X"$ac_dest" : 'X\(//\)[^/]' \| \
16167 X"$ac_dest" : 'X\(//\)$' \| \
16168 X"$ac_dest" : 'X\(/\)' \| \
16169 . : '\(.\)' 2>/dev/null ||
16171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16173 /^X\(\/\/\)$/{ s//\1/; q; }
16174 /^X\(\/\).*/{ s//\1/; q; }
16176 { if $as_mkdir_p; then
16177 mkdir
-p "$ac_dest_dir"
16179 as_dir
="$ac_dest_dir"
16181 while test ! -d "$as_dir"; do
16182 as_dirs
="$as_dir $as_dirs"
16183 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16184 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16185 X"$as_dir" : 'X\(//\)[^/]' \| \
16186 X"$as_dir" : 'X\(//\)$' \| \
16187 X"$as_dir" : 'X\(/\)' \| \
16188 . : '\(.\)' 2>/dev/null ||
16190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16191 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16192 /^X\(\/\/\)$/{ s//\1/; q; }
16193 /^X\(\/\).*/{ s//\1/; q; }
16196 test ! -n "$as_dirs" || mkdir
$as_dirs
16197 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
16198 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
16199 { (exit 1); exit 1; }; }; }
16203 if test "$ac_dest_dir" != .
; then
16204 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
16205 # A "../" for each directory in $ac_dir_suffix.
16206 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16208 ac_dir_suffix
= ac_top_builddir
=
16212 .
) # No --srcdir option. We are building in place.
16214 if test -z "$ac_top_builddir"; then
16217 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16219 [\\/]* | ?
:[\\/]* ) # Absolute path.
16220 ac_srcdir
=$srcdir$ac_dir_suffix;
16221 ac_top_srcdir
=$srcdir ;;
16222 *) # Relative path.
16223 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16224 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16227 # Do not use `cd foo && pwd` to compute absolute paths, because
16228 # the directories may not exist.
16230 .
) ac_abs_builddir
="$ac_dest_dir";;
16232 case "$ac_dest_dir" in
16233 .
) ac_abs_builddir
=`pwd`;;
16234 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
16235 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
16238 case $ac_abs_builddir in
16239 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16241 case ${ac_top_builddir}.
in
16242 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16243 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16244 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16247 case $ac_abs_builddir in
16248 .
) ac_abs_srcdir
=$ac_srcdir;;
16251 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16252 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16253 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16256 case $ac_abs_builddir in
16257 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16259 case $ac_top_srcdir in
16260 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16261 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16262 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16268 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
16269 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
16272 # Try a symlink, then a hard link, then a copy.
16273 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
16274 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
16275 cp -p $srcdir/$ac_source $ac_dest ||
16276 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
16277 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
16278 { (exit 1); exit 1; }; }
16281 cat >>$CONFIG_STATUS <<\_ACEOF
16284 # CONFIG_COMMANDS section.
16286 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
16287 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
16288 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16289 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
16290 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16291 X"$ac_dest" : 'X\(//\)[^/]' \| \
16292 X"$ac_dest" : 'X\(//\)$' \| \
16293 X"$ac_dest" : 'X\(/\)' \| \
16294 . : '\(.\)' 2>/dev/null ||
16296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16298 /^X\(\/\/\)$/{ s//\1/; q; }
16299 /^X\(\/\).*/{ s//\1/; q; }
16301 { if $as_mkdir_p; then
16306 while test ! -d "$as_dir"; do
16307 as_dirs
="$as_dir $as_dirs"
16308 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16309 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16310 X"$as_dir" : 'X\(//\)[^/]' \| \
16311 X"$as_dir" : 'X\(//\)$' \| \
16312 X"$as_dir" : 'X\(/\)' \| \
16313 . : '\(.\)' 2>/dev/null ||
16315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16316 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16317 /^X\(\/\/\)$/{ s//\1/; q; }
16318 /^X\(\/\).*/{ s//\1/; q; }
16321 test ! -n "$as_dirs" || mkdir
$as_dirs
16322 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16323 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16324 { (exit 1); exit 1; }; }; }
16328 if test "$ac_dir" != .
; then
16329 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16330 # A "../" for each directory in $ac_dir_suffix.
16331 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16333 ac_dir_suffix
= ac_top_builddir
=
16337 .
) # No --srcdir option. We are building in place.
16339 if test -z "$ac_top_builddir"; then
16342 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16344 [\\/]* | ?
:[\\/]* ) # Absolute path.
16345 ac_srcdir
=$srcdir$ac_dir_suffix;
16346 ac_top_srcdir
=$srcdir ;;
16347 *) # Relative path.
16348 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16349 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16352 # Do not use `cd foo && pwd` to compute absolute paths, because
16353 # the directories may not exist.
16355 .
) ac_abs_builddir
="$ac_dir";;
16358 .
) ac_abs_builddir
=`pwd`;;
16359 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16360 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16363 case $ac_abs_builddir in
16364 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16366 case ${ac_top_builddir}.
in
16367 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16368 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16369 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16372 case $ac_abs_builddir in
16373 .
) ac_abs_srcdir
=$ac_srcdir;;
16376 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16377 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16378 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16381 case $ac_abs_builddir in
16382 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16384 case $ac_top_srcdir in
16385 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16386 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16387 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16392 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16393 echo "$as_me: executing $ac_dest commands" >&6;}
16395 default-1
) am_indx
=1
16396 for am_file
in include
/config.h gcj
/libgcj-config.h
; do
16397 case " $CONFIG_HEADERS " in
16399 echo timestamp
> `echo $am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h
$am_indx
16402 am_indx
=`expr "$am_indx" + 1`
16404 default
) # Only add multilib support code if we just rebuilt top-level Makefile.
16405 case " $CONFIG_FILES " in
16407 LD
="${ORIGINAL_LD_FOR_MULTILIBS}"
16408 ac_file
=Makefile .
${libgcj_basedir}/..
/config-ml.
in
16412 # Make subdirectories and `.d' files. Look in both srcdir and
16413 # builddir for the .java files.
16416 ( (cd $srcdir && find . \
( -name '*.java' -o -name '*.cc' -o -name '*.c' \
) -print) ;
16417 find . \
( -name '*.java' -o -name '*.cc' -o -name '*.c' \
) -print) | \
16418 fgrep
-v testsuite | \
16419 sed -e 's/\.java/.d/'\
;'s/\.cc/.d/'\
;'s/\.c/.d/' | \
16421 echo "include $f" >> deps.mk
16423 d
=`echo $f | sed -e 's,/[^/]*$,,'`
16424 if test ! -d $d; then
16425 $libgcj_basedir/..
/mkinstalldirs
$d
16435 cat >>$CONFIG_STATUS <<\_ACEOF
16437 { (exit 0); exit 0; }
16439 chmod +x
$CONFIG_STATUS
16440 ac_clean_files
=$ac_clean_files_save
16443 # configure is writing to config.log, and then calls config.status.
16444 # config.status does its own redirection, appending to config.log.
16445 # Unfortunately, on DOS this fails, as config.log is still kept open
16446 # by configure, so config.status won't be able to write to it; its
16447 # output is simply discarded. So we exec the FD to /dev/null,
16448 # effectively closing config.log, so it can be properly (re)opened and
16449 # appended to by config.status. When coming back to configure, we
16450 # need to make the FD available again.
16451 if test "$no_create" != yes; then
16453 ac_config_status_args
=
16454 test "$silent" = yes &&
16455 ac_config_status_args
="$ac_config_status_args --quiet"
16457 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16459 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16460 # would make configure fail if this is the last instruction.
16461 $ac_cs_success ||
{ (exit 1); exit 1; }
16465 # CONFIG_SUBDIRS section.
16467 if test "$no_recursion" != yes; then
16469 # Remove --cache-file and --srcdir arguments so they do not pile up.
16470 ac_sub_configure_args
=
16472 for ac_arg
in $ac_configure_args; do
16473 if test -n "$ac_prev"; then
16478 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
16479 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
16480 ac_prev
=cache_file
;;
16481 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
16482 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
16485 --config-cache |
-C)
16487 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
16489 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
16491 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
16493 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
16495 *) ac_sub_configure_args
="$ac_sub_configure_args $ac_arg" ;;
16499 # Always prepend --prefix to ensure using the same prefix
16500 # in subdir configurations.
16501 ac_sub_configure_args
="--prefix=$prefix $ac_sub_configure_args"
16504 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
16506 # Do not complain, so a configure script can configure whichever
16507 # parts of a large source tree are present.
16508 test -d $srcdir/$ac_dir ||
continue
16510 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
16511 echo "$as_me: configuring in $ac_dir" >&6;}
16512 { if $as_mkdir_p; then
16517 while test ! -d "$as_dir"; do
16518 as_dirs
="$as_dir $as_dirs"
16519 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
16520 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16521 X"$as_dir" : 'X\(//\)[^/]' \| \
16522 X"$as_dir" : 'X\(//\)$' \| \
16523 X"$as_dir" : 'X\(/\)' \| \
16524 . : '\(.\)' 2>/dev/null ||
16526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16527 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16528 /^X\(\/\/\)$/{ s//\1/; q; }
16529 /^X\(\/\).*/{ s//\1/; q; }
16532 test ! -n "$as_dirs" || mkdir
$as_dirs
16533 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16534 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16535 { (exit 1); exit 1; }; }; }
16539 if test "$ac_dir" != .
; then
16540 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16541 # A "../" for each directory in $ac_dir_suffix.
16542 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16544 ac_dir_suffix
= ac_top_builddir
=
16548 .
) # No --srcdir option. We are building in place.
16550 if test -z "$ac_top_builddir"; then
16553 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16555 [\\/]* | ?
:[\\/]* ) # Absolute path.
16556 ac_srcdir
=$srcdir$ac_dir_suffix;
16557 ac_top_srcdir
=$srcdir ;;
16558 *) # Relative path.
16559 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16560 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16563 # Do not use `cd foo && pwd` to compute absolute paths, because
16564 # the directories may not exist.
16566 .
) ac_abs_builddir
="$ac_dir";;
16569 .
) ac_abs_builddir
=`pwd`;;
16570 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
16571 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
16574 case $ac_abs_builddir in
16575 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16577 case ${ac_top_builddir}.
in
16578 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
16579 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
16580 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
16583 case $ac_abs_builddir in
16584 .
) ac_abs_srcdir
=$ac_srcdir;;
16587 .
) ac_abs_srcdir
=$ac_abs_builddir;;
16588 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
16589 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
16592 case $ac_abs_builddir in
16593 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
16595 case $ac_top_srcdir in
16596 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
16597 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
16598 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
16605 # Check for guested configure; otherwise get Cygnus style configure.
16606 if test -f $ac_srcdir/configure.gnu
; then
16607 ac_sub_configure
="$SHELL '$ac_srcdir/configure.gnu'"
16608 elif test -f $ac_srcdir/configure
; then
16609 ac_sub_configure
="$SHELL '$ac_srcdir/configure'"
16610 elif test -f $ac_srcdir/configure.
in; then
16611 ac_sub_configure
=$ac_configure
16613 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
16614 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16618 # The recursion is here.
16619 if test -n "$ac_sub_configure"; then
16620 # Make the cache file name correct relative to the subdirectory.
16621 case $cache_file in
16622 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
16623 *) # Relative path.
16624 ac_sub_cache_file
=$ac_top_builddir$cache_file ;;
16627 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16628 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16629 # The eval makes quoting arguments work.
16630 eval $ac_sub_configure $ac_sub_configure_args \
16631 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
16632 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
16633 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
16634 { (exit 1); exit 1; }; }